Fine-tuning & Training
12 toolsProduces the weights that layer 1 serves.
- Unslothlibrary
Hand-written kernels that cut LoRA memory and time sharply.
- Axolotllibrary
Configuration-driven fine-tuning across common architectures.
- LLaMA-Factoryplatform
Unified interface for SFT, DPO and RLHF on open models.
- PEFTlibrary
Parameter-efficient fine-tuning methods such as LoRA and QLoRA.
- TRLlibrary
Hugging Face library of post-training trainers for SFT, DPO and GRPO.
- DeepSpeedlibrary
ZeRO sharding and pipeline parallelism for large-scale training.
- Megatron-LMlibrary
Tensor and pipeline parallel training for multi-GPU clusters.
- torchtunelibrary
PyTorch-native recipes for fine-tuning and aligning open models.
- Hugging Face TRLplatform
Preference and reward optimisation on top of any PEFT setup.
- Colabplatform
Hosted GPUs for small runs and quick experiments.
- Replicateplatform
Hosted fine-tuning and deployment for open models.
- Weights & Biases Launchplatform
Managed training runs with sweeps and artifact tracking.
By Kunj ShahLayer boundaries and entries verifiedmethod
Also relevant here
These tools are indexed in another layer, but they also do fine-tuning & training's job. Each carries its home layer's colour.
Rules of thumb
- Fine-tuning teaches behaviour, not facts. If the answer changes monthly, it belongs in retrieval instead.
- Exhaust prompting and retrieval before training. A fine-tune is a model you now have to version, evaluate and serve.
- Hold out an eval set before the first training run. Without it you cannot tell a better model from a different one.
Quick answers
- When should I fine-tune instead of prompting?
- When you need a consistent format, tone or narrow skill that prompting cannot hold reliably, or when a smaller tuned model can replace a larger general one at lower cost. Not when you need the model to know new facts.
- What is LoRA?
- Low-rank adaptation: training a small set of extra weights on top of a frozen base model. It cuts memory and cost enough to fine-tune large open models on a single GPU.
- How much data does fine-tuning need?
- Hundreds to a few thousand clean, representative examples are often enough for behaviour and format. Quality and coverage of the examples matter more than volume.
Ask an AI about this page
Opens the assistant with this page’s link and a question already filled in.