Repository navigation
glm/cuda: TF_GLM_DRAFT_SPLIT=1 splits the DFlash2 drafter's MLP at three ranks or more (for #3581) - #3616
Conversation
|
Thanks @ultradaoto, this is a tidy change. The new setting has its own fingerprint field and a named mismatch, What the split does to the drafter's own numbers, for the record: gate and up are split by rows, so those values don't change. Down is split along K, though. Each rank writes fp32 partials over its FF/world share, and Must fix:
Optional:
Please also post CI green for the head once the runs have gone through. We will run the device check on our side: GLM-5.3-Flash with the drafter on GB10 (CUDA) at TP=2, branch against main with the variable unset and set to 1. The split doesn't change there, so every hash and the drafter's size must match main.
|
|
Thanks. In Main itself, with the table's settings, in a new session: main
The two differ by about 1% in either direction, as the table's two unset starts do from each other. The last digit of the tokens a round also moves between starts of one build (#3659's receipts have 3.058 and 3.057 from one binary); the window prices are timed at each start. On #3495: agreed. Once it lands I'll add The CI runs for |
9a48360 to
2ff9ce1
Compare
|
Hi @ultradaoto, thanks for the main-start table and for agreeing to the #3495 follow-up. The new column shows "unset is main" directly, with the drafter at 0.93 GiB and 13/13 equal hashes, and
|
|
Thanks for checking. The rebase onto CI for |
64b4027 to
5bf28ec
Compare
|
Thanks @ultradaoto. The corrected CHANGELOG wording on 64b4027 answers our last ask. The only thing left was a conflict with a line we had added under Unreleased, so we rebased the branch onto current main ourselves, keeping both of your commits as they were and leaving CHANGELOG.md as main has it; we will place your entry when it lands. Nothing else is needed from you. We will run our device check on our side and post the result here.
|
|
I made a clean trial merge of zig build test-environment-host test-glm-dflash-host test-glm-tp3-host \
test-glm-prompt-taps-host compile-glm-native-open test-gradient-serving \
-Dcpu=apple_m1 -j5 --summary allThe first test detail worth calling out is that This verifies the settings, alignment, and rank agreement on the host. The planned TP=2 hardware comparison is still needed for reply hashes and drafter size. Igor Lessio - AIFLOW LABS |
|
Thanks @ultradaoto. Every ask is answered:
The rebased head One note: #3495 has now landed, and Nothing else is needed from you. What's left before it lands is CI green at this head and the two-rank device check with the drafter, branch against main with the setting unset and set to 1.
|
|
@ultradaoto, the device check for this one is done. GLM-5.3-Flash at TP=2 on two GB10s,
So the default is unchanged, as the PR says. We have no third GB10 in that pair, so the opt-in at three ranks stays on your receipt. It is in the landing queue.
|
…e ranks or more At three ranks or more the drafter's MLP split was switched on by TF_ROCE=1 alone. TF_GLM_DRAFT_SPLIT=1 asks for it by itself, for 256-aligned shares, and has its own field in the rank fingerprint so every rank agrees on the weight layout. Unset keeps today's default, and TF_ROCE=1 still splits as before. For ashhart#3581.
… stream; replies and tokens a round, not drafts)
5bf28ec to
81af7cd
Compare
|
Thank you @ultradaoto. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
For #3581, as agreed there: its own opt-in, its own field in the rank fingerprint, and today's default unchanged.
Settings.draft_splitreadsTF_GLM_DRAFT_SPLIT: exactly 0 or 1, off by default, anything else refused by name.Settings.draftWide()is whatdflash.mlpSplit'swidetakes at both call sites indflash_load.zig:TF_ROCE=1orTF_GLM_DRAFT_SPLIT=1. The 256-alignment rule and the two-rank split are untouched, andTF_ROCE=1still splits as before.draft_split, set from three ranks up likeroce_wide, with its name in the mismatch message; the layout number goes 21 to 22. A rank without the setting refuses the others instead of loading a different weight layout.cuda_ranks_roce_test.zig: the setting's values;mlpSplitover worlds 1, 2, 3, 4, 5, 6 and 8 with neither setting and with each; the fingerprint at three ranks and at two. The every-field test incuda_ranks_test.zigtakes the new field.With the variable unset,
draftWide()isroce_wide, so the drafter loads as on main; only the fingerprint's layout number moves, on every rank alike.zig build test-cuda-hoston main077998fplus this diff: 6,919 of 6,953 pass and 33 skip. The one failure,cli_config_test'sserve --config: expand reads the file ..., fails the same way on main on this host.zig fmt --checkis clean on the family's folder;pr_check: 0 errors, 0 new lean findings. The branch is cut froma437511, main just before40a46d6: that commit changes a workflow file, which my token may not push. The five Zig files here are the same ona437511and077998f.Receipts: three GB10s on a switchless triangle, TP=3, GLM-5.3-Flash EXL3, one build (main
077998fplus this diff),--parallel 4 --kv-cache fp8,--drafterincoai/GLM-5.3-Flash-DFlash2 at 6cc6c481,TF_GLM_DENSE_BITS=8 TF_GLM_HEAD_BITS=8 TF_GLM_KDA_PAD=1, greedy. NCCL carries every gather in every start; underTF_ROCE=1the log saysRoCE all-gather: NoHca (); NCCL carries every gather. Five starts in one session, in this order: unset, 1, 1, unset,TF_ROCE=1. One number per start:TF_GLM_DRAFT_SPLIT=1TF_ROCE=1tools/bench_openai.py --tokens 256 --reps 3 --temperatures 0, code, median tok/stools/bench_concurrent.py --tokens 256 --reps 3 --temperatures 0 --levels 1,4 --alone --serial, 4 streams, code, aggregateTokens: 13 greedy replies (8 prompts alone, 4 at once, one prompt of about 8K tokens) hash the same in all five starts. Drafts: the tokens a round are the same in all five.
The first
=1start's four-stream numbers came in low, here and in a second four-stream client (84.5 tok/s against 86.8 in the next start), while its one-stream numbers did not. I do not know why; the endpoint is not closed to other clients, which may be it. The second=1start and theTF_ROCE=1start agree with each other.One question: #3495 puts
TF_ROCEin the window-cost cache's key. If the drafter split moves anything that table prices, this setting belongs beside it; I can add it here or after #3495 lands, whichever you prefer.