# torchtitan

> A PyTorch-native platform for training generative AI models at scale

Source: https://talira.ai/catalog/torchtitan-8k0bb5qf
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework
- Categories: [ai / ml / distributed training](https://talira.ai/categories/ai/ml/distributed-training), [ai / ml / fine tuning](https://talira.ai/categories/ai/ml/fine-tuning), [languages / python](https://talira.ai/categories/languages/python)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [PyTorch Foundation](https://talira.ai/orgs/pytorch-foundation.md)

torchtitan is a clean-room, PyTorch-native implementation of large-scale training from the PyTorch project. One readable codebase takes a model from pretraining through supervised fine-tuning to reinforcement learning, composing FSDP2, tensor, pipeline, context and expert parallelism into N-D layouts through DeviceMesh and DTensor without rewriting the model. Runs are Python recipes you can read and modify. It ships model definitions for DeepSeek, Qwen, Kimi, gpt-oss, Llama and FLUX, MXFP8 and NVFP4 low precision and CUDA graphs, and TitanRL reuses the same models and kernels for training and vLLM generation.

## Links

- GitHub: https://github.com/pytorch/torchtitan

## Problems it solves

- pretrain a large language model across many GPUs in plain PyTorch without a heavy framework
- combine FSDP, tensor and pipeline parallelism for a big model without rewriting it
- a hackable reference codebase for large-scale training and RL experiments

## Features

- composable FSDP2, tensor, pipeline, context and expert parallelism
- pretraining, fine-tuning and RL in one codebase
- readable Python recipes
- DeepSeek, Qwen, Kimi, gpt-oss, Llama and FLUX models
- MXFP8 and NVFP4 low precision
- TitanRL with vLLM generation

## Limitations

- Under active development: the latest features need a recent PyTorch nightly[^1]

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 1.00, adoption 0.76, momentum 0.67, community 0.97, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 928 commits in the last 90 days
- latest release v0.4.0 32 days ago
- 6.0k GitHub stars
- 272 contributors
- backed by PyTorch Foundation

## Related

- Based on [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md)

## Alternatives

- [Colossal-AI](https://talira.ai/catalog/colossal-ai-gk5zdz5s.md): PyTorch library for distributed training, fine-tuning and inference of large AI models
- [MiniMind](https://talira.ai/catalog/minimind-7eb46pp5.md): Train a 64M-parameter language model from scratch in about two hours
- [Megatron-LM](https://talira.ai/catalog/megatron-lm-71m2gb8k.md): NVIDIA's GPU-optimized library for training transformer models at scale
- [PyTorch Lightning](https://talira.ai/catalog/pytorch-lightning-2dcg53pn.md): Organises PyTorch code and handles the training engineering, from one CPU to thousands of GPUs
- [PaddlePaddle](https://talira.ai/catalog/paddlepaddle-bw6wnm62.md): Baidu's open source deep learning framework for training and deploying models at scale
- [Accelerate](https://talira.ai/catalog/accelerate-3p4v0csz.md): Hugging Face's library to run the same PyTorch code on any distributed setup

## Sources

[^1]: https://github.com/pytorch/torchtitan (checked 27 Nov 2026)
[^2]: https://github.com/pytorch/torchtitan/blob/main/LICENSE (checked 27 Nov 2026)
