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.

Model picker: show row actions on collapsed quant rows and align the GGUF tag (#7745)

Michael Han6c601587d517
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
index f1bad51550d..8648e51ca71 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
@@ -3084,51 +3084,49 @@ export function HubModelPicker({
className={downloadedRowButtonClassName}
/>
</div>
- <span className="mr-1 flex shrink-0 items-center opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 group-focus-within:opacity-100">
- {onConfigure && (
- <ModelLoadSettingsAction
- ariaLabel={`Inference settings for ${c.repo_id} ${variant.quant}`}
- onConfigure={() => onConfigure(c.repo_id, selectMeta)}
- />
- )}
- <ModelRowMenu
- ariaLabel={`More options for ${c.repo_id} ${variant.quant}`}
- iconClassName="size-3"
- cachePath={{ repoId: c.repo_id, variant: variant.quant }}
- pin={{
- pinned: isPinned,
- pinLabel: "Pin to top",
- unpinLabel: "Unpin",
- onToggle: () => togglePinned(c.repo_id, variant.quant),
- }}
- del={{
- title: "Delete cached model?",
- description: (
- <>
- This will remove{" "}
- <span className="font-medium text-foreground">
- {c.repo_id} ({variant.quant})
- </span>{" "}
- from disk. You can re-download it later.
- </>
- ),
- successMessage: `Deleted ${c.repo_id} ${variant.quant}`,
- disabled: deleteDisabled,
- onConfirm: async () => {
- await deleteCachedModel(
- c.repo_id,
- variant.quant,
- hfToken || undefined,
- c.cache_path || undefined,
- );
- // The file is gone, so drop its pin too.
- if (isPinned) togglePinned(c.repo_id, variant.quant);
- prunePinnedQuantValidation(c.repo_id, variant.quant);
- refreshCachedLists();
- },
- }}
+ {onConfigure && (
+ <ModelLoadSettingsAction
+ ariaLabel={`Inference settings for ${c.repo_id} ${variant.quant}`}
+ onConfigure={() => onConfigure(c.repo_id, selectMeta)}
/>
- </span>
+ )}
+ <ModelRowMenu
+ ariaLabel={`More options for ${c.repo_id} ${variant.quant}`}
+ buttonClassName="mr-1"
+ cachePath={{ repoId: c.repo_id, variant: variant.quant }}
+ pin={{
+ pinned: isPinned,
+ pinLabel: "Pin to top",
+ unpinLabel: "Unpin",
+ onToggle: () => togglePinned(c.repo_id, variant.quant),
+ }}
+ del={{
+ title: "Delete cached model?",
+ description: (
+ <>
+ This will remove{" "}
+ <span className="font-medium text-foreground">
+ {c.repo_id} ({variant.quant})
+ </span>{" "}
+ from disk. You can re-download it later.
+ </>
+ ),
+ successMessage: `Deleted ${c.repo_id} ${variant.quant}`,
+ disabled: deleteDisabled,
+ onConfirm: async () => {
+ await deleteCachedModel(
+ c.repo_id,
+ variant.quant,
+ hfToken || undefined,
+ c.cache_path || undefined,
+ );
+ // The file is gone, so drop its pin too.
+ if (isPinned) togglePinned(c.repo_id, variant.quant);
+ prunePinnedQuantValidation(c.repo_id, variant.quant);
+ refreshCachedLists();
+ },
+ }}
+ />
</div>
);
};
@@ -3173,7 +3171,8 @@ export function HubModelPicker({
className={downloadedRowButtonClassName}
/>
</div>
- <span aria-hidden="true" className="mr-1 h-6 w-[26px] shrink-0" />
+ {/* Stands in for the other rows' buttons, so the tags line up. */}
+ <span aria-hidden="true" className="mr-1 h-6 w-[42px] shrink-0" />
</div>
{expanderOpen && (
<GgufVariantExpander