Training & Fine-tuningScale / performance
torchtune
meta-pytorch / torchtune
A PyTorch-native fine-tuning recipe library: readable training loops, FSDP, activation checkpointing and common post-training recipes.
Why choose it
- Thin training loops make it easy to read the source and change data, loss or sampling.
- Native FSDP and activation checkpointing scale from one GPU to many.
- Recipes cover SFT, DPO and quantisation-aware training without a third-party training framework.
Not for
For an out-of-the-box WebUI and many ready model templates, LLaMA-Factory is less work.
Not for non-PyTorch stacks or teams that require TensorFlow.
Minimum setup
- Pick an official recipe whose model size fits your VRAM and run single-GPU SFT first.
- Confirm tokenizer, chat template and data format line up before enabling activation checkpointing.
- Measure single-GPU throughput and peak VRAM before scaling out, so communication bottlenecks are not mistaken for model issues.
Dependencies and cost
Python + PyTorch/CUDA; multi-GPU needs an FSDP environment; VRAM depends on model, sequence length and checkpointing strategy.
License and usage boundaries
Code is BSD-3-Clause; model weights and datasets carry their own licences.
Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.
Alternatives and neighbors
- TorchTitan — Scale / performance,PyTorch's official large-model training recipe: tensor parallelism, pipeline parallelism, FSDP and distributed checkpoints, following the Llama 3 path.
- DeepSpeed — Scale / performance,Microsoft's large-model training library: ZeRO, offload, mixed precision and MoE training to make VRAM and throughput usable.
Next steps
- Open GitHub and read the README, LICENSE, latest release and issues first.
- Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
- Run a small sample first, then decide on production; never start with production data.
Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.