First-stage Zero RL on Ling-2.5-flash-Base (104B MoE) via SLIME — Ring-2.5-flash-Zero
harbor run -t ale/ring-flash-104b-zero-rl-stage1harbor download ale/ring-flash-104b-zero-rl-stage1Run Zero RL on the flash-scale model: apply RLVR (Reinforcement Learning with Verifiable Rewards) directly on the inclusionAI/Ling-2.6-flash-base pretrained base model — a 104B-parameter MoE with 7.4B activated parameters — with no supervised fine-tuning, using the SLIME RL framework. The trained model corresponds to Ring-2.5-flash-Zero.
This is a full-stack pipeline task. The primary goal is to stand up and run the complete Zero-RL loop — environment → assets → data → rollout ↔ train closed loop → evaluation — from a MoE base model and produce a genuinely trained checkpoint. Hitting the exact target accuracy is secondary to demonstrating that the whole pipeline actually works at this scale.
The verifier assigns a continuous reward in [0, 1] based on how far through the pipeline you get and how well the trained model performs. Write nothing to /app/result.txt directly — the verifier inspects real training artifacts and evaluation output (see "Deliverables" below). Reward breakdown:
| Stage | What must be true | Reward |
|---|---|---|
| Environment + assets | SLIME importable; inclusionAI/Ling-2.6-flash-base + training data downloaded |
0.15 |
| Data prepared | dataset converted to SLIME's RLVR format with the <think>/<answer> template and rule-based verifier wired |
+0.10 |
| Rollout ↔ train closed loop | a real training run: checkpoint(s) + optimizer state written, training log shows ≥ 500 gradient steps with a non-trivial, increasing train reward | +0.35 |
| Evaluation ran | AIME 2024 + AIME 2025 evaluated with the specified protocol; scores produced | +0.10 |
| Accuracy | AIME 2024 pass@1 (avg over 64 runs) above the inclusionAI/Ling-2.6-flash-base baseline, scaling up to the target |
+0.30 |
The heaviest weight is on the rollout ↔ train closed loop — the hardest and most telling part of any large-MoE RLVR stack. A trained checkpoint with a climbing reward curve is worth more than a high number you cannot back up with artifacts.
Accuracy sub-score is linear on AIME 2024 pass@1:
< base → 0.0base → 71% → scales 0.0 → 0.30≥ 71% → 0.30 (full) — Ring-2.5-flash-Zero reaches ≈71.2% AIME 2024 / 63.5% AIME 2025inclusionAI/Ling-2.6-flash-base — 104B MoE, 7.4B activated. Zero RL trains directly from this base with NO SFT.allenai/Dolci-RL-Zero-Math-7B (HuggingFace) — decontaminated, verifiable math prompts (question + ground-truth answer). Use a two-phase curriculum: start with relatively easier, deterministically checkable problems, then harder ones to push the reasoning ceiling.Elicit latent reasoning from the base model by aggressively amplifying low-probability reasoning tokens. Use SLIME's implementation of the following objective.
The policy-gradient objective sums over all tokens of all G rollouts per prompt:
J(θ) = E_{q∼D, {o_i}∼π_S} [ Σ_i Σ_t sg(ρ̂_{i,t}) · Â_{i,t} · log π_θ^M(o_{i,t} | q, o_{i,<t}) ]
with these exact behaviors:
Clipped importance-sampling policy gradient: the clipped ratio enters as a stop-gradient scalar coefficient sg(ρ̂_{i,t}) multiplying log π_θ. Gradients flow only through log π_θ, i.e. through all tokens — unlike PPO-clip, which zeroes out the gradient for tokens whose ratio falls outside the clip range. Every generated token contributes to learning.
Training-inference ratio correction: the IS ratio uses the training-engine (Megatron) logits in the numerator and the rollout-engine (SGLang) logits in the denominator, so it reflects the true train↔inference divergence and absorbs the numerical discrepancy between engines.
ρ_{i,t} = π_θ^M(o_{i,t} | q, o_{i,<t}) / π_{θ_old}^S(o_{i,t} | q, o_{i,<t})
ρ̂_{i,t} = clip(ρ_{i,t}, ε_low, ε_high)
No lower bound on the IS ratio; only an upper clip ε_high = 5.0 to prevent excessively large updates (ε_low is not enforced).
Advantage — standard GRPO with std normalization: Â_{i,t} is the GRPO group-normalized reward over the G rollouts, following DeepSeek-R1 (Guo et al., 2025): Â_i = (r_i − mean({r})) / std({r}). This keeps the standard-deviation normalization (do NOT use the Dr.GRPO no-std variant).
Token-level loss: sum over all tokens WITHOUT normalizing by response length |o_i|. This is essential to incentivize long reasoning chains from scratch (longer correct responses accumulate stronger gradient signals).
KL penalty against a frozen reference model: β = 1e-4, K3 estimator. Refresh the reference model every 400 steps with the latest checkpoint.
Combined objective: L(θ) = −J(θ) + β · L_KL(θ).
Reward = accuracy + format:
r_format ∈ {0,1}: response follows the required structure with <think>...</think> and <answer>...</answer> tags.r_acc ∈ {0,1}: final answer correctness. Use deterministic rule-based matching for the easily verifiable (early-curriculum) problems. For harder problems where answers take multiple valid forms, an LLM-as-a-Judge (e.g. Qwen3-Next-80B-A3B-Instruct) may return a binary correctness judgment given the response + reference answer.| Hyperparameter | Value |
|---|---|
| Advantage estimator | GRPO group-normalized |
| Batch size | 512, then 256 (off-policy setup) |
| Minibatch size | 32 |
| Optimizer | Adam (β1=0.9, β2=0.999), weight decay 0.01 |
| Learning rate | 2×10⁻⁶ (constant) |
| Rollouts per prompt (G) | 16 |
| Rollout temperature | 1.0 |
| IS ratio lower bound | none |
| IS ratio upper clip (ε_high) | 5.0 |
| Loss reduction | token-level (no length normalization) |
| KL penalty (β) | 1e-4 (K3 estimator) |
| Reference model refresh | every 400 steps |
| Response window (curriculum) | 4k → 64k tokens, doubling every 800 steps |
| Target training steps | ~5,000 |
The Ring-2.5 experiments run on 320 × H200 GPUs with a hybrid architecture (training engine + rollout engine). For this flash-scale (104B MoE) task, use SLIME's disaggregated rollout ↔ train setup across the available GPUs. The base model is MoE, so expert parallelism / the appropriate model-parallel layout must be configured. Getting the rollout ↔ train weight-sync loop running stably for a large MoE is the crux of the task.
GPU Configuration: TODO — set to the available cluster (the paper used 320×H200 for the shared infra across both scales).
inclusionAI/Ling-2.6-flash-base and the allenai/Dolci-RL-Zero-Math-7B training data.<think>...</think><answer>...</answer> output.<answer>...</answer>; score with the rule-based verifier (+ judge as needed).inclusionAI/Ling-2.6-flash-base baseline under the identical protocol, so the improvement is measurable.Write all of the following so the graded verifier can confirm the pipeline ran:
/app/checkpoints/ — trained checkpoint(s) including model weights and optimizer state./app/logs/train.jsonl (or SLIME's native log) — per-step metrics including step and train_reward (or equivalent), showing the reward trajectory./app/eval/results.json — evaluation output containing at least:
{"trained_aime2024_pass@1": <float 0-100>, "base_aime2024_pass@1": <float 0-100>, "trained_aime2025_pass@1": <float 0-100>, "n_runs": 64, "temperature": 0.6, "top_k": 0.95}
/app/result.txt — the trained AIME 2024 pass@1 as a single float (e.g. 71.2), consistent with results.json.Ring-2.5-flash-Zero reaches ≈71.2% (AIME 2025 ≈63.5%) after ~5,200 steps.