What problem does it solve?
This Skill helps you pretrain large language models efficiently across many GPUs by providing a PyTorch-native torchtitan setup with composable 4D parallelism (FSDP2, tensor, pipeline, and context parallel).
Core Features & Use Cases
- 4D parallel pretraining recipes: Run single-node and multi-node training with configurable FSDP2, TP, PP, and CP degrees to match your model size and hardware budget.
- Deterministic distributed training primitives: Use torchrun/SLURM launch patterns, seed checkpoint creation for pipeline parallelism, and distributed checkpointing flows.
- Performance-focused techniques: Enable Float8 training via torchao and optionally combine it with torch.compile to improve throughput on H100-class hardware.
Use case example: Pretrain a Llama 3.1-class model from scratch on 8–512+ GPUs, selecting parallelism degrees and checkpointing settings so training can resume reliably and scale from a workstation to a cluster.
Quick Start
Run distributed pretraining for an 8B-class config by executing one training launch with the provided torchtitan train config on your target GPU count using the torchtitan run_train.sh or torchrun command.