Skip to content

feat(repro): add Tier 2 8-GPU & 4-GPU closed-loop RL, GRP/EHP benchmarks, and Colab quickstart - #35

Open
kaiwenKevinn wants to merge 5 commits into
mainfrom
feat/tier2-closed-loop
Open

kaiwenKevinn wants to merge 5 commits into
mainfrom
feat/tier2-closed-loop

Conversation

@kaiwenKevinn

@kaiwenKevinn kaiwenKevinn commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds Tier 2 of the Libra reproduction suite (repro/tier2_four_gpu_closed_loop/) focused on Slurm-free End-to-End Closed-Loop RL, 8-GPU GRP & EHP benchmarks, and Google Colab 1-GPU Co-Located Quickstart:

Pure rollout scheduling policy comparison (round_robin, least_connections, cmlfq, cmlfq_cost) lives in Tier 1 / PR #34 (repro/tier1_zero_gpu_replay/); the redundant closed-loop 4-policy scheduling table has been removed from this PR so Tier 2 focuses on end-to-end closed-loop RL bring-up and GRP / EHP system benchmarks.


Verified Real-GPU Results (8 × NVIDIA H20-3e, Qwen/Qwen3-4B)

1. GRP 8-GPU Resource Partitioning (benchmark_grp.py, 4 steps × 16 trajectories)

Allocation Rollout Layout & Policy Wall Time Rollout / Train / Sync (s) Throughput Reload ACKs Speedup vs 4/4 TP=1
fixed_4train_4rollout_tp1 4×TP=1 (round_robin + prefix_affinity) 222.275 s 176.315 / 29.538 / 16.404 17.276 rollouts/min (314.06 tok/s) 4/4 1.000x
fixed_2train_6rollout_tp2 3×TP=2 (least_connections + prefix_affinity) 266.654 s 220.797 / 29.535 / 16.304 14.401 rollouts/min (262.03 tok/s) 3/3 0.834x (-19.97%)
grp_optimal_1train_7rollout_hetero TP=[1,2,4] (cmlfq_cost) 115.375 s 69.981 / 29.353 / 16.020 33.283 rollouts/min (607.22 tok/s) 3/3 1.927x (+48.09%)

2. EHP Elastic Hybrid Parallelism (benchmark_ehp.py, Qwen/Qwen3-4B, seq_len=1536, 16 trajs/step)

Mode Devices Hybrid Activation Avg Step (s) Steady-State Step 1–2 (s) Speedup vs 1 GPU Peak VRAM grad_norm Parity
static_core_1gpu cuda:0 0.0001 s 8.3562 s 8.3562 s 1.000x 60.322 GB 1.460938 / 1.46875 / 1.476562
ehp_borrow_1gpu cuda:0–1 0.2828 s 4.3236 s 4.3234 s 1.933x 60.239 GB 1.46875 / 1.46875 / 1.476562
ehp_borrow_3gpus cuda:0–3 0.8206 s 3.0834 s 2.4020 s (3.48x) 2.710x 60.195 GB 1.46875 / 1.46875 / 1.476562

Test Plan

  • .venv/bin/python -m pytest -q tests/test_tier2_closed_loop.py -> 15 passed in 17.13s
  • Full tests/ suite -> 511 passed, 1 skipped in 57.55s
  • Real 8 × NVIDIA H20-3e (qs-417146-2445617-ai-2084480-master-0) runs verified (h20_8gpu_grp, h20_8gpu_ehp), all 8 GPUs released (0 MiB / 0 %).

@kaiwenKevinn kaiwenKevinn changed the title feat(repro): add Tier 2 closed-loop RL, Google Colab quickstart, and 8-GPU rollout scheduling benchmark feat(repro): add Tier 2 8-GPU & 4-GPU heterogeneous closed-loop RL and Google Colab quickstart Nov 28, 2026
@kaiwenKevinn kaiwenKevinn changed the title feat(repro): add Tier 2 8-GPU & 4-GPU heterogeneous closed-loop RL and Google Colab quickstart feat(repro): add Tier 2 8-GPU & 4-GPU closed-loop RL, GRP/EHP benchmarks, and Colab quickstart Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant