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…
Why it matters
Halving optimizer state could help memory-bound fine-tuning, but this is still an experiment.
What happened
1 min readA 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.
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.