Lattice
Skip to content

torchtune

github.comlibraryself-hosted

torchtune is a self-hosted library in the Fine-tuning & Training layer of the AI stack. PyTorch-native recipes for fine-tuning and aligning open models.

By Lattice editorial · Facts verified · method

licence
BSD-3-Clause
language
Python
cost
free

Use torchtune when

PyTorch-native recipes that you can read and modify.

Skip torchtune when

You want the breadth of a config-driven stack.

Produces the weights that layer 1 serves. — that is what this layer of the stack is answerable for. See the full Fine-tuning & Training section for the rest of the options.

Visit github.comCompare with another tool
Badge this entry
Lattice badge: torchtune verified 2026-09
[![torchtune on Lattice: verified 2026-09](https://lattice.kunjshah.in/fine-tuning/torchtune/badge.svg)](https://lattice.kunjshah.in/fine-tuning/torchtune)

Quick answers

Is torchtune open source?
Yes. torchtune is open source under the BSD-3-Clause licence. It is free to use.
What are the alternatives to torchtune?
The closest alternatives to torchtune are TRL and LLaMA-Factory.

Reading on training

Alternatives to torchtune

Listed as an alternative to

  • TRL

Also in training

  • Unsloth
  • Axolotl
  • LLaMA-Factory
  • PEFT
  • TRL
  • DeepSpeed
  • Megatron-LM
  • Hugging Face TRL
  • Colab
  • Replicate
  • Weights & Biases Launch