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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Fall back to parsing model name when HF API has no param count (#4656)
Daniel Hanc4e34c88c887
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.tsxindex f05643c0925..4e7454e20f4 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@@ -58,6 +58,13 @@ import { HugeiconsIcon } from "@hugeicons/react";import { useEffect, useMemo, useRef, useState } from "react";import { useShallow } from "zustand/react/shallow";+/** Extract param count label from model name (e.g. "Qwen3-0.6B" -> "0.6B"). */+function extractParamLabel(id: string): string | null {+ const name = id.split("/").pop() ?? id;+ const match = name.match(/(?:^|[-_])(\d+(?:\.\d+)?)[Bb](?:[-_]|$)/);+ return match ? `${match[1]}B` : null;+}+export function ModelSelectionStep() {const gpu = useGpuInfo();const {@@ -119,7 +126,7 @@ export function ModelSelectionStep() {const fit = fitMap.get(r.id);map.set(r.id, {status: fit?.status ?? null,- detail: r.totalParams ? formatCompact(r.totalParams) : null,+ detail: r.totalParams ? formatCompact(r.totalParams) : extractParamLabel(r.id),});}return map;diff --git a/studio/frontend/src/features/studio/sections/model-section.tsx b/studio/frontend/src/features/studio/sections/model-section.tsxindex fa732bf62ae..0d2b3e074de 100644--- a/studio/frontend/src/features/studio/sections/model-section.tsx+++ b/studio/frontend/src/features/studio/sections/model-section.tsx@@ -72,6 +72,13 @@ const DARK_CONTENT =const DARK_COMBOBOX_CONTENT ="bg-foreground text-background shadow-xl border-background/10 dark:[--accent:rgba(2,6,23,0.08)] dark:[--accent-foreground:rgb(2,6,23)] dark:[&_[data-slot=combobox-item]]:text-slate-900 dark:[&_.text-muted-foreground]:text-slate-500";+/** Extract param count label from model name (e.g. "Qwen3-0.6B" -> "0.6B"). */+function extractParamLabel(id: string): string | null {+ const name = id.split("/").pop() ?? id;+ const match = name.match(/(?:^|[-_])(\d+(?:\.\d+)?)[Bb](?:[-_]|$)/);+ return match ? `${match[1]}B` : null;+}+export function ModelSection() {const gpu = useGpuInfo();@@ -233,7 +240,7 @@ export function ModelSection() {{ est: number; status: VramFitStatus | null; detail: string | null }>();for (const r of hfResults) {- const detail = r.totalParams ? formatCompact(r.totalParams) : null;+ const detail = r.totalParams ? formatCompact(r.totalParams) : extractParamLabel(r.id);const fit = fitMap.get(r.id);map.set(r.id, {est: fit?.est ?? 0,