Repository navigation
capabilities: the dense qwen3_5 row lists the ModelOpt exports its loader reads (#4150) - #4192
Conversation
ad5b413 to
4cf9f7e
Compare
|
@ashhart @javierbits I checked whether someone can reproduce the capability result from a fresh checkout of #4192. The first missing detail is how to build and invoke the exact binary that prints the expected JSON. This worked on Linux x86-64 with Zig 0.17.0 at zig build native -Dfixed-cpu -Doptimize=debug --summary all
./zig-out/native/bin/tensorfold-native capabilities --json |
jq -e '.families.qwen3_5 == ["mlx-q4g64", "exl3", "modelopt-mixed", "modelopt-nvfp4"]'All nine build steps passed and the assertion returned Igor Lessio - AIFLOW LABS |
…ader reads (ashhart#4150) - `formats` now advertises `modelopt-mixed`, the shipped nvidia/Qwen3.8-27B-NVFP4 pack's quant_algo, and `modelopt-nvfp4`, beside MLX and EXL3; the shared ModelOpt admission reads both and the MoE row already lists both. - A registry test fails on main and passes here. Fixes ashhart#4150
4cf9f7e to
0e2f3db
Compare
|
Thank you @javierbits. 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. |
What this changes
atc overlap --json: 3 open PRs conflict, all only inCHANGELOG.md(moss image: serve pictures on CUDA (encoder, decoder and host for #1573) #2281, Nemotron 3.5 Bolt (nemotron_h_puzzle) on Metal — serves end to end #1038,server: --vision-image-share fixed gives every image the same share of the visual-token budget (#2510) #2717); the local
decode-shareworktree conflicts incuda_native.zigbecause it predatesmain's
exl3entry. The test file shares with lfm3: serve LFM3-1.7B on CUDA: NVFP4 and FP8 weight-only, MLX 4-bit (stacked on #1513, #1492 and #1503) #1508 and merges cleanly. qwen35: dense BF16 loading and native prompt logprobs #2020 (open) extendsthe same declaration with
bf16; the entries coexist, and its verification proposed this smallchange lands first so clients can see the existing NVFP4 support while qwen35: dense BF16 loading and native prompt logprobs #2020's layer-0
comparison is reviewed.
capabilities --jsonfor the denseqwen3_5row now lists the formats its loader reads:mlx-q4g64,exl3,modelopt-mixedandmodelopt-nvfp4. A client that filters checkpoints onthat metadata no longer hides
nvidia/Qwen3.8-27B-NVFP4, which this engine serves.The shipped pack is ModelOpt with
quant_algo: MIXED_PRECISION(FP8 attention and DeltaNet,NVFP4 MLP and head).
cuda_modelopt.zigreads both a mixed-precisionquantized_layersconfigand a single-format NVFP4 export's ignore list, and the
qwen3_5_moerow already lists both forthat reason.
modelopt-fp8stays out: the FP8 projections here are part of the mixed pack, and astandalone FP8 export has synthetic coverage only.
Checks on this head
issue-4150-capabilities-modelopt), base 664a522.python3 tools/zig/lean_check.pywithlean_new.py: 168 on 664a522,168 on this head, 0 new.
zig fmt --check build.zig zigandgit diff --check: pass.zig/src/native/cuda_families.zig:capability audit: dense Qwen3.5 lists the ModelOpt formats its loader readsfails on main (a base worktree with only that test copiedin: 231 pass, 1 skip, 1 fail) and passes here.
zig build test-cuda-hostwith this change (c6861b5; the later rebase moves the changelogblock only): 7608/7652 tests passed, 1 failed: the inherited
cli_config_test.test.serve --config: expand ...under this box'sumask 0002(its tempconfig is group-writable and the reader refuses it). The same test fails on main here.
benchmark-clients, release-paths 3m49s, zig 22m48s, zig-b 1h4m3s, zig-windows 22m54s,
zig-macos-dev-tools 11m52s). On the rebased head 4cf9f7e one job failed:
benchmark-clients (windows-latest)'stest_a_healthy_server_proves_bothreported'vacuous': '1 of 1 reps had no two streams decoding at once'— a client-side timingfixture that passed on the previous head and cannot see this diff; it is re-run once the run
completes. The rebase onto 664a522 changes no file this PR edits.
original reproducer is Windows.
Receipt
Machine: one NVIDIA GB10 (sm_121), driver 580.178.04, CUDA compiler 13.0.88, Zig 0.17.0, base
664a522. No checkpoint is needed for the capability listing; the serve check below uses
nvidia/Qwen3.8-27B-NVFP4@482ca0f3andz-lab/Qwen3.8-27B-DFlash2@50307d4c.capabilities --jsonreported.families.qwen3_5 = ["mlx-q4g64","exl3"]..families.qwen3_5 = ["mlx-q4g64","exl3","modelopt-mixed","modelopt-nvfp4"];.families.qwen3_5_moe = ["mlx-q4g64","modelopt-mixed","modelopt-nvfp4"]is unchanged.serve nvidia/Qwen3.8-27B-NVFP4 --drafter z-lab/Qwen3.8-27B-DFlash2 --context 8192onone GB10 loaded the 20.78 GiB pack (sm_121, DFlash2) and answered a greedy completion
(
The capital of France is→Paris.…), so the advertisedmodelopt-mixedentry namesa path this engine serves.
No kernel change, no new switch; this is the capability declaration only.
Checklist
serve check above is the only inference it reaches.