Repository navigation
Studio: keep one GGUF row per build in repos whose model name contains NVFP4 - #14733
Conversation
…s NVFP4 NVFP4 became a quant token matched anywhere in a GGUF name, so in community repos named like Qwen3.8-27B-NVFP4-MTP-GGUF every file got the variant key NVFP4 and the picker kept one row. NVFP now names the quant only last in the name (bpw modifier, shard suffix and extension aside), where llama.cpp naming puts the type; earlier it is part of the model name and those files keep the keys they had before NVFP was a token. Applied to every copy of the quant regex (hub, variant service, llama_cpp, model_config, model-identity.ts). MXFP is unchanged.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The model picker contract test reads _GGUF_KNOWN_QUANT_RE, _GGUF_QUANT_RE and QUANT_TOKEN_SOURCE as literal patterns to keep the frontend backfill in sync with the backend. Concatenating a _NVFP_AT_NAME_END constant broke that parse. Spell the lookahead inline (with [.] so the TS and Python literals are byte-identical) in every copy. [skip ci]
…ead to the shared gguf_names regex [skip ci]
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
#13899 made
NVFP4a quant token ((?:MX|NV)FP[0-9]+) so the Nemotron 3.5 SuperNVFP4/folder resolves to its weights. The token is matched anywhere in the name, so in community repos whose model name contains-NVFP4-it became the first quant token of every file and every file got the variant keyNVFP4. The picker keeps one row per key, so all but one build became unselectable, and...-NVFP4-Experts-Only-Q8_0.ggufwas keyedNVFP4instead ofQ8_0.Rows in the HF picker (real Hub listings):
Q8_0)NVFP4)Q8_0)Change
NVFPnow names the quant only where llama.cpp naming puts the type: last in the name, with only a bpw modifier, a shard suffix or the extension after it (Model-NVFP4.gguf,NVFP4/Model-NVFP4-00001-of-00003.gguf,Model-UD-NVFP4.gguf,Model-NVFP4_MOE.gguf, a storedNVFP4key). AnNVFPfollowed by more name parts is part of the model name, so those files get exactly the keys they had before #13899 (the stem, orQ8_0where a later token names the quant).The rule is a lookahead on the
NVFPalternative, applied to every copy of the quant regex so the picker, download plans, size listing, load resolution and the frontend label agree:utils/gguf_names.py(GGUF_QUANT_RE, the shared pattern thathub/utils/gguf.py,core/inference/llama_cpp.pyandutils/models/model_config.pynow import),_extract_quant_labelinutils/models/model_config.py,hub/services/models/gguf_variants.py, andmodel-identity.ts.MXFPis unchanged: it was a token before #13899 and still matches anywhere, so keys stored for MXFP repos (MXFP4,MXFP4_MOE,...-MXFP4-BF16) keep resolving.Tests
tests/test_gguf_nvfp4_model_name_variants.py(49 tests): row counts and keys for the five listings above, each key resolving to exactly its own file in_resolve_variant_gguf_filesand inbuild_gguf_variant_plans, all regex mirrors agreeing, plus unsloth-style names (NVFP4/shards,-NVFP4.gguf,-MXFP4_MOE,UD-MXFP4_MOE, bpw suffix) and NVFP4-suffixed drafters. On main 29 fail (the 20 unsloth-style and drafter cases pass on both); on this branch all 49 pass.frontend/tests/gguf-nvfp4-quant-label.test.ts(2 tests): 1 fails on main, both pass here.model-identity.test.tsandaudio-loaded-quant-key.test.tspass.test_mtp_drafter_companion.pyneed theggufpackage, 2 intest_cached_gguf_routes.py, 2 intest_video_ltx25_gguf.py) and are unrelated.test_a_custom_folder_lists_every_build_at_one_quant(Studio: list every GGUF build that shares a quant in a custom folder #13957) used these Qwen3.8 NVFP4-MTP names as its shared-quant fixture and pinned the first build to theNVFP4key. It now uses names that end in-NVFP4, so it still covers a custom folder splitting builds at one NVFP4 quant, and passes on main and here; the real Qwen3.8 names in a custom folder are covered by a new test that lists each build under its own name.Not covered
-NVFP4in one HF repo still share theNVFP4row, the same as two stems atQ4_K_Mtoday: remote and HF cache listings keep one key per quant by design, and only custom folders split such builds.NVFP4) no longer names a file there. For a Hub repo it was already ambiguous, since it picked one build out of all of them. For a custom folder (Studio: list every GGUF build that shares a quant in a custom folder #13957) it named the first build, so that saved selection has to be picked again. Keys saved before Studio: support NVIDIA Nemotron 3.5 Bolt and Super GGUFs #13899 load as they did then.chat-adapter.tsregex never learnedNVFPand is untouched.Before / after
Model Hub picker for
esatapedico/Qwen3.8-27B-NVFP4-MTP-GGUF, merge basec9fab474cvs head47e9858b9, two isolated Studio installs. Before: oneNVFP4row (16 GB) for the nine builds. After: nine rows, one per build, each at its own size (ORIG 34 GB down to VERY-LOW 16 GB). The variants API agrees: 1 row -> 9 rows.