Model Customization and Fine-Tuning Concepts

14% of the NCA-AMAD exam. Read each answer, then drill this domain.

Drill this domainAll study notes

When should you use prompting, RAG or fine-tuning?

Start with prompt engineering: system prompts, examples and structured output. Add RAG when the model needs current or private knowledge and should cite it. Fine-tune when it must consistently follow a style, format or narrow skill that prompts can't hold, or to make a smaller model good at one task. Fine-tuning needs labeled data and GPU time.

Source: NVIDIA: Mastering LLM techniques, customization

What fine-tuning methods should you know?

SFT trains on labeled input-output pairs, and instruction tuning is SFT on instructions. PEFT methods such as LoRA and QLoRA train small adapters instead of all weights. Alignment uses human preferences: RLHF with a reward model, or DPO, KTO and GRPO. Distillation trains a small model to imitate a large one.

Source: NVIDIA: Fine-tune and align LLMs with NeMo Customizer

What can go wrong when fine-tuning, and how do you validate it?

Catastrophic forgetting loses general skills; overfitting memorizes a small dataset. Use enough varied, clean data, keep a held-out set, and evaluate broad skills too. Before full rollout, compare with offline evaluations and an A/B test on live traffic.

Source: NVIDIA: Mastering LLM techniques, customization

How does a good RAG pipeline work?

Documents are extracted (including tables and charts), chunked, embedded and stored in a vector index. At query time the question is embedded, retrieved with semantic or hybrid search, reranked, and the best chunks go into the prompt. Chunk size, hybrid search and reranking have big effects on accuracy.

Source: NVIDIA: RAG 101, demystifying RAG pipelines

How are fine-tuned models deployed?

LoRA adapters can be served dynamically on one shared base model, picking the adapter per request; NVIDIA NIM supports this multi-LoRA serving. Or one adapter can be merged into the base weights for a single dedicated model with no adapter overhead.

Source: NVIDIA: Deploying a swarm of LoRA adapters with NIM

Drill this domain