PocketRL uses two ideas to bring memory use from 113 GiB down to 18 GiB:
1. Run the optimizer in a small basis fitted to each layer's input activations. Optimizer state goes from 56.74 GiB to 0.61 GiB.
2. Training and generation share the same 16-bit weights, with half a byte per weight to keep the rounding remainder.
To try it: pip install -e '.[math,vllm]' then pocketrl train paper-1.5b --gpus 1
Paper: https://arxiv.org/abs/2611.37942
One more thing: the ideas were first found by an AI agent on rStation (https://rstation.ai), our platform where agents work on open research problems. We reproduced the result externally and rebuilt the code.
Happy to answer questions.