Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
studio: sort TIGHT (CPU offload) GGUF variants after GPU-only fits
Daniel Han7b19cb418e9f
diff --git a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsxindex ef8cf9862c9..f8a8ec4abbe 100644--- a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx+++ b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx@@ -230,17 +230,22 @@ function GgufVariantExpander({const sortedVariants = useMemo(() => {if (!variants) return variants;+ // Tier: 0 = fits (GPU only), 1 = tight (needs CPU offload), 2 = OOM+ const tierOf = (v: GgufVariantDetail) => {+ const f = getGgufFit(v.size_bytes);+ return f === "fits" ? 0 : f === "tight" ? 1 : 2;+ };return [...variants].sort((a, b) => {const aIsRec = a.quant === effectiveRecommended;const bIsRec = b.quant === effectiveRecommended;if (aIsRec !== bIsRec) return aIsRec ? -1 : 1;- const aOom = getGgufFit(a.size_bytes) === "oom";- const bOom = getGgufFit(b.size_bytes) === "oom";- if (aOom !== bOom) return aOom ? 1 : -1;+ const aTier = tierOf(a);+ const bTier = tierOf(b);+ if (aTier !== bTier) return aTier - bTier;- // Non-OOM: largest first (best quality); OOM: smallest first (most likely to fit)- return aOom ? a.size_bytes - b.size_bytes : b.size_bytes - a.size_bytes;+ // fits/tight: largest first (best quality); OOM: smallest first+ return aTier === 2 ? a.size_bytes - b.size_bytes : b.size_bytes - a.size_bytes;});}, [variants, effectiveRecommended, getGgufFit]);