Repository navigation
qwen3_5: a modelopt checkpoint refuses below sm_90 in words, not missinglanepart - #1470
Conversation
|
Thanks for tracking this down (#1452). The diagnosis of where it fails is right, but I don't think sm_90 is a real floor:
So the change I'd suggest: size qwen3_5's partials at One more thing before it can land: the commit's author and committer email isn't a GitHub noreply address. Could you re-commit with your |
5bd4169 to
137f2b3
Compare
|
Thanks @javierbits. The push at 19:34 contains the same patch as before, only re-committed, so both points from our last comment are still open:
Merged onto current main, the host steps pass as before. Once the floor moves, @valacroix's Orin could confirm that |
|
Thanks @javierbits. To save you a round trip, we've made the change from our last two comments ourselves, with you and @valacroix as co-authors on the commit:
There's no need to re-commit with your noreply address. Next we'll check that |
Cool ✌️ |
137f2b3 to
0608980
Compare
Carry ashhart#1470 by @javierbits, with @valacroix. Keep the non-cluster lane available from sm_80 and reserve partial rows below the fused window so decode can reduce without clusters. Exercise the real reservation across the 27B projection shapes and stored formats, including the split-K decode and clustered controls. Co-authored-by: javierbits <177527508+javierbits@users.noreply.github.com> Co-authored-by: valacroix <256988299+valacroix@users.noreply.github.com>
0608980 to
7ec9b6c
Compare
Carry #1470 by @javierbits, with @valacroix. Keep the non-cluster lane available from sm_80 and reserve partial rows below the fused window so decode can reduce without clusters. Exercise the real reservation across the 27B projection shapes and stored formats, including the split-K decode and clustered controls. Co-authored-by: javierbits <177527508+javierbits@users.noreply.github.com> Co-authored-by: valacroix <256988299+valacroix@users.noreply.github.com>
|
Thank you @javierbits. This is in TensorFold 1.2.0, released today: https://github.com/ashhart/TensorFold/releases/tag/v1.2.0 It landed with your commits under your own name, so you're listed as a TensorFold contributor, and it's credited to you in the release notes and the changelog. |
Closes #1452
What this changes
On sm_87 (Jetson AGX Orin)
serve nvidia/Qwen3.8-27B-NVFP4 --backend cudadied deep in the engine withthe native CUDA engine cannot load ... with its own glue kernels (MissingLanePart). The qwen3_5 CUDA lane now refuses a ModelOpt/NVFP4 checkpoint at the kernel load where the family learns the checkpoint is ModelOpt, naming the chip, its capability and the MLX 4-bit alternative, following the nemotron ModelOpt-floor precedent, instead of failing at the first split-K projection. A ModelOpt checkpoint is out-of-design for this family below sm_90, andcapabilities --jsonalready says so: it advertisesqwen3_5: ["mlx-q4g64"]and never offered modelopt for it. The open path simply never checked.Why sm_90 is the floor
cuda.qmmf.Lane.loadhas one reduction selector:clusters = capability_major >= 9(zig/src/cuda/qmmf.zig). The device code agrees: qmmf.cu's CLUSTER path is guarded#if __CUDA_ARCH__ < 900 __trap().modelopt.Kernels.reservePartssizeslane.partBytesatRound.max_rows = 4096, whereplan()is FUSED (no partials), sopartstays null; andmodelopt.project()refuses fused-row windows outright (theWindowTooWideguard, "the fused tile sums its slices in another order"). Below sm_90 the first split-K decode hitsp.reduce and part == 0and throwserror.MissingLanePartat zig/src/cuda/qmmf.zig:192. That is the issue's failure. Above sm_90 the cluster path needs no part.fma.rn.bf16x2+mma.sync(qmmf.cufp4pair, prompt16.cue2m1_pairs), which is why nemotron's identical lane load runs atmodelopt_min = 80on Ampere. The floor here is the cluster floor, sm_90. The block-scaled Blackwell math (ck_major = 12,ck_expertsarch_specific) is the checkpoint-math path, not this one. The release fatbin list (release_sms = "80,86,120,121", zig/build/cuda.zig) is packaging, not a capability guard.capabilities --jsonis unchanged and stays consistent: the family's only advertised CUDA format remainsmlx-q4g64.What the refusal prints
The open switch in zig/src/native/cuda.zig maps
error.ModeloptNeedsClusterswith the nemotron arm's voice ({s} is sm_{d}: {s} (the 4-bit checkpoints run on it)). On the reporter's card, with the driver's chip name first:The reason comes from the pure
modeloptRefusal(capability) ?[]const u8next toKernels.load, mirroringnemotron.kernels.modeloptRefusal.Receipt
5bd41695on nvfp4-refusal (base upstream/mainb30d5b9d): Zig 0.17.0 (.zig-version), Linux aarch64 host, CPU-only CI-equivalent lane (no CUDA device, no nvcc needed for these steps).g.kinds.modelopt == falsenever reaches the new guard).zig build native: exit 0.zig build test: exit 0,Build Summary: 407/407 steps succeeded; 926/935 tests passed (9 skipped), 0 failed. The new testModelOpt's floor refuses every card below sm_90 and admits the cluster cards(refuses 70, 75, 80, 86, 87, 89; admits 90, 100, 120, 121; pins the exact reason string) is compiled into the unfiltered ModelOpt admission host binary (test-qwen35-modelopt-admission-host, under test-cuda-host) and the qwen35 CUDA module's test block; its step is in the green run.zig build test test-kernel-contract test-golden test-server-security test-pull-security fuzz-cortheon: exit 0 (twice).b30d5b9d(tools/zig/lean_check.py + lean_new.py):lean: 428 problems, 428 on the base, 0 new. All 428 are inherited, none from this change.zig fmt --check build.zig zig: clean.modeloptRefusalanderror.ModeloptNeedsClustersdo not exist atb30d5b9d(compile fail); the matrix test passes after.tf-cuda-test kernel-contract-limits, served receipts) need an authorized CUDA machine; this change registers no kernel and touches no kernel. Metal/HIP/XPU are untouched.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (Untouched: refusal precedes the lane.)Jetson AGX Orin confirmation should come from the reporter: the serve now prints the refusal line above instead of MissingLanePart, and
--backend cudaon the mlx-q4g64 Qwen3.5 checkpoint keeps serving on the Orin as before.