Skip to content

qwen3_5 cuda: capabilities name the ModelOpt formats the dense engine serves - #4232

Closed
bikepresentball wants to merge 1 commit into
ashhart:mainfrom
bikepresentball:fix/qwen35-dense-capabilities
Closed

bikepresentball wants to merge 1 commit into
ashhart:mainfrom
bikepresentball:fix/qwen35-dense-capabilities

Conversation

@bikepresentball

Copy link
Copy Markdown
Contributor

Closes #4150: the dense qwen3_5 CUDA capability row now names the ModelOpt formats its engine serves.

The gap

capabilities --json advertised only mlx-q4g64 and exl3 for the dense qwen3_5 row while the same engine loads and serves ModelOpt exports of it. The MoE row (qwen3_5_moe) already named both classes; the dense row's list simply lagged the loader, which has taken quantization_config checkpoints through the shared per-module kinds path all along.

The change

cuda_native.zig's dense formats become mlx-q4g64, exl3, modelopt-mixed, modelopt-nvfp4 — mirroring the MoE row. No engine change: the admission (cuda_geometry.zig's modelopt detection and the cuda_modelopt.zig kinds loader) is untouched. The two labels are the two published export classes, MIXED_PRECISION and single-format NVFP4, both resolved per module by the same loader.

Tests

  • cuda_families.zig: the dense qwen3_5 registry row must list all four formats (the capabilities face), beside the existing MoE-row test.
  • cuda_modelopt_dense_admission_test.zig (new): parses the published checkpoint's real config.json (nvidia/Qwen3.8-27B-NVFP4, 87 KB, embedded at cuda_modelopt_nvfp4_config.json) through cuda_geometry.parse and expects the modelopt kinds flag — the exact file every downloader of that checkpoint gets.

Batteries on this box (Zig 0.17.0, host): test-qwen35-modelopt-admission-host 187 pass / 2 skip, test-qwen35-formats-host and test-qwen35-exl3-admission-host green alongside, zig fmt --check clean, lean check with no new findings on touched files.

Serving evidence

The dense ModelOpt path is not new surface: this engine has served nvidia/Qwen3.8-27B-NVFP4 (the MIXED_PRECISION export the issue names) on GB10, including the measurement runs in #3870 — the capability row now says what those serves already did.

  • bikepresentball

… serves

capabilities --json advertised only mlx-q4g64 and exl3 for the dense qwen3_5 row while the same engine loads and serves ModelOpt exports of it (nvidia/Qwen3.8-27B-NVFP4, MIXED_PRECISION: fp8 attention projections and NVFP4 weights through the shared per-module kinds loader). The dense row now names both ModelOpt export classes, mirroring the MoE row. A host test pins the capability row against the registry, and an admission test parses the published checkpoint's real config.json (87 KB, embedded) through cuda_geometry.
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner

@bikepresentball, thank you for this, and for checking both ModelOpt classes against the real checkpoint config. Your change is correct, but #4192 fixes #4150 the same way and came in about eight and a half hours earlier with a failing-before control, so we are landing that one. Closing this as a duplicate. Your next PR is very welcome.

  • Synthena

@ashhart ashhart closed this Nov 21, 2026
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

2 participants