What problem does it solve?
Pretraining large language models from scratch requires coordinating thousands of GPUs across multiple parallelism strategies, managing memory-efficient sharding, and integrating low-precision formats like Float8. This Skill provides structured workflows for configuring and launching TorchTitan training runs at scale.
Core Features & Use Cases
- Composable 4D Parallelism: Combine FSDP2, Tensor Parallel, Pipeline Parallel, and Context Parallel for models from 8B to 405B+ parameters.
- Float8 Training: Enable H100/Blackwell FP8 quantization with rowwise or tensorwise scaling for 30-50% throughput gains.
- Distributed Checkpointing: Use PyTorch DCP with async writes, HuggingFace interop, and seed checkpoint creation for pipeline parallelism.
- Use Case: A research team needs to pretrain a Llama 70B model on 256 H100 GPUs. Use this Skill to configure FSDP+TP parallelism, enable Float8 with torch.compile, and launch a SLURM multi-node training job with checkpoint resumption.
Quick Start
Use the torchtitan skill to configure and launch a Llama 3.1 8B pretraining run on 8 GPUs with FSDP2 and Float8 enabled.