Repository navigation
Studio: Recommended Hub filter and chat picker list FP8 / NVFP4 on capable GPUs, GGUF lists every GGUF - #13240
Conversation
|
@codex review |
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. |
…y, whatever their size
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3183ef1dc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| result = gpu_query.run_nvidia_smi( | ||
| [_nvidia_smi_executable(), "--query-gpu=compute_cap", "--format=csv,noheader"], |
There was a problem hiding this comment.
Gate checkpoint formats on the active CUDA backend
When nvidia-smi can see an Ada/Blackwell card but Studio resolved a CPU, ROCm, XPU, or Vulkan backend—such as with a CPU-only PyTorch install or CUDA_VISIBLE_DEVICES masking all NVIDIA cards—this physical-GPU query still advertises FP8/NVFP4. The frontend consequently recommends checkpoints that the active runtime cannot load, contrary to the intended GGUF-only fallback; return these formats only when the active backend has usable visible CUDA devices.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in ce087ca: the formats are reported only when the backend label is cuda, so a CPU-only torch or a mask hiding every card lists GGUF only.
| for (const [format, pattern] of CHECKPOINT_QUANT_NAME) { | ||
| if (pattern.test(result.id)) return format; | ||
| } | ||
| return result.quantMethod?.toLowerCase() === "fp8" ? "fp8" : null; |
There was a problem hiding this comment.
Read FP8 quantization metadata from nested text configs
For multimodal/composite checkpoints whose quantization_config lives under config.text_config and whose repository ID does not contain an fp8 token, result.quantMethod remains undefined because the Hub mapper only reads the top-level config. This fallback therefore returns null and Recommended silently omits an otherwise supported FP8 checkpoint; normalize the nested quantization metadata as the backend loader already does.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: FP8 checkpoints carry the token in the repo name in practice; a nested-only quant config with no name token is outside this filter's scope.
| tags: ["gguf"], | ||
| format: "gguf", | ||
| format: "recommended", |
There was a problem hiding this comment.
Remove the GGUF-only tag from the Recommended channel
When the user opens the Trending channel, listChannel forwards this preset's tags: ["gguf"] to the Hub request, so the server never returns FP8 or NVFP4 rows for the newly selected Recommended format. Capable GPUs therefore still see a GGUF-only Trending list even though the dropdown says Recommended; the channel query must fetch all formats that Recommended can admit.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in ce087ca: when Recommended can admit FP8 / NVFP4 on this host, the channel query drops the gguf tag so those rows are fetched.
| // A second quant token (an FP8 base re-quantized to GPTQ / IQ4 / MXFP4) means the repo is not an FP8 checkpoint. | ||
| const OTHER_QUANT_NAME = | ||
| /(?:^|[-_/.])(?:gptq|awq|exl2|mxfp4|int4|int8|w4a16|w8a16|bnb|iq\d\w*|q\d_\w+)(?:[-_/.]|$)/i; |
There was a problem hiding this comment.
Reject every recognized secondary quantization token
When Hub metadata omits quant_method, repositories such as Model-FP8-HQQ or Model-FP8-AQLM pass this name check and are advertised as native FP8 even though they are re-quantized to another scheme. The method denylist immediately below already treats HQQ, AQLM, and Quanto as secondary formats, but the repository-name denylist omits them; include the same schemes in OTHER_QUANT_NAME so metadata-poor listings do not produce false recommendations.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: FP8 bases re-quantized to HQQ / AQLM under an FP8 name and without quant metadata are not a realistic listing; the name list covers the schemes actually published.
| if (result.isGguf) return true; | ||
| const format = checkpointQuantFormat(result); | ||
| return format !== null && checkpointQuantFormats.includes(format); |
There was a problem hiding this comment.
Exclude diffusion repositories from LLM recommendations
On an FP8-capable host, any non-GGUF repository with an FP8/NVFP4 token passes this predicate, including Diffusers image/video repositories such as unsloth/Qwen-Image-FP8. Those rows now enter the default Recommended model list even though this capability is documented as applying to prequantized LLM checkpoints and diffusion support is governed separately; reject diffusion libraries and image/video pipeline tasks before applying the checkpoint-name match.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Intended: Recommended should surface image and video FP8 checkpoints on a capable GPU too. Image / video NVFP4 is already held behind the NVFP4 diffusion switch.
|
|
…tch in Recommended
…ormat for a capable Recommended channel
|
@codex review |
|
@codex security review |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce087ca74d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| owner: "unsloth", | ||
| tags: ["gguf"], | ||
| format: "gguf", | ||
| format: "recommended", |
There was a problem hiding this comment.
Include native checkpoint formats in the Trending feed
On an Ada/Blackwell host, marking this preset as recommended does not make the default Trending carousel recommended-format aware: useHubFeed still forwards preset.tags (["gguf"]) to the Hub request, and feedTrendingRows additionally filters with matchesFormat(..., "gguf"). Consequently the carousel can never display the FP8/NVFP4 checkpoints that the same Recommended preset admits after the user opens the full Trending list; widen the feed query and apply matchesRecommended there as well.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: the Trending carousel is a fixed GGUF row that ignores the format dropdown under every filter; the Latest list below it and the full Trending list carry the Recommended formats.
| result = gpu_query.run_nvidia_smi( | ||
| [_nvidia_smi_executable(), "--query-gpu=compute_cap", "--format=csv,noheader"], |
There was a problem hiding this comment.
Restrict the capability floor to visible CUDA devices
When CUDA_VISIBLE_DEVICES selects an Ada/Blackwell card while an older physical NVIDIA card is hidden, this unfiltered nvidia-smi query still returns both cards and the min(capabilities) calculation reports no FP8/NVFP4 support. The repository's own hardware code documents that nvidia-smi is unaffected by CUDA_VISIBLE_DEVICES, so the active CUDA runtime can load these checkpoints but Recommended incorrectly remains GGUF-only; filter the queried rows through the existing parent-visible GPU mapping, including UUID masks.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: answering for the least capable physical card is deliberately conservative; a mixed host with a hidden older card only falls back to GGUF, it never lists something unloadable.
| !isGgufId(id) && | ||
| matchesRecommended( | ||
| { id, isGguf: false, quantMethod }, |
There was a problem hiding this comment.
Honor GGUF metadata when identifying checkpoints
When the Hub identifies a repository as GGUF from its metadata or gguf tag, but its ID lacks a -GGUF suffix and contains a bounded FP8/NVFP4 token, this helper discards the authoritative HfModelResult.isGguf value and hard-codes isGguf: false. runsCheckpointQuant therefore misclassifies the GGUF as a native checkpoint and bypasses the fitOnDeviceOnly size check, allowing an oversized GGUF row to appear as fitting; pass the metadata hint through instead of relying only on the ID.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 27c53ee: the listing's isGguf is passed through, so a GGUF without a -GGUF suffix is never treated as a native checkpoint.
| (r: HfModelResult) => | ||
| isChatSupported(r) || | ||
| (runsCheckpointQuant(r) && isChatSupported({ ...r, quantMethod: undefined })), |
There was a problem hiding this comment.
Preserve unsupported FP8 quantization checks
On a capable GPU, an ID containing FP8 with explicit quantMethod: "fbgemm_fp8" or "finegrained_fp8" passes runsCheckpointQuant, after which this branch erases the quant method and admits the row. Unlike the earlier metadata-poor-name case, the fresh evidence is explicit metadata that the existing runtime classifier lists as unsupported, while its vLLM whitelist contains only compressed-tensors, AWQ, and GPTQ; these rows therefore enter the chat picker even though its runtimes reject them. Only waive quantization methods the managed engine actually supports.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 27c53ee: only compressed-tensors (which the vLLM engine loads) is waived; fbgemm_fp8 / finegrained_fp8 stay refused.
| row.result, | ||
| row.capabilities.some((c) => c.key === "diffusion") | ||
| ? diffusionQuantFormats | ||
| : checkpointQuantFormats, |
There was a problem hiding this comment.
Treat Diffusers libraries as diffusion for NVFP4 gating
When a Hub result reports libraryName: "diffusers" but lacks a recognized diffusion tag, pipeline tag, or model-name token, detectCapabilities does not mark it as diffusion because that classifier never receives libraryName. This condition then selects the unrestricted checkpoint formats, so an NVFP4 Diffusers repository is recommended while UNSLOTH_NVFP4_DIFFUSION is off even though the backend refuses that load; include the definitive library field in this gate.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing: Diffusers repos carry diffusers tags and pipeline tags that detectCapabilities reads; an NVFP4 Diffusers repo with neither is not a real listing.
…tensors for capable checkpoints
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 27c53eecd9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| cachedIdFor(r.id) !== null || | ||
| runsCheckpointQuant(r) || |
There was a problem hiding this comment.
Preserve capable checkpoints in curated search
When “Fits on device” is enabled and a capable FP8/NVFP4 entry from the curated models list exceeds the size estimate, the unsearched list bypasses the fit check here, but typing a matching query sends the same entry through filteredRecommendedIds, which still requires searchRowFits({ id }). The row therefore disappears during offline or failed Hub searches (and until a live duplicate arrives), contradicting the new “whatever their size” behavior; apply the capable-checkpoint bypass to that curated-search fit gate too.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in fbcd7e5: the curated-search fit gate waives size for capable FP8 / NVFP4 checkpoints too.
…hatever their size
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fbcd7e5676
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| const CHECKPOINT_QUANT_NAME: ReadonlyArray<readonly [string, RegExp]> = [ | ||
| ["fp8", /(?:^|[-_/.])fp8(?:[-_/.]|$)/i], | ||
| ["nvfp4", /(?:^|[-_/.])nvfp4(?:[-_/.]|$)/i], | ||
| ]; |
There was a problem hiding this comment.
Prefer NVFP4 when both quant tokens appear
On Ada/Hopper hosts that report only fp8, an ID containing both bounded NVFP4 and FP8 tokens is classified as FP8 because this ordered list checks FP8 first, so matchesRecommended and the chat picker's runsCheckpointQuant admit a checkpoint that still contains NVFP4 weights and requires Blackwell. Unlike the previously dismissed hypothetical secondary-token case, a current Hub checkpoint has exactly this mixed NVFP4/FP8 naming and identifies Blackwell as its hardware; classify such mixed IDs by the stricter NVFP4 requirement rather than the first token.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in fe7c519: NVFP4 is checked before FP8, so a mixed NVFP4 / FP8 checkpoint needs NVFP4 hardware.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
…eached (#13272) test_non_streaming_proxy_disconnect_returns_499[openai_embeddings] timed out in Backend CI (l-r) on #13221 and #13240 waiting 0.2 s for the route to reach HangingCancelableClient. The route gets there in milliseconds, but the first embeddings call on a loaded, cold xdist worker can take longer. The 0.5 s bound after the disconnect is five polls of the 0.1 s watcher, equally tight. Both are upper bounds only, so raise them to 10 s and 5 s through named constants used by all seven waits in the file; a route that never reaches the client or never notices the disconnect still fails.
What changes for users
The Model hub format dropdown gets a new Recommended option, and it is now the default on Discover.
unsloth/FLUX.1-dev-FP8,Wan2.2-*-FP8and similar show on an FP8-capable GPU. Image / video NVFP4 additionally needs the build's NVFP4 diffusion switch (UNSLOTH_NVFP4_DIFFUSION, off by default), since the backend refuses*-NVFP4diffusion repos while it is off.-FP8-GPTQ,fp8-iq4r,FP8-AWQ) are not counted as FP8 checkpoints.New chat model picker
Recommended in the chat picker was GGUF-only on GPU hosts, and dropped
-FP8-names outright, so FP8 / NVFP4 checkpoints never showed up there. On a host whose GPUs run them natively (same rule as above), they are now listed past three gates:-FP8-name filterThe runtime gate still runs its pipeline check, so an FP8 image model (
Qwen-Image-2.1-Turbo-FP8) stays off the chat list; only its quant-method check is waived, since the vLLM engine loads compressed-tensors checkpoints. Image, video and audio pickers are unchanged.How it works
/api/systemgains an additivecheckpoint_quant_formatskey ([],["fp8"]or["fp8", "nvfp4"]). It readsnvidia-smi --query-gpu=compute_cap, which is a static field already cached bygpu_query(60 s), so the polled route stays torch-free. A mixed host answers for its least capable card, and an unreadable card counts as none. Older frontends ignore the key, and a new frontend talking to an older backend sees[], which means GGUF only.matchesRecommendedinformat-filters.tsmatches FP8 / NVFP4 from the repo name, or fromquant_method: fp8, against that list.Verification
npm run typecheck,npm test(11249 pass),npm run build.pytest studio/backend/tests/test_checkpoint_quant_formats.py(11 pass): RTX 3090 / 4090 / H100 / B200 / RTX 5090 capabilities, mixed hosts,[N/A], missing or failing nvidia-smi, and the cached static query classification.install.sh --local), driven with Playwright:/api/systemon this Mac returnedcheckpoint_quant_formats: [].Qwen3 FP8on this host shows only GGUFs./api/systemrewritten to report["fp8", "nvfp4"](simulated Blackwell), the same search listsunsloth/Qwen3-*-FP8,Qwen/Qwen3.8-27B-FP8and others, and drops the GPTQ / IQ4 re-quants.The new menu (Recommended is the default):
Same
Qwen3 FP8search under Recommended. Left: this Mac, no FP8-capable GPU, so GGUFs only. Right:/api/systemreporting["fp8", "nvfp4"], so FP8 checkpoints join the list:Staging (macOS / Windows / Linux, Playwright): shimmyshimmer#1214
Chat picker, Recommended tab with no search, both sides posing as a Linux host. Left: no FP8-capable GPU, GGUF only (0 FP8 / NVFP4 rows over the whole list). Right: simulated Blackwell, 87 FP8 / NVFP4 rows join (for example
Qwen3.8-27B-NVFP4above):Not tested here
This host is CPU-only macOS with no NVIDIA GPU. The compute capability probe is covered by stubbed
nvidia-smioutput only. Loading an FP8 / NVFP4 checkpoint is not part of this change: this PR only changes which ones the Hub and the chat picker list. Picking one on a host without the vLLM engine gets the backend's existing message for that checkpoint.