Repository navigation
nemotron: a job's first message carries one row, so a decode step sends one message, not 16 rows of padding - #1000
easthambuilds wants to merge 1 commit into
Conversation
…ds one message, not 16 rows of padding At TP=2 a Super decode step sends each MoE layer a job of one row, but the first message was sized for 16 rows: 165,440 bytes, of which a one-row job uses 10,560. With small_rows = 1 the first message is those 10,560 bytes, and longer jobs still send their rest in a second message. Arithmetic is unchanged: drafted, serial and concurrent replies keep their token hashes.
cwschroeder
left a comment
There was a problem hiding this comment.
Source review at 76a0d8b0, with Astra checking the sender, follower and startup paths: no material finding in this one-file change.
Both sides use the same first/long-message sizing helpers. The tested 22/1024/4096 shape reduces the one-row first message from 165,440 to 10,560 bytes. Rows 2 through 16 now use the existing second-message path, as larger verification and prompt jobs already do. Allocations and section alignment remain sufficient, the end command uses the same shortened first message, and executable fingerprints reject mixed builds before jobs start.
Locally, Zig 0.17.0 passes zig build test-cuda-host -j2 --summary all: 39/39 steps, 850 tests passed and two skipped, including the updated sizing test. Whole-tree zig fmt --check build.zig zig and whitespace checks pass. No GPU or transport session was opened. There are no published current-head CI checks yet, so this is a source/host review rather than a complete preflight.
For the performance receipt, could you add the exact source revisions and native binary SHA256s for the two measured v1.0.12 variants, with the per-run rows behind the table in #981? The PR already separates those release measurements from branch validation; those pins would make that link reproducible. I have not independently reproduced the reported throughput gain.
…ds one message, not 16 rows of padding (#1000) At TP=2 a Super decode step sends each MoE layer a job of one row, but the first message was sized for 16 rows: 165,440 bytes, of which a one-row job uses 10,560. With small_rows = 1 the first message is those 10,560 bytes, and longer jobs still send their rest in a second message. Arithmetic is unchanged: drafted, serial and concurrent replies keep their token hashes.
|
Thank you, @tovereast, for the one-row packet change and its before/after transport measurements. We merged the increment for 1.1.0 in 10ff877. The tested first message shrinks from 165,440 to 10,560 bytes; longer verification and prompt jobs retain the second-message protocol. Arithmetic is unchanged. This addresses one packet cost from #981; TP=3/4 remains separate work. Two NVIDIA GB10s: Super VL TP=2 passed 17/17 and cache-off chat 12/12, matching previous-build tokens. Posted by Ash's AI Assistant Synthena |
|
Thanks @ashhart. Confirmed: |
…ds one message, not 16 rows of padding (ashhart#1000) At TP=2 a Super decode step sends each MoE layer a job of one row, but the first message was sized for 16 rows: 165,440 bytes, of which a one-row job uses 10,560. With small_rows = 1 the first message is those 10,560 bytes, and longer jobs still send their rest in a second message. Arithmetic is unchanged: drafted, serial and concurrent replies keep their token hashes.
What
cuda_worker.zigsmall_rowsgoes from 16 to 1. A Super TP=2 decode step sends each of its 40 MoE layers a job of onerow, but the first message was sized for 16: 165,440 bytes, of which a one-row job uses 10,560. Now the first message is
those 10,560 bytes, and longer jobs (drafted verification, prefill) still send their rest in a second message as before.
No arithmetic changes; the unit test's expected
firstBytesis updated.Measurements
Two GB10s (DGX Spark), direct RoCE cable, both port halves in
NCCL_IB_HCA, Super VL NVFP4 at82d93699acd3be9e4617c53360fe5b3f5dbeb1b3, 256 tokens, greedy,ignore_eos, thinking off. Speeds are from v1.0.12 builds that differ only insmall_rows; the checks below ran on this branch."draft": falseagainst 52 µs for the data-only message.
small_rows = 4drafts a little faster (36.4 / 56.7 / 47.2) but runs undrafted at 19.7. I chose 1 because it is theexact decode case. Glad to switch if you prefer to favour drafting.
5f2e0da2c8f5, code72e8663b2089, factsa351deaea63f, the same at TP=1, at TP=2 as shipped, and with thisbranch, drafted and serial.
Checks
zig build test test-golden: pass (golden 309/319 equal, 0 unexpected differences).tools/zig/lean_check.py: 517, the same as main.Measured as part of #981 (its TP=2 comment has the ping-pong details).
🤖 Generated with Claude Code