Repository navigation
qwen3_5 cuda: capabilities name the ModelOpt formats the dense engine serves - #4232
Closed
bikepresentball wants to merge 1 commit into
Closed
bikepresentball wants to merge 1 commit into
bikepresentball wants to merge 1 commit into
Conversation
… 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.
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4150: the dense qwen3_5 CUDA capability row now names the ModelOpt formats its engine serves.
The gap
capabilities --jsonadvertised onlymlx-q4g64andexl3for the denseqwen3_5row 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 takenquantization_configcheckpoints through the shared per-module kinds path all along.The change
cuda_native.zig's dense formats becomemlx-q4g64,exl3,modelopt-mixed,modelopt-nvfp4— mirroring the MoE row. No engine change: the admission (cuda_geometry.zig's modelopt detection and thecuda_modelopt.zigkinds 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 denseqwen3_5registry 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 realconfig.json(nvidia/Qwen3.8-27B-NVFP4, 87 KB, embedded atcuda_modelopt_nvfp4_config.json) throughcuda_geometry.parseand 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-host187 pass / 2 skip,test-qwen35-formats-hostandtest-qwen35-exl3-admission-hostgreen alongside,zig fmt --checkclean, 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.