LabscoMCP early access ↗
Orchestra-Research avatar✓ Official

distributed-llm-pretraining-torchtitan

Account or credentials required★ 13k on GitHub
part of orchestra-research/ai-research-skillsby orchestra-research

PyTorch's official framework for pretraining large language models from scratch, combining four kinds of parallelism — FSDP2, tensor, pipeline, and context — to scale one training run from a single node to hundreds of GPUs.

WHEN TO USE

SCOPE

USE FOR

  • Pretrain a Llama-family model from scratch on a single 8-GPU node.
  • Scale a 70B or 405B pretraining run across hundreds of GPUs with 4D parallelism.
  • Enable Float8 training on H100 GPUs for a 30-50% speedup.
  • Resume a multi-node pretraining job from its last saved checkpoint after a failure.

NOT FOR

  • For maximum performance on NVIDIA-only deployments, use Megatron-LM instead.
  • For the broader ZeRO ecosystem and inference support, use DeepSpeed instead.
  • For fine-tuning rather than pretraining from scratch, use Axolotl or TRL instead.
  • For educational, smaller-scale training, use LitGPT instead.