atlas

Research map / Large language models / Reasoning and chain of thought

TorchTitan: One-stop PyTorch native solution for production ready LLM pretraining

ICLR 2025 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Presents TorchTitan, a PyTorch-native, composable 4D parallelism framework for production LLM pretraining, evaluated on Llama 3.1 8B/70B/405B from 8 to 512 H100 GPUs.

Problem

Existing distributed LLM training systems are non-composable, inflexible, inefficient in hardware use, weak on production needs (checkpointing, failure recovery, debugging), and depend on external poorly maintained dependencies.

Approach

Builds a modular PyTorch-native training system on DTensor and DeviceMesh that composes FSDP2, TP/SP, PP, and CP as n-D parallelism, combined with torch.compile, Float8, AsyncTP, selective activation checkpointing, distributed checkpointing, and Flight Recorder.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add torch.compile (ablation)FSDP · Llama 3.1 8B, 8 GPUsthroughput (Tok/Sec): 6,258 -> 6,674 (+ 6.64%)Helped
add torch.compile (ablation)FSDP · Llama 3.1 8B, 128 GPUsthroughput (Tok/Sec): 5,645 -> 6,482 (+ 14.82%)Helped
add Float8 on top of torch.compile (ablation)FSDP + torch.compile · Llama 3.1 8B, 8 GPUsthroughput (Tok/Sec): 6,674 -> 9,409 (+ 50.35%)Helped
add Float8 on top of torch.compile (ablation)FSDP + torch.compile · Llama 3.1 8B, 128 GPUsthroughput (Tok/Sec): 6,482 -> 9,319 (+ 65.08%)Helped
add AsyncTP (ablation)2D parallelism with torch.compile and Float8 · Llama 3.1 70B, 256 GPUsthroughput (Tok/Sec): 897 -> 1,010 (+ 12.59%)Helped
use Interleaved 1F1B instead of 1F1B (ablation)3D parallelism with torch.compile, Float8, and AsyncTP · Llama 3.1 405B, 512 GPUsthroughput (Tok/Sec): 100 -> 130 (+ 30.00%)Helped
increase CP degree to enable longer context (ablation)FSDP + CP · Llama 3.1 8B, 8 GPUsmaximum sequence length: 32,768 -> 262,144Helped
increase CP degree from 1 to 8 (ablation)FSDP + CP · Llama 3.1 8B, 8 GPUsthroughput (Tok/Sec): 3,890 -> 548Hurt
increase CP degree to enable longer context (ablation)FSDP + CP · Llama 3.1 405B, 512 GPUsmaximum sequence length: 32,768 -> 262,144Helped
increase CP degree from 1 to 8 (ablation)4D parallelism · Llama 3.1 405B, 512 GPUsthroughput (Tok/Sec): 76 -> 16Hurt
replace FSDP1 with FSDP2 (ablation)FSDP training · Llama 2 7BGPU memory: 7%Helped
replace FSDP1 with FSDP2 (ablation)FSDP training · Llama 2 7Bthroughput: 1.5%Helped

Surprising findings

Limitations

Experimental setup

Datasets: C4

Metrics: throughput (tokens/sec/GPU) peak memory (GiB) loss convergence

Baselines: FSDP1 Megatron-LM DeepSpeed veScale torch.compile-free FSDP baseline 2D parallelism baseline

Builds on: FSDP DTensor DeviceMesh Megatron-LM torch.compile

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy