Repository navigation
Fix prefill CP graph overflow with larger bucket search - #33906
Conversation
|
/rerun-test test/registered/cp/test_gpt_oss_4gpu_mxfp4_cp.py |
2 similar comments
|
/rerun-test test/registered/cp/test_gpt_oss_4gpu_mxfp4_cp.py |
|
/rerun-test test/registered/cp/test_gpt_oss_4gpu_mxfp4_cp.py |
|
/rerun-test test/registered/cp/test_gqa_prefill_cp.py |
|
Results for 🚀 |
2 similar comments
|
Results for 🚀 |
|
Results for 🚀 |
|
/rerun-test test/registered/cp/test_cp_strategy_unit.py |
|
Results for 🚀 |
|
Results for 🚀 |
Motivation
The 4-GPU GPT-OSS MXFP4 context-parallel test crashed during prefill BCG replay (failing job). A live multi-request zigzag layout can require more CP-local physical rows than the single-request layout captured for the same global token bucket (for example, 520 live rows versus 512 captured rows).
The first version of this fix fell back to eager immediately. That is safe, but unnecessarily gives up BCG when a slightly larger captured graph can hold the live CP layout.
Modifications
load_batch(), so replay pads to the graph shape that admission selected.Example: a 2048-token batch requiring 520 CP-local rows skips the 2048 capture with capacity 512 and reuses the 2304 capture with capacity 576. Every CP rank chooses 2304 because the selector uses the maximum requirement across all CP ranks.
Accuracy Tests
No model math changes. Relevant CPU regression tests cover:
load_batch()actually pads replay to 2304;Validation performed locally:
py_compile;git diff --checkpassed.The original four-GPU test requires CUDA hardware and is delegated to GitHub Actions.
Speed Tests and Profiling
No benchmark run. The new search uses CPU list arithmetic during eligibility and scans the existing capture bucket list. Reusing a larger graph may execute additional padded rows, but candidates remain bounded by the existing 2x limit; otherwise execution falls back to eager.
Checklist
CI States
Latest PR Test (Base): ❌ Run #31159377670
Latest PR Test (Extra): ❌ Run #31159378115