Making torch_remat work in TorchTitan

·Hacker News··

PyTorch DevLogGitHubHome / DistributedMaking torch_remat work in TorchTitanAnimesh Jain (@anijain2305) · November 19, 2026 · 9 min readtorchtitandistributedactivation-checkpointingrematmemoryTL;DR – TorchTitan now uses torch_remat for activation checkpointing. Named regions in model code replace aten-level SAC policies, but distributed training made it trickier than “replay forward”: collectives needed their own regions, side effects and nondeterministic routing had to be pinned down

Read full article →

Related Articles

Should I run plain Docker Compose in production in 2026?
pmig · Hacker News · 6mo ago
Computer Use is 45x more expensive than structured APIs
palashawas · Hacker News · 6mo ago
Bun is being ported from Zig to Rust
SergeAx · Hacker News · 6mo ago
Show HN: Tilde.run – Agent sandbox with a transactional, versioned filesystem
ozkatz · Hacker News · 6mo ago
RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust
atilimcetin · Hacker News · 6mo ago