Skip to main content
Training & Fine-tuningScale / performance

TorchTitan

pytorch / torchtitan

PyTorch's official large-model training recipe: tensor parallelism, pipeline parallelism, FSDP and distributed checkpoints, following the Llama 3 path.

5.9k stars 1091 forks Python Language BSD-3-Clause License Last push 2026-11-19

Why choose it

  • Officially maintained and quick to adopt new PyTorch features.
  • Clear parallelism combinations and checkpoint patterns — a good scaling baseline.
  • Clean code structure, easy to adapt to your own model.

Not for

For small-model fine-tuning, use Hugging Face Trainer.
It is not a turnkey product; expect to read code and tune.

Minimum setup

  1. Launch an official single-node multi-GPU Llama 3 config.
  2. Match tensor-parallel degree to GPU count and record tokens/s.
  3. Save and restore a distributed checkpoint once to verify resume.

Dependencies and cost

Python + PyTorch nightly/CUDA; multi-node needs high-speed interconnect; large runs need dedicated storage.

License and usage boundaries

Code is BSD-3-Clause; model weights and datasets carry their own licenses.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • DeepSpeed — Scale / performance,Microsoft's large-model training library: ZeRO, offload, mixed precision and MoE training to make VRAM and throughput usable.
  • Axolotl — Production,One YAML config for fine-tuning: LoRA, QLoRA, full-parameter, DPO, GRPO and multi-node training.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.