Skip to content

capabilities: the dense qwen3_5 row lists the ModelOpt exports its loader reads (#4150) - #4192

Merged
ashhart merged 3 commits into
ashhart:mainfrom
javierbits:issue-4150-capabilities-modelopt
Nov 21, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
javierbits:issue-4150-capabilities-modelopt

Conversation

@javierbits

@javierbits javierbits commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

capabilities --json for the dense qwen3_5 row now lists the formats its loader reads:
mlx-q4g64, exl3, modelopt-mixed and modelopt-nvfp4. A client that filters checkpoints on
that 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.zig reads both a mixed-precision quantized_layers config
and a single-format NVFP4 export's ignore list, and the qwen3_5_moe row already lists both for
that reason. modelopt-fp8 stays out: the FP8 projections here are part of the mixed pack, and a
standalone FP8 export has synthetic coverage only.

Checks on this head

  • Head commit: 4cf9f7e (issue-4150-capabilities-modelopt), base 664a522.
  • Lean checker, python3 tools/zig/lean_check.py with lean_new.py: 168 on 664a522,
    168 on this head, 0 new.
  • zig fmt --check build.zig zig and git diff --check: pass.
  • New test, zig/src/native/cuda_families.zig: capability audit: dense Qwen3.5 lists the ModelOpt formats its loader reads fails on main (a base worktree with only that test copied
    in: 231 pass, 1 skip, 1 fail) and passes here.
  • zig build test-cuda-host with this change (c6861b5; the later rebase moves the changelog
    block only): 7608/7652 tests passed, 1 failed: the inherited
    cli_config_test.test.serve --config: expand ... under this box's umask 0002 (its temp
    config is group-writable and the reader refuses it). The same test fails on main here.
  • CI: all nine checks passed on ad5b413 (fmt 13s, pytest 10m41s, both
    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)'s test_a_healthy_server_proves_both reported
    'vacuous': '1 of 1 reps had no two streams decoding at once' — a client-side timing
    fixture 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.
  • Not run: Metal, HIP, XPU. Windows CI builds and tests the same host code; the reporter's
    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@482ca0f3 and z-lab/Qwen3.8-27B-DFlash2@50307d4c.

  • Before (the previous binary): capabilities --json reported
    .families.qwen3_5 = ["mlx-q4g64","exl3"].
  • After: .families.qwen3_5 = ["mlx-q4g64","exl3","modelopt-mixed","modelopt-nvfp4"];
    .families.qwen3_5_moe = ["mlx-q4g64","modelopt-mixed","modelopt-nvfp4"] is unchanged.
  • Serve: serve nvidia/Qwen3.8-27B-NVFP4 --drafter z-lab/Qwen3.8-27B-DFlash2 --context 8192 on
    one GB10 loaded the 20.78 GiB pack (sm_121, DFlash2) and answered a greedy completion
    (The capital of France is → Paris. …), so the advertised modelopt-mixed entry names
    a path this engine serves.

No kernel change, no new switch; this is the capability declaration only.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits.
  • Inference block: n/a. The change edits the capability declaration, not a serving path; the
    serve check above is the only inference it reaches.

@javierbits
javierbits force-pushed the issue-4150-capabilities-modelopt branch 2 times, most recently from ad5b413 to 4cf9f7e Compare November 20, 2026 11:28
@AIFlowML

Copy link
Copy Markdown
Contributor

@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 4cf9f7e6e:

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 true on SM 12.0. This checks discovery without loading a model. A local test merge against main at 5780a037c conflicted only in CHANGELOG.md, and main still shows the original two-entry dense list.

Igor Lessio - AIFLOW LABS

javierbits and others added 3 commits November 21, 2026 10:25
…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
@ashhart
ashhart force-pushed the issue-4150-capabilities-modelopt branch from 4cf9f7e to 0e2f3db Compare November 21, 2026 10:26
@ashhart
ashhart merged commit 553e374 into ashhart:main Nov 21, 2026
3 of 12 checks passed
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

capabilities --json omits modelopt-nvfp4 for the dense qwen3_5 family, which serves it

3 participants