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: keep the VRAM figure visible on the Run preview hardware row (#12545)

Leo Borcherding1fb1c9ad2d60
diff --git a/studio/frontend/src/features/studio/wizard/run-preview-card.tsx b/studio/frontend/src/features/studio/wizard/run-preview-card.tsx
index c76bdd1b90a..6f6284939bb 100644
--- a/studio/frontend/src/features/studio/wizard/run-preview-card.tsx
+++ b/studio/frontend/src/features/studio/wizard/run-preview-card.tsx
@@ -60,10 +60,14 @@ function MetaRow({
label,
value,
mono,
+ title,
+ wrap,
}: {
label: string;
value: ReactNode;
mono?: boolean;
+ title?: string;
+ wrap?: boolean;
}): ReactElement {
return (
<div className="flex items-baseline justify-between gap-3">
@@ -72,9 +76,11 @@ function MetaRow({
</span>
<span
className={cn(
- "min-w-0 truncate text-ui-12p5 text-foreground/90",
+ "min-w-0 text-ui-12p5 text-foreground/90",
+ wrap ? "break-words text-right" : "truncate",
mono && "font-mono text-ui-12",
)}
+ title={title}
>
{value}
</span>
@@ -511,12 +517,16 @@ export function RunPreviewCard({
<section className="flex flex-col gap-3">
<MetaRow
label={t("studio.preview.hardware")}
- value={
- gpu.available
- ? `${gpu.name} · ${gpu.memoryTotalGb} GiB`
- : t("studio.preview.noGpu")
- }
+ wrap
+ value={gpu.available ? gpu.name : t("studio.preview.noGpu")}
/>
+ {gpu.available && (
+ <MetaRow
+ label={t("studio.preview.vram")}
+ title={`${gpu.memoryTotalGb} GiB`}
+ value={`${Math.round(gpu.memoryTotalGb)} GiB`}
+ />
+ )}
<MetaRow
label={t("studio.preview.hfToken")}
value={
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index 2a9982b3198..275fdf819da 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -2455,6 +2455,7 @@ export const ar = {
context: "السياق",
lr: "معدل التعلّم",
hardware: "الأجهزة",
+ vram: "VRAM",
noGpu: "لم يتم اكتشاف GPU",
hfToken: "توكن HF",
saved: "محفوظ",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index 7b3a9468e07..edae84c5fd3 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -2503,6 +2503,7 @@ export const de = {
context: "Kontext",
lr: "LR",
hardware: "Hardware",
+ vram: "VRAM",
noGpu: "Keine GPU erkannt",
hfToken: "HF-Token",
saved: "Gespeichert",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index 14df2fb56fe..fc04139ba9a 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -2486,6 +2486,7 @@ export const en = {
context: "Context",
lr: "LR",
hardware: "Hardware",
+ vram: "VRAM",
noGpu: "No GPU detected",
hfToken: "HF token",
saved: "Saved",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index d8acb17c0a7..15002e93d5b 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -2494,6 +2494,7 @@ export const es = {
context: "Contexto",
lr: "LR",
hardware: "Hardware",
+ vram: "VRAM",
noGpu: "No se detectó ninguna GPU",
hfToken: "Token de HF",
saved: "Guardado",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index 3fd07e3e558..715685fec69 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -2505,6 +2505,7 @@ export const fr = {
context: "Contexte",
lr: "LR",
hardware: "Matériel",
+ vram: "VRAM",
noGpu: "Aucun GPU détecté",
hfToken: "Token HF",
saved: "Enregistré",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index c0f97102c3b..2ad6bf118fc 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -2462,6 +2462,7 @@ export const hi = {
context: "कॉन्टेक्स्ट",
lr: "LR",
hardware: "हार्डवेयर",
+ vram: "VRAM",
noGpu: "कोई GPU नहीं मिला",
hfToken: "HF टोकन",
saved: "सहेजा गया",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index 5a7e429ec35..d8b374b4f95 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -2504,6 +2504,7 @@ export const it = {
context: "Contesto",
lr: "LR",
hardware: "Hardware",
+ vram: "VRAM",
noGpu: "Nessuna GPU rilevata",
hfToken: "Token HF",
saved: "Salvato",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index fa6f478bccd..b6700b8250d 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -2421,6 +2421,7 @@ export const ja = {
context: "コンテキスト",
lr: "LR",
hardware: "ハードウェア",
+ vram: "VRAM",
noGpu: "GPU が検出されませんでした",
hfToken: "HF トークン",
saved: "保存済み",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index b4f9d60400a..684d52d6c6b 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -2448,6 +2448,7 @@ export const ko = {
context: "컨텍스트",
lr: "LR",
hardware: "하드웨어",
+ vram: "VRAM",
noGpu: "GPU가 감지되지 않았습니다",
hfToken: "HF 토큰",
saved: "저장됨",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index 8a5df4b17e7..500eb4b4847 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -2475,6 +2475,7 @@ export const ptBR = {
context: "Contexto",
lr: "LR",
hardware: "Hardware",
+ vram: "VRAM",
noGpu: "Nenhuma GPU detectada",
hfToken: "Token do HF",
saved: "Salvo",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index 1aff59f13cb..34f22e9374c 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -2472,6 +2472,7 @@ export const ru = {
context: "Контекст",
lr: "LR",
hardware: "Оборудование",
+ vram: "VRAM",
noGpu: "GPU не обнаружен",
hfToken: "Токен HF",
saved: "Сохранён",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index 5908d314773..156cb303a51 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -2398,6 +2398,7 @@ export const zhCN = {
context: "上下文",
lr: "LR",
hardware: "硬件",
+ vram: "VRAM",
noGpu: "未检测到 GPU",
hfToken: "HF token",
saved: "已保存",
diff --git a/studio/frontend/tests/run-preview-vram-row.test.ts b/studio/frontend/tests/run-preview-vram-row.test.ts
new file mode 100644
index 00000000000..8be51953052
--- /dev/null
+++ b/studio/frontend/tests/run-preview-vram-row.test.ts
@@ -0,0 +1,35 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+/**
+ * The Run preview Hardware row truncates, so a long GPU name used to cut off the
+ * VRAM figure appended to it ("AMD Radeon AI PRO R9700 · 31.86 …"). VRAM gets its
+ * own row; this pins that it is not folded back into the name.
+ */
+
+import assert from "node:assert/strict";
+import { readFileSync } from "node:fs";
+import test from "node:test";
+
+const source = readFileSync(
+ new URL("../src/features/studio/wizard/run-preview-card.tsx", import.meta.url),
+ "utf8",
+);
+
+function metaRow(labelKey: string): string {
+ const start = source.indexOf(`label={t("${labelKey}")}`);
+ assert.ok(start >= 0, `no MetaRow labelled ${labelKey}`);
+ return source.slice(start, source.indexOf("/>", start));
+}
+
+test("Hardware row carries the GPU name only, and wraps", () => {
+ const row = metaRow("studio.preview.hardware");
+ assert.doesNotMatch(row, /memoryTotalGb/);
+ assert.match(row, /\bwrap\b/);
+});
+
+test("VRAM has its own rounded row with the exact value on hover", () => {
+ const row = metaRow("studio.preview.vram");
+ assert.match(row, /Math\.round\(gpu\.memoryTotalGb\)\} GiB/);
+ assert.match(row, /title=\{`\$\{gpu\.memoryTotalGb\} GiB`\}/);
+});