TorchTitan

github.com

PyTorch-native platform for pretraining, fine-tuning and RL of large generative AI models at scale.

GitHub stars
5,951
License
BSD-3-Clause
Language
Python
Pricing
Open source
Published
Nov 22, 2026

Next steps

What it does

TorchTitan is the PyTorch team's open-source, PyTorch-native implementation of large-scale training. One readable codebase takes a model from pretraining through supervised fine-tuning to reinforcement learning (TitanRL, which shares model definitions and kernels with vLLM generation). Models declare how they shard, and FSDP2, tensor, pipeline, context and expert parallelism stack into N-D layouts without rewriting the model. Supported families include DeepSeek, Qwen, Kimi, gpt-oss, Llama and FLUX, with MXFP8/NVFP4 low precision. It requires Python 3.11+ and a recent PyTorch nightly.

Use cases

  • Pretrain large language models across many GPUs with composable FSDP, tensor, pipeline, context and expert parallelism
  • Run supervised fine-tuning and reinforcement learning (TitanRL) on the same model definitions
  • Study or modify a readable reference implementation of large-scale training for research

Frequently asked questions

What is TorchTitan?
TorchTitan is a PyTorch-native platform from the PyTorch team for pretraining and post-training generative AI models at scale, from pretraining through supervised fine-tuning to reinforcement learning.
Which models does it support?
The README lists DeepSeek, Qwen, Kimi, gpt-oss, Llama and FLUX, along with MXFP8/NVFP4 low precision and Dist-MoE.
What do I need to run it?
Python 3.11+ and a recent PyTorch nightly build; a debug Llama 3 model can be trained on a single GPU with NGPU=1 ./run_train.sh.
What licence is it under?
BSD-3-Clause.
Log in to join the discussion