What problem does it solve? Pretraining LLMs from scratch across hundreds of GPUs requires coordinating data, tensor, pipeline, and context parallelism plus checkpointing and mixed precision, which is complex to configure correctly. This Skill provides tested workflows for distributed pretraining with torchtitan, PyTorch's native training platform. ## Core Features & Use Cases - 4D Parallelism Configuration: Compose FSDP2, tensor parallelism, pipeline parallelism, and context parallelism for models from 8B to 405B+ parameters on 8 to 512+ GPUs. - Float8 and torch.compile Acceleration: Enable Float8 training with tensorwise or rowwise scaling on H100 GPUs for up to 48% throughput gains over FSDP baselines. - Distributed Checkpointing: Use PyTorch DCP for async checkpointing, seed checkpoints for pipeline parallelism, and bidirectional HuggingFace checkpoint conversion. - Use Case: A research team wants to pretrain a Llama 3.1 70B model on 256 H100 GPUs. Use this Skill to configure FSDP plus tensor parallelism, set up a SLURM multi-node job, enable activation checkpointing, and resume automatically from distributed checkpoints. ## Quick Start Ask the AI to configure and launch a torchtitan pretraining run for Llama 3.1 8B on 8 GPUs with Float8 and torch.compile enabled.