Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 10 min read Announcement mediumAdept

Open-R1: Update #1

Open-R1's first week reproduced DeepSeek's MATH-500 scores for the R1-Distill models using lighteval, mostly within a few points of the reported numbers. GRPO training landed in TRL 0.14 with DeepSpeed ZeRO and vLLM generation, though R1's very long outputs (about 6,000 tokens on average, some over 20,000) make memory a constraint. For synthetic data generation, serving R1 on 4x 8xH100 nodes instead of 2 avoided KV-cache preemption. Switching from batched to streaming async requests kept GPU utilization steady. The update closes with a roundup of industry reactions, training-cost discussions, community reproductions such as TinyZero and Mini-R1, and R1-derived reasoning datasets.

Related posts

  • Open-R1: a fully open reproduction of DeepSeek-R1

    Hugging Face easyNovice

    Open-R1 is a Hugging Face project to openly reconstruct DeepSeek-R1's missing training data and code, since only the model weights were released. DeepSeek-R1 builds on the 671B MoE DeepSeek-V3. R1-Zero was trained with pure reinforcement learning using GRPO and simple accuracy and format rewards, while R1 added a cold-start SFT phase followed by further RL and rejection sampling to improve readability. The plan has three steps: distill a reasoning dataset from R1 to replicate the R1-Distill models, replicate the pure-RL R1-Zero pipeline with new math, reasoning and code datasets, and demonstrate multi-stage base → SFT → RL training.

  • Open R1: Update #2

    Hugging Face hardMaster

    OpenR1-Math-220k is a math reasoning dataset built by generating 800k DeepSeek R1 traces for 400k NuminaMath 1.5 problems on 512 local H100s. Switching inference from vLLM to SGLang nearly doubled throughput, from 15 to 25 generations per hour per H100. Traces were filtered with Math-Verify plus a Llama-3.3-70B-Instruct judge, which recovered 28k rejected problems, while reward-model selection among correct answers gave no gain over random choice. Fine-tuning Qwen2.5-Math-Instruct on the 94k default split nearly matches DeepSeek-Distill-Qwen-7B, and the update also covers community GRPO results, small curated datasets (s1K, LIMO) and controlling chain-of-thought length with budget forcing and cosine rewards.

  • Mini-R1: Reproduce Deepseek R1 „aha moment“ a RL tutorial

    Hugging Face hardMaster

    Recreates DeepSeek R1's "aha moment" by training Qwen2.5-3B-Instruct with GRPO on the Countdown numbers game, using rule-based format and accuracy rewards in TRL with DeepSpeed ZeRO-3 and vLLM generation on 4x H100s. GRPO drops PPO's value model and instead normalizes rewards within a group of sampled outputs to compute advantages. The DeepSeekMath hyperparameters became unstable after about 150 steps, so the learning rate was lowered to 5e-7 and the KL beta to 0.001. The model learned the output format by step 50 and reached about 50% success by step 450 (roughly 6 hours), shifting around step 200 from verbal reasoning to programmatic trial-and-check search.

  • No GPU left behind: Unlocking Efficiency with Co-located vLLM in TRL

    Hugging Face hardMaster

    TRL v0.18.0 can run vLLM co-located with the training job on the same GPUs. vLLM's external_launcher executor puts it inside the torch.distributed process group, replacing the separate HTTP server that left training and inference GPUs idle in turn during GRPO's frequent generation steps. Benchmarks show up to 1.43× throughput for a 1.5B model with larger batches and up to 1.73× for a 7B model with higher tensor parallelism, though extra TP hurts small models. Qwen2.5-Math-72B trained ~1.26× faster on fewer GPUs with matching rewards and Math500 scores, using vLLM level-2 sleep to free memory and DeepSpeed ZeRO-3 with CPU optimizer offload. The write-up also covers debugging a TP seed-determinism regression, a buffer-restore bug after sleep and a remaining shutdown segfault.

  • Hill-climbing Inkling 2 Mini inference on one RTX PRO 6000

    Hugging Face hardMaster

    Agent-driven tuning of Inkling 2 Mini, a looped 26B-total/3B-active MoE, on a single RTX PRO 6000 raised single-user decode from 136 to 190.6 tok/s (+40%) and 8-user throughput from ~570 to 716 tok/s by switching from SGLang to vLLM nightly and enabling DSpark speculative decoding with 7 drafts and probabilistic draft sampling. A bandwidth analysis shows the result sits at ~95% of the ~201 tok/s ceiling, because speculative verification on an MoE touches the union of experts across draft positions. Two memory flags, --max-model-len 262144 and --gpu-memory-utilization 0.85, were needed for vLLM's DSpark setup to start on 96 GB. The write-up also lists failed levers and benchmarking pitfalls (Triton JIT during timed runs, orphaned server processes, buried OOM errors, SGLang run-to-run variance) and verification gates: needle retrieval to 250K tokens and byte-identical greedy outputs.

The quest for software engineering knowledge.

Look:
Layout: