Repository navigation
Conversation
|
First device result, two GB10s at TP=2, GLM-5.3-Flash NVFP4 with MTP, main against this head (base-new-new-base): every reply identical (52 of 52). Four streams are much faster: chat 85.4/85.7 -> 102.0/102.1 tok/s (+19%) and code 134.2/135.2 -> 144.3/144.4 tok/s (+7%), steady across both runs of each arm. One stream and prompts are level apart from the third run, which was slow on every cell including its 2K prompts (844-1,366 tok/s against about 1,610 in the other three), so the medians' -3% at one stream and -13% at 2K are that run, not the change. A second A/B in the opposite order is queued to confirm one stream is level before it lands.
|
|
Device result on two GB10s at TP=2 (GLM-5.3-Flash NVFP4, MTP, 4 slots, prompt cache off), main's merge-base against
The review fixes in progress (the error path's double commit and the rest) don't touch the shared round's speed. Once they're in and CI is green, this lands.
|
ed51393 to
d02dca2
Compare
d02dca2 to
e3bd78c
Compare
|
Status: the review fixes are in. Every keep and cache extent is checked before any state changes, a cohort whose shared dispatch failed is refused until it is released (so a committed prefix can't be applied twice), and absorbs stay inside the served window. This branch now sits on today's main. There was one conflict. Main moved the layer sums' gather to The GLM host steps and the Linux CUDA compile (engine and device tests) pass on the rebased head. Still to report before this lands: the batched-against-serial device check (
|
e3bd78c to
466715c
Compare
466715c to
b8d68bc
Compare
|
/atc exchange b2e20801688443ce995801a3ad1801c5026089fea9238e0aa5ed960057897853 |
Use one rank step for the shared absorb and each chained level, with segmented per-stream KV, image slots and sampling positions. Keep one-stream, alone and DFlash2 dispatch unchanged. Preserve per-stream chance-buffer intent on the wire. Add host fanout regressions and an every-rank CUDA oracle with owned hidden inputs and per-round MTP cache byte comparisons. Refs #2822
Validate every keep and cache extent before any state changes. A failed shared dispatch makes its cohort unusable until release, so a committed prefix cannot be applied twice. Bound absorbs to the served window and remove the unreachable multi-group path. Exercise retry refusal, metadata validation and wire edges. Refs #2822
b8d68bc to
66730d0
Compare
In a shared round of several streams with MTP drafting, GLM-5.3-Flash on CUDA drafted one stream at a time: an absorb pass, then one-row head passes per level, each with its own host synchronisation in the token draw, and at tensor parallelism a keep and a draft message per stream.
What changes:
facts().draft_streamsis on for shared MTP. One-stream rounds keep today's path exactly.Engine.draftSharedruns one segmented absorb over the round's streams (each segment updates its own MTP cache and length), then one segmented head pass and one batched draw per level for the streams still chaining: one host sync a level instead of one a stream.draft_sharedwire step (cuda_follow.zig) carries each stream's slot, kept rows, follow ids, depth and prompt flag, so every TP rank commits its kept rows and runs the identical batch in lockstep.Exactness: drafts only decide how many rows a round verifies, and verify is unchanged. Each stream's drafts and MTP cache also match the serial path: at these row counts the norms, projections, attention and expert kernels are per-row, rank sums are in fixed rank order and expert sums in fixed slot order, and the batched draw uses each stream's own rule and position.
Checks: host tests that shared MTP sets
draft_streamsand that a fake leader sees one draft message per three-stream round (a planted serial-only fan-out turns it red), plus the recording transport and request-start checks;test-cuda-hostand the GLM host steps (407/407),compile-cuda-tests -Dtarget=aarch64-linux-gnu, fmt and lean (no new findings). Azig/tests/cudabatched-against-serial check of drafts and MTP lengths is compiled for the GB10 run.Still to run before landing: two GB10s at TP=2, GLM-5.3-Flash NVFP4 with MTP, main against this branch at 1 and 4 streams, greedy and seeded, replies equal; the batched-against-serial device check.
For #2822.