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: keep the model name and quant whole in the Images and Video header (#11757)

Michael Han0ee01afac320
diff --git a/studio/frontend/src/features/model-picker/components/model-selector.tsx b/studio/frontend/src/features/model-picker/components/model-selector.tsx
index 0a9b228819d..6d505105e4b 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector.tsx
@@ -226,29 +226,44 @@ function ModelSelectorTrigger({
) : null}
{/* A box-centred Hellix label sits above the icon's centre; drop it 0.05em to centre the caps. */}
<span className="relative top-[0.05em] flex min-w-0 flex-1 items-baseline">
- <span
- className={cn(
- "min-w-0 flex flex-1 items-baseline truncate font-heading text-ui-16 font-medium leading-tight text-black dark:text-foreground",
- triggerLabelClassName,
+ {/* Name and quant stay whole; only the description truncates. The suffix sits outside this
+ group, so even an over-long name leaves room for it. */}
+ <span className="flex min-w-0 items-baseline">
+ <span
+ className={cn(
+ "flex max-w-full shrink-0 items-baseline whitespace-nowrap font-heading text-ui-16 font-medium leading-tight text-black dark:text-foreground",
+ triggerLabelClassName,
+ )}
+ >
+ <span className="min-w-0 truncate">{currentModel?.name ?? placeholder}</span>
+ {showCloudIndicator ? (
+ <HugeiconsIcon
+ icon={CloudIcon}
+ strokeWidth={1.75}
+ className="relative top-[0.15625rem] ml-1.5 mr-[calc(0.36rem*var(--ui-space-scale,1))] size-3.5 shrink-0 text-muted-foreground"
+ />
+ ) : null}
+ </span>
+ {currentModel?.description && (
+ <span
+ className={cn(
+ "min-w-0 truncate text-xs leading-none text-muted-foreground",
+ showCloudIndicator ? "" : "ml-2",
+ )}
+ >
+ {currentModel.description}
+ </span>
)}
- >
- {currentModel?.name ?? placeholder}
- {showCloudIndicator ? (
- <HugeiconsIcon
- icon={CloudIcon}
- strokeWidth={1.75}
- className="relative top-[0.15625rem] ml-1.5 mr-[calc(0.36rem*var(--ui-space-scale,1))] size-3.5 shrink-0 text-muted-foreground"
- />
- ) : null}
</span>
- {currentModel?.description && (
+ {currentModel?.descriptionSuffix && (
<span
className={cn(
- "shrink-0 text-xs leading-none text-muted-foreground",
- showCloudIndicator ? "" : "ml-2",
+ "shrink-0 whitespace-nowrap text-xs leading-none text-muted-foreground",
+ !currentModel.description && !showCloudIndicator && "ml-2",
)}
>
- {currentModel.description}
+ {currentModel.description ? " - " : ""}
+ {currentModel.descriptionSuffix}
</span>
)}
</span>
@@ -771,10 +786,11 @@ export function ModelSelector({
// not the namespaced public id (#7966), matches the catalog row that later replaces this one.
const fallbackName = missingExternal?.modelName ?? modelDisplayName(selected);
if (activeGgufVariant) {
+ // The variant is the quant, so it goes in the suffix.
const desc = `GGUF · ${activeGgufVariant}`;
return found
- ? { ...found, description: desc }
- : { id: selected, name: fallbackName, description: desc };
+ ? { ...found, description: undefined, descriptionSuffix: desc }
+ : { id: selected, name: fallbackName, descriptionSuffix: desc };
}
if (missingExternal) {
const disabled = missingExternal.state === "disabled";
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
index 9ee9a371ee8..e27ab610078 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
@@ -994,7 +994,8 @@ export function curatedRowLabelFor(
const [format, ...rest] = hit.artifact.label.split(LABEL_PART_SEPARATOR);
// The chip is the precision the artifact is STORED at, which is what tells two rows apart; what it
// RUNS at is the loader's answer, reported by `resolved` after the load.
- const tags = [format.trim()].filter(Boolean);
+ // "Safetensors" is left off: the row's format dot already says it.
+ const tags = [format.trim()].filter((tag) => tag && tag.toLowerCase() !== "safetensors");
const kept: string[] = [];
for (const part of rest) {
if (RESOLUTION_RE.test(part.trim())) tags.push(part.trim());
@@ -1024,7 +1025,8 @@ export function catalogToModelOptions(
name:
curatedDisplayNameFor(artifact.repoId, catalog, host, denseQuantSchemes) ??
group.displayName,
- description: `${group.description} - ${artifact.label}`,
+ description: group.description,
+ descriptionSuffix: artifact.label,
isGguf: artifact.format === "gguf",
deviceQuant: artifact.deviceQuant,
});
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
index 7af6bd125a7..ef899b7cbf4 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
@@ -4348,7 +4348,7 @@ export function HubModelPicker({
matchesFormatFilter(model.id, model.isGguf === true, formatFilter) &&
(!needle ||
normalizeForSearch(
- `${model.id} ${model.name} ${model.description ?? ""}`,
+ `${model.id} ${model.name} ${model.description ?? ""} ${model.descriptionSuffix ?? ""}`,
).includes(needle))
);
});
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/types.ts b/studio/frontend/src/features/model-picker/components/model-selector/types.ts
index 38e79778247..b643297a76e 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/types.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/types.ts
@@ -8,6 +8,8 @@ export interface ModelOption {
id: string;
name: string;
description?: string;
+ /** Shown after `description` and never truncated, e.g. the quant "BF16". */
+ descriptionSuffix?: string;
icon?: ReactNode;
isGguf?: boolean;
/** Fixed quant used by a specialized on-device runtime. Generic Hub GGUF rows discover their