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]);