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 Hugging Face address on hover for Hub and online model rows (#6382) (#6928)

Daniel Hanf1a2621631d3
diff --git a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
index 9890c5f5746..ff0351883d0 100644
--- a/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
+++ b/studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx
@@ -393,6 +393,7 @@ function ModelRow({
vramEst,
gpuGb,
tooltipText,
+ hubUrl,
optionProps,
onArrowDownIntoChildren,
capabilities,
@@ -409,6 +410,10 @@ function ModelRow({
vramEst?: number;
gpuGb?: number;
tooltipText?: ReactNode;
+ /** Hugging Face address (e.g. "huggingface.co/owner/name") for online/Hub
+ * rows; surfaced on hover so their repo id / URL is discoverable the same
+ * way local rows show an on-disk path. Omit to show no address line. */
+ hubUrl?: string;
optionProps?: ModelRowOptionProps;
onArrowDownIntoChildren?: () => boolean;
/** Capability override (HF rows have tags); falls back to name detection. */
@@ -546,30 +551,41 @@ function ModelRow({
</button>
);
- if (vramTooltipText) {
- return (
- <Tooltip>
- <TooltipTrigger asChild={true}>{content}</TooltipTrigger>
- <TooltipContent
- side="left"
- className="tooltip-compact max-w-xs break-all"
- >
- {label}
- <span className="block text-[10px] mt-1">{vramTooltipText}</span>
- </TooltipContent>
- </Tooltip>
- );
- }
+ // Optional Hugging Face address line for online/Hub rows, rendered under
+ // whichever tooltip shows so the repo id / URL is always visible on hover.
+ const hubUrlLine = hubUrl ? (
+ <span className="block mt-1 text-[10px] text-muted-foreground break-all">
+ {hubUrl}
+ </span>
+ ) : null;
- if (tooltipText) {
+ const tooltipBody = vramTooltipText ? (
+ <>
+ {label}
+ <span className="block text-[10px] mt-1">{vramTooltipText}</span>
+ {hubUrlLine}
+ </>
+ ) : tooltipText ? (
+ <>
+ {tooltipText}
+ {hubUrlLine}
+ </>
+ ) : hubUrl ? (
+ <>
+ <span className="block break-words">{label}</span>
+ {hubUrlLine}
+ </>
+ ) : null;
+
+ if (tooltipBody) {
return (
- <Tooltip>
+ <Tooltip delayDuration={700}>
<TooltipTrigger asChild={true}>{content}</TooltipTrigger>
<TooltipContent
side="left"
className="tooltip-compact max-w-xs break-all"
>
- {tooltipText}
+ {tooltipBody}
</TooltipContent>
</Tooltip>
);
@@ -1193,6 +1209,13 @@ function localPathTooltip(name: string, path: string): ReactNode {
);
}
+/** Hugging Face address for an online/Hub row, or undefined when the repo id is
+ * missing so the row shows no (empty) address line on hover. */
+function hubRepoUrl(id: string | null | undefined): string | undefined {
+ const trimmed = id?.trim();
+ return trimmed ? `huggingface.co/${trimmed}` : undefined;
+}
+
/** Whether a local model is an MLX build (name hint). MLX runs on Mac only, so
* callers gate visibility on the host being a Mac. */
function localModelIsMlx(m: LocalModelInfo): boolean {
@@ -2462,6 +2485,7 @@ export function HubModelPicker({
<div className="min-w-0 flex-1">
<ModelRow
label={c.repo_id}
+ tooltipText={localPathTooltip(c.repo_id, c.cache_path)}
meta="GGUF"
showVision={c.has_vision ?? visionByRepo[c.repo_id]}
selected={isSelected}
@@ -2518,6 +2542,7 @@ export function HubModelPicker({
<div className="min-w-0 flex-1">
<ModelRow
label={c.repo_id}
+ hubUrl={hubRepoUrl(c.repo_id)}
meta={`${isMlxId(c.repo_id) ? "MLX" : "Safetensors"} · ${formatBytes(
c.size_bytes,
)}`}
@@ -3378,6 +3403,7 @@ export function HubModelPicker({
<div key={id}>
<ModelRow
label={id}
+ hubUrl={hubRepoUrl(id)}
hideOwner={true}
downloaded={downloadedSet.has(id.toLowerCase())}
capabilities={capsById.get(id)}
@@ -3463,6 +3489,7 @@ export function HubModelPicker({
<div key={id}>
<ModelRow
label={id}
+ hubUrl={hubRepoUrl(id)}
capabilities={capsById.get(id)}
meta={
isKnownGgufRepo(id)
@@ -3545,6 +3572,7 @@ export function HubModelPicker({
<div key={id}>
<ModelRow
label={id}
+ hubUrl={hubRepoUrl(id)}
capabilities={capsById.get(id)}
meta={
isSearchGguf