Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
[Codex]: Running a minimal targeted validation set for head 8fa0a53: the TP4+EP4, DP4+EP4, and TRT-LLM GB300 E2E configurations (GSM8K and MMMU-Pro with default decoder replay and explicit breakable prefill graphs), the candidate-table context-boundary regression, and the encoder/decoder replay combination unit tests. This request covers five test files; it does not request the full CI suite or AMD coverage. |
|
/rerun-test registered/e2e/models/test_deepseek_v41_flash_gb300_tp4ep4.py registered/e2e/models/test_deepseek_v41_flash_gb300_dp4ep4.py registered/e2e/models/test_deepseek_v41_flash_gb300_trtllm_bounded_bcg.py registered/kernels/ops/attention/test_dsv41_candidate_table_boundary.py registered/unit/model_executor/test_encoder_swa_replay.py |
|
🚀 🚀 🚀 |
|
/tag-and-rerun-ci |
|
/rerun-test registered/e2e/models/test_deepseek_v41_flash_gb300_tp4ep4.py registered/e2e/models/test_deepseek_v41_flash_gb300_dp4ep4.py registered/e2e/models/test_deepseek_v41_flash_gb300_trtllm_bounded_bcg.py registered/kernels/ops/attention/test_dsv41_candidate_table_boundary.py registered/unit/model_executor/test_encoder_swa_replay.py |
|
🚀 🚀 🚀 |
… v0.5.23 SGLang v0.5.23 (sgl-project/sglang#44403) turned enable_decoder_swa_bounded_replay into Optional[bool] and resolves an unset value to on for DeepSeek-V4.1 on CUDA. Bounded replay runs the layers after the last kv_source layer over only the prompt tail; SGLang's own help says it is not numerically equivalent to full prefill and to disable it for RL rollouts whose logprobs must match the trainer. miles never set it, so a default DSv4.1 run would have drifted from the trainer, and replayed routing for those layers would no longer line up with the prompt rows. When the user leaves it unset, pass False so every engine keeps full prefill; an explicit --sglang-enable-decoder-swa-bounded-replay and a per-group override still win. On v0.5.22 the field defaults to False, so nothing changes there. The chart snapshots gain the rendered --no-enable-decoder-swa-bounded-replay flag. Co-Authored-By: Claude Opus 5.5 <[email protected]>
[codex/claude generated]
Motivation
Enable decoder SWA bounded replay by default for supported standalone CUDA DeepSeek-V4.1 configurations, while preserving an explicit full-prefill opt-out. In our paired accuracy runs, AIME 2026 without an explicit output cap was identical (469/480 each); DeepSWE differed by one solved task and MMMU-Pro by five correct responses. These are finite, stochastic accuracy measurements, not proof of numerical equivalence or a universal speedup.
Modifications
disable_decoder_bounded_replayis set for eager/breakable prefill, with the existing DP-attention compatibility checks. Keep PD, context parallelism, encoder replay, other platforms, and incompatible configurations out of automatic enablement.--enable-decoder-swa-bounded-replay; add--disable-decoder-bounded-replayto retain full prefill, including prompt-logprob support. Bounded replay remains numerically different from full prefill and does not support prompt logprobs.Base: upstream main
9d68ecce2e811d908551d58a2a8792c75245d181. Main already includes breakable-prefill replay support; this PR does not reapply the historical #43440 patch wholesale.Accuracy Tests
Completed benchmark results
Each arm used one 4×GB300 node and
deepseek-ai/DeepSeek-V4.1-Flash, checkpointdba1be0a40aa45a94ad051997016db3960a90277. Replay off/on was the intended server-setting difference. TP=4, EP=4, attention DP=1, DSPARK block size=5, FlashMLA, static memory fraction=0.8, max running requests=64, decode graph max batch=64, breakable prefill max tokens=4096, prefill graph max sequence length=16384, chunked prefill=16384, and server random seed=0 were shared.AIME majority@16 was 96.67% for both capped runs and 100% for both uncapped runs. The capped results are included for completeness; the uncapped rerun removes the artificial 32K cutoff. Its largest observed outputs were 120,168 tokens off and 107,673 on.
DeepSWE used deep-swe
0b9fabbb63b9104d678fe965e1632f2dd9eaa2ea, Pier4d3c14041d16443f3f9f460dcdf23629994a304e, mini-swe-agent 2.4.6, Docker task environments, four concurrent trials per arm, temperature=1, top_p=.95, max_tokens=32768, seed=0, and reasoning effort high. No sgl-eval changes were involved in that agent harness.AIME/MMMU used unmodified sgl-eval 0.1.2 at
93bc2d851a59e57d54fe755202756589a04d3d86: concurrency=16, temperature=1, top_p=.95, thinking enabled, reasoning effort high, no per-request seed. MMMU used the existing image loader, prompt and MCQ grader forMMMU/MMMU_Pro, configurationstandard (10 options), test split. This ismmmu_pro, notmmmu_pro_visionormmlu_pro.Example full MMMU command (use separate output directories and endpoints per arm):
A one-image smoke evaluation (
--num-examples 1) passed on each arm before the full run. Full MMMU artifacts were checked for 1,730 distinct matching IDs, matching question text/expected answers and generation settings, zero exit codes, and recomputed accuracy/finish-reason counts. Saved server configurations differ only in replay selection after excluding runtime metadata. The installed repaired kernel hashes match. The loader did not pin the Hugging Face dataset revision; final prediction files do not contain image bytes for independent byte equality checks.Revision scope and the original MMMU failure
These full benchmark runs predate the PR base above. DeepSWE/AIME ran on main
b60444c62169c7992b98f102cbc4e86d9d117294plus #43440 head729c1584e597c915f6dbb6207b89e90a09fcef33, integrated locally asb273c67e75a70c1971eb7715910d15c148136883. Repaired MMMU added local fix6dc4fa29df069c92668de2fc5ed7766dd49e378b, transplanted in this PR. The full benchmarks have not been rerun on the new main/default-selection patch.Both original MMMU arms crashed at the context boundary with
logical_page_idx < block_table_stride. A minimal sorter reproducer passed at 1M tokens but lost the newest candidate at 1M+1, returningINT32_MAX. Original interrupted scores are invalid and excluded from the accuracy table. Both arms were rerun fresh with the same fix; both completed without request errors.Omitting max_tokens still permits context-limit truncation. Repaired MMMU reached maximum generated lengths of 1,048,271 off and 1,048,285 on. The remaining truncations reflect length stopping, not a recurrence of the server crash.
Historical fix validation also included six sparse-indexer tests, sorter boundaries at 1,048,575 / 1,048,576 / 1,048,577 / 1,048,586 / 2,097,152 tokens in eager and captured execution, and an end-to-end DSPARK request with 1,048,544 input tokens plus 30 output tokens followed by a healthy server. The text-only boundary reproducer shows that images are not necessary to trigger this bug.
Validation on the new PR base
These ran in isolated test processes with the new source; the benchmark servers were not restarted. Full workload reruns, a complete documentation-site build, and upstream CI are not claimed here. Recommended CI covers the new server-argument test, encoder/decoder replay row tests, candidate boundary and sparse-indexer tests, and the GB300 DSv4.1 E2E. The current B300 PD+CP E2E is disabled upstream.
Speed Tests and Profiling
DeepSWE took approximately 6h 5m per arm, including agent tool execution and task grading. These are end-to-end workload durations, not isolated prefill latency measurements.
MMMU generated 31,363,333 completion tokens off versus 42,100,497 on. Aggregate output rates were 4,301 versus 4,875 tokens/s, but different output lengths, reasoning loops, and batch occupancy prevent treating that ratio as a controlled replay speedup. The controlled fixed-token comparison below measures speed separately from these accuracy workloads. Single stochastic runs also do not establish statistical equivalence of accuracy.
Recorded runtime: PyTorch 2.14.1+cu130, sgl-kernel 0.4.9, FlashInfer/cubin 0.7.1, FlashInfer JIT cache 0.7.1+cu130; Python UnifiedTreeCore fallback on both arms.
Controlled fixed-token comparison on 4×GB300
Measured October 16, 2026 on the same node, sequentially replay off then on. Identical deterministic synthetic token-ID prompts, temperature=0,
ignore_eos=true, exact output lengths, and three repetitions per case. Shape-specific warmup and server startup are excluded; the radix cache was flushed before each repetition. All 348 measured requests per arm passed exact prompt/output-length checks with zero cached tokens.Both arms used DeepSeek-V4.1-Flash, TP4/EP4, attention DP=1, FlashMLA, DSPARK block size 5, breakable prefill, 16,384-token chunks, and a 16,384-token prefill graph context limit. Encoder replay was disabled. Effective server settings matched apart from decoder replay and runtime metadata.
Single-request time to first token, with one output token and five requests per repetition. Values are medians of the three per-repetition medians; speedup = off/on. This is client-observed first-token latency, not GPU-kernel-only time.
End-to-end output throughput, with concurrency 16, 32 requests per repetition, and exactly 128 output tokens per request. Values are median repetition throughput; speedup = on/off.
Long-prompt first-token latency improved by approximately 1.39× (28% lower latency) at 32K/64K input; 32K concurrent throughput improved 1.315×. Short single-request latency was essentially unchanged. Concurrent TTFT did not improve uniformly: at 1K input it was 163 ms off versus 184 ms on.
Revision and interpretation limits: these measurements use the retained repaired accuracy-test runtime, not a fresh checkout of current main or this PR head. The installed package reports
0.0.0.dev1+g67eab5705; that build-version string alone does not identify later local patches. The candidate-table header SHA-256 matches the repaired benchmark (d7088c2ac6c282ef2ae42cadcf527b21c36b165501add4d449b1c596bbbd16a2). Synthetic token IDs control input shape but do not represent natural-language quality or every production workload. DSPARK acceptance can differ between modes even with fixed output counts. The sequential order was not counterbalanced, and three repetitions do not establish statistical confidence.Checklist
CI States
Latest PR Test (Base): ⏳ Run #38989515697
Latest PR Test (Extra): ❌ Run #38989515539
Latest PR Test (AMD ROCm 10): ⏳ Run #38989515613