Get the daily emailDaily email
  1. Home
  2. Agents
  3. This story

ApexW: an experimental PyTorch optimizer with compact optimizer state

A r/MachineLearning user shared ApexW, a PyTorch optimizer using compact state and Triton kernels that roughly halves optimizer-state memory. In optimizer-only benchmarks with a few large tensors it was about 1.5x faster than PyTorch's fused AdamW, but with…

Published Read the original

Why it matters

Halving optimizer state could help memory-bound fine-tuning, but this is still an experiment.

What happened

1 min read

A r/MachineLearning user shared ApexW, a PyTorch optimizer using compact state and Triton kernels that roughly halves optimizer-state memory. In optimizer-only benchmarks with a few large tensors it was about 1.5x faster than PyTorch's fused AdamW, but with many small tensors it was about 5x slower, and end-to-end training was slightly slower overall.

inscraper analysis

Our analysis

The author is upfront about trade-offs, but results are optimizer-only with no convergence or numerical-stability evaluation. Established options such as bitsandbytes 8-bit optimizers target the same memory problem and are not compared. A personal project seeking feedback, not a ready tool.

More in Agents