Get the latest tech news

Making torch_remat work in TorchTitan


L;DR – TorchTitan now uses torch_rematfor 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 during replay, and the missing early-stop optimization led to a case where recomputing used more memory than stashing.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Work

Work

Photo of torch_remat

torch_remat

Photo of TorchTitan

TorchTitan

Related news:

News photo

4 random apps you might not realize work with Android Auto

News photo

Windows has two settings that bring work back after restart, both off by default

News photo

Logitech is giving employees the day off to play GTA 6: ‘Play is not the opposite of work’