Skip to content

helios/scheduler: large prefill chunks cause >1.4s decode p99 ITL under balanced policy on GLM-5.3-Flash TP2 (GB10) #676

Backlog

Description

@Reederey87

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_overlap p99 ITL: 1,430 ms (decode0: 1,430.1 ms, decode1: 1,430.2 ms)
  • decode_overlap max ITL: 2,576 ms (8–11 pauses > 1 s per 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, kernel 7.0.0-1025-nvidia)
  • Model & Export: nvidia/GLM-5.3-Flash-FP4-Local (76348ddb), exported with hyperflare-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 (balanced scheduler)
  • Workload: 3 matched repetitions of concurrent decode_overlap (2 active 256-token decode streams overlapped with 4k and 64k prompts) and unequal_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 (short 3.45 → 7.90 → 13.65 s; long 28.49 → 39.93 → 42.10 s) while eliminating multi-second decode stalls (max ITL 2,576 → 689 ms).
  • Receipts and prototype diff:

Material Limitations

  • Measurements were collected on flare@571a4471 prior to v0.5.1 (1fbcc3c9, including #663 first-output waiting-age pricing). #663 prices 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 on v0.5.1, though we have not yet re-run the mixed benchmark on 1fbcc3c9.
  • Measurements cover GLM-5.3-Flash-FP4-Local TP2 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:

  1. Utility-model pricing (no new CLI flag): pricing smaller prepared prefill shapes automatically in helios/src/scheduler/{policy,utility}.rs (and scripts/scheduling_sim/) against active decoders' excluded waiting-age cost, or
  2. 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

  1. added
    area:scheduling
    bug
    performance
    triage:design-review
    on Dec 2, 2026
  2. Reederey87 commented on Dec 2, 2026

    @Reederey87
    Author

    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, TerminalPrefill tails, and two-frame non-terminal Prefill stacking) inside Helios's utility model with zero new CLI flags. Happy to run our 2× DGX Spark GLM-5.3-Flash-FP4-Local TP2 mixed-load benchmark against #661 once rebased/ready if GB10 hardware validation would be useful there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:schedulingbugperformancetriage:design-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions