Small language model fine-tuning frameworks compared
Interfaces, LoRA and QLoRA, full tuning, preference training and hardware focus
Updated
Why compare these
The practical choice depends on hardware and how much of the training loop you want exposed. Some options emphasize a GUI or configuration file, others efficient local tuning, direct Trainer APIs, transparent PyTorch recipes or Apple silicon.
-
1
A
Axolotl
A configuration-first framework for full tuning, LoRA, QLoRA and preference-training workflows across many model families.
YAML-driven fine-tuning and post-training
-
2
U
Unsloth
Optimized kernels and model integrations target faster, lower-memory fine-tuning on accessible GPUs.
Memory-efficient local fine-tuning
-
3
L
LLaMA-Factory
A unified framework for supervised tuning, parameter-efficient methods and preference alignment with LlamaBoard UI.
Broad model support with CLI and web UI
-
4
T
TRL
Hugging Face trainers cover supervised fine-tuning, reward modeling and preference or reinforcement-learning methods.
Transformers post-training trainers
-
5
t
torchtune
Composable recipes expose the training loop for full fine-tuning, LoRA, QLoRA and distributed post-training.
PyTorch-native post-training recipes
-
6
M
MLX LM
Apple's MLX examples support text generation and low-rank or full fine-tuning on Apple silicon Macs.
Fine-tuning for Apple silicon
Compare side by side
| Axolotl | Unsloth | LLaMA-Factory | TRL | torchtune | MLX LM | |
|---|---|---|---|---|---|---|
| Workflow | ||||||
| Interface | YAML configuration + CLI | Python notebooks and scripts | CLI, YAML and LlamaBoard web UI | Python Trainer APIs | Python recipes + YAML config | Python API and CLI |
| Methods | ||||||
| LoRA / QLoRA | Both | Both | Both | Through PEFT integration | Both | LoRA; quantized LoRA |
| Full fine-tune | Yes | Supported for selected models | Yes | Yes | Yes | Yes |
| Preference training | DPO and related methods | Via TRL integrations | DPO, PPO and more | DPO, GRPO, PPO, reward modeling | DPO and PPO recipes | DPO support |
| Hardware | ||||||
| Hardware focus | CUDA, single or multi-GPU | CUDA; optimized for limited VRAM | CUDA and distributed backends | Transformers / Accelerate stack | PyTorch CUDA, single or distributed | Apple silicon |
References
- Official SLM fine-tuning framework repositories, the framework maintainers (facts). Checked 2026-11-25 07:27 UTC.
- Axolotl repository, Axolotl, checked 2026-11-25.
- Unsloth repository, Unsloth AI, checked 2026-11-25.
- LLaMA-Factory repository, LLaMA-Factory, checked 2026-11-25.
- TRL repository, Hugging Face, checked 2026-11-25.
- torchtune repository, PyTorch, checked 2026-11-25.
- MLX LM repository, Apple, checked 2026-11-25.
