Skip to content

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.

studio: sort downloaded GGUF variants before recommended

Daniel Hanbcb382def978
diff --git a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
index 1df2c898088..10b8aed8e73 100644
--- a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
+++ b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
@@ -239,14 +239,15 @@ function GgufVariantExpander({
return v.downloaded ? base : base + 2;
};
return [...variants].sort((a, b) => {
- const aIsRec = a.quant === effectiveRecommended;
- const bIsRec = b.quant === effectiveRecommended;
- if (aIsRec !== bIsRec) return aIsRec ? -1 : 1;
-
const aTier = tierOf(a);
const bTier = tierOf(b);
if (aTier !== bTier) return aTier - bTier;
+ // Within the same tier, recommended goes first
+ const aIsRec = a.quant === effectiveRecommended;
+ const bIsRec = b.quant === effectiveRecommended;
+ if (aIsRec !== bIsRec) return aIsRec ? -1 : 1;
+
// fits/tight: largest first (best quality); OOM: smallest first
return aTier === 4 ? a.size_bytes - b.size_bytes : b.size_bytes - a.size_bytes;
});