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 OOM GGUF variants smallest-to-largest

Daniel Han4600131fea40
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 bf60f9c51a8..2bece10e8a9 100644
--- a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
+++ b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
@@ -225,7 +225,8 @@ function GgufVariantExpander({
const bOom = gpuGb != null && gpuGb > 0 && bGb > 0 && checkVramFit(bGb, gpuGb) === "exceeds";
if (aOom !== bOom) return aOom ? 1 : -1;
- return b.size_bytes - a.size_bytes;
+ // 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;
});
}, [variants, effectiveRecommended, gpuGb]);