Repository navigation
feat(repro): add Tier 1 (0-GPU) rollout scheduling replay and GRP offline benchmark - #34
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends Tier 1 (
repro/tier1_zero_gpu_replay/) into a dual-pathway benchmark so researchers can both verify Libra's heterogeneous rollout schedulers and Global Resource Planner on 0 GPUs in ~2 seconds and eliminate cost-model circularity using real heterogeneousvLLMservers on physical GPUs as the judge:--eval-mode analytic, default, 0 GPUs): Replays all 6 schedulers (round_robin,least_connections,length_aware,la_mlfq,cmlfq,cmlfq_cost) via water-filling continuous-batchingRolloutCostModel+GlobalResourcePlanneroffline solver on CPU.--eval-mode vllm, 8 GPUs): Launches or connects to live heterogeneousvLLMHTTP/v1/completionsengines (--launch-vllmor--vllm-endpoints) with Automatic Prefix Caching (--enable-prefix-caching) and session-isolated prompts, completely eliminatingRolloutCostModelfrom makespan evaluation and measuring real wall-clock makespan (wall_makespan_s) and token throughput (tok/s).Updated Files
repro/README.md: Documents Tier 1 Pathway 1 & Pathway 2 overview, reproduction Quick Start commands, and verified experimental setups & results for both pathways.repro/tier1_zero_gpu_replay/README.md: Detailed Pathway 1 & Pathway 2 setup, trace breakdown, CLI flags (--eval-mode,--launch-vllm,--vllm-endpoints,--vllm-model,--vllm-tokenizer,--vllm-concurrency,--vllm-gpus), and metric definitions.repro/tier1_zero_gpu_replay/run_replay.py: AddsVLLMServerCluster, OpenAI-compatible async completions client (_vllm_complete,_run_vllm_batch), token-exact prompt builder (_build_padded_text), shared turn-hook & completion helpers, deferred batch-endfinish_requesttree updates, and dual-pathway reporting/JSON output (wall_makespan_s,throughput_tok_per_s).repro/tier1_zero_gpu_replay/sample_traces/r2e_agentic_trace.jsonl: 64 deterministic multi-turn agentic traces (24 warmupr2e_task_00..11+ 40 unseen evalr2e_task_12..31, prompt tokens1050–2230, peak context<= 23,350 <= 32,768,95,890eval output tokens across33 short_clean,2 short_recover,3 medium,1 long_unambig,1 long_cascading).tests/test_tier1_replay.py: Addstest_live_vllm_replay_pathway_eliminates_simulatorverifying live HTTP vLLM replay across 4 mockTP=[1, 1, 2, 4]OpenAI servers with_score_instance_makespanforbidden invllmmode.Experiment 1: Pathway 1 — 0-GPU CPU Analytic Replay (
--eval-mode analytic)TP=[1, 1, 2, 4](8 GPUs,max_batch_per_tp=4), water-fillingRolloutCostModel(configs/hardware_config/a800_80g.yaml+configs/model_arch_config/qwen3-14b.yaml), static boundedconcurrency=12, KV backendrecompute,cmlfq_costprofiler2e_cost_profile.json.r2e_agentic_trace.jsonl(24warmup +40unseen eval; prompt tokens1050–2230; output bucketsshort<=4000 / medium<=10000 / long<=32768). Zero GPUs used.round_robinrecompute20/10/10least_connectionsrecompute6/14/20length_awarerecompute4/20/16la_mlfqrecompute35/0/5cmlfqrecompute35/3/2cmlfq_costrecompute33/3/432 GPUs,64 trajectories): Fixed Baseline16 GPUs (TP=4, DP=4)+[8, 8](T_train=2.726s,T_rollout=50.486s,T_global=50.486s) → GRP Optimal4 GPUs (TP=4, DP=1)+[8, 8, 8, 4](T_train=4.695s,T_rollout=45.984s,T_global=45.984s, 1.10x,-8.9%).Experiment 2: Pathway 2 — Real-GPU Live vLLM Judge (
--eval-mode vllm,8 × NVIDIA H20-3e 141GB)qs-417146-2445617-ai-2084480-master-0(8 × NVIDIA H20-3e 141GB HBM3e).vLLM 0.9.2instances (TP=[1, 1, 2, 4]) runningQwen/Qwen3-14B(bfloat16,--enable-prefix-caching,--max-model-len 32768,--gpu-memory-utilization 0.85,--no-enable-chunked-prefill).ignore_eos=True, exact per-turnmax_tokens),95,890eval generated tokens across 40 unseen trajectories, zeroRolloutCostModelsimulator in evaluation.round_robinrecompute20/10/10least_connectionsrecompute10/15/15length_awarerecompute4/20/16la_mlfqrecompute35/0/5cmlfqrecompute35/3/2cmlfq_costrecompute33/3/4Verification
.venv/bin/python -m pytest -q --strict-markers tests/→496 passed, 2 skipped(6 passedintests/test_tier1_replay.py)..venv/bin/python repro/tier1_zero_gpu_replay/run_replay.py --eval-mode analytic→ exited0.--eval-mode vllm,TP=[1, 1, 2, 4],Qwen/Qwen3-14B) → exited0, achieving+83.4%(1.83x) forcmlfqand+106.8%(2.07x) forcmlfq_costoverround_robin.