Experimentation (22%)
Official exam topics: exam-guide/nca-genl-exam-page.md ("Experimentation"). NVIDIA defines this area as performing, evaluating and interpreting experiments, including AI model evaluation and the use of human subjects in labelling or reinforcement learning from human feedback (RLHF).
Expect questions about preparing data for pretraining and fine-tuning, choosing a customization technique, reading training behaviour, running evaluations and benchmarks, and weighing technologies on cost and portability. The reading list: Hugging Face LLM course (fine-tuning, tokenizers), NVIDIA's Mastering LLM Techniques: Inference Optimization, Jurafsky & Martin, Weights & Biases Quickstart, Illustrating RLHF, and LM Evaluation Harness.
Exam topics in this domain 1. 3.1 Prepare large datasets (scraping, tokenization) for pretraining, fine-tuning and RLHF 2. 3.2 Assist in model training and training optimization 3. 3.3 Data collection from human subjects (RLHF) 4. 3.4 Evaluate and refine existing models; benchmarking 5. 3.5 Run experiments to evaluate models and pipelines 6. 3.6 Design and run hardware and software tests for LLM applications 7. 3.7 Evaluate current and emerging technologies on cost, portability, compatibility and usability
Checked against NVIDIA documentation (November 2026). - NeMo Curator is NVIDIA's open-source, GPU-accelerated library for curating large training datasets: text extraction, language identification, heuristic and model-based quality filtering, exact, fuzzy and semantic deduplication, and domain classification. It scales across GPUs and nodes with RAPIDS and Ray. (Its current README doesn't list PII redaction, so treat PII removal as a separate step in the data pipeline.) - NeMo framework supports pretraining and customization (SFT, PEFT such as LoRA and P-tuning, and alignment methods such as DPO and RLHF); NeMo Customizer and Evaluator microservices expose fine-tuning and evaluation as APIs.
3.1 Preparing Datasets
The three kinds of LLM training data
| Stage | Data | Size | Format |
|---|---|---|---|
| Pretraining | Raw text (web, books, code) | Trillions of tokens | Plain text, tokenized and packed into fixed-length sequences |
| Supervised fine-tuning (SFT) | Instruction → response pairs, chat transcripts | Thousands to hundreds of thousands of examples | JSONL with prompt/completion or a list of chat messages, formatted with the model's chat template |
| Preference alignment (RLHF, DPO) | A prompt with a chosen and a rejected response | Tens of thousands of comparisons | JSONL with prompt, chosen, rejected |
The data pipeline
- Collect / scrape: respect robots.txt, licences and terms of use; record provenance.
- Extract: HTML → text, PDF → text; drop navigation and boilerplate.
- Language identification and quality filtering: heuristic rules (length, symbol ratio, repeated lines) and classifier-based quality scores.
- Deduplicate: exact (hashing), fuzzy (MinHash + locality-sensitive hashing), semantic (embedding similarity). Duplicates waste compute and cause memorization.
- Remove harmful content and PII: toxicity filters; redact names, emails, phone numbers, IDs.
- Decontaminate: remove benchmark test questions so evaluation isn't inflated.
- Tokenize with the model's tokenizer; pack short sequences together for pretraining; pad and truncate for fine-tuning batches.
- Split into train / validation / test before any tuning, and keep splits stable.
At scale, the filtering and deduplication steps run on GPUs with NeMo Curator (built on RAPIDS and Ray).
Tokenization details for training
- Use the same tokenizer as the base model; adding new tokens means resizing the embedding matrix and training them.
- Padding side matters for decoder models (left padding for batched generation); the attention mask hides padding tokens.
- In SFT, the loss is usually computed only on the response tokens (prompt tokens are masked out), so the model learns to answer, not to repeat questions.
Synthetic data
LLMs can generate training examples (questions, answers, preference pairs) when real data is scarce. Filter generated data for quality and diversity, check the generating model's licence terms, and keep a human-reviewed sample.
3.2 Training and Training Optimization
Customization options, cheapest first
| Technique | What changes | Cost | Use for |
|---|---|---|---|
| Prompt engineering / few-shot | Nothing in the model | Lowest | Quick wins, formatting |
| RAG | Nothing in the model; adds retrieval | Low | Knowledge that changes |
| Prompt tuning / P-tuning | Small set of learned virtual-token embeddings (P-tuning uses a small encoder to produce them) | Low | Task adaptation while the model stays frozen |
| LoRA / QLoRA (PEFT) | Small low-rank adapter matrices; base frozen | Low–medium | Style, format, domain tasks |
| Full supervised fine-tuning | All weights | High (memory for weights, gradients and optimizer states) | Large behaviour changes with lots of data |
| Continued pretraining | All weights, on raw domain text | Very high | New domain language (medical, legal, code) |
| Pretraining from scratch | Everything | Highest | Almost never for an associate's team |
LoRA (from the reading list)
- Freezes the pretrained weights W and learns an update ΔW = B × A, where A and B are small matrices of rank r (for example 8–64). Only A and B are trained.
- Why it works: weight updates during adaptation have low "intrinsic rank".
- Benefits: far fewer trainable parameters and less GPU memory; many task adapters can share one base model; adapters can be merged into the base weights for inference with no extra latency.
- Hyperparameters: rank r (capacity), alpha (scaling of the update), which layers get adapters (usually the attention projections), dropout.
- QLoRA loads the frozen base model in 4-bit precision and trains LoRA adapters in higher precision, so a large model fits on a single GPU.
Training mechanics and optimizations
| Concept | What it does |
|---|---|
| Learning rate schedule | Warmup (start small, ramp up) then decay (cosine or linear); fine-tuning uses much smaller learning rates than pretraining |
| Batch size | Larger batches = more stable gradients and better GPU use but more memory |
| Gradient accumulation | Sum gradients over several small batches before an update: a large effective batch on limited memory |
| Mixed precision (FP16 / BF16) | Faster maths on Tensor Cores and half the memory; BF16 has FP32's range, so it needs no loss scaling; FP16 needs loss scaling to avoid underflow |
| FP8 | Further speed-up on Ada, Hopper and newer GPUs via NVIDIA Transformer Engine |
| Activation (gradient) checkpointing | Recompute activations in the backward pass instead of storing them: saves memory, costs ~20–30% more compute |
| Data parallelism | Each GPU has a model copy and a slice of the batch; gradients are averaged (all-reduce) |
| Tensor / pipeline parallelism | Split the model's layers (tensor) or stages (pipeline) across GPUs when it doesn't fit on one |
| Checkpointing | Save model and optimizer state regularly to resume after failures and to pick the best step |
| Early stopping | Stop when validation loss stops improving |
Reading training behaviour:
| You see | Likely cause | Try |
|---|---|---|
| Loss is NaN or explodes | Learning rate too high; FP16 overflow; bad data | Lower LR, warmup, gradient clipping, BF16, check data |
| Loss flat from the start | LR too low; frozen weights by mistake; data/label bug | Check trainable parameters, raise LR, inspect a batch |
| Training loss falls, validation loss rises | Overfitting | Fewer epochs, more data, regularization, early stopping |
| Fine-tuned model forgets general skills | Catastrophic forgetting | Lower LR, fewer epochs, LoRA instead of full fine-tuning, mix in general data |
| GPU utilization low | Data loading bottleneck | More loader workers, pre-tokenize, faster storage |
| Out-of-memory error | Batch or sequence too large | Smaller micro-batch + gradient accumulation, mixed precision, activation checkpointing, LoRA/QLoRA |
GPU memory rule of thumb: weights alone take parameters × bytes per parameter: FP32 = 4 bytes, FP16/BF16 = 2, INT8 = 1, INT4 = 0.5. A 7B model needs about 14 GB in FP16 just for weights. Full fine-tuning with Adam needs roughly 16 bytes per parameter (weights, gradients, two optimizer moments and an FP32 master copy) plus activations, which is why LoRA is popular.
3.3 Human Feedback and RLHF
From Illustrating Reinforcement Learning from Human Feedback:
- Supervised fine-tuning: start from a pretrained model and fine-tune on demonstrations.
- Collect comparisons: humans see a prompt and two or more model responses and rank them (pairwise comparisons are more consistent than absolute scores).
- Train a reward model that predicts the human preference score for a response.
- Optimize the policy (the LLM) with reinforcement learning, usually PPO, to maximize reward, with a KL-divergence penalty that keeps it close to the SFT model so it doesn't "game" the reward model (reward hacking).
DPO (Direct Preference Optimization) trains directly on chosen/rejected pairs with a classification-style loss: no separate reward model and no RL loop, so it is simpler and more stable. RLAIF uses an AI judge instead of humans to label preferences.
Collecting data from human subjects
- Clear labelling guidelines with examples; pilot them first.
- Inter-annotator agreement (for example Cohen's kappa) to check consistency; adjudicate disagreements.
- Diverse annotators to reduce one group's bias.
- Informed consent, fair pay, protection from harmful content (rotation, opt-out), and PII protection (D5).
- Quality control: gold-standard items, spot checks, removing low-quality annotators.
3.4 Evaluating Models and Benchmarking
Benchmarks to recognise
| Benchmark | Tests |
|---|---|
| MMLU | Knowledge across 57 subjects (multiple choice) |
| HellaSwag | Commonsense sentence completion |
| ARC | Grade-school science reasoning |
| TruthfulQA | Avoiding common falsehoods |
| GSM8K | Grade-school maths word problems |
| HumanEval / MBPP | Code generation (pass@k) |
| MT-Bench / Chatbot Arena | Multi-turn chat quality, judged by an LLM or by human votes |
LM Evaluation Harness (EleutherAI) runs hundreds of standard benchmarks with consistent prompts and scoring, so results are comparable. Specify the number of few-shot examples, prompt format and model precision, because they change scores.
Beyond public benchmarks
- Public benchmarks may be contaminated (in training data) and may not match your task. Build a task-specific evaluation set from real, representative inputs with reference answers.
- LLM-as-a-judge: a strong model grades outputs against a rubric. Cheap and scalable; check it against human judgements, and watch for position bias (prefers the first answer) and verbosity bias (prefers longer answers).
- Human evaluation: the gold standard for helpfulness and safety; expensive, so use it on samples.
- RAG-specific evaluation: retrieval quality (recall@k) separately from generation quality (faithfulness / groundedness to the retrieved context, answer relevance).
- Regression testing: rerun the evaluation set after every model, prompt or data change.
3.5 Running Experiments
- One change at a time against a fixed baseline; same data splits, same evaluation set, same seed.
- Track everything: code version, data version, hyperparameters, metrics, hardware. Weights & Biases (
wandb.init,wandb.log) or MLflow and TensorBoard log runs and plot curves so runs can be compared and reproduced. - Ablation studies: remove one component (reranker, a data source, a prompt instruction) to measure its contribution.
- Multiple seeds to see run-to-run variance before claiming an improvement.
- A/B testing in production: split live traffic between variants and compare a business metric with a significance test.
- Hyperparameter sweeps: grid, random or Bayesian search (W&B Sweeps, Optuna).
3.6 Hardware and Software Tests for LLM Applications
| Test | Measures | Notes |
|---|---|---|
| Latency | Time to first token (TTFT) and inter-token latency / time per output token (TPOT) | TTFT matters for chat responsiveness |
| Throughput | Tokens per second, requests per second at a given concurrency | Rises with batching, at some latency cost |
| Load / stress test | Behaviour at peak and beyond (queueing, errors) | Find the concurrency where latency breaks the SLA |
| GPU utilization and memory | nvidia-smi, DCGM metrics | Low utilization = a bottleneck elsewhere |
| Functional / unit tests | Prompt templates, parsers, tool calls | Deterministic parts of the app |
| Output evaluation tests | Accuracy and safety on a test set | Run in CI before releases |
| Precision comparison | Quality after quantization (FP16 vs FP8 vs INT4) | Confirm accuracy loss is acceptable |
NVIDIA tools for benchmarking inference include AIPerf, the successor to GenAI-Perf, which measures TTFT, inter-token latency and throughput against Triton and OpenAI-compatible endpoints such as NIM and can record GPU telemetry from DCGM; Triton's perf_analyzer; and the TensorRT-LLM benchmarking utilities. Older material and questions may still name GenAI-Perf. Always benchmark with realistic input and output lengths and concurrency, because results change a lot with them.
3.7 Evaluating Technologies: Cost, Portability, Compatibility, Usability
| Factor | Questions to ask | Examples |
|---|---|---|
| Cost | GPU hours to train and serve, tokens per dollar, licence fees | Smaller or quantized models; LoRA instead of full fine-tuning; batching |
| Portability | Can it run on other hardware or clouds? Lock-in? | ONNX as an exchange format; containers; NIM runs anywhere with an NVIDIA GPU (cloud, data centre, workstation) |
| Compatibility | Supported GPUs, CUDA and driver versions, frameworks, model formats | TensorRT-LLM supports specific architectures and precisions; FP8 needs Ada, Hopper or newer GPUs |
| Usability | Learning curve, docs, APIs, community | OpenAI-compatible APIs reduce integration work |
| Licence | Commercial use allowed? | Model licences differ (open weights vs restricted) |
ONNX (Open Neural Network Exchange; on the reading list via NVIDIA's End-to-End AI for NVIDIA-Based PCs) is an open model format: export from PyTorch or TensorFlow, then run with ONNX Runtime or convert to TensorRT for optimized NVIDIA inference.
Exam Tips - LoRA = frozen base + small trainable low-rank matrices; QLoRA = the same on a 4-bit base. - RLHF = SFT → human comparisons → reward model → PPO with a KL penalty. DPO skips the reward model. - Deduplicate and decontaminate training data; NeMo Curator does it at GPU scale. - Loss NaN → lower LR / BF16 / clipping. Out of memory → smaller micro-batch + gradient accumulation, mixed precision, checkpointing. - BF16 needs no loss scaling; FP16 does. - Benchmark with LM Evaluation Harness; build your own task eval set too. - TTFT for responsiveness, tokens/s for throughput.
References
- NVIDIA NCA-GENL certification exam page — checked Nov 11, 2026
Check your understanding
The model's output format is slightly wrong. Should you fine-tune all its weights?Show answerHide answer
Answer
No. Try prompt engineering first, then a parameter-efficient method such as LoRA, which trains small low-rank adapters on a frozen base.Training loss turns to NaN. What are the usual fixes?Show answerHide answer
Answer
Lower the learning rate, use BF16 instead of FP16 (or loss scaling with FP16), and add gradient clipping.How does DPO differ from RLHF?Show answerHide answer
Answer
RLHF trains a reward model on human comparisons and then optimizes with PPO; DPO learns directly from the preference pairs and skips the reward model.Why is one short prompt a poor latency benchmark?Show answerHide answer
Answer
Latency depends on prompt length, output length and concurrency. Benchmark with realistic lengths and load, reporting time to first token and tokens per second.