TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training
Summary
The development of large language models (LLMs) has been instrumental in advancing state-of-the-art natural language processing applications. Training LLMs with billions of parameters and trillions of tokens require sophisticated distributed systems that enable composing and comparing several state-of-the-art technique…
- Venue
- arXiv 2410.06511
- Publisher
- arXiv 2410.06511
- Source
- arxiv
- Access
- open arXiv PDF/abs
- Purpose
- TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training
- Domain
- LLM research
- Used for
- LLM research reference
- Time period
- arXiv 2024/10/09; Discord LinkedIn mid harvested 2026-09-15
- Author type
- academic/industry (see abs)
- Added
- Sep 15, 2026
- Verified
- Sep 15, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Oct 9, 2024
- Last revised
- Jun 7, 2025
- arXiv categories
- cs.CL, cs.AI, cs.DC, cs.LG
- Citations
- 109 (11 influential)
- References
- 51
- Published in
- International Conference on Learning Representations
Abstract (from arXiv)
The development of large language models (LLMs) has been instrumental in advancing state-of-the-art natural language processing applications. Training LLMs with billions of parameters and trillions of tokens require sophisticated distributed systems that enable composing and comparing several state-of-the-art techniques in order to efficiently scale across thousands of accelerators. However, existing solutions are complex, scattered across multiple libraries/repositories, lack interoperability, and are cumbersome to maintain. Thus, curating and empirically comparing training recipes require non-trivial engineering effort. This paper introduces TorchTitan, an open-source, PyTorch-native distributed training system that unifies state-of-the-art techniques, streamlining integration and reducing overhead. TorchTitan enables 3D parallelism in a modular manner with elastic scaling, providing comprehensive logging, checkpointing, and debugging tools for production-ready training. It also incorporates hardware-software co-designed solutions, leveraging features like Float8 training and SymmetricMemory. As a flexible test bed, TorchTitan facilitates custom recipe curation and comparison, allowing us to develop optimized training recipes for Llama 3.1 and provide guidance on selecting techniques for maximum efficiency based on our experiences. We thoroughly assess TorchTitan on the Llama 3.1 family of LLMs, spanning 8 billion to 405 billion parameters, and showcase its exceptional performance, modular composability, and elastic scalability. By stacking training optimizations, we demonstrate accelerations of 65.08% with 1D parallelism at the 128-GPU scale (Llama 3.1 8B), an additional 12.59% with 2D parallelism at the 256-GPU scale (Llama 3.1 70B), and an additional 30% with 3D parallelism at the 512-GPU scale (Llama 3.1 405B) on NVIDIA H100 GPUs over optimized baselines.
Tags
Topics
LLM research
Research notes
- From LinkedIn thread (Discord mid 1321331200874254399). Primary: https://www.linkedin.com/posts/philipp-schmid-a6a2bb196_test-time-compute-scaling-but-in-simple-activity-7276162046050668544-bYxt?utm_source=share&utm_medium=member_desktop.
Cited by, within this collection
- PithTrain: A Compact and Agent-Native MoE Training System
- Parallax: Parameterized Local Linear Attention for Language Modeling
- Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation
- Efficient Pre-Training with Token Superposition
- Demystifying Manifold Constraints in LLM Pre-training
- HRM-Text: Efficient Pretraining Beyond Scaling
Similar entries
- Paper GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
- Paper Train for Truth, Keep the Skills: Binary Retrieval-Augmented Reward Mitigates Hallucinations
- Paper AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration
- Paper From $f(x)$ and $g(x)$ to $f(g(x))$: LLMs Learn New Skills in RL by Composing Old Ones
- Paper Token-Efficient RL for LLM Reasoning
- Paper MEDIC: Comprehensive Evaluation of Leading Indicators for LLM Safety and Utility in Clinical Applications