Repository navigation
cuda: GLM, MiniMax and Nemotron placed from one launch, by flags or aliases (T1b of #2560) - #2919
Conversation
|
Thanks @laudney. Resolving once at the top of
|
|
@ashhart thanks, all in (head
Thank you for running GLM by both forms and Nemotron 3.5 Super VL. I'll ask @Bizuayeu for the TP=3 |
|
Thanks @laudney, all five are in on
No asks. One optional touch-up if you push again for any other reason: with Next on our side: once CI is green, we run GLM-5.3-Flash at TP=2 by aliases and by flags against main, and Nemotron 3.5 Super VL at TP=2 by both forms, on the rebased train. If those match, the train lands right after #2789. Please do ask @Bizuayeu for the TP=3
|
|
@laudney, #2789 landed tonight, and #2205 (shanedertrain's one-shot RoCE all-gather at any world) landed just before it. We rebased two of yours onto main without #2789's commits:
#2919 needs you. Its
|
|
@ashhart #2919 is rebased onto #2917's
On the head and on the merge with main: |
|
Thanks @laudney for carrying the resolved-world RoCE rules and the current admission changes through. We will handle the remaining integration, changelog and CI, then run GLM by aliases and flags on our GB10 pair. The outstanding contributor-side item is the TP=3 multi-RoCE token comparison already discussed. We also need the qualified Nemotron checkpoint in place before promising that run.
|
|
@Bizuayeu, you offered on #2560 to run GLM's gate on three GB10s. Could you run the one TP=3 cell this PR changes? (@ashhart, sorry: I owed this ask since 11-11.)
Why this cell: @ashhart noted: the Nemotron run waits for the qualified checkpoint, and I will not push to this branch while you integrate. |
Yes. I'll run it today on three GB10s in the switchless ring and post the hashes here:
The boxes are free from about 09:30 UTC. If the integration push moves the head before then, I'll build and run that head instead. |
Done. Every
Result. Each of the 167 replies has one The rule acted in every start. Rank 0 printed
The head by aliases also printed The 17 distinct values (first 16 hex digits), the same in all 12 starts
No speed was counted. If the integration push changes the head's code, say so and I'll run the same cell on that head. |
|
Thank you @laudney, and thanks to @Bizuayeu for the TP=3 run. Every reply hash matching across main by aliases, the head by aliases and the head by flags settles the last contributor-side item. We will carry the recipe change through integration and run GLM by aliases and flags on our GB10 pair. The Nemotron run still waits for a qualified checkpoint, so we will not promise a date for it.
|
|
Thanks @laudney. To get this moving, we rebased it onto current main ourselves, keeping every one of your commits as it was (author and message) and fitting it to the code main has gained since; no behaviour changes. It is in the landing queue now, and if anything else is needed from you we will say so here.
|
…ter main's cdbdc5a Main's cdbdc5a added the Muse Spark CUDA family with a five-argument weightShare. The previous commit passes every family's weightShare the resolved rank and tp, as ashhart#2919 does for MiniMax and Nemotron, so Muse Spark's takes the two and ignores them, as theirs do. Nothing else changes.
# Conflicts: # CHANGELOG.md
GLM read its own TF_GLM_RANK and TF_GLM_WORLD in two places and could not take --tp. The native CUDA layer now resolves the flags and those aliases once, before admission and open; GLM takes --tp, --rank and --master, keeps refusing an unplaced launch where it always did, and the solo wire rule reads the resolved world.
…ter main's cdbdc5a Main's cdbdc5a added the Muse Spark CUDA family with a five-argument weightShare. The previous commit passes every family's weightShare the resolved rank and tp, as ashhart#2919 does for MiniMax and Nemotron, so Muse Spark's takes the two and ignores them, as theirs do. Nothing else changes.
MiniMax read TF_MINIMAX_RANK and TF_MINIMAX_WORLD itself and refused --tp. It now takes its place from the launch the native layer resolves, shares GLM's --master rendezvous through the CUDA module, and each family's vision bytes filter by its tower's rank, so the last MiniMax rank still counts the tower; its dump tool keeps the variables as its input.
Nemotron routed expert ranks by the text of TF_NEMOTRON_RANK and read its place again in the engine, the worker and Omni's admission. The server path now hands the resolved place to all of them and shares the --master rendezvous; the tools keep TF_NEMOTRON_* as their input through the unchanged latent.place.
GLM, MiniMax and Nemotron now take --tp, --rank, --master and --master-port, so their recipes launch with those flags and say that the per-family rank variables are aliases until 1.4.0, which refuses them naming the flag. The examples keep their ports, so NCCL's root and the liveness line stay where they were; receipts stay as run.
MiniMax's refusals still told users to set TF_MINIMAX_RANK and TF_MINIMAX_WORLD, which become a refusal of their own from 1.4.0. They now name --tp 2 and --rank, as GLM's and Nemotron's do.
The resolver's refusals printed the request's defaults beside the values a launch gave, so a lone --rank against an alias pair read "--tp 1 --rank 1 differ". They now name the flag given and the alias value it meets, compare worlds as numbers, name --tp's default when it decides, and a --master too long for NCCL's root is its own error.
The rank aliases retire one release after the flags first ship, a release set at landing, so the recipes stop naming 1.4.0 and say the start-up warning names the release that refuses them.
Main's new dense engine declared visionBytes(a, io, dir), while this change has the vision offer call every family's visionBytes with the resolved rank and world, so the CUDA host tests no longer compiled after the rebase. The dense engine now takes rank and world and counts its tower on rank 0, the rule Flash Next and Qwen3.5 already follow.
Merged with today's main, native/cuda.zig reached 602 lines, past the 600-line source bound. The family's place check (a rank inside its world, a world the family serves) now runs in cuda_launch.resolve right after the flags and aliases resolve, so openWith keeps one call and the order stays resolve, place, family refusals, admission.
…ter main's cdbdc5a Main's cdbdc5a added the Muse Spark CUDA family with a five-argument weightShare. The previous commit passes every family's weightShare the resolved rank and tp, as #2919 does for MiniMax and Nemotron, so Muse Spark's takes the two and ignores them, as theirs do. Nothing else changes.
|
Thank you @laudney. 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. |
T1b of #2560: GLM, MiniMax and Nemotron take their place from one resolved launch, so each takes
--tp,--rank,--masterand--master-port, and theirTF_*_RANK/TF_*_WORLDbecome aliases. Every launch that works on main serves the same tokens.bench_concurrent.py --levels 1,4 --alone --serialandbench_cache.pyat 4,096 tokens,token_sha256Mia-AiLab/...-3.06-bpw@c33e7a66): concurrent and cache rows--tp 2: reply, token hash, start-upWhat this changes
native/cuda_launch.zigresolves the flags and the family's aliases once, at the top of the CUDA backend'sopenWith, before admission and the family'sopen(the follower path reaches it too). Families without aliases keep their request untouched.GLM, MiniMax and Nemotron gain the rank fields, so
--tpis admitted for them; each keeps its own world admission (GLM 1 to 16, MiniMax 2 on sm_121, Nemotron latent MoE with whole shares).--master/--master-portset NCCL's root (NCCL_COMM_ID) when it is unset, first inopen, before the liveness line (cuda/rendezvous.zig); a differentNCCL_COMM_IDrefuses.Memory admission and the vision offer read the resolved place: GLM and MiniMax
weightShare, Nemotron Omni's, and each family'svisionBytesfilters by its tower's rank (MiniMax's last rank still counts its tower).GLM's solo-wire rule (
pieces = 8at three ranks or more) reads the resolved world; the device checks keep readingTF_GLM_WORLD.Tools keep the variables as their input (MiniMax's dump, Nemotron's CLI and
tf-cuda-test).Start-up lines name the source:
glm: rank 0 of 2 (TF_GLM_WORLD, an alias of --tp)with a warning naming--tp 2 --rank 0;(--tp);(--tp and TF_GLM_WORLD).Recipes launch with the flags.
One intended difference:
TF_NEMOTRON_RANK=+0or00now means rank 0 (every numeric reader already read it so); main routed it to the expert worker by its text, which then refused it.Issue: Refs Roadmap: one N-rank layer for TP, PP and EP, shared by every family #2560 (T1; T1c is glm cuda: abort the communicator through its owner (T1c of #2560) #2918).
Stacked on: fabric/mesh: one launch description, --tp up to 64 and the rank aliases (T1a of #2560) #2917 (T1a; fabric/mesh: GLM CUDA shares and sums through one mesh layer (T0 of #2560) #2789 and glm cuda: abort the communicator through its owner (T1c of #2560) #2918 are merged), base main
3d42a462f. New here:3418de55a..65d790c98(11 commits). The last four come from the rebase onto fabric/mesh: one launch description, --tp up to 64 and the rank aliases (T1a of #2560) #2917's3418de55a: main's new dense engine counts its tower on rank 0 like the other towers, the place check moves into the resolver (native/cuda.zigstays within 600 lines merged with main), the aliases retire in 1.3.1 (1.2.9 shipped without the flags), and the two serving sources this PR changes are re-pinned.atc overlap --json: baseupstream/main, 2026-11-15 08:50 UTC: text conflicts with MiMo-V2.6-Flash on CUDA (2x GB10) with DFlash as the drafter #728, Muse Spark Open on CUDA, on two GB10s #1295, Nemotron 3.5 Transcribe: audio input, the 65,536-token window, an hour of audio, MTP drafts #1632 and Implement GLP control vectors with a fused Metal kernel for Qwen3.8-27B #1835 (one to three files each), clean with lfm2_moe CUDA: attention pages from the shared KV pool, and the prompt cache (stacked on #1492) #1503, unknown for qwen27: serve the 27B pair, refuse what a pair cannot keep, and die with the peer #1434 and Nemotron 3.5 Transcribe on CUDA: the language model and the audio encoder #1631; whichever lands second rebases. Coverage incomplete (timeLimit).Checks on this head
65d790c98(on fabric/mesh: one launch description, --tp up to 64 and the rank aliases (T1a of #2560) #2917's3418de55a, base main3d42a462f). The rebase keeps cuda/roce: the one-shot RoCE all-gather at any world (mesh), and the DFlash2 drafter MLP split across every rank #2205's rules and gives them the resolved world:ownRoce(set, p.world)decides the group's own RoCE path, andwirePieces(&set, p.world, ...)takes the 8-piece solo rule at three ranks or more fromwireOpens, so--tp 3andTF_GLM_WORLD=3behave alike; the tools keepTF_GLM_WORLDthroughtoolPieces.41a72fd25: 341 on main and 338 merged, 0 new.zig build test test-golden test-cuda-hostpass on the head;zig build test test-cuda-host compile-cuda-testspass on the merge with main41a72fd25;compile-cuda-testsandtf-minimax-cudabuild;-Dfixed-cpu test-gradient-serving,test-environment-host,test-native-options-host,test-glm-tp3-hostandtest-tp-id-hostpass. Every pin ingradient-serving.tsvmatches on the merge. New tests each fail when planted.Nemotron-3-Super-120B-A12B-NVFP4, which main and this stack both refuse at load withUnexpectedTensor, after every rank agreed on the same model and shares; the recipe's 3.5 Super VL is not on the pair): covered by host tests of resolution, admission and worker routing. GLM at TP=3 and TP=4 (three and four GB10s): outstanding.Receipt
nvidia/GLM-5.3-Flash-NVFP4@1d00738646cbb0c6d0a9eb403dac5f366f1473a7,nvidia/Qwen3.8-Flash-Next-NVFP4@fc694b54fb0174e0913e6adf86691ef85a4ead47,Mia-AiLab/MiniMax-M3.1-Flash-EXL3-EAQ-v1-3.06-bpw@c33e7a6619f0f12ac99098e07ec5e56acb7eeda9,mlx-community/Qwen3.5-9B-4bit.laudney:tp-t1-measured(2ad0905bb, base14dea6c6a): cuda: GLM, MiniMax and Nemotron placed from one launch, by flags or aliases (T1b of #2560) #2919's earlier headc0d777b34without its last commit (MiniMax's refusal texts) plus glm cuda: abort the communicator through its owner (T1c of #2560) #2918's earlier73b8248f3, the same code tree as the cells ran on. Since then: the rebase onto GLM on CUDA: under TF_GLM_LAYERS the start-up memory check counts the tensors the load reads (#2745) #2788 and the review fixes (refusal texts, admission's place check); no served path's bytes change.token_sha256of every request equals main's, by aliases, flags and both; each 4,096-token prompt file made with its checkpoint's tokenizer. MiniMax's cache cell is not "qualified" on main either (its prompt cache keeps no/v1/completionsprompt), so reuse is not exercised for MiniMax; its 7 rows still carry one hash on all three launches.GLM, main by aliases against this stack by flags (
--context 34816 --parallel 4,TF_GLM_PROMPT_TAIL=1):python3 t1_report.py DIR glm flagsprints the table above; files<main|head>-<family>-<form>-run<n>-<cell>.json)Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.--drafter: not run, no drafter path changes.