Fine-tuning continues training a base model on curated examples to teach style, format, domain knowledge, or new skills. Modern parameter-efficient methods (LoRA/QLoRA) update <1% of weights, training in hours on a single GPU at a fraction of full SFT cost.
End-to-end FT pipeline from data prep to deployed adapter.
1,000 hand-crafted examples beat 100,000 noisy ones. LIMA paper showed 1k examples can match RLHF on style.
Full SFT rarely needed. LoRA r=16 captures most domain adaptation; QLoRA fits 70B on a single 24GB GPU.
Aggressive FT degrades base model's general abilities. Always benchmark MMLU/HellaSwag pre/post.
Compute loss only on assistant tokens. Training to predict the user's question wastes capacity and hurts quality.
Multi-tenant serving: keep base in GPU, swap LoRAs per request (vLLM, S-LoRA). Avoids per-tenant model duplication.
Use FT for tone, format, terminology. Use RAG for facts, freshness, citations. Most apps need both.
Sign in to share your feedback and join the discussion.