From 4600131fea40e79d5906c390e2ba669330ba03f8 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Sun, 15 Mar 2026 06:22:01 +0000 Subject: [PATCH] studio: sort OOM GGUF variants smallest-to-largest OOM variants are more useful sorted ascending by size since smaller ones are more likely to run with --fit. Non-OOM variants remain largest-first (best quality). --- .../src/components/assistant-ui/model-selector/pickers.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 bf60f9c51a..2bece10e8a 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]);