nvidia-nlp-training-qwen3

Benchmarks Qwen3-8B pretraining throughput on NVIDIA GPUs using NeMo and Megatron-LM.

7|1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/DeepLink-org/DeepEval-Skills --skill nvidia-nlp-training-qwen3-deeplink-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nvidia-nlp-training-qwen3
Source: https://github.com/DeepLink-org/DeepEval-Skills/tree/main/skills/NVIDIA/nlp/nvidia-nlp-training
Command: npx skills add https://github.com/DeepLink-org/DeepEval-Skills --skill nvidia-nlp-training-qwen3-deeplink-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Measuring large language model pretraining performance on NVIDIA GPUs requires coordinating container setup, Megatron data preprocessing, distributed training execution, and log-based metric extraction. This Skill automates that entire evaluation workflow for Qwen3-8B so engineers get comparable, reproducible throughput numbers. ## Core Features & Use Cases - Automated Evaluation Pipeline: Runs container startup, Megatron data preprocessing, NeMo-based pretraining, and metric collection through three dedicated scripts (preprocess.sh, pretrain.sh, calc.sh). - Standardized Throughput Metrics: Extracts tokens_per_sec_per_gpu from training logs, trims warmup and tail steps, and computes per-GPU and total throughput written to result.json. - Use Case: A hardware evaluation engineer needs to verify Qwen3-8B pretraining performance on an 8-GPU NVIDIA node. The Skill launches the NeMo container, preprocesses the arxiv sample dataset, runs 100 training steps, and produces a structured result.json with average tokens per second per GPU. ## Quick Start Ask the agent to evaluate Qwen3-8B pretraining performance on NVIDIA GPUs and collect the tokens_per_sec_per_gpu metric.

Frequently Asked Questions about nvidia-nlp-training-qwen3

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I benchmark Qwen3-8B pretraining throughput on NVIDIA GPUs?

Run the Skill's three scripts in order: preprocess.sh converts the dataset to Megatron binary format, pretrain.sh launches the NeMo training job on 8 GPUs, and calc.sh extracts tokens_per_sec_per_gpu from the training log into result.json.

How is tokens_per_sec_per_gpu calculated from NeMo training logs?

The calc.sh script parses every tokens_per_sec_per_gpu line printed by NeMo's TimingCallback, discards the first 10 warmup steps and last 10 tail steps, then averages the remainder. Total throughput equals the per-GPU average multiplied by world size 8.

What hardware and data are required for Qwen3-8B pretraining evaluation?

You need one node with 8 NVIDIA GPUs, at least 1TB NVMe storage, the Qwen3-8B HuggingFace model weights, the arxiv_sample.jsonl dataset, and the pretraining code directory. Everything runs inside the provided NeMo Docker image.

Can I run this pretraining benchmark on multiple nodes or fewer GPUs?

No. The pretrain.sh script enforces exactly one node with 8 GPUs and exits with an error otherwise. Core hyperparameters like global_batch_size 128 and seq_length 8192 are also fixed to keep results comparable with baseline metrics.

Why does metric collection fail with insufficient step records?

calc.sh requires more than 20 tokens_per_sec_per_gpu records because it trims 10 warmup and 10 tail steps. If training stops before max_steps 100 completes, too few valid steps remain and the script exits with an error.