You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GLM pair: the tail-checkpoint split costs +0.13 s on every cold prompt up to 4K tokens #386
From @AzeezIsh's profile notes on #383 (item 4), on the GLM-5.3-Flash pair at main b27ecb94a: the tail-checkpoint split costs +0.13 s on every cold prompt from about 100 to 4K tokens, measured with the same binary and ATLAS_NO_TAIL_SPLIT=1, n=3 per length. The second pass is a pass of at most 32 rows that sweeps most experts. The split can't just be dropped: without it, a warm repeat loses its restore (0.18 → 0.42 s at 285 tokens).
The split exists so a cold prompt and its warm repeat run the same passes (prefill_b/dispatch_with.rs), so any fix has to keep cold == warm.
Plan:
Reproduce the +0.13 s on our pair (SparkGLM 0.3.5 launch, 4x1m spark) at 285, 1K and 4K tokens, n=3, split on vs ATLAS_NO_TAIL_SPLIT=1.
Prototype a one-pass cold prefill that captures the KDA state and conv window at the cut inside the pass, the way qwen4_exp's in-pass checkpoint does (qwen4exp_ckpt_takes_tail), so the cold prompt needs no second pass.
A warm repeat then restores at the cut and runs [cut, N), which isn't the cold shape. Only ship it if a warm repeat's output still equals the cold one's: teacher-forced top-20 KL 0 and greedy 8/8 at C1, at the same lengths. If it doesn't, the exactness cost goes in this issue and the split stays.
Gate before a PR: cold TTFT at 100 to 4K tokens, warm restore at 285 tokens, and the pair's usual text and vision KL-0 checks against the parent.
Activity