From 4fe3772aa28357411cd17b2f900549f2c9828ea8 Mon Sep 17 00:00:00 2001 From: imagineer99 Date: Sun, 22 Feb 2026 06:30:50 +0000 Subject: [PATCH] fix: remove download count fallback when model param count is unavailable --- .../assistant-ui/model-selector/pickers.tsx | 15 ++++----------- .../components/steps/model-selection-step.tsx | 4 ---- .../features/studio/sections/model-section.tsx | 6 +----- 3 files changed, 5 insertions(+), 20 deletions(-) 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 fc579dd32a..80e9dd0b6b 100644 --- a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx +++ b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx @@ -151,12 +151,9 @@ export function HubModelPicker({ const metricsById = useMemo( () => new Map( - results.map((result) => [ - result.id, - result.totalParams - ? formatCompact(result.totalParams) - : `↓${formatCompact(result.downloads)}`, - ]), + results + .filter((result) => result.totalParams) + .map((result) => [result.id, formatCompact(result.totalParams!)]), ), [results], ); @@ -167,11 +164,7 @@ export function HubModelPicker({ { est: number; status: VramFitStatus | null; detail: string | null } >(); for (const r of results) { - const detail = r.totalParams - ? formatCompact(r.totalParams) - : r.downloads != null - ? `↓${formatCompact(r.downloads)}` - : null; + const detail = r.totalParams ? formatCompact(r.totalParams) : null; if (r.totalParams) { const est = estimateLoadingVram(r.totalParams, "qlora"); const status = gpu.available diff --git a/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsx b/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsx index ce506b6085..747311c9a5 100644 --- a/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsx +++ b/studio/frontend/src/features/onboarding/components/steps/model-selection-step.tsx @@ -244,10 +244,6 @@ export function ModelSelectionStep() { {sizeLabel} - ) : r?.downloads != null ? ( - - ↓{formatCompact(r.downloads)} - ) : null} ); diff --git a/studio/frontend/src/features/studio/sections/model-section.tsx b/studio/frontend/src/features/studio/sections/model-section.tsx index 2ba13d739c..0c4a71a8c3 100644 --- a/studio/frontend/src/features/studio/sections/model-section.tsx +++ b/studio/frontend/src/features/studio/sections/model-section.tsx @@ -210,11 +210,7 @@ export function ModelSection() { { est: number; status: VramFitStatus | null; detail: string | null } >(); for (const r of hfResults) { - const detail = r.totalParams - ? formatCompact(r.totalParams) - : r.downloads != null - ? `\u2193${formatCompact(r.downloads)}` - : null; + const detail = r.totalParams ? formatCompact(r.totalParams) : null; if (r.totalParams) { const est = estimateLoadingVram(r.totalParams, method); const status = gpu.available