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
Studio: name media companion downloads by component, and show what Run still fetches for an on-device GGUF (#13027)
Daniel Han345ff9ab9447
diff --git a/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx b/studio/frontend/src/features/hub/catalog/gguf-download-card.tsxindex cf85a921796..d402a788b52 100644--- a/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx+++ b/studio/frontend/src/features/hub/catalog/gguf-download-card.tsx@@ -263,25 +263,31 @@ interface GgufVariantMenuItem {footprint: GgufVariantFootprint | null;}-/** Model plus uncached companion size, with the breakdown on hover. */+/** Model plus uncached companion size, with the breakdown on hover; on disk, only what Run still fetches. */function GgufVariantSizeLabel({label,footprint,+ downloaded = false,}: {label: string;footprint: GgufVariantFootprint | null;+ downloaded?: boolean;}) {if (!footprint) return <>{label}</>;+ const companion = formatFootprintBytes(footprint.companionBytes);return (<Tooltip delayDuration={0}><TooltipTrigger asChild={true}><spandata-model-download-footprint={true}+ data-model-needs-required-assets={downloaded || undefined}className="inline-flex items-center gap-1">- {formatFootprintBytes(- footprint.checkpointBytes + footprint.companionBytes,- )}+ {downloaded+ ? `${companion} more to run`+ : formatFootprintBytes(+ footprint.checkpointBytes + footprint.companionBytes,+ )}{/* Align the icon with the digits. */}<HugeiconsIconicon={HelpCircleIcon}@@ -293,11 +299,13 @@ function GgufVariantSizeLabel({</TooltipTrigger><TooltipContent side="top" className="tooltip-compact"><span className="font-medium">- {formatFootprintBytes(footprint.checkpointBytes)} model +{" "}- {formatFootprintBytes(footprint.companionBytes)} required assets+ {formatFootprintBytes(footprint.checkpointBytes)} model+ {downloaded ? " on device" : ""} + {companion} required assets</span><span className="ml-1 text-muted-foreground">- · assets download on Run+ {downloaded+ ? "· assets download on Run, once, shared across compatible variants"+ : "· assets download on Run"}</span></TooltipContent></Tooltip>@@ -624,6 +632,7 @@ const GgufVariantMenuRow = memo(function GgufVariantMenuRow({<GgufVariantSizeLabellabel={item.downloadSizeLabel}footprint={item.footprint}+ downloaded={item.downloaded}/></span>{/* Options only apply to files on disk; placeholder keeps the size@@ -1232,6 +1241,7 @@ export function GgufDownloadCard({<GgufVariantSizeLabellabel={selectedDownloadSizeLabel}footprint={selectedFootprint}+ downloaded={Boolean(selected.downloaded)}/></span>)}diff --git a/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsx b/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsxindex 27a2371b37c..235eba8d1d6 100644--- a/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsx+++ b/studio/frontend/src/features/hub/download-manager/download-manager-panel.tsx@@ -86,22 +86,31 @@ function repoLabel(repoId: string): string {return isAudioCppFolderId(repoId) ? audioCppDisplayName(repoId) : repoId;}+function isRequiredAssetJob(job: ManagedDownload): boolean {+ if (!job.variant?.startsWith("@")) return false;+ // The staging page tagged the entry it picked, which is the only reliable answer: a checkpoint+ // can be a curated single .safetensors and companion repos carry .safetensors too, so the+ // extension decides nothing. The old guess stays for jobs persisted before the flag existed,+ // which would otherwise change label mid-download after a restart.+ const isModelFile =+ job.checkpoint ??+ job.scopedFiles?.some((file) => file.toLowerCase().endsWith(".gguf"));+ return !isModelFile;+}++// Only staged media picks set checkpoint=false; other scoped jobs (Decision API model) carry no flag.+const REQUIRED_ASSET_NOTE =+ "Required to run this model. Downloaded once, shared across compatible variants.";+function variantSuffix(job: ManagedDownload): string {if (job.variant?.startsWith("@")) {- // The staging page tagged the entry it picked, which is the only reliable answer: a checkpoint- // can be a curated single .safetensors and companion repos carry .safetensors too, so the- // extension decides nothing. The old guess stays for jobs persisted before the flag existed,- // which would otherwise change label mid-download after a restart.- const isModelFile =- job.checkpoint ??- job.scopedFiles?.some((file) => file.toLowerCase().endsWith(".gguf"));return ` · ${- isModelFile- ? "Model file"- : assetLabel(+ isRequiredAssetJob(job)+ ? assetLabel({ repoId: job.repoId, files: job.scopedFiles, bytes: 0 },"Required assets",)+ : "Model file"}`;}return job.variant ? ` · ${job.variant}` : "";@@ -194,6 +203,10 @@ function DownloadRow({ jobKey }: { jobKey: string }) {<div className="truncate text-ui-10p5 text-muted-foreground">{job.presentation.filename}</div>+ ) : isRequiredAssetJob(job) && job.checkpoint === false ? (+ <div className="text-ui-10p5 text-muted-foreground">+ {REQUIRED_ASSET_NOTE}+ </div>) : null}{active ? (<DownloadProgressBar@@ -306,7 +319,7 @@ export function DownloadManagerPanel({))}{queued.map((entry, i) => <li key={`${entry.planId}:${i}`} className="flex flex-col gap-1.5 py-2.5 pl-4 pr-3"><span className="truncate text-ui-12p5 font-medium">{entry.repoId}<span className="text-muted-foreground"> · {entry.checkpoint !== false ? "Model file" : assetLabel(entry, "Required assets")}</span></span>- <span className="text-ui-11 text-muted-foreground">Queued</span>+ <span className="text-ui-11 text-muted-foreground">{entry.checkpoint !== false ? "Queued" : `Queued · ${REQUIRED_ASSET_NOTE}`}</span></li>)}</ul></div>diff --git a/studio/frontend/tests/companion-asset-labels.test.ts b/studio/frontend/tests/companion-asset-labels.test.tsnew file mode 100644index 00000000000..5108919a8da--- /dev/null+++ b/studio/frontend/tests/companion-asset-labels.test.ts@@ -0,0 +1,36 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++// Companion downloads say why they are needed; an on-disk quant shows only what Run still fetches.++import assert from "node:assert/strict";+import test from "node:test";++import { readSrc } from "./helpers/kit.ts";++test("companion rows in the downloads panel say they are a one-time requirement", () => {+ const panel = readSrc(+ "features/hub/download-manager/download-manager-panel.tsx",+ );+ assert.match(panel, /Downloaded once, shared across compatible variants/);+ assert.match(+ panel,+ /: isRequiredAssetJob\(job\) && job\.checkpoint === false \? \(/,+ );+ assert.match(panel, /isRequiredAssetJob\(job\)\s*\? assetLabel\(/);+ assert.match(+ panel,+ /entry\.checkpoint !== false \? "Queued" : `Queued · \$\{REQUIRED_ASSET_NOTE\}`/,+ );+});++test("a downloaded quant with missing assets shows what Run still fetches", () => {+ const card = readSrc("features/hub/catalog/gguf-download-card.tsx");+ assert.match(card, /`\$\{companion\} more to run`/);+ assert.match(card, /downloaded=\{item\.downloaded\}/);+ assert.match(card, /downloaded=\{Boolean\(selected\.downloaded\)\}/);+ assert.match(+ card,+ /data-model-needs-required-assets=\{downloaded \|\| undefined\}/,+ );+});diff --git a/tests/studio/test_model_picker_contracts.py b/tests/studio/test_model_picker_contracts.pyindex 859003c500f..d45bcfdb6ff 100644--- a/tests/studio/test_model_picker_contracts.py+++ b/tests/studio/test_model_picker_contracts.py@@ -2186,8 +2186,8 @@ def test_staged_plans_label_the_checkpoint_without_guessing_from_the_extension()assert "{ checkpoint: job.checkpoint }" in statepanel = _read("features/hub/download-manager/download-manager-panel.tsx")- suffix = re.search(r"function variantSuffix\(.*?\n\}", panel, re.S)- assert suffix, "variantSuffix not found"+ suffix = re.search(r"function isRequiredAssetJob\(.*?\n\}", panel, re.S)+ assert suffix, "isRequiredAssetJob not found"body = suffix.group(0)assert "job.checkpoint ??" in body, "the label ignores the flag the plan carried"# The .gguf guess may only survive as the fallback for jobs persisted before the flag.