Lattice
Skip to content

torchtune

librarySelf-hostedgithub.com

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 Facts verifiedmethod

Licence
BSD-3-Clause
Language
Python
Cost
free
Owned by
Applied Engineering

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. See every training 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)

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

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.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

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