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: show the hub's format dot only under All formats (#11682)

Michael Hane776f1c8097f
diff --git a/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsx b/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsx
index 3fff3add36e..c743fc8585a 100644
--- a/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsx
+++ b/studio/frontend/src/features/hub/catalog/models-catalog-lists.tsx
@@ -110,6 +110,7 @@ export function DiscoverList({
onSwitchDevice,
view,
selectedId,
+ showFormatDots = true,
}: {
discoverRows: DiscoverRow[];
onSelect: (id: string) => void;
@@ -134,6 +135,7 @@ export function DiscoverList({
onRetry: () => void;
onSwitchDevice?: () => void;
view: AllModelsView;
+ showFormatDots?: boolean;
}) {
// "two" = two cards per row; "grid" = compact table rows; "split" = one card per row.
const isSplit = view === "split";
@@ -171,6 +173,7 @@ export function DiscoverList({
deviceType={deviceType}
isDataset={isDataset}
selected={row.id === selectedId}
+ showFormatDot={showFormatDots}
onSelect={onSelect}
/>
) : isCardLike ? (
@@ -178,6 +181,7 @@ export function DiscoverList({
row={row}
deviceType={deviceType}
isDataset={isDataset}
+ showFormatDot={showFormatDots}
onSelect={onSelect}
/>
) : (
@@ -185,6 +189,7 @@ export function DiscoverList({
row={row}
deviceType={deviceType}
isDataset={isDataset}
+ showFormatDot={showFormatDots}
onSelect={onSelect}
/>
)
@@ -278,6 +283,7 @@ export function DownloadedList({
compact = false,
sort,
onInventoryChange,
+ showFormatDots = true,
}: {
cachedRows: CachedInventoryRow[];
localRows: LocalInventoryRow[];
@@ -297,6 +303,7 @@ export function DownloadedList({
compact?: boolean;
sort: InventorySort;
onInventoryChange?: () => void;
+ showFormatDots?: boolean;
}) {
// Pinned repos surface first regardless of the active sort, which still orders within groups.
const pinnedIds = usePinnedModelsStore((s) => s.pinned);
@@ -409,6 +416,7 @@ export function DownloadedList({
dimmed={!inventoryRowMatches(item.row, inventoryTokens)}
deviceType={deviceType}
compact={compact}
+ showFormatDot={showFormatDots}
onSelect={onSelect}
onChange={onInventoryChange}
/>
diff --git a/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx b/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx
index e720d82c0a8..928b6034851 100644
--- a/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx
+++ b/studio/frontend/src/features/hub/catalog/models-catalog-rows.tsx
@@ -539,6 +539,7 @@ export const InventoryRow = memo(function InventoryRow({
dimmed,
deviceType,
compact = false,
+ showFormatDot = true,
onSelect,
onChange,
}: {
@@ -549,6 +550,7 @@ export const InventoryRow = memo(function InventoryRow({
deviceType: string | null;
/** Narrow split master pane: drop the capability column so the name fits. */
compact?: boolean;
+ showFormatDot?: boolean;
onSelect: (id: string) => void;
onChange?: () => void;
}) {
@@ -599,8 +601,8 @@ export const InventoryRow = memo(function InventoryRow({
: (row.repoId ?? row.loadId)
: undefined;
const tooltip = buildRowStatusTooltip({
- isGguf: row.isGguf,
- isAdapter: row.modelFormat === "adapter",
+ isGguf: showFormatDot && row.isGguf,
+ isAdapter: showFormatDot && row.modelFormat === "adapter",
isAvailableOnDevice: !partialRepoId,
partialRepoId,
unsupported,
@@ -640,14 +642,14 @@ export const InventoryRow = memo(function InventoryRow({
const statusMarkers = (
<>
- {row.isGguf && (
+ {showFormatDot && row.isGguf && (
<span
role="img"
aria-label="GGUF"
className="inline-block size-[calc(5px*var(--ui-space-scale,1))] shrink-0 rounded-full bg-format-gguf"
/>
)}
- {row.modelFormat === "adapter" && (
+ {showFormatDot && row.modelFormat === "adapter" && (
<span
role="img"
aria-label="Adapter"
diff --git a/studio/frontend/src/features/hub/catalog/models-catalog.tsx b/studio/frontend/src/features/hub/catalog/models-catalog.tsx
index 2913cad48a2..270f2229a70 100644
--- a/studio/frontend/src/features/hub/catalog/models-catalog.tsx
+++ b/studio/frontend/src/features/hub/catalog/models-catalog.tsx
@@ -56,6 +56,8 @@ export interface ModelsCatalogState {
manualFetchAvailable: boolean;
hasActiveFilters: boolean;
typeFilterActive: boolean;
+ /** Format dots only add information when the list mixes formats. */
+ showFormatDots: boolean;
}
export interface ModelsCatalogPagination {
@@ -119,6 +121,7 @@ export const ModelsCatalog = memo(function ModelsCatalog({
hasMore,
hasActiveFilters,
typeFilterActive,
+ showFormatDots,
} = state;
const { scrollRef, sentinelRef, isLoadingMore } = pagination;
const {
@@ -432,6 +435,7 @@ export const ModelsCatalog = memo(function ModelsCatalog({
onSwitchDevice={onSwitchDevice}
view={discoverView}
selectedId={selectedId}
+ showFormatDots={showFormatDots}
/>
</div>
) : (
@@ -476,6 +480,7 @@ export const ModelsCatalog = memo(function ModelsCatalog({
columns={discoverView === "two" ? 2 : 1}
sort={inventorySort}
onInventoryChange={onInventoryChange}
+ showFormatDots={showFormatDots}
/>
</div>
) : (
diff --git a/studio/frontend/src/features/hub/catalog/models-table.tsx b/studio/frontend/src/features/hub/catalog/models-table.tsx
index e811232bc4b..ec2dc243723 100644
--- a/studio/frontend/src/features/hub/catalog/models-table.tsx
+++ b/studio/frontend/src/features/hub/catalog/models-table.tsx
@@ -594,16 +594,23 @@ export const ResultCard = memo(function ResultCard({
row,
deviceType,
isDataset,
+ showFormatDot = true,
onSelect,
}: {
row: DiscoverRow;
deviceType: string | null;
isDataset: boolean;
+ showFormatDot?: boolean;
onSelect: (id: string) => void;
}) {
const { support, unsupported, partial, onDevice, sizeLabel, taskLabel } =
useResultRowModel(row, deviceType, isDataset);
- const format = isDataset ? null : row.result.isGguf ? "gguf" : "checkpoint";
+ const format =
+ isDataset || !showFormatDot
+ ? null
+ : row.result.isGguf
+ ? "gguf"
+ : "checkpoint";
const tip = buildRowStatusTooltip({
partialRepoId: partial ? row.result.id : undefined,
unsupported,
@@ -717,17 +724,24 @@ export const ResultGridRow = memo(function ResultGridRow({
row,
deviceType,
isDataset,
+ showFormatDot = true,
onSelect,
}: {
row: DiscoverRow;
deviceType: string | null;
isDataset: boolean;
+ showFormatDot?: boolean;
onSelect: (id: string) => void;
}) {
const { support, unsupported, partial, onDevice, sizeLabel, taskLabel } =
useResultRowModel(row, deviceType, isDataset);
const sizeDisplay = isDataset ? null : sizeLabel;
- const format = isDataset ? null : row.result.isGguf ? "gguf" : "checkpoint";
+ const format =
+ isDataset || !showFormatDot
+ ? null
+ : row.result.isGguf
+ ? "gguf"
+ : "checkpoint";
const tip = buildRowStatusTooltip({
partialRepoId: partial ? row.result.id : undefined,
unsupported,
@@ -854,12 +868,14 @@ export const ResultSplitRow = memo(function ResultSplitRow({
deviceType,
isDataset,
selected,
+ showFormatDot = true,
onSelect,
}: {
row: DiscoverRow;
deviceType: string | null;
isDataset: boolean;
selected: boolean;
+ showFormatDot?: boolean;
onSelect: (id: string) => void;
}) {
const { support, unsupported, partial, onDevice } = useResultRowModel(
@@ -867,7 +883,12 @@ export const ResultSplitRow = memo(function ResultSplitRow({
deviceType,
isDataset,
);
- const format = isDataset ? null : row.result.isGguf ? "gguf" : "checkpoint";
+ const format =
+ isDataset || !showFormatDot
+ ? null
+ : row.result.isGguf
+ ? "gguf"
+ : "checkpoint";
const tip = buildRowStatusTooltip({
partialRepoId: partial ? row.result.id : undefined,
unsupported,
diff --git a/studio/frontend/src/features/hub/hub-page.tsx b/studio/frontend/src/features/hub/hub-page.tsx
index 2a8747ad3f5..2f50182c119 100644
--- a/studio/frontend/src/features/hub/hub-page.tsx
+++ b/studio/frontend/src/features/hub/hub-page.tsx
@@ -1576,6 +1576,8 @@ export function ModelsPage() {
deferredCapabilityFilter !== "all" ||
(tab === "downloaded" && typeFilterActive)),
typeFilterActive,
+ // A single format filter makes every row's format dot the same.
+ showFormatDots: isDatasetMode || deferredFormatFilter === "all",
};
},
[
diff --git a/studio/frontend/tests/hub-format-dot-all-formats.test.ts b/studio/frontend/tests/hub-format-dot-all-formats.test.ts
new file mode 100644
index 00000000000..43f945c4bf7
--- /dev/null
+++ b/studio/frontend/tests/hub-format-dot-all-formats.test.ts
@@ -0,0 +1,65 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import assert from "node:assert/strict";
+import { readFileSync } from "node:fs";
+import test from "node:test";
+import { fileURLToPath } from "node:url";
+
+import { matchesFormat } from "../src/features/hub/lib/format-filters.ts";
+
+function read(path: string): string {
+ return readFileSync(fileURLToPath(new URL(path, import.meta.url)), "utf-8");
+}
+
+const HUB_PAGE = read("../src/features/hub/hub-page.tsx");
+const CATALOG = read("../src/features/hub/catalog/models-catalog.tsx");
+const LISTS = read("../src/features/hub/catalog/models-catalog-lists.tsx");
+const TABLE = read("../src/features/hub/catalog/models-table.tsx");
+const ROWS = read("../src/features/hub/catalog/models-catalog-rows.tsx");
+
+test("a single format filter admits one dot color, so the dot says nothing", () => {
+ const formats = [
+ "gguf",
+ "safetensors",
+ "checkpoint",
+ "adapter",
+ "mlx",
+ ] as const;
+ for (const filter of ["gguf", "checkpoint", "mlx"] as const) {
+ const admitted = formats.filter((f) => matchesFormat(f, filter));
+ // safetensors and checkpoint share one dot.
+ const dots = new Set(
+ admitted.map((f) => (f === "safetensors" ? "checkpoint" : f)),
+ );
+ assert.equal(dots.size, 1, filter);
+ }
+});
+
+test("format dots show only under All formats", () => {
+ assert.ok(
+ HUB_PAGE.includes(
+ 'showFormatDots: isDatasetMode || deferredFormatFilter === "all"',
+ ),
+ );
+ assert.ok(CATALOG.includes("showFormatDots={showFormatDots}"));
+ assert.equal(LISTS.match(/showFormatDot=\{showFormatDots\}/g)?.length, 4);
+});
+
+test("every row drops its format dot when told to", () => {
+ assert.equal(
+ TABLE.match(/isDataset \|\| !showFormatDot\n\s*\? null/g)?.length,
+ 3,
+ );
+ assert.ok(ROWS.includes("{showFormatDot && row.isGguf && ("));
+ assert.ok(
+ ROWS.includes('{showFormatDot && row.modelFormat === "adapter" && ('),
+ );
+ // The tooltip legend describes the dots, so it drops them too.
+ assert.ok(ROWS.includes("isGguf: showFormatDot && row.isGguf,"));
+});
+
+test("status dots stay regardless of the format filter", () => {
+ assert.ok(ROWS.includes('<StatusDot tone="success" label="On device" />'));
+ assert.ok(TABLE.includes('aria-label="Partial download"'));
+});