Repository navigation
Description
Problem
When serving nvidia/GLM-5.3-Flash-FP4-Local (TP2, 4 slots, fixed MTP-3, prefill_chunk=4096) under --scheduler-policy balanced on 2× NVIDIA DGX Spark (GB10 / SM121), concurrent long prompts arriving while two requests are actively decoding cause severe inter-token delivery pauses:
decode_overlapp99 ITL: 1,430 ms (decode0: 1,430.1 ms,decode1: 1,430.2 ms)decode_overlapmax ITL: 2,576 ms (8–11pauses> 1 sper stream)
Because the exported core has no mixed prefill-decode graphs and its prefill catalog extends up to 4,096 tokens, Helios selects 3,584–4,096-token prefill steps (and can stack two nonterminal prefill frames) while active decoders are waiting. Each 4k prefill step on 2× GB10 blocks active decode delivery for ~1.4–2.5 s.
Measured 3-Point A/B Evaluation (Decode-Aware Prefill Cap)
To quantify the headroom without sacrificing idle throughput, we tested a minimal scheduler guard that limits prefill/refresh catalog selection (and disables two-frame nonterminal prefill stacking) only when has_active_decoders() is true, leaving pure prefill and pure decode completely untouched.
Hardware & Configuration
- Hardware: 2× NVIDIA DGX Spark (GB10 / SM121, 121 GiB unified memory each, dual-rail ConnectX-7 RoCEv2, driver
580.178.04, kernel7.0.0-1025-nvidia) - Model & Export:
nvidia/GLM-5.3-Flash-FP4-Local(76348ddb), exported withhyperflare-recipes@339ca580,flashinfer@e34540cc7,--context-parallel --row-shard-prefill --row-shard-attention,B12X_W4A16_A4_PREFILL=1, TP2, 4 slots, MTP-3 (--no-mtp-adaptive-verification),prefill_chunk=4096,--memory-limit -4G, 200 GiB/rank NVMe prefix cache (--lossless-kv-compression cpu) - Engine baseline:
flare@571a4471(balancedscheduler) - Workload: 3 matched repetitions of concurrent
decode_overlap(2 active 256-token decode streams overlapped with 4k and 64k prompts) andunequal_burst(simultaneous 4k/8k/32k/128k burst), plus pure decode (c1/c2/c4/c8) and pure cold prefill (8k–128k).
Results (Medians across 3 reps)
| Mixed prefill cap (when decoders active) | decode_overlap p99 ITL (decode0 / decode1) |
decode_overlap max ITL |
decode1 elapsed |
decode_overlap short / long TTFT |
unequal_burst 4k TTFT |
Pure Decode (c1/c2/c4/c8) |
Pure Cold Prefill (8k–128k, c1) |
|---|---|---|---|---|---|---|---|
Uncapped (4096, upstream 571a4471) |
1,430.1 / 1,430.2 ms | 2,576 ms | 34.58 s | 3.45 / 28.49 s | 3.23 s | 42.9 / 85.4 / 161.2 / 159.9 tok/s | 2,319–2,538 tok/s |
| 1024 tokens | 759.0 / 758.9 ms (−46.9%) | 802–823 ms (−68.5%) | 34.08 s | 7.90 / 39.93 s | 3.39 s | 44.3 / 86.3 / 162.1 / 160.2 tok/s | 2,274–2,532 tok/s |
| 512 tokens | 586.9 / 584.7 ms (−59.0%) | 689 ms (−73.2%) | 28.86 s (−16.5%) | 13.65 / 42.10 s | 1.73 s (−46.4%) | 44.3 / 86.3 / 162.1 / 160.2 tok/s | 2,274–2,532 tok/s |
- Zero regression on pure workloads: Because the cap is inactive when no decoders are running, pure decode (
44.3 / 86.3 / 162.1 / 160.2 tok/s) and pure cold prefill (8k–128k) remain unchanged. - Trade-off: Smaller mixed prefill chunks increase concurrent prefill TTFT during overlap (
short3.45 → 7.90 → 13.65 s;long28.49 → 39.93 → 42.10 s) while eliminating multi-second decode stalls (max ITL2,576 → 689 ms). - Receipts and prototype diff:
- Raw JSONL receipts:
receipts/flare-s10-mixed-20261202/in https://github.com/Reederey87/glm53-flash-fp4-b12x-2x-dgx-spark - Prototype patch (407/407
helios+ 213/213flare-cliunit tests passing):patches/flare-mixed-prefill-cap.patchin the same repository.
- Raw JSONL receipts:
Material Limitations
- Measurements were collected on
flare@571a4471prior tov0.5.1(1fbcc3c9, including#663first-output waiting-age pricing).#663prices waiting prompts against incumbent decode cohorts and does not cap prefill chunk sizes once a prefill step is selected, so the multi-second decode pause during 4k prefill steps is expected to persist onv0.5.1, though we have not yet re-run the mixed benchmark on1fbcc3c9. - Measurements cover
GLM-5.3-Flash-FP4-LocalTP2 on GB10; other models and SM120/SM103 GPUs were not measured here.
Question for Maintainers
Would you prefer to address mixed-load decode ITL under balanced via:
- Utility-model pricing (no new CLI flag): pricing smaller prepared prefill shapes automatically in
helios/src/scheduler/{policy,utility}.rs(andscripts/scheduling_sim/) against active decoders' excluded waiting-age cost, or - An explicit opt-in cap flag (e.g.,
--scheduler-mixed-prefill-max-tokens <TOKENS>) so operators can choose their point on the ITL-vs-overlap-TTFT Pareto frontier?
Happy to re-verify on v0.5.1 and submit a PR (including scheduling simulator validation) matching whichever direction fits Helios's design best.
Discord: no username provided
Activity
Reederey87 commentedon Dec 2, 2026
Cross-reference: just noticed open PR #661 (
helios/scheduler: explore smaller prefill chunks under active age-priced streams), which targets the same three causes (unmeasured smaller Prefill shapes,TerminalPrefilltails, and two-frame non-terminalPrefillstacking) inside Helios's utility model with zero new CLI flags. Happy to run our 2× DGX SparkGLM-5.3-Flash-FP4-LocalTP2 mixed-load benchmark against #661 once rebased/ready if GB10 hardware validation would be useful there.