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 Hub: sidebar-matched pill icons, drop the Memory stat (#14049)

Michael Han9f10d63726ef
diff --git a/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx b/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx
index c696f0fed0e..3b819b4c51f 100644
--- a/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx
+++ b/studio/frontend/src/features/hub/catalog/local-on-device-card.tsx
@@ -21,8 +21,8 @@ import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { cn } from "@/lib/utils";
import {
Alert02Icon,
- CubeIcon,
Folder01Icon,
+ LayerIcon,
Share05Icon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
@@ -145,7 +145,7 @@ function BaseModelReference({
<div className="flex min-w-0 items-center gap-2 rounded-[10px] border border-border/55 bg-muted/35 px-3 py-2">
<div className="flex size-7 shrink-0 items-center justify-center rounded-[8px] bg-background/70 text-muted-foreground">
<HugeiconsIcon
- icon={CubeIcon}
+ icon={LayerIcon}
strokeWidth={1.75}
className="size-3.5"
/>
diff --git a/studio/frontend/src/features/hub/catalog/model-inspector.tsx b/studio/frontend/src/features/hub/catalog/model-inspector.tsx
index d492dc4954f..5c680da6b61 100644
--- a/studio/frontend/src/features/hub/catalog/model-inspector.tsx
+++ b/studio/frontend/src/features/hub/catalog/model-inspector.tsx
@@ -33,11 +33,11 @@ import {
Download01Icon,
FavouriteIcon,
InternetIcon,
+ LayerIcon,
LayersLogoIcon,
- LibraryIcon,
+ LibrariesIcon,
LicenseIcon,
PackageIcon,
- RamMemoryIcon,
Share05Icon,
} from "@hugeicons/core-free-icons";
import { TextToSpeechIcon } from "@/lib/hugeicons-derived";
@@ -237,7 +237,7 @@ function BaseModelSearchChip({
const content = (
<>
<HugeiconsIcon
- icon={LayersLogoIcon}
+ icon={LayerIcon}
strokeWidth={1.75}
className="size-3.5 shrink-0 text-muted-foreground"
/>
@@ -417,7 +417,6 @@ export type ModelInspectorRuntime = {
isActive: boolean;
activeGgufVariant: string | null;
isLoadingThisModel: boolean;
- minMemory: string | null;
vramInfo: {
est: number;
status: "fits" | "tight" | "exceeds";
@@ -462,7 +461,6 @@ export const ModelInspector = memo(function ModelInspector({
isActive,
activeGgufVariant,
isLoadingThisModel,
- minMemory,
vramInfo,
gpuGb,
gpuCount,
@@ -829,13 +827,10 @@ export const ModelInspector = memo(function ModelInspector({
<StatRow label="Parameters" value={paramsLabel} icon={CpuIcon} />
)}
{libraryLabel && (
- <StatRow label="Library" value={libraryLabel} icon={LibraryIcon} />
- )}
- {!isDataset && (
<StatRow
- label="Memory"
- value={minMemory ?? "N/A"}
- icon={RamMemoryIcon}
+ label="Library"
+ value={libraryLabel}
+ icon={LibrariesIcon}
/>
)}
{isDataset && datasetSize?.numRows != null && (
diff --git a/studio/frontend/src/features/hub/catalog/shared.tsx b/studio/frontend/src/features/hub/catalog/shared.tsx
index bf75cf8b593..2a83181893e 100644
--- a/studio/frontend/src/features/hub/catalog/shared.tsx
+++ b/studio/frontend/src/features/hub/catalog/shared.tsx
@@ -12,6 +12,7 @@ import { cn } from "@/lib/utils";
import {
Chat01Icon,
CodeIcon,
+ FlimSlateIcon,
GlobeIcon,
ImageIcon,
LayoutTable02Icon,
@@ -39,6 +40,15 @@ const CAPABILITY_ICON: Record<
conversational: Chat01Icon,
};
+// Video gen shares the diffusion key, so it takes the sidebar's Video icon by label.
+function capabilityIcon(
+ key: Exclude<CapabilityKey, "reasoning">,
+ label: string,
+): IconSvgElement {
+ if (key === "diffusion" && label === "Video gen") return FlimSlateIcon;
+ return CAPABILITY_ICON[key];
+}
+
const CAPABILITY_TONE: Record<CapabilityKey, string> = {
vision:
"bg-indigo-500/10 text-indigo-700 dark:bg-indigo-400/20 dark:text-indigo-300",
@@ -156,7 +166,7 @@ export function CapabilityPill({
<BulbIcon className="size-3 shrink-0" />
) : (
<HugeiconsIcon
- icon={CAPABILITY_ICON[capability.key]}
+ icon={capabilityIcon(capability.key, capability.label)}
strokeWidth={1.75}
className="size-3"
/>
diff --git a/studio/frontend/src/features/hub/hooks/use-hub-model-vram.ts b/studio/frontend/src/features/hub/hooks/use-hub-model-vram.ts
index db20d09a15e..7e0ca3ebfa3 100644
--- a/studio/frontend/src/features/hub/hooks/use-hub-model-vram.ts
+++ b/studio/frontend/src/features/hub/hooks/use-hub-model-vram.ts
@@ -8,7 +8,6 @@ import {
checkVramFit,
estimateLoadingVram,
} from "@/lib/vram";
-import { formatBytes } from "@/features/hub/lib/format";
import type { SelectedModelView } from "../types";
export interface ModelVramInfo {
@@ -19,7 +18,7 @@ export interface ModelVramInfo {
export function useHubModelVram(
selectedModel: SelectedModelView | null,
gpu: GpuInfo,
-): { vramInfo: ModelVramInfo | null; minMemory: string | null } {
+): { vramInfo: ModelVramInfo | null } {
const vramInfo = useMemo<ModelVramInfo | null>(() => {
if (!selectedModel || selectedModel.isGguf || !selectedModel.totalParams) {
return null;
@@ -29,22 +28,5 @@ export function useHubModelVram(
return status ? { est, status } : null;
}, [gpu, selectedModel]);
- const minMemory = useMemo(() => {
- if (!selectedModel) return null;
- if (selectedModel.isGguf) {
- if (selectedModel.cachedBytes)
- return formatBytes(selectedModel.cachedBytes);
- if (selectedModel.estimatedSizeBytes)
- return formatBytes(selectedModel.estimatedSizeBytes);
- return null;
- }
- if (selectedModel.estimatedSizeBytes)
- return formatBytes(selectedModel.estimatedSizeBytes);
- if (vramInfo) return `~${vramInfo.est} GB`;
- if (selectedModel.cachedBytes)
- return formatBytes(selectedModel.cachedBytes);
- return null;
- }, [selectedModel, vramInfo]);
-
- return { vramInfo, minMemory };
+ return { vramInfo };
}
diff --git a/studio/frontend/src/features/hub/hub-page.tsx b/studio/frontend/src/features/hub/hub-page.tsx
index 8b671670ed0..f71086da9c4 100644
--- a/studio/frontend/src/features/hub/hub-page.tsx
+++ b/studio/frontend/src/features/hub/hub-page.tsx
@@ -1620,7 +1620,7 @@ export function ModelsPage() {
);
}, [loadingModel, selectedModel]);
- const { vramInfo, minMemory } = useHubModelVram(selectedModel, gpu);
+ const { vramInfo } = useHubModelVram(selectedModel, gpu);
const gpuLabel = gpu.available
? `${Math.round(gpu.dedicatedMemoryTotalGb)} GiB`
@@ -1789,7 +1789,6 @@ export function ModelsPage() {
isActive,
activeGgufVariant,
isLoadingThisModel,
- minMemory,
vramInfo,
gpuGb: inferenceGpu.available ? inferenceGpu.memoryTotalGb : undefined,
gpuCount: inferenceGpu.deviceCount,
@@ -1802,7 +1801,6 @@ export function ModelsPage() {
isActive,
activeGgufVariant,
isLoadingThisModel,
- minMemory,
vramInfo,
inferenceGpu.available,
inferenceGpu.memoryTotalGb,
diff --git a/studio/frontend/tests/hub-detail-pill-icons.test.ts b/studio/frontend/tests/hub-detail-pill-icons.test.ts
new file mode 100644
index 00000000000..5866ce622bf
--- /dev/null
+++ b/studio/frontend/tests/hub-detail-pill-icons.test.ts
@@ -0,0 +1,46 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+// The Hub detail pills reuse the sidebar's Video and Library icons, Base chips draw
+// Hugeicons' Layer, and the stats row has no Memory pill.
+
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { readSrc } from "./helpers/kit.ts";
+
+function sidebarIcon(row: string): string {
+ const sidebar = readSrc("components/app-sidebar.tsx");
+ const match = sidebar.match(new RegExp(`\\n ${row}: \\{\\n icon: (\\w+),`));
+ assert.ok(match, `sidebar ${row} row`);
+ return match[1];
+}
+
+test("Video gen draws the sidebar's Video icon", () => {
+ const shared = readSrc("features/hub/catalog/shared.tsx");
+ const icon = sidebarIcon("video");
+ assert.match(
+ shared,
+ new RegExp(`key === "diffusion" && label === "Video gen"\\) return ${icon};`),
+ );
+ assert.match(shared, /icon=\{capabilityIcon\(capability\.key, capability\.label\)\}/);
+});
+
+test("the Library stat draws the sidebar's Library icon", () => {
+ const inspector = readSrc("features/hub/catalog/model-inspector.tsx");
+ const icon = sidebarIcon("library");
+ assert.match(inspector, new RegExp(`label="Library"[\\s\\S]{0,80}icon=\\{${icon}\\}`));
+});
+
+test("every Base chip draws Layer", () => {
+ const inspector = readSrc("features/hub/catalog/model-inspector.tsx");
+ assert.match(inspector, /icon=\{LayerIcon\}[\s\S]{0,160}>Base<\/span>/);
+ const local = readSrc("features/hub/catalog/local-on-device-card.tsx");
+ const reference = local.slice(local.indexOf("function BaseModelReference"));
+ assert.match(reference.slice(0, 1500), /icon=\{LayerIcon\}/);
+});
+
+test("the detail stats carry no Memory pill", () => {
+ const inspector = readSrc("features/hub/catalog/model-inspector.tsx");
+ assert.doesNotMatch(inspector, /label="Memory"|RamMemoryIcon|minMemory/);
+});