torchtune
FreeA Native-PyTorch Library for LLM Fine-tuning.
About torchtune
torchtune is a PyTorch native library for authoring, post-training, and experimenting with large language models. It provides hackable training recipes for supervised fine-tuning (SFT), knowledge distillation, direct preference optimization (DPO), proximal policy optimization (PPO), group relative policy optimization (GRPO), and quantization-aware training. The library includes simple PyTorch implementations of popular LLMs such as Llama, Gemma, Mistral, Phi, and Qwen, and leverages YAML configs for easy configuration of training, evaluation, quantization, and inference. It is designed for memory efficiency and performance scaling using the latest PyTorch APIs, with support for LoRA/QLoRA, activation offloading, multimodal QLoRA, and multi-node training. Note: As of 2025, torchtune is no longer actively maintained.
Key Features
Pros & Cons
- Open source and free to use
- Native PyTorch integration with hackable recipes
- Supports a wide range of post-training methods
- Includes implementations of many popular LLMs
- YAML configs simplify experiment setup
- Memory efficient with support for LoRA/QLoRA and activation offloading
- No longer actively maintained (development wound down in 2025)
- Documentation and community support may decline over time