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: list every image and video model under Recommended (#14421)

Michael Han444f63275c26
diff --git a/studio/frontend/src/features/hub/hub-page.tsx b/studio/frontend/src/features/hub/hub-page.tsx
index 4db752d2a51..bab532d9d8f 100644
--- a/studio/frontend/src/features/hub/hub-page.tsx
+++ b/studio/frontend/src/features/hub/hub-page.tsx
@@ -139,6 +139,7 @@ import {
matchesHubCapability,
matchesFormat,
matchesRecommended,
+ matchesRecommendedDiffusion,
} from "./lib/view-models";
import { hfApiToken, useHfTokenStore } from "./stores/hf-token-store";
import {
@@ -166,6 +167,11 @@ const RUN_CONFIG_REFRESH_TIMEOUT_MS = 5_000;
// Under Recommended, iconless models (no provider logo, e.g. Ornith, Inkling) show once they clear this many likes.
const MIN_ICONLESS_MODEL_LIKES = 30;
+// Image and video models skip Recommended's likes rules: new diffusion uploads rarely clear them.
+function isDiffusionRow(row: DiscoverRow): boolean {
+ return row.capabilities.some((c) => c.key === "diffusion");
+}
+
function withoutGgufTag(
tags: readonly string[] | undefined,
): readonly string[] | undefined {
@@ -1106,18 +1112,17 @@ export function ModelsPage() {
// well-liked checkpoints; a typed search and every other format show all matches.
(effectiveDiscoverFormat !== "recommended" ||
hasQuery ||
+ isDiffusionRow(row) ||
resolveOwnerProviderLogo(row.owner, row.repo) !== null ||
(row.result.likes ?? 0) >= MIN_ICONLESS_MODEL_LIKES) &&
(effectiveDiscoverFormat !== "recommended" ||
hasQuery ||
+ isDiffusionRow(row) ||
hasRecommendedCheckpointLikes(row.result)) &&
(effectiveDiscoverFormat === "recommended"
- ? matchesRecommended(
- row.result,
- row.capabilities.some((c) => c.key === "diffusion")
- ? diffusionQuantFormats
- : checkpointQuantFormats,
- )
+ ? isDiffusionRow(row)
+ ? matchesRecommendedDiffusion(row.result, diffusionQuantFormats)
+ : matchesRecommended(row.result, checkpointQuantFormats)
: matchesFormat(
detectResultFormat(row.result),
effectiveDiscoverFormat,
@@ -1173,7 +1178,9 @@ export function ModelsPage() {
)
.filter((row) => matchesFormat(row.result.isGguf, "gguf"))
// Catches low-like safetensors repos cross-tagged "gguf" for a stray .gguf export.
- .filter((row) => hasRecommendedCheckpointLikes(row.result))
+ .filter(
+ (row) => isDiffusionRow(row) || hasRecommendedCheckpointLikes(row.result),
+ )
// Same fit filter as the main Discover list, so the feed carousel honors the toggle too.
.filter(
(row) =>
diff --git a/studio/frontend/src/features/hub/lib/format-filters.ts b/studio/frontend/src/features/hub/lib/format-filters.ts
index 5e3d8315722..f4306748b88 100644
--- a/studio/frontend/src/features/hub/lib/format-filters.ts
+++ b/studio/frontend/src/features/hub/lib/format-filters.ts
@@ -102,6 +102,17 @@ export function matchesRecommended(
return format !== null && checkpointQuantFormats.includes(format);
}
+/** Recommended for an image / video model: also full-precision checkpoints, since diffusers repos are the main way to run them. */
+export function matchesRecommendedDiffusion(
+ result: { id: string; isGguf: boolean; quantMethod?: string },
+ checkpointQuantFormats: readonly string[],
+): boolean {
+ return (
+ matchesRecommended(result, checkpointQuantFormats) ||
+ checkpointQuantFormat(result) === null
+ );
+}
+
// Recommended browsing lists every GGUF but only checkpoints with more than this many likes.
export const MIN_RECOMMENDED_CHECKPOINT_LIKES = 30;
diff --git a/studio/frontend/src/features/hub/lib/view-models.ts b/studio/frontend/src/features/hub/lib/view-models.ts
index 6dcd11216c1..00ed84cfbe2 100644
--- a/studio/frontend/src/features/hub/lib/view-models.ts
+++ b/studio/frontend/src/features/hub/lib/view-models.ts
@@ -29,6 +29,7 @@ export {
isUnslothFinetunable,
matchesFormat,
matchesRecommended,
+ matchesRecommendedDiffusion,
} from "./format-filters";
export {
formatLocalUpdated,
diff --git a/studio/frontend/tests/hub-recommended-format.test.ts b/studio/frontend/tests/hub-recommended-format.test.ts
index a9cb892dd81..4a017750126 100644
--- a/studio/frontend/tests/hub-recommended-format.test.ts
+++ b/studio/frontend/tests/hub-recommended-format.test.ts
@@ -9,6 +9,7 @@ import {
hasRecommendedCheckpointLikes,
matchesFormat,
matchesRecommended,
+ matchesRecommendedDiffusion,
} from "../src/features/hub/lib/format-filters.ts";
import { readSrcAsync } from "./helpers/kit.ts";
@@ -90,11 +91,34 @@ test("Recommended browsing lists checkpoints only past 30 likes", async () => {
const page = await readSrcAsync("features/hub/hub-page.tsx");
assert.match(
page,
- /effectiveDiscoverFormat !== "recommended" \|\|\s*hasQuery \|\|\s*hasRecommendedCheckpointLikes\(row\.result\)/,
+ /effectiveDiscoverFormat !== "recommended" \|\|\s*hasQuery \|\|\s*isDiffusionRow\(row\) \|\|\s*hasRecommendedCheckpointLikes\(row\.result\)/,
);
assert.match(
page,
- /matchesFormat\(row\.result\.isGguf, "gguf"\)\)[\s\S]{0,200}\.filter\(\(row\) => hasRecommendedCheckpointLikes\(row\.result\)\)/,
+ /matchesFormat\(row\.result\.isGguf, "gguf"\)\)[\s\S]{0,200}\.filter\(\s*\(row\) => isDiffusionRow\(row\) \|\| hasRecommendedCheckpointLikes\(row\.result\),?\s*\)/,
+ );
+});
+
+test("image and video models skip the likes rules and list full-precision checkpoints", async () => {
+ // FLUX.3 klein: a 23-like GGUF with no provider logo, and its BF16 diffusers repo.
+ const fluxBf16 = { id: "unsloth/flux-3-image-klein", isGguf: false };
+ assert.equal(matchesRecommendedDiffusion(fluxBf16, []), true);
+ assert.equal(matchesRecommended(fluxBf16, []), false);
+ assert.equal(
+ matchesRecommendedDiffusion(
+ { id: "unsloth/flux-3-image-klein-GGUF", isGguf: true },
+ [],
+ ),
+ true,
+ );
+ // Quantized checkpoints still need a GPU that runs them natively.
+ const fluxFp8 = { id: "unsloth/flux-3-image-klein-FP8", isGguf: false };
+ assert.equal(matchesRecommendedDiffusion(fluxFp8, []), false);
+ assert.equal(matchesRecommendedDiffusion(fluxFp8, ["fp8"]), true);
+ const page = await readSrcAsync("features/hub/hub-page.tsx");
+ assert.match(
+ page,
+ /isDiffusionRow\(row\)\s*\?\s*matchesRecommendedDiffusion\(row\.result, diffusionQuantFormats\)\s*:\s*matchesRecommended\(row\.result, checkpointQuantFormats\)/,
);
});
@@ -108,7 +132,7 @@ test("the likes threshold only curates Recommended, and Recommended is the defau
const page = await readSrcAsync("features/hub/hub-page.tsx");
assert.match(
page,
- /effectiveDiscoverFormat !== "recommended" \|\|\s*hasQuery \|\|\s*resolveOwnerProviderLogo/,
+ /effectiveDiscoverFormat !== "recommended" \|\|\s*hasQuery \|\|\s*isDiffusionRow\(row\) \|\|\s*resolveOwnerProviderLogo/,
);
assert.doesNotMatch(page, /preset\?\.format \?\? "gguf"/);
const channels = await readSrcAsync("features/hub/lib/channels.ts");