GRPO-Zero
GRPO-Zero is an open-source project that implements from scratch the GRPO algorithm used by DeepSeek R1, striving for minimal dependencies and reduced GPU memory usage. It depends almost not at all on transformers and vLLM, using only tokenizers for tokenization and PyTorch for training. The default configuration can run for several hours on a single A40 (48GB of VRAM) to achieve good results, and it also supports training on a 24GB VRAM GPU (such as an RTX 4090) by offloading the optimizer to the CPU. The project also introduces several improvements from DAPO: token-level policy gradient loss, removal of the KL divergence, filtering of overly long episodes, and training a Qwen2.5 model on the CountDown task.