simple_GRPO
AI developer platformssimple_GRPO is a lightweight open-source GRPO implementation for reproducing the reasoning capabilities of R1-like large language models. The code is only about 200 lines, spread across two files, and depends on standard libraries such as deepspeed and torch, with no need for ray. It draws on the core loss calculation formula from Hugging Face trl, and supports saving GPU memory, quickly understanding the RL process, trying multi-answer generation, regrouping, KL penalty, and parameter tuning, among other things. An "Aha moment" can be observed in the early stages of training. The project provides a decoupled reference model design, allowing it to run on different GPUs or even different machines, and supports vLLM-accelerated inference and the reinforce++ algorithm. Experiments show that training is completed within 1 hour on an A800, and the Qwen2.5-7B and 3B models exhibit an Aha moment within 30 steps, with accuracy stably above 60% and format compliance reaching 100%.