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: upgrade a Desktop Chat only install to the full install from Settings (#14593)
oobabooga625ccedb29cc
diff --git a/studio/backend/main.py b/studio/backend/main.pyindex 24036b14314..9008075e9a6 100644--- a/studio/backend/main.py+++ b/studio/backend/main.py@@ -2376,7 +2376,7 @@ async def health_check(request: Request):# because it is all-or-nothing: without it the greyed-out Train row can only say "run `unsloth studio# update`". From the snapshot, so it cannot come from a different detection pass than the reason beside it.authed["chat_only_detail"] = snapshot[2]- # A closed AMD device node (#14067): Repair installation cannot fix group membership.+ # Why the repair cannot enable Train: a closed AMD device node (#14067), or a --no-torch Mac the MLX wheels skip.try:authed["chat_only_hint"] = (_hw_module.chat_only_permission_hint(snapshot[1], snapshot[2])diff --git a/studio/backend/tests/test_chat_only_reason.py b/studio/backend/tests/test_chat_only_reason.pyindex 4f57be92409..b81c6b64232 100644--- a/studio/backend/tests/test_chat_only_reason.py+++ b/studio/backend/tests/test_chat_only_reason.py@@ -26,6 +26,7 @@ def _no_torch(monkeypatch):# not depend on which venv runs these tests.monkeypatch.setattr(hw, "_installed_without_torch", lambda: False)monkeypatch.setattr(hw, "_NO_TORCH_SETTLED_EPOCH", None)+ monkeypatch.setattr(hw, "_CHAT_ONLY_HINT", None)# detect_hardware sets these globals directly; restore them so they do not leak.saved = (hw.DEVICE, hw.CHAT_ONLY, hw.CHAT_ONLY_REASON, hw.IS_ROCM)try:@@ -67,17 +68,100 @@ def _no_torch_apple_silicon(monkeypatch, *, mlx_on_disk: bool):monkeypatch.setattr(hw, "_has_usable_mlx_stack", lambda: False)-def test_a_no_torch_install_off_mac_is_off_by_request_not_missing_a_gpu(monkeypatch):- # A chat-only Windows / Linux install on a GPU host: "needs an NVIDIA or AMD GPU" is wrong.+_NVIDIA_CARD = {"vendor": "nvidia", "index": 0, "name": "NVIDIA GeForce RTX 4090"}+_INTEL_IGPU = {"vendor": "intel", "index": 0, "name": "Intel(R) UHD Graphics 770"}+_INTEL_ARC = {"vendor": "intel", "index": 1, "name": "Intel(R) Arc(TM) A770 Graphics"}+++def _no_torch_off_mac(+ monkeypatch,+ *,+ devices,+ unknown = False,+):monkeypatch.setattr(hw, "is_apple_silicon", lambda: False)monkeypatch.setattr(hw.platform, "system", lambda: "Windows")monkeypatch.setattr(hw, "_installed_without_torch", lambda: True)+ monkeypatch.setattr(+ hw,+ "get_physical_gpu_inventory",+ lambda **_: {+ "available": bool(devices),+ "devices": devices,+ "sources": [],+ "unknown": unknown,+ },+ )+ # Pinned: the test host's own torch and install record must not vouch for an Intel iGPU.+ monkeypatch.setattr(hw, "_expected_xpu_flavor_was_chosen", lambda: False)+ monkeypatch.setattr(hw, "_torch_reports_an_xpu_runtime", lambda: False)+ # An emptied mask on the test host (CUDA_VISIBLE_DEVICES="") would hide the card.+ for var in (+ "CUDA_VISIBLE_DEVICES",+ "HIP_VISIBLE_DEVICES",+ "ROCR_VISIBLE_DEVICES",+ "ZE_AFFINITY_MASK",+ ):+ monkeypatch.delenv(var, raising = False)+++def test_a_no_torch_install_off_mac_is_off_by_request_not_missing_a_gpu(monkeypatch):+ # A chat-only Windows / Linux install on a GPU host: "needs an NVIDIA or AMD GPU" is wrong.+ _no_torch_off_mac(monkeypatch, devices = [_NVIDIA_CARD])assert hw.detect_hardware() == hw.DeviceType.CPUassert hw.CHAT_ONLY is Trueassert hw.CHAT_ONLY_REASON == "no_torch"assert hw.current_chat_only_verdict() == ("no_torch", None)[email protected]("devices", [[], [_INTEL_IGPU]], ids = ["no-gpu", "intel-igpu"])+def test_a_no_torch_install_without_a_trainable_gpu_stays_no_gpu(monkeypatch, devices):+ # no_torch offers a multi-GB install that cannot enable Train here.+ _no_torch_off_mac(monkeypatch, devices = devices)+ hw.detect_hardware()+ assert hw.CHAT_ONLY is True+ assert hw.CHAT_ONLY_REASON == "no_gpu"+ assert hw.current_chat_only_verdict() == ("no_gpu", None)+++def test_a_no_torch_install_whose_inventory_cannot_answer_keeps_no_torch(monkeypatch):+ # A probe that timed out is not "no GPU".+ _no_torch_off_mac(monkeypatch, devices = [], unknown = True)+ hw.detect_hardware()+ assert hw.CHAT_ONLY_REASON == "no_torch"+++_AMD_CARD = {"vendor": "amd", "index": 0, "name": "AMD Radeon RX 7900 XTX", "gfx": "gfx1100"}+++ "devices, nodes_closed, hinted",+ [+ ([_AMD_CARD], True, True),+ ([_AMD_CARD], False, False),+ ([_AMD_CARD, _NVIDIA_CARD], True, False),+ ([_AMD_CARD, _INTEL_ARC], True, True),+ ],+ ids = ["amd-closed-nodes", "amd-open-nodes", "amd-closed-beside-nvidia", "amd-closed-beside-arc"],+)+def test_a_no_torch_amd_host_behind_closed_nodes_gets_no_full_install_offer(+ monkeypatch, devices, nodes_closed, hinted+):+ # The full install would restart into torch_cuda_unavailable: no reinstall opens /dev/kfd (#14067).+ import utils.hardware.amd as amd++ _no_torch_off_mac(monkeypatch, devices = devices)+ monkeypatch.setattr(hw, "_amd_device_can_establish_a_mismatch", lambda _device: True)+ monkeypatch.setattr(amd, "amd_closed_nodes_block_the_runtime", lambda **_: nodes_closed)+ monkeypatch.setattr(+ amd, "amd_node_permission_hint", lambda **_: "Add this user to the render group."+ )+ hw.detect_hardware()+ assert hw.CHAT_ONLY_REASON == "no_torch"+ expected = "Add this user to the render group." if hinted else None+ assert hw.chat_only_permission_hint("no_torch", None) == expected++def test_a_torch_install_off_mac_without_an_accelerator_stays_no_gpu(monkeypatch):monkeypatch.setattr(hw, "is_apple_silicon", lambda: False)monkeypatch.setattr(hw.platform, "system", lambda: "Linux")@@ -93,6 +177,45 @@ def test_apple_silicon_no_torch_install_without_mlx_is_off_by_request(monkeypatcassert hw.CHAT_ONLY_DETAIL is None+ "release, min_python, blocker",+ [+ ("15.1", (3, 10), None),+ ("13.6.1", (3, 10), "macOS 14 or later"),+ # install_python_stack reads it as too old.+ ("", (3, 10), "macOS 14 or later"),+ ("14.5", (99, 0), "Python 99.0 or later"),+ ],+ ids = ["macos-15", "macos-13", "macos-unreadable", "python-too-old"],+)+def test_a_no_torch_mac_the_mlx_wheels_skip_gets_no_full_install_offer(+ monkeypatch, release, min_python, blocker+):+ # The installer skips MLX there. The hint withholds the offer; the reason stays no_torch.+ _no_torch_apple_silicon(monkeypatch, mlx_on_disk = False)+ monkeypatch.setattr(hw.platform, "mac_ver", lambda: (release, ("", "", ""), ""))+ monkeypatch.setattr(hw, "_MLX_MIN_PYTHON", min_python)+ monkeypatch.setattr(hw, "get_device", lambda: hw.DeviceType.CPU)+ monkeypatch.setattr(hw, "current_chat_only_verdict", lambda: ("no_torch", None))+ hw.detect_hardware()+ assert hw.CHAT_ONLY_REASON == "no_torch"+ hint = hw.chat_only_permission_hint("no_torch", None)+ message = hw.export_capability()["export_unsupported_message"]+ if blocker is None:+ assert hint is None+ assert "--no-torch" in message+ else:+ assert hint == f"Training on this Mac needs MLX, which requires {blocker}."+ assert message == f"Export on this Mac needs MLX, which requires {blocker}."+++def test_an_old_macos_hint_is_for_apple_silicon_only(monkeypatch):+ # Off Mac, mac_ver() is empty, which reads as too old.+ monkeypatch.setattr(hw, "is_apple_silicon", lambda: False)+ monkeypatch.setattr(hw.platform, "mac_ver", lambda: ("", ("", "", ""), ""))+ assert hw.chat_only_permission_hint("no_torch", None) is None++def test_apple_silicon_no_torch_install_with_mlx_on_disk_waits_for_the_probe(monkeypatch):# A hand-installed stack can lose the warm's import race and recover; keep polling._no_torch_apple_silicon(monkeypatch, mlx_on_disk = True)diff --git a/studio/backend/tests/test_export_capability.py b/studio/backend/tests/test_export_capability.pyindex 7e08dd78b62..de379d2ba87 100644--- a/studio/backend/tests/test_export_capability.py+++ b/studio/backend/tests/test_export_capability.py@@ -95,6 +95,7 @@ def test_apple_without_mlx_reports_mlx_unavailable(monkeypatch):def test_apple_no_torch_install_reports_no_torch(monkeypatch):_patch(monkeypatch, torch = False, device = hw.DeviceType.CPU, apple = True)+ monkeypatch.setattr(hw.platform, "mac_ver", lambda: ("14.5", ("", "", ""), ""))monkeypatch.setattr(hw, "current_chat_only_verdict", lambda: ("no_torch", None))cap = hw.export_capability()assert cap["export_supported"] is Falsediff --git a/studio/backend/utils/hardware/hardware.py b/studio/backend/utils/hardware/hardware.pyindex d63acb30904..07945e250ed 100644--- a/studio/backend/utils/hardware/hardware.py+++ b/studio/backend/utils/hardware/hardware.py@@ -48,7 +48,7 @@ class DeviceType(str, Enum):DEVICE: Optional[DeviceType] = NoneCHAT_ONLY: bool = True # No CUDA GPU -> GGUF chat only (Mac, CPU-only, etc.)-# Why CHAT_ONLY is True; None when training is enabled. "mlx_unavailable": Apple Silicon with a missing, too old or broken MLX stack, published at once when no mlx is on disk while a present but unusable one waits for the post-warm probe, so a stack that only lost the warm's import race is still overturned; "no_torch": Apple Silicon installed --no-torch, GGUF-only by request, which `unsloth studio update` cannot change; "rosetta": an x86_64 Python on Apple Silicon; "intel_mac"; "no_gpu": CPU-only non-Mac; "torch_cpu_build" / "torch_cuda_unavailable" (see classify_torch_build()): the host HAS GPUs this PyTorch cannot use, which must not read as "no_gpu", since the fix is repairing the install, not buying a GPU.+# Why CHAT_ONLY is True; None when training is enabled. "mlx_unavailable": Apple Silicon with a missing, too old or broken MLX stack, published at once when no mlx is on disk while a present but unusable one waits for the post-warm probe, so a stack that only lost the warm's import race is still overturned; "no_torch": installed --no-torch on Apple Silicon, or on a host whose GPU inventory shows a card a PyTorch GPU build could use, GGUF-only by request, which `unsloth studio update` cannot change; "rosetta": an x86_64 Python on Apple Silicon; "intel_mac"; "no_gpu": CPU-only non-Mac; "torch_cpu_build" / "torch_cuda_unavailable" (see classify_torch_build()): the host HAS GPUs this PyTorch cannot use, which must not read as "no_gpu", since the fix is repairing the install, not buying a GPU.CHAT_ONLY_REASON: Optional[str] = None# What blocked the reason above, when there is something specific to say. Only "mlx_unavailable" sets it: the gate is all-or-nothing across mlx, mlx-lm and mlx-vlm, so naming the offending package is the difference between a dead end and a fix. Never shown on its own.CHAT_ONLY_DETAIL: Optional[str] = None@@ -858,6 +858,18 @@ def _installed_without_torch() -> bool:return False+def _a_gpu_build_would_train_here() -> bool:+ """Whether the PyTorch-free inventory shows a card the mismatch verdicts count. Blocking, so detection only. An inventory that cannot answer counts: no_gpu on a GPU host is the bug no_torch replaced."""+ try:+ inventory = get_physical_gpu_inventory()+ if _devices_that_can_establish_a_mismatch(inventory.get("devices") or []):+ return True+ return bool(inventory.get("unknown"))+ except Exception as e:+ logger.debug("GPU inventory for the no_torch verdict failed: %s", e)+ return True++def _mlx_distribution_installed() -> bool:try:pkg_version("mlx")@@ -1726,9 +1738,11 @@ def _detect_hardware_locked() -> DeviceType:"with UNSLOTH_FORCE_ROCM_TORCH=1.",os.environ.get("CUDA_VISIBLE_DEVICES"),)- elif _installed_without_torch():+ elif _installed_without_torch() and _a_gpu_build_would_train_here():# GGUF-only by request: "needs a GPU" is wrong on a GPU host and nothing is broken.+ # Without such a GPU it stays no_gpu: the Desktop offers the full install on no_torch.CHAT_ONLY_REASON = "no_torch"+ _record_chat_only_hint("no_torch", None)print("Hardware detected: CPU training backend (no PyTorch/MLX GPU backend available)")return DEVICE@@ -1900,8 +1914,48 @@ def _amd_permission_hint_for_mismatch(return node_hint, wheel_targets_amd+# install_python_stack.py's _MLX_MIN_PYTHON / _MLX_MIN_MACOS_MAJOR: the pinned MLX wheels need both.+_MLX_MIN_PYTHON = (3, 10)+_MLX_MIN_MACOS_MAJOR = 14+++def _mlx_wheel_blocker() -> Optional[str]:+ """Mirrors install_python_stack._mlx_pins_are_installable, which skips MLX; an unreadable macOS reads as too old."""+ try:+ major = int(platform.mac_ver()[0].split(".", 1)[0])+ except (ValueError, IndexError):+ major = 0+ if major < _MLX_MIN_MACOS_MAJOR:+ return f"macOS {_MLX_MIN_MACOS_MAJOR} or later"+ if sys.version_info < _MLX_MIN_PYTHON:+ return f"Python {_MLX_MIN_PYTHON[0]}.{_MLX_MIN_PYTHON[1]} or later"+ return None+++def _no_torch_mac_without_mlx_wheels() -> Optional[str]:+ return _mlx_wheel_blocker() if is_apple_silicon() else None+++def _no_torch_amd_node_hint() -> Optional[str]:+ """A --no-torch host whose trainable AMD cards sit behind closed or missing nodes, with no NVIDIA card to train instead: the full install would restart into torch_cuda_unavailable (#14067)."""+ devices = _devices_that_can_establish_a_mismatch(+ get_physical_gpu_inventory().get("devices") or []+ )+ vendors = {str(device.get("vendor")).lower() for device in devices}+ # Only NVIDIA routes the installer elsewhere: install.sh's _intel_xpu_auto_gpu_id skips XPU when AMD is present.+ if "amd" not in vendors or "nvidia" in vendors:+ return None+ from utils.hardware.amd import amd_closed_nodes_block_the_runtime, amd_node_permission_hint++ return amd_node_permission_hint() if amd_closed_nodes_block_the_runtime() else None++def chat_only_permission_hint(reason: Optional[str], detail: Optional[str]) -> Optional[str]:- """The closed-node sentence for /api/health, read from the last detection pass that recorded this verdict."""+ """Why the fix this verdict points at cannot enable Train: a closed AMD node from the last detection pass, or a --no-torch Mac the MLX wheels skip. The Desktop offers the full install only when this is None."""+ if reason == "no_torch":+ blocker = _no_torch_mac_without_mlx_wheels()+ if blocker:+ return f"Training on this Mac needs MLX, which requires {blocker}."# Keyed on the reason only: the refreshed verdict can relabel the same wheel.stored = _CHAT_ONLY_HINTreturn stored[1] if stored is not None and stored[0] == reason else None@@ -1911,7 +1965,12 @@ def _record_chat_only_hint(reason: Optional[str], detail: Optional[str]) -> None"""Detection-time only: the probe stats nodes and resolves group names, which /api/health (async) must not."""global _CHAT_ONLY_HINThint = None- if reason == "torch_cuda_unavailable":+ if reason == "no_torch":+ try:+ hint = _no_torch_amd_node_hint()+ except Exception as exc:+ logger.debug("AMD device node hint for no_torch failed: %s", exc)+ elif reason == "torch_cuda_unavailable":try:node_hint, wheel_targets_amd = _amd_permission_hint_for_mismatch(detail)hint = node_hint if wheel_targets_amd else None@@ -1984,8 +2043,11 @@ def export_capability() -> dict:)elif verdict[0] == "no_torch":reason = "no_torch"+ blocker = _no_torch_mac_without_mlx_wheels()message = (- "This install was set up without the training stack (--no-torch), so export is "+ f"Export on this Mac needs MLX, which requires {blocker}."+ if blocker+ else "This install was set up without the training stack (--no-torch), so export is ""disabled. Reinstall Unsloth Studio without --no-torch to enable export.")elif is_apple_silicon():diff --git a/studio/frontend/scripts/check-bundle-budget.ts b/studio/frontend/scripts/check-bundle-budget.tsindex 2112d24d7a9..9e2f53490df 100644--- a/studio/frontend/scripts/check-bundle-budget.ts+++ b/studio/frontend/scripts/check-bundle-budget.ts@@ -383,8 +383,10 @@ export const BUDGET = {// transfer (Node 26, 98 chunks). Raised to that plus about 200 B.// Apple unified-memory fit hint (#14598) merged with main at a29487c52: 6,909,320 B raw / 2,081,284 B// transfer (Node 26, 98 chunks). Raised to that plus about 200 B.- transferBytes: 2_081_484,- rawBytes: 6_909_520,+ // Desktop Chat only upgrade (#14593), incl. the Train row opening the full install dialog, merged with main+ // at c5a9fe021: 6,912,687 B raw / 2,082,221 B transfer (Node 24, 97 chunks). Raised to that plus about 200 B.+ transferBytes: 2_082_421,+ rawBytes: 6_912_887,};// The chunk count is reported but not budgeted. Splitting a page out of the entry raises it while lowering thediff --git a/studio/frontend/src/app/provider.tsx b/studio/frontend/src/app/provider.tsxindex c7011bd7fb4..9b3cb1b766e 100644--- a/studio/frontend/src/app/provider.tsx+++ b/studio/frontend/src/app/provider.tsx@@ -18,7 +18,11 @@ import { Toaster } from "@/components/ui/sonner";import { TitleTooltipLayer } from "@/components/ui/title-tooltip";import { TooltipProvider } from "@/components/ui/tooltip";import { WebUpdateBanner } from "@/components/web/update-banner";-import { fetchDeviceType } from "@/config/env";+import {+ fetchDeviceType,+ forgetMeasuredVerdict,+ usePlatformStore,+} from "@/config/env";import { getTauriAuthFailure, tauriAutoAuth } from "@/features/auth";import { resyncInferenceStatusAfterServerModelChange } from "@/features/chat";import { DeepLinkHandler } from "@/features/deep-links";@@ -718,13 +722,18 @@ function TauriWrapper({ children }: { children: ReactNode }) {// Through a ref, not a dependency: startRepair is rebuilt on every render.const startRepairRef = useRef(startRepair);startRepairRef.current = startRepair;+ const [upgradingToFull, setUpgradingToFull] = useState(false);const repairController = useMemo(() => ({- repairInstall: () => startRepairRef.current({ forceInstaller: true }),+ repairInstall: () => {+ setUpgradingToFull(usePlatformStore.getState().chatOnlyReason === "no_torch");+ return startRepairRef.current({ forceInstaller: true });+ },isExternalServer,}),[isExternalServer],);+ if (upgradingToFull && status === "running") setUpgradingToFull(false);const appliedWindowModeRef = useRef<TauriWindowMode | null>(null);const hasEnteredAppModeRef = useRef(false);@@ -891,8 +900,20 @@ function TauriWrapper({ children }: { children: ReactNode }) {};}, [status, desktopAuthRetry]);+ // Set once a backend that already answered goes away: the next one measures its hardware again.+ const servedRef = useRef(false);+ const verdictStaleRef = useRef(false);+ useEffect(() => {+ if (status === "running") servedRef.current = true;+ else if (servedRef.current) verdictStaleRef.current = true;+ }, [status]);+useEffect(() => {if (!isTauri || status !== "running" || !desktopAuthReady) return;+ if (verdictStaleRef.current) {+ verdictStaleRef.current = false;+ forgetMeasuredVerdict();+ }void fetchDeviceType({ force: true }).catch(() => undefined);}, [status, desktopAuthReady]);@@ -1006,6 +1027,7 @@ function TauriWrapper({ children }: { children: ReactNode }) {progressDetail={startupProgressDetail}startupMessage={startupMessage}elevationPackages={elevationPackages}+ upgradingToFull={upgradingToFull}onInstall={startInstall}onRetry={retry}onRetryInstall={retryInstall}diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsxindex ca46c9d1aaf..dc64158d545 100644--- a/studio/frontend/src/components/app-sidebar.tsx+++ b/studio/frontend/src/components/app-sidebar.tsx@@ -93,6 +93,7 @@ import { createNavigationNonce } from "@/lib/navigation-nonce";import { copyToClipboardFrom } from "@/lib/copy-to-clipboard";import { isTauri } from "@/lib/api-base";import { useTauriRepairController } from "@/hooks/tauri-repair-context";+import { useFullInstallUpgrade } from "@/hooks/use-full-install-upgrade";import { useWebUpdateCheck } from "@/hooks/use-web-update-check";import { useUiSpaceScale } from "@/hooks/use-ui-space-scale";import { useHoverFlyout } from "@/hooks/use-hover-flyout";@@ -247,6 +248,7 @@ import {type ShortcutId,useShortcut,prefersReducedMotion,+ FullInstallDialog,} from "@/features/settings";import type {SidebarNavItemId,@@ -359,6 +361,8 @@ type NavRowDef = {pending?: boolean;// What that spinning row says on hover; detection can take minutes on a cold host.pendingTooltip?: string;+ // Greyed out but clickable: Train on an upgradable Chat only install opens the full install dialog.+ dimmed?: boolean;badge?: string;onClick: () => void;onIntent?: () => void;@@ -947,6 +951,7 @@ function MoreMenuItem({label,active,disabled,+ dimmed,tooltip,badge,spinner,@@ -957,6 +962,7 @@ function MoreMenuItem({label: string;active: boolean;disabled?: boolean;+ dimmed?: boolean;tooltip?: string;badge?: string;spinner?: boolean;@@ -971,7 +977,7 @@ function MoreMenuItem({onSelect={onSelect}onPointerEnter={disabled ? undefined : onIntent}onFocus={disabled ? undefined : onIntent}- className={cn(active && "bg-accent/60")}+ className={cn(active && "bg-accent/60", dimmed && "opacity-50")}><HugeiconsIcon icon={icon} strokeWidth={1.75} /><span className="min-w-0 flex-1 truncate">{label}</span>@@ -1317,6 +1323,8 @@ export function AppSidebar() {// Null off Desktop; an attached terminal-started backend has no Repair action to point at.const repair = useTauriRepairController();const canRepair = repair !== null && !repair.isExternalServer;+ const fullInstall = useFullInstallUpgrade();+ const [fullInstallOpen, setFullInstallOpen] = useState(false);// Until /api/health answers, `chatOnly` is the browser-platform guess, so every Mac painted// Train and Video blacked out on load and only recovered once the backend reported. Gate the// rows on a measured verdict and let them spin until it lands.@@ -1335,11 +1343,12 @@ export function AppSidebar() {? `Training needs MLX: ${chatOnlyDetail}. Run \`unsloth studio update\` to enable Train.`: "Training needs MLX. Run `unsloth studio update` to enable Train.": chatOnlyReason === "no_torch"- ? // GGUF-only by request. `unsloth studio update` keeps no-torch, so it is not the fix;- // on Desktop the manual repair reruns the installer with PyTorch.- canRepair- ? "Training was left out of this install (Chat only). Use Repair installation in Settings to add it."- : "Training was left out of this install (--no-torch). Reinstall without --no-torch to enable Train."+ ? // `unsloth studio update` keeps no-torch. chatOnlyHint: a Mac the MLX wheels skip.+ chatOnlyHint+ ? chatOnlyHint+ : canRepair+ ? "Training was left out of this install (Chat only). Use Upgrade to full install in Settings to add it."+ : "Training was left out of this install (--no-torch). Reinstall without --no-torch to enable Train.": chatOnlyReason === "rosetta"? "Unsloth is running under Rosetta (x86_64 Python). Re-run the installer from a native arm64 terminal to enable training.": chatOnlyReason === "intel_mac"@@ -3405,17 +3414,27 @@ export function AppSidebar() {icon: TestTubeOutlineIcon,label: t("shell.navigation.train"),active: pathname === "/studio" || pathname.startsWith("/studio/"),- disabled: chatOnlyMeasured,- tooltip: trainDisabledHint,+ disabled: chatOnlyMeasured && !fullInstall,+ dimmed: chatOnlyMeasured && fullInstall !== null,+ tooltip: fullInstall+ ? "Training is not installed. Click to install it (at least 5 GB of disk space)."+ : trainDisabledHint,spinner: trainingInProgress,pending: capabilitiesUnknown,pendingTooltip: t("shell.navigation.trainChecking"),onClick: () => {- if (chatOnlyMeasured) return;+ if (chatOnlyMeasured) {+ if (fullInstall) {+ setFullInstallOpen(true);+ closeMobileIfOpen();+ }+ return;+ }navigateFromRow({ to: "/studio" });closeMobileIfOpen();},onIntent: () => {+ if (chatOnlyMeasured) return;preloadSilently(router.preloadRoute({ to: "/studio" }));},},@@ -6153,13 +6172,14 @@ export function AppSidebar() {}disabled={rowState.disabled}tooltip={rowState.tooltip}- alwaysTooltip={rowState.pending}+ alwaysTooltip={rowState.pending || Boolean(row.dimmed)}spinner={rowState.spinner}testId={`nav-row-${id}`}onClick={row.onClick}onIntent={row.onIntent}className={cn(row.className,+ row.dimmed && "opacity-50",id === "images" && "group/images-item",id === "audio" && "group/audio-item",)}@@ -6348,6 +6368,7 @@ export function AppSidebar() {badge={row.badge}active={row.active}disabled={rowState.disabled}+ dimmed={row.dimmed}tooltip={rowState.tooltip}spinner={rowState.spinner}onSelect={row.onClick}@@ -6895,6 +6916,13 @@ export function AppSidebar() {</Sidebar></TooltipProvider><ChatSearchDialog />+ {fullInstall && (+ <FullInstallDialog+ open={fullInstallOpen}+ onOpenChange={setFullInstallOpen}+ onConfirm={() => void fullInstall.repairInstall()}+ />+ )}{!isTauri && (<ShutdownDialogopen={shutdownOpen}diff --git a/studio/frontend/src/components/tauri/startup-screen.tsx b/studio/frontend/src/components/tauri/startup-screen.tsxindex a675cb9855f..02cbf8a6766 100644--- a/studio/frontend/src/components/tauri/startup-screen.tsx+++ b/studio/frontend/src/components/tauri/startup-screen.tsx@@ -34,6 +34,7 @@ interface StartupScreenProps {progressDetail: string | null;startupMessage: StartupMessage;elevationPackages: string[];+ upgradingToFull?: boolean;onInstall: (options?: InstallOptions) => void;onRetry: () => void;onRetryInstall: () => void;@@ -276,9 +277,11 @@ function InstallingContent({function RepairingContent({logs,progressDetail,+ upgradingToFull,}: {logs: string[];progressDetail: string | null;+ upgradingToFull: boolean;}) {const detailLines = progressDetail? [...logs, progressDetail]@@ -291,8 +294,14 @@ function RepairingContent({</div><div className="mb-10 flex w-full flex-col items-center gap-2"><Spinner className="size-6 text-primary" />- <p className="text-sm font-bold text-foreground">Getting things ready...</p>- <p className="text-sm text-muted-foreground">This won’t take long.</p>+ <p className="text-sm font-bold text-foreground">+ {upgradingToFull ? "Upgrading to the full install..." : "Getting things ready..."}+ </p>+ <p className="text-sm text-muted-foreground">+ {upgradingToFull+ ? "Downloading PyTorch and its libraries for this machine's GPU. This can take several minutes."+ : "This won’t take long."}+ </p><LogDetails label="setup details" lines={detailLines} /></div></div>@@ -347,10 +356,12 @@ function InstallErrorContent({function RepairErrorContent({error,+ upgradingToFull,onRetry,onCopyDiagnostics,}: {error: string | null;+ upgradingToFull: boolean;onRetry: () => void;onCopyDiagnostics: () => Promise<CopySupportDiagnosticsResult>;}) {@@ -358,7 +369,9 @@ function RepairErrorContent({<><Logo /><div className="mt-8 flex flex-col items-center gap-2">- <p className="text-sm font-medium text-destructive">Update failed</p>+ <p className="text-sm font-medium text-destructive">+ {upgradingToFull ? "Could not upgrade to the full install" : "Update failed"}+ </p>{error && (<p className="max-w-md text-center text-xs text-muted-foreground">{error}</p>)}@@ -470,6 +483,7 @@ export function StartupScreen({progressDetail,startupMessage,elevationPackages,+ upgradingToFull = false,onInstall,onRetry,onRetryInstall,@@ -501,11 +515,18 @@ export function StartupScreen({/>);case "repairing":- return <RepairingContent logs={logs} progressDetail={progressDetail} />;+ return (+ <RepairingContent+ logs={logs}+ progressDetail={progressDetail}+ upgradingToFull={upgradingToFull}+ />+ );case "repair-error":return (<RepairErrorContenterror={error}+ upgradingToFull={upgradingToFull}onRetry={onRetry}onCopyDiagnostics={onCopyDiagnostics}/>diff --git a/studio/frontend/src/config/env.ts b/studio/frontend/src/config/env.tsindex ef993de3985..25e36e4c09c 100644--- a/studio/frontend/src/config/env.ts+++ b/studio/frontend/src/config/env.ts@@ -53,6 +53,7 @@ interface PlatformState {secure: boolean;lanUrls: string[];fetched: boolean;+ verdictStale: boolean;// torch-warm kill switch defers detection to first use; the sidebar polls.detectionDeferred: boolean;isChatOnly: () => boolean;@@ -86,12 +87,13 @@ export const usePlatformStore = create<PlatformState>()((_, get) => ({secure: false,lanUrls: [],fetched: false,+ verdictStale: false,detectionDeferred: false,isChatOnly: () => get().chatOnly,// deferred detection is settled because no verdict will arrive this session.capabilitiesUnknown: () => {const state = get();- return !state.fetched && !state.detectionDeferred;+ return (!state.fetched || state.verdictStale) && !state.detectionDeferred;},}));@@ -112,6 +114,13 @@ const HARDWARE_DETECT_POLL_MS = 200;// The bounded wait above is spent at most once per page load: see fetchDeviceType.let hardwareWaitSpent = false;+/** A repair or restart replaced the backend: its predecessor's verdict is no longer measured. Platform fields stay. */+export function forgetMeasuredVerdict(): void {+ hardwareWaitSpent = false;+ // The old deferred flag would mask staleness, so a failed first read would look settled.+ usePlatformStore.setState({ verdictStale: true, detectionDeferred: false });+}+// `force` re-reads /api/health even if cached, to pick up a late-arriving tunnel URL.export async function fetchDeviceType(options?: {force?: boolean;@@ -221,9 +230,13 @@ export async function fetchDeviceType(options?: {: keepPlatform? previous.fileManager: undefined;- // A still-provisional reply keeps the stored verdict: see resolveVerdict.- const { chatOnly, chatOnlyReason, chatOnlyDetail, chatOnlyHint } =- resolveVerdict(data, previous);+ // Provisional keeps the stored verdict (resolveVerdict); deferred settles it without a replaced backend's reason.+ const { chatOnly, chatOnlyReason, chatOnlyDetail, chatOnlyHint } = resolveVerdict(+ data,+ previous.verdictStale && isDetectionDeferred(data)+ ? { chatOnly: previous.chatOnly, chatOnlyReason: null, chatOnlyDetail: null, chatOnlyHint: null }+ : previous,+ );// Cache only a server-reported platform. Unauthenticated responses fall// back to the browser platform, which can differ from the host (WSL,// SSH); keeping fetched=false retries once a token exists.@@ -244,6 +257,7 @@ export async function fetchDeviceType(options?: {serverUrl: data.server_url ?? null,secure: data.secure ?? false,fetched: data.device_type !== undefined || keepPlatform,+ verdictStale: previous.verdictStale && isProvisionalVerdict(data) && !isDetectionDeferred(data),detectionDeferred: isDetectionDeferred(data),});return deviceType;diff --git a/studio/frontend/src/features/export/export-page.tsx b/studio/frontend/src/features/export/export-page.tsxindex 3a0c8785898..24eee0f7987 100644--- a/studio/frontend/src/features/export/export-page.tsx+++ b/studio/frontend/src/features/export/export-page.tsx@@ -49,7 +49,7 @@ import { confirmRemoteCodeIfNeeded } from "@/features/security";import { GuidedTour, useGuidedTourController } from "@/features/tour";import type { LocalModelInfo } from "@/features/training";import { useDebouncedValue, useHfTokenValidation } from "@/hooks";-import { useTauriRepairController } from "@/hooks/tauri-repair-context";+import { useFullInstallUpgrade } from "@/hooks/use-full-install-upgrade";import { useHardwareInfo } from "@/hooks/use-hardware-info";import { useT } from "@/i18n";import { ChevronDownStandardIcon } from "@/lib/chevron-icons";@@ -271,12 +271,11 @@ export function ExportPage() {// Only gray out on an authoritative unsupported response; the backend supplies the reason.const exportUnsupported =hardware.loaded && hardware.exportSupported === false;- // Null off Desktop; an attached terminal-started backend has no Repair action to point at.- const repair = useTauriRepairController();+ const canUpgrade = useFullInstallUpgrade() !== null;const exportUnsupportedMessage = exportUnsupportedText(hardware.exportUnsupportedReason,hardware.exportUnsupportedMessage,- repair !== null && !repair.isExternalServer,+ canUpgrade,);const availableFormats = useMemo<MergedFormatOption[]>(() =>diff --git a/studio/frontend/src/features/export/lib/unsupported-text.ts b/studio/frontend/src/features/export/lib/unsupported-text.tsindex aeb54119ad8..ebf306c2d6e 100644--- a/studio/frontend/src/features/export/lib/unsupported-text.ts+++ b/studio/frontend/src/features/export/lib/unsupported-text.ts@@ -3,14 +3,14 @@// Kept out of config/hardware-verdict.ts (startup bundle): only the lazy Export route needs it.-/** A Desktop Chat only user never typed the --no-torch the backend names: point at Repair instead. */+/** A Desktop Chat only user never typed the --no-torch the backend names. */export function exportUnsupportedText(reason: string | null,message: string | null,- canRepair: boolean,+ canUpgrade: boolean,): string {- if (reason === "no_torch" && canRepair)- return "Export was left out of this install (Chat only). Use Repair installation in Settings to add it.";+ if (reason === "no_torch" && canUpgrade)+ return "Export was left out of this install (Chat only). Use Upgrade to full install in Settings to add it.";return (message ??"Export requires a supported accelerator (NVIDIA, AMD, or Intel GPU, or Apple Silicon) with PyTorch or MLX installed."diff --git a/studio/frontend/src/features/settings/components/desktop-repair-control.tsx b/studio/frontend/src/features/settings/components/desktop-repair-control.tsxindex 289236d9a84..44f57ea2c87 100644--- a/studio/frontend/src/features/settings/components/desktop-repair-control.tsx+++ b/studio/frontend/src/features/settings/components/desktop-repair-control.tsx@@ -10,6 +10,7 @@ import {DialogHeader,DialogTitle,} from "@/components/ui/dialog";+import { usePlatformStore } from "@/config/env";import { useTauriRepairController } from "@/hooks/tauri-repair-context";import { useT } from "@/i18n";import { type ReactElement, useState } from "react";@@ -34,6 +35,10 @@ import { SettingsRow } from "./settings-row";export function DesktopRepairControl(): ReactElement | null {const t = useT();const repair = useTauriRepairController();+ // Not useFullInstallUpgrade(): a Mac the MLX wheels skip still gets PyTorch, only not Train.+ const upgradesToFull = usePlatformStore(+ (s) => s.chatOnlyReason === "no_torch" && s.isChatOnly() && !s.capabilitiesUnknown(),+ );const [confirmOpen, setConfirmOpen] = useState(false);if (!repair || repair.isExternalServer) return null;@@ -61,7 +66,11 @@ export function DesktopRepairControl(): ReactElement | null {{t("settings.general.repairInstall.confirmTitle")}</DialogTitle><DialogDescription>- {t("settings.general.repairInstall.confirmDescription")}+ {t(+ upgradesToFull+ ? "settings.general.repairInstall.confirmDescriptionChatOnly"+ : "settings.general.repairInstall.confirmDescription",+ )}</DialogDescription></DialogHeader><DialogFooter>diff --git a/studio/frontend/src/features/settings/components/full-install-dialog.tsx b/studio/frontend/src/features/settings/components/full-install-dialog.tsxnew file mode 100644index 00000000000..6a12b25c317--- /dev/null+++ b/studio/frontend/src/features/settings/components/full-install-dialog.tsx@@ -0,0 +1,79 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { useFullInstallUpgrade } from "@/hooks/use-full-install-upgrade";+import { useT } from "@/i18n";+import { type ReactElement, useState } from "react";+import { SettingsRow } from "./settings-row";++export function FullInstallDialog({+ open,+ onOpenChange,+ onConfirm,+}: {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ onConfirm: () => void;+}): ReactElement {+ const t = useT();+ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="max-w-md">+ <DialogHeader>+ <DialogTitle>{t("settings.general.fullInstall.confirmTitle")}</DialogTitle>+ <DialogDescription>+ {t("settings.general.fullInstall.confirmDescription")}+ </DialogDescription>+ </DialogHeader>+ <DialogFooter>+ <Button variant="outline" onClick={() => onOpenChange(false)}>+ {t("common.cancel")}+ </Button>+ <Button+ onClick={() => {+ // Closed first, or it would sit on top of the progress screen.+ onOpenChange(false);+ onConfirm();+ }}+ >+ {t("settings.general.fullInstall.confirmAction")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}++export function DesktopInstallTypeControl(): ReactElement | null {+ const t = useT();+ const controller = useFullInstallUpgrade();+ const [confirmOpen, setConfirmOpen] = useState(false);+ if (!controller) return null;++ return (+ <>+ <SettingsRow+ label={t("settings.general.fullInstall.label")}+ description={t("settings.general.fullInstall.description")}+ >+ <Button size="sm" onClick={() => setConfirmOpen(true)}>+ {t("settings.general.fullInstall.action")}+ </Button>+ </SettingsRow>+ <FullInstallDialog+ open={confirmOpen}+ onOpenChange={setConfirmOpen}+ onConfirm={() => void controller.repairInstall()}+ />+ </>+ );+}diff --git a/studio/frontend/src/features/settings/index.ts b/studio/frontend/src/features/settings/index.tsindex d92dfa64ef6..539d5058586 100644--- a/studio/frontend/src/features/settings/index.ts+++ b/studio/frontend/src/features/settings/index.ts@@ -2,6 +2,7 @@// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0export { SettingsDialogMount } from "./settings-dialog-mount";+export { FullInstallDialog } from "./components/full-install-dialog";export {type JobResult,jobOutputLines,diff --git a/studio/frontend/src/features/settings/settings-dialog.tsx b/studio/frontend/src/features/settings/settings-dialog.tsxindex 94491b5f1ba..8d3587551bf 100644--- a/studio/frontend/src/features/settings/settings-dialog.tsx+++ b/studio/frontend/src/features/settings/settings-dialog.tsx@@ -15,6 +15,7 @@ import { type TranslationKey, useT } from "@/i18n";import { useHubSource } from "@/lib/hf-endpoint";import { MicIcon } from "@/lib/mic-icon";import { cn } from "@/lib/utils";+import { useFullInstallUpgrade } from "@/hooks/use-full-install-upgrade";import { useScrollFades } from "@/hooks/use-scroll-fades";import { useUiSpaceScale } from "@/hooks/use-ui-space-scale";import { scheduleIdleTask } from "@/lib/schedule-idle-task";@@ -304,6 +305,7 @@ export function SettingsDialog() {const isOwner = useIsAccountOwner();const stacked = useStackedLayout();const hubSource = useHubSource();+ const canUpgradeToFullInstall = useFullInstallUpgrade() !== null;const { attach: attachRail, onScroll: onRailScroll, className: railFadeClass } = useScrollFades();const visibleTabs = useMemo(() => TABS.filter((tab) => settingsTabVisible(tab.id, isOwner)), [isOwner]);const open = useSettingsDialogStore((s) => s.open);@@ -343,7 +345,13 @@ export function SettingsDialog() {}return visibleTabs.map((tab) => {const tabLabel = t(tab.labelKey);- const entries = renderedSearchEntries(SETTINGS_SEARCH_INDEX, tab.id, hubSource, isOwner)+ const entries = renderedSearchEntries(+ SETTINGS_SEARCH_INDEX,+ tab.id,+ hubSource,+ isOwner,+ canUpgradeToFullInstall,+ ).filter((key) => {if (t(key).toLowerCase().includes(q)) {return true;@@ -360,7 +368,7 @@ export function SettingsDialog() {tabMatches: tabLabel.toLowerCase().includes(q),};}).filter((r) => r.tabMatches || r.entries.length > 0);- }, [query, t, visibleTabs, hubSource, isOwner]);+ }, [query, t, visibleTabs, hubSource, isOwner, canUpgradeToFullInstall]);const [pendingScroll, setPendingScroll] = useState<{tab: SettingsTab;diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.tsindex 6f7e009a729..e0c4028f45c 100644--- a/studio/frontend/src/features/settings/settings-search.ts+++ b/studio/frontend/src/features/settings/settings-search.ts@@ -390,6 +390,7 @@ export function createSettingsSearchIndex({// whose PyTorch cannot use its GPUs says to "use Repair installation in Settings",// and searching Settings for "repair" answered "No settings found.""settings.general.repairInstall.label",+ "settings.general.fullInstall.label",],browser: [...SETTINGS_SEARCH_INDEX.browser, "browser.downloadLocationSetting"],about: SETTINGS_SEARCH_INDEX.about.filter(@@ -403,6 +404,8 @@ const HUGGING_FACE_ONLY_ENTRIES: ReadonlySet<TranslationKey> = new Set(["settings.general.hub.datasetsServer",]);+const FULL_INSTALL_ENTRY: TranslationKey = "settings.general.fullInstall.label";+// owner-only rows on tabs visible to every account.const OWNER_ONLY_ENTRIES: ReadonlySet<TranslationKey> = new Set(["settings.sandbox.toolsSection",@@ -419,11 +422,13 @@ export function renderedSearchEntries(tab: SettingsTab,hubSource: HubSource,isOwner = true,+ canUpgradeToFullInstall = false,): TranslationKey[] {return index[tab].filter((key) =>!(hubSource === "modelscope" && HUGGING_FACE_ONLY_ENTRIES.has(key)) &&- (isOwner || !OWNER_ONLY_ENTRIES.has(key)),+ (isOwner || !OWNER_ONLY_ENTRIES.has(key)) &&+ (canUpgradeToFullInstall || key !== FULL_INSTALL_ENTRY),);}@@ -438,6 +443,8 @@ export const SETTINGS_SEARCH_KEYWORDS: Partial<"settings.resources.storage.modelsFolder":"settings.resources.storage.modelsFolderKeywords","settings.sandbox.toolsSection": "settings.sandbox.setupKeywords",+ // A Chat only user searches for what is missing ("train", "pytorch", "video"), not "Install type".+ "settings.general.fullInstall.label": "settings.general.fullInstall.keywords",// "purge", "prune" and the tool names are in none of the labels, so the row// the feature is named after was unreachable by search."settings.resources.storage.caches.label":diff --git a/studio/frontend/src/features/settings/tabs/general-tab.tsx b/studio/frontend/src/features/settings/tabs/general-tab.tsxindex dfb62c1d102..0c923dc3419 100644--- a/studio/frontend/src/features/settings/tabs/general-tab.tsx+++ b/studio/frontend/src/features/settings/tabs/general-tab.tsx@@ -71,6 +71,7 @@ import {LIBRARY_SETTINGS_STORAGE_KEY,LIBRARY_VIEW_STORAGE_KEY,} from "@/features/library";+import { DesktopInstallTypeControl } from "../components/full-install-dialog";import { ChangePasswordDialog } from "../components/change-password-dialog";import { DesktopRepairControl } from "../components/desktop-repair-control";import { DeveloperModeSection } from "../components/developer-mode-section";@@ -523,7 +524,7 @@ export function GeneralTab() {</p></header>- {/* Desktop-only, and self-gating: outside the desktop app both render+ {/* Desktop-only, and self-gating: outside the desktop app these rendernothing and the section keeps just the version rows. */}<StudioVersionSection>{isTauri ? (@@ -532,6 +533,7 @@ export function GeneralTab() {<DesktopUpdateNote /></div>) : null}+ <DesktopInstallTypeControl /></StudioVersionSection><SettingsSection title={t("settings.general.account")}>diff --git a/studio/frontend/src/hooks/tauri-repair-context.ts b/studio/frontend/src/hooks/tauri-repair-context.tsindex baf86048b44..5650cd450f4 100644--- a/studio/frontend/src/hooks/tauri-repair-context.ts+++ b/studio/frontend/src/hooks/tauri-repair-context.ts@@ -27,3 +27,19 @@ export const TauriRepairContext = createContext<TauriRepairController | null>(export function useTauriRepairController(): TauriRepairController | null {return useContext(TauriRepairContext);}++/** Off Mac the backend reports `no_torch` only with a usable GPU; `chat_only_hint` marks a Mac the MLX wheels skip. */+export function canUpgradeToFullInstall(+ chatOnlyReason: string | null,+ chatOnlyHint: string | null,+ verdictMeasured: boolean,+ repair: TauriRepairController | null,+): boolean {+ return (+ verdictMeasured &&+ chatOnlyReason === "no_torch" &&+ chatOnlyHint === null &&+ repair !== null &&+ !repair.isExternalServer+ );+}diff --git a/studio/frontend/src/hooks/use-full-install-upgrade.ts b/studio/frontend/src/hooks/use-full-install-upgrade.tsnew file mode 100644index 00000000000..f873837bcb3--- /dev/null+++ b/studio/frontend/src/hooks/use-full-install-upgrade.ts@@ -0,0 +1,21 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import { usePlatformStore } from "@/config/env";+import {+ type TauriRepairController,+ canUpgradeToFullInstall,+ useTauriRepairController,+} from "./tauri-repair-context";++export function useFullInstallUpgrade(): TauriRepairController | null {+ const repair = useTauriRepairController();+ const chatOnlyReason = usePlatformStore((s) => s.chatOnlyReason);+ const chatOnlyHint = usePlatformStore((s) => s.chatOnlyHint);+ const verdictMeasured = usePlatformStore(+ (s) => s.isChatOnly() && !s.capabilitiesUnknown(),+ );+ return canUpgradeToFullInstall(chatOnlyReason, chatOnlyHint, verdictMeasured, repair)+ ? repair+ : null;+}diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.tsindex 07c4d160269..9f5278244dc 100644--- a/studio/frontend/src/i18n/locales/ar.ts+++ b/studio/frontend/src/i18n/locales/ar.ts@@ -1984,6 +1984,18 @@ export const ar = {openError: "تعذّر فتح المجلد",copyError: "تعذّر نسخ المسار",},+ fullInstall: {+ label: "نوع التثبيت",+ description:+ "دردشة فقط (GGUF). يضيف التثبيت الكامل التدريب والتصدير والفيديو ونماذج safetensors وميزات إضافية لتوليد الصور.",+ action: "الترقية إلى التثبيت الكامل",+ confirmTitle: "هل تريد الترقية إلى التثبيت الكامل؟",+ confirmDescription:+ "يشغّل تثبيت الدردشة فقط هذا نماذج GGUF. يضيف التثبيت الكامل PyTorch لوحدة معالجة الرسومات في هذا الجهاز، ما يتيح التدريب والتصدير والفيديو ونماذج safetensors وميزات إضافية لتوليد الصور. ينزّل عدة غيغابايت (5 غيغابايت على الأقل من مساحة القرص) ثم يعيد تشغيل الخادم. تُحفظ المحادثات والنماذج والإعدادات. قد يستغرق ذلك عدة دقائق.",+ confirmAction: "ترقية",+ keywords:+ "full install upgrade نوع التثبيت التثبيت الكامل ترقية دردشة فقط chat only gguf add training تدريب train fine-tune pytorch torch تصدير فيديو توليد الصور safetensors",+ },repairInstall: {label: "إصلاح التثبيت",description:@@ -1992,6 +2004,8 @@ export const ar = {confirmTitle: "هل تريد إصلاح هذا التثبيت؟",confirmDescription:"يوقف الخادم ويعيد تشغيل المثبّت، الذي يعيد تثبيت PyTorch لوحدة معالجة الرسومات في هذا الجهاز. تُحفظ المحادثات والإعدادات. قد يستغرق ذلك عدة دقائق.",+ confirmDescriptionChatOnly:+ "يوقف الخادم ويعيد تشغيل المثبّت. هذا تثبيت للدردشة فقط، لذا يرقّيه المثبّت أيضًا إلى التثبيت الكامل مع PyTorch، بحجم عدة غيغابايت إجمالًا. تُحفظ المحادثات والإعدادات. قد يستغرق ذلك عدة دقائق.",confirmAction: "إصلاح الآن",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.tsindex e03269f7ac4..0d324e8424b 100644--- a/studio/frontend/src/i18n/locales/de.ts+++ b/studio/frontend/src/i18n/locales/de.ts@@ -2013,6 +2013,18 @@ export const de = {openError: "Der Ordner konnte nicht geöffnet werden",copyError: "Der Pfad konnte nicht kopiert werden",},+ fullInstall: {+ label: "Installationstyp",+ description:+ "Nur Chat (GGUF). Die vollständige Installation ergänzt Training, Export, Video, Safetensors-Modelle und weitere Funktionen zur Bildgenerierung.",+ action: "Auf vollständige Installation upgraden",+ confirmTitle: "Auf die vollständige Installation upgraden?",+ confirmDescription:+ "Diese Nur-Chat-Installation führt GGUF-Modelle aus. Die vollständige Installation ergänzt PyTorch für die GPU dieses Rechners und ermöglicht damit Training, Export, Video, Safetensors-Modelle und weitere Funktionen zur Bildgenerierung. Sie lädt mehrere Gigabyte herunter (mindestens 5 GB Speicherplatz) und startet den Server neu. Chats, Modelle und Einstellungen bleiben erhalten. Dies kann einige Minuten dauern.",+ confirmAction: "Upgraden",+ keywords:+ "full install upgrade installationstyp vollständige installation nur chat chat only gguf add training training trainieren train fine-tune pytorch torch export video bildgenerierung safetensors",+ },repairInstall: {label: "Installation reparieren",description:@@ -2021,6 +2033,8 @@ export const de = {confirmTitle: "Diese Installation reparieren?",confirmDescription:"Stoppt den Server und führt das Installationsprogramm erneut aus, wodurch PyTorch für die GPU dieses Rechners neu installiert wird. Chats und Einstellungen bleiben erhalten. Dies kann einige Minuten dauern.",+ confirmDescriptionChatOnly:+ "Stoppt den Server und führt das Installationsprogramm erneut aus. Dies ist eine Nur-Chat-Installation, daher upgradet das Installationsprogramm sie auch auf die vollständige Installation mit PyTorch, insgesamt mehrere Gigabyte. Chats und Einstellungen bleiben erhalten. Dies kann einige Minuten dauern.",confirmAction: "Jetzt reparieren",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex 9679a5a8f02..c102569ec1c 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -2066,6 +2066,18 @@ export const en = {openError: "Couldn't open the folder",copyError: "Couldn't copy the path",},+ fullInstall: {+ label: "Install type",+ description:+ "Chat only (GGUF). The full install adds training, export, video, safetensors models and additional image generation features.",+ action: "Upgrade to full install",+ confirmTitle: "Upgrade to the full install?",+ confirmDescription:+ "This Chat only install runs GGUF models. The full install adds PyTorch for this machine's GPU, which enables training, export, video, safetensors models and additional image generation features. It downloads several gigabytes (at least 5 GB of disk space) and restarts the server. Chats, models and settings are kept. This can take several minutes.",+ confirmAction: "Upgrade",+ keywords:+ "full install upgrade install type chat only gguf add training train training fine-tune pytorch torch export video image generation safetensors",+ },repairInstall: {label: "Repair installation",description:@@ -2074,6 +2086,8 @@ export const en = {confirmTitle: "Repair this installation?",confirmDescription:"Stops the server and reruns the installer, which reinstalls PyTorch for this machine's GPU at the newest supported release. Chats and settings are kept. This can take several minutes.",+ confirmDescriptionChatOnly:+ "Stops the server and reruns the installer. This is a Chat only install, so the installer also upgrades it to the full install with PyTorch, several gigabytes in total. Chats and settings are kept. This can take several minutes.",confirmAction: "Repair now",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.tsindex 80dec1a03ca..0ef9f0bdec6 100644--- a/studio/frontend/src/i18n/locales/es.ts+++ b/studio/frontend/src/i18n/locales/es.ts@@ -2008,6 +2008,18 @@ export const es = {openError: "No se pudo abrir la carpeta",copyError: "No se pudo copiar la ruta",},+ fullInstall: {+ label: "Tipo de instalación",+ description:+ "Solo chat (GGUF). La instalación completa añade entrenamiento, exportación, vídeo, modelos safetensors y más funciones de generación de imágenes.",+ action: "Actualizar a la instalación completa",+ confirmTitle: "¿Actualizar a la instalación completa?",+ confirmDescription:+ "Esta instalación de solo chat ejecuta modelos GGUF. La instalación completa añade PyTorch para la GPU de este equipo, lo que habilita el entrenamiento, la exportación, el vídeo, los modelos safetensors y más funciones de generación de imágenes. Descarga varios gigabytes (al menos 5 GB de espacio en disco) y reinicia el servidor. Se conservan las conversaciones, los modelos y los ajustes. Puede tardar varios minutos.",+ confirmAction: "Actualizar",+ keywords:+ "full install upgrade tipo de instalación instalación completa actualizar solo chat chat only gguf add training entrenamiento entrenar train fine-tune pytorch torch exportar vídeo generación de imágenes safetensors",+ },repairInstall: {label: "Reparar la instalación",description:@@ -2016,6 +2028,8 @@ export const es = {confirmTitle: "¿Reparar esta instalación?",confirmDescription:"Detiene el servidor y vuelve a ejecutar el instalador, que reinstala PyTorch para la GPU de este equipo. Se conservan las conversaciones y los ajustes. Puede tardar varios minutos.",+ confirmDescriptionChatOnly:+ "Detiene el servidor y vuelve a ejecutar el instalador. Esta es una instalación de solo chat, así que el instalador también la actualiza a la instalación completa con PyTorch, varios gigabytes en total. Se conservan las conversaciones y los ajustes. Puede tardar varios minutos.",confirmAction: "Reparar ahora",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.tsindex 2b9ed410d6b..6b4a899fedd 100644--- a/studio/frontend/src/i18n/locales/fr.ts+++ b/studio/frontend/src/i18n/locales/fr.ts@@ -2011,6 +2011,18 @@ export const fr = {openError: "Impossible d'ouvrir le dossier",copyError: "Impossible de copier le chemin",},+ fullInstall: {+ label: "Type d'installation",+ description:+ "Chat uniquement (GGUF). L'installation complète ajoute l'entraînement, l'export, la vidéo, les modèles safetensors et des fonctionnalités supplémentaires de génération d'images.",+ action: "Passer à l'installation complète",+ confirmTitle: "Passer à l'installation complète ?",+ confirmDescription:+ "Cette installation Chat uniquement exécute des modèles GGUF. L'installation complète ajoute PyTorch pour le GPU de cette machine, ce qui active l'entraînement, l'export, la vidéo, les modèles safetensors et des fonctionnalités supplémentaires de génération d'images. Elle télécharge plusieurs gigaoctets (au moins 5 Go d'espace disque) et redémarre le serveur. Les discussions, les modèles et les paramètres sont conservés. Cela peut prendre plusieurs minutes.",+ confirmAction: "Mettre à niveau",+ keywords:+ "full install upgrade type d'installation installation complète mise à niveau chat uniquement chat only gguf add training entraînement entraîner train fine-tune pytorch torch export vidéo génération d'images safetensors",+ },repairInstall: {label: "Réparer l'installation",description:@@ -2019,6 +2031,8 @@ export const fr = {confirmTitle: "Réparer cette installation ?",confirmDescription:"Arrête le serveur et relance le programme d'installation, qui réinstalle PyTorch pour le GPU de cette machine. Les discussions et les paramètres sont conservés. Cela peut prendre plusieurs minutes.",+ confirmDescriptionChatOnly:+ "Arrête le serveur et relance le programme d'installation. Cette installation est en mode Chat uniquement, donc le programme d'installation la fait aussi passer à l'installation complète avec PyTorch, plusieurs gigaoctets au total. Les discussions et les paramètres sont conservés. Cela peut prendre plusieurs minutes.",confirmAction: "Réparer maintenant",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.tsindex 5a9c1952380..27dfdfe27e6 100644--- a/studio/frontend/src/i18n/locales/he.ts+++ b/studio/frontend/src/i18n/locales/he.ts@@ -2099,6 +2099,18 @@ export const he = {openError: "לא ניתן לפתוח את התיקייה",copyError: "לא ניתן להעתיק את הנתיב",},+ fullInstall: {+ label: "סוג התקנה",+ description:+ "צ'אט בלבד (GGUF). ההתקנה המלאה מוסיפה אימון, ייצוא, וידאו, מודלים של safetensors ותכונות נוספות ליצירת תמונות.",+ action: "שדרג להתקנה מלאה",+ confirmTitle: "לשדרג להתקנה המלאה?",+ confirmDescription:+ "התקנה זו של צ'אט בלבד מריצה מודלים של GGUF. ההתקנה המלאה מוסיפה את PyTorch עבור ה-GPU של מכונה זו, ומאפשרת אימון, ייצוא, וידאו, מודלים של safetensors ותכונות נוספות ליצירת תמונות. היא מורידה כמה ג'יגה-בייט (לפחות 5 GB של שטח דיסק) ומפעילה מחדש את השרת. הצ'אטים, המודלים וההגדרות יישמרו. התהליך עשוי להימשך מספר דקות.",+ confirmAction: "שדרג",+ keywords:+ "full install upgrade סוג התקנה התקנה מלאה שדרוג צ'אט בלבד chat only gguf add training אימון train fine-tune pytorch torch ייצוא וידאו יצירת תמונות safetensors",+ },repairInstall: {label: "תיקון התקנה",description:@@ -2107,6 +2119,8 @@ export const he = {confirmTitle: "לתקן התקנה זו?",confirmDescription:"עוצר את השרת ומריץ מחדש את תוכנית ההתקנה, אשר מתקינה מחדש את PyTorch עבור ה-GPU של מכונה זו בגרסה הנתמכת החדשה ביותר. הצ'אטים וההגדרות יישמרו. התהליך עשוי להימשך מספר דקות.",+ confirmDescriptionChatOnly:+ "עוצר את השרת ומריץ מחדש את תוכנית ההתקנה. זוהי התקנה של צ'אט בלבד, ולכן תוכנית ההתקנה גם משדרגת אותה להתקנה המלאה עם PyTorch, כמה ג'יגה-בייט בסך הכול. הצ'אטים וההגדרות יישמרו. התהליך עשוי להימשך מספר דקות.",confirmAction: "תקן כעת",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.tsindex 36701063311..82f74c1605b 100644--- a/studio/frontend/src/i18n/locales/hi.ts+++ b/studio/frontend/src/i18n/locales/hi.ts@@ -1990,6 +1990,18 @@ export const hi = {openError: "फ़ोल्डर नहीं खोला जा सका",copyError: "पथ कॉपी नहीं किया जा सका",},+ fullInstall: {+ label: "इंस्टॉल का प्रकार",+ description:+ "केवल चैट (GGUF)। पूरा इंस्टॉल ट्रेनिंग, एक्सपोर्ट, वीडियो, safetensors मॉडल और इमेज जनरेशन की अतिरिक्त सुविधाएं जोड़ता है।",+ action: "पूरे इंस्टॉल में अपग्रेड करें",+ confirmTitle: "क्या पूरे इंस्टॉल में अपग्रेड करना है?",+ confirmDescription:+ "यह केवल-चैट इंस्टॉल GGUF मॉडल चलाता है। पूरा इंस्टॉल इस मशीन के GPU के लिए PyTorch जोड़ता है, जिससे ट्रेनिंग, एक्सपोर्ट, वीडियो, safetensors मॉडल और इमेज जनरेशन की अतिरिक्त सुविधाएं उपलब्ध हो जाते हैं। यह कई गीगाबाइट (कम से कम 5 GB डिस्क स्पेस) डाउनलोड करता है और सर्वर को रीस्टार्ट करता है। चैट, मॉडल और सेटिंग्स सुरक्षित रहती हैं। इसमें कई मिनट लग सकते हैं।",+ confirmAction: "अपग्रेड करें",+ keywords:+ "full install upgrade इंस्टॉल का प्रकार पूरा इंस्टॉल अपग्रेड केवल चैट chat only gguf add training ट्रेनिंग प्रशिक्षण train fine-tune pytorch torch एक्सपोर्ट वीडियो इमेज जनरेशन safetensors",+ },repairInstall: {label: "इंस्टॉलेशन ठीक करें",description:@@ -1998,6 +2010,8 @@ export const hi = {confirmTitle: "क्या यह इंस्टॉलेशन ठीक करना है?",confirmDescription:"सर्वर रोकता है और इंस्टॉलर फिर से चलाता है, जो इस मशीन के GPU के लिए PyTorch को दोबारा इंस्टॉल करता है। चैट और सेटिंग्स सुरक्षित रहती हैं। इसमें कई मिनट लग सकते हैं।",+ confirmDescriptionChatOnly:+ "सर्वर रोकता है और इंस्टॉलर फिर से चलाता है। यह केवल-चैट इंस्टॉल है, इसलिए इंस्टॉलर इसे PyTorch के साथ पूरे इंस्टॉल में भी अपग्रेड करता है, कुल मिलाकर कई गीगाबाइट। चैट और सेटिंग्स सुरक्षित रहती हैं। इसमें कई मिनट लग सकते हैं।",confirmAction: "अभी ठीक करें",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.tsindex 855f9a83ec8..3d9225132d9 100644--- a/studio/frontend/src/i18n/locales/it.ts+++ b/studio/frontend/src/i18n/locales/it.ts@@ -1934,6 +1934,18 @@ export const it = {openError: "Impossibile aprire la cartella",copyError: "Impossibile copiare il percorso",},+ fullInstall: {+ label: "Tipo di installazione",+ description:+ "Solo chat (GGUF). L'installazione completa aggiunge addestramento, esportazione, video, modelli safetensors e altre funzionalità di generazione di immagini.",+ action: "Passa all'installazione completa",+ confirmTitle: "Passare all'installazione completa?",+ confirmDescription:+ "Questa installazione solo chat esegue modelli GGUF. L'installazione completa aggiunge PyTorch per la GPU di questa macchina, abilitando addestramento, esportazione, video, modelli safetensors e altre funzionalità di generazione di immagini. Scarica diversi gigabyte (almeno 5 GB di spazio su disco) e riavvia il server. Le chat, i modelli e le impostazioni vengono mantenuti. L'operazione può richiedere alcuni minuti.",+ confirmAction: "Aggiorna",+ keywords:+ "full install upgrade tipo di installazione installazione completa aggiorna solo chat chat only gguf add training addestramento addestrare train fine-tune pytorch torch esportazione video generazione di immagini safetensors",+ },repairInstall: {label: "Ripara l'installazione",description:@@ -1942,6 +1954,8 @@ export const it = {confirmTitle: "Riparare questa installazione?",confirmDescription:"Arresta il server e riesegue il programma di installazione, che reinstalla PyTorch per la GPU di questa macchina. Le chat e le impostazioni vengono mantenute. L'operazione può richiedere alcuni minuti.",+ confirmDescriptionChatOnly:+ "Arresta il server e riesegue il programma di installazione. Questa è un'installazione solo chat, quindi il programma di installazione la porta anche all'installazione completa con PyTorch, diversi gigabyte in totale. Le chat e le impostazioni vengono mantenute. L'operazione può richiedere alcuni minuti.",confirmAction: "Ripara ora",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.tsindex 8502946a75f..9460dfa955c 100644--- a/studio/frontend/src/i18n/locales/ja.ts+++ b/studio/frontend/src/i18n/locales/ja.ts@@ -1971,6 +1971,18 @@ export const ja = {openError: "フォルダを開けませんでした",copyError: "パスをコピーできませんでした",},+ fullInstall: {+ label: "インストールの種類",+ description:+ "チャット専用 (GGUF)。フルインストールでは、トレーニング、エクスポート、動画、safetensors モデル、その他の画像生成機能が追加されます。",+ action: "フルインストールにアップグレード",+ confirmTitle: "フルインストールにアップグレードしますか?",+ confirmDescription:+ "このチャット専用インストールは GGUF モデルを実行します。フルインストールでは、このマシンの GPU 向けの PyTorch が追加され、トレーニング、エクスポート、動画、safetensors モデル、その他の画像生成機能が使えるようになります。数 GB(5 GB 以上のディスク容量)をダウンロードしてサーバーを再起動します。チャット、モデル、設定は保持されます。数分かかる場合があります。",+ confirmAction: "アップグレード",+ keywords:+ "full install upgrade インストールの種類 フルインストール アップグレード チャット専用 chat only gguf add training トレーニング 学習 train fine-tune pytorch torch エクスポート 動画 画像生成 safetensors",+ },repairInstall: {label: "インストールを修復",description:@@ -1979,6 +1991,8 @@ export const ja = {confirmTitle: "このインストールを修復しますか?",confirmDescription:"サーバーを停止してインストーラーを再実行し、このマシンの GPU に合わせて PyTorch を再インストールします。チャットと設定は保持されます。数分かかる場合があります。",+ confirmDescriptionChatOnly:+ "サーバーを停止してインストーラーを再実行します。これはチャット専用インストールのため、インストーラーは PyTorch を含むフルインストールにもアップグレードします (合計数 GB)。チャットと設定は保持されます。数分かかる場合があります。",confirmAction: "今すぐ修復",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.tsindex 5967f442394..2f94702fd4d 100644--- a/studio/frontend/src/i18n/locales/ko.ts+++ b/studio/frontend/src/i18n/locales/ko.ts@@ -1978,6 +1978,18 @@ export const ko = {openError: "폴더를 열지 못했습니다",copyError: "경로를 복사하지 못했습니다",},+ fullInstall: {+ label: "설치 유형",+ description:+ "채팅 전용(GGUF). 전체 설치에는 학습, 내보내기, 동영상, safetensors 모델, 더 많은 이미지 생성 기능이 추가됩니다.",+ action: "전체 설치로 업그레이드",+ confirmTitle: "전체 설치로 업그레이드할까요?",+ confirmDescription:+ "이 채팅 전용 설치는 GGUF 모델을 실행합니다. 전체 설치는 이 컴퓨터의 GPU에 맞는 PyTorch를 추가하여 학습, 내보내기, 동영상, safetensors 모델, 더 많은 이미지 생성 기능을 사용할 수 있게 합니다. 수 GB(디스크 공간 5GB 이상)를 다운로드하고 서버를 다시 시작합니다. 채팅, 모델, 설정은 유지됩니다. 몇 분 정도 걸릴 수 있습니다.",+ confirmAction: "업그레이드",+ keywords:+ "full install upgrade 설치 유형 전체 설치 업그레이드 채팅 전용 chat only gguf add training 학습 훈련 train fine-tune pytorch torch 내보내기 동영상 이미지 생성 safetensors",+ },repairInstall: {label: "설치 복구",description:@@ -1986,6 +1998,8 @@ export const ko = {confirmTitle: "이 설치를 복구할까요?",confirmDescription:"서버를 중지하고 설치 프로그램을 다시 실행하여 이 컴퓨터의 GPU에 맞는 PyTorch를 다시 설치합니다. 채팅과 설정은 유지됩니다. 몇 분 정도 걸릴 수 있습니다.",+ confirmDescriptionChatOnly:+ "서버를 중지하고 설치 프로그램을 다시 실행합니다. 이 설치는 채팅 전용이므로 설치 프로그램이 PyTorch를 포함한 전체 설치로도 업그레이드합니다(총 수 GB). 채팅과 설정은 유지됩니다. 몇 분 정도 걸릴 수 있습니다.",confirmAction: "지금 복구",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.tsindex 8cddafaa8f1..d7c9d5d97f4 100644--- a/studio/frontend/src/i18n/locales/pt-br.ts+++ b/studio/frontend/src/i18n/locales/pt-br.ts@@ -2000,6 +2000,18 @@ export const ptBR = {openError: "Não foi possível abrir a pasta",copyError: "Não foi possível copiar o caminho",},+ fullInstall: {+ label: "Tipo de instalação",+ description:+ "Somente chat (GGUF). A instalação completa adiciona treinamento, exportação, vídeo, modelos safetensors e mais recursos de geração de imagens.",+ action: "Atualizar para a instalação completa",+ confirmTitle: "Atualizar para a instalação completa?",+ confirmDescription:+ "Esta instalação somente chat executa modelos GGUF. A instalação completa adiciona o PyTorch para a GPU desta máquina, o que habilita treinamento, exportação, vídeo, modelos safetensors e mais recursos de geração de imagens. Ela baixa vários gigabytes (pelo menos 5 GB de espaço em disco) e reinicia o servidor. As conversas, os modelos e as configurações são mantidos. Isso pode levar alguns minutos.",+ confirmAction: "Atualizar",+ keywords:+ "full install upgrade tipo de instalação instalação completa atualizar somente chat chat only gguf add training treinamento treinar train fine-tune pytorch torch exportação vídeo geração de imagens safetensors",+ },repairInstall: {label: "Reparar a instalação",description:@@ -2008,6 +2020,8 @@ export const ptBR = {confirmTitle: "Reparar esta instalação?",confirmDescription:"Para o servidor e executa o instalador novamente, que reinstala o PyTorch para a GPU desta máquina. As conversas e as configurações são mantidas. Isso pode levar alguns minutos.",+ confirmDescriptionChatOnly:+ "Para o servidor e executa o instalador novamente. Esta é uma instalação somente chat, então o instalador também a atualiza para a instalação completa com o PyTorch, vários gigabytes no total. As conversas e as configurações são mantidas. Isso pode levar alguns minutos.",confirmAction: "Reparar agora",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.tsindex 4a4fd5d699f..5785281058c 100644--- a/studio/frontend/src/i18n/locales/ru.ts+++ b/studio/frontend/src/i18n/locales/ru.ts@@ -1994,6 +1994,18 @@ export const ru = {openError: "Не удалось открыть папку",copyError: "Не удалось скопировать путь",},+ fullInstall: {+ label: "Тип установки",+ description:+ "Только чат (GGUF). Полная установка добавляет обучение, экспорт, видео, модели safetensors и дополнительные функции генерации изображений.",+ action: "Перейти на полную установку",+ confirmTitle: "Перейти на полную установку?",+ confirmDescription:+ "Эта установка «Только чат» запускает модели GGUF. Полная установка добавляет PyTorch для графического процессора этого компьютера, что включает обучение, экспорт, видео, модели safetensors и дополнительные функции генерации изображений. Она скачивает несколько гигабайт (не менее 5 ГБ на диске) и перезапускает сервер. Чаты, модели и настройки сохраняются. Это может занять несколько минут.",+ confirmAction: "Перейти",+ keywords:+ "full install upgrade тип установки полная установка обновить только чат chat only gguf add training обучение обучить train fine-tune pytorch torch экспорт видео генерация изображений safetensors",+ },repairInstall: {label: "Восстановить установку",description:@@ -2002,6 +2014,8 @@ export const ru = {confirmTitle: "Восстановить эту установку?",confirmDescription:"Останавливает сервер и повторно запускает установщик, который переустанавливает PyTorch для графического процессора этого компьютера. Чаты и настройки сохраняются. Это может занять несколько минут.",+ confirmDescriptionChatOnly:+ "Останавливает сервер и повторно запускает установщик. Это установка «Только чат», поэтому установщик также переведёт её на полную установку с PyTorch, в сумме несколько гигабайт. Чаты и настройки сохраняются. Это может занять несколько минут.",confirmAction: "Восстановить",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.tsindex 3f730a1ead4..ee83c3277fd 100644--- a/studio/frontend/src/i18n/locales/sv.ts+++ b/studio/frontend/src/i18n/locales/sv.ts@@ -2171,6 +2171,18 @@ export const sv = {openError: "Det gick inte att öppna katalogen",copyError: "Det gick inte att kopiera sökvägen",},+ fullInstall: {+ label: "Installationstyp",+ description:+ "Endast chatt (GGUF). Den fullständiga installationen lägger till träning, export, video, safetensors-modeller och fler funktioner för bildgenerering.",+ action: "Uppgradera till fullständig installation",+ confirmTitle: "Uppgradera till den fullständiga installationen?",+ confirmDescription:+ "Den här installationen med endast chatt kör GGUF-modeller. Den fullständiga installationen lägger till PyTorch för den här datorns GPU, vilket aktiverar träning, export, video, safetensors-modeller och fler funktioner för bildgenerering. Den laddar ner flera gigabyte (minst 5 GB diskutrymme) och startar om servern. Chattar, modeller och inställningar behålls. Det kan ta flera minuter.",+ confirmAction: "Uppgradera",+ keywords:+ "full install upgrade installationstyp fullständig installation uppgradera endast chatt chat only gguf add training träning träna train fine-tune pytorch torch export video bildgenerering safetensors",+ },repairInstall: {label: "Reparera installationen",description:@@ -2179,6 +2191,8 @@ export const sv = {confirmTitle: "Reparera den här installationen?",confirmDescription:"Stoppar servern och kör installationsprogrammet igen, vilket installerar om PyTorch för den här datorns GPU i den senaste versionen som stöds. Chattar och inställningar behålls. Det kan ta flera minuter.",+ confirmDescriptionChatOnly:+ "Stoppar servern och kör installationsprogrammet igen. Det här är en installation med endast chatt, så installationsprogrammet uppgraderar den även till den fullständiga installationen med PyTorch, flera gigabyte totalt. Chattar och inställningar behålls. Det kan ta flera minuter.",confirmAction: "Reparera nu",},resetPreferences: {diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.tsindex fdc51620a4c..c3edfbf4cdc 100644--- a/studio/frontend/src/i18n/locales/zh-CN.ts+++ b/studio/frontend/src/i18n/locales/zh-CN.ts@@ -1961,6 +1961,18 @@ export const zhCN = {openError: "无法打开文件夹",copyError: "无法复制路径",},+ fullInstall: {+ label: "安装类型",+ description:+ "仅聊天 (GGUF)。完整安装会添加训练、导出、视频、safetensors 模型和更多图像生成功能。",+ action: "升级到完整安装",+ confirmTitle: "要升级到完整安装吗?",+ confirmDescription:+ "此仅聊天安装运行 GGUF 模型。完整安装会为本机 GPU 添加 PyTorch,从而启用训练、导出、视频、safetensors 模型和更多图像生成功能。它会下载几 GB 数据(至少 5 GB 磁盘空间)并重启服务器。聊天记录、模型和设置会保留。这可能需要几分钟。",+ confirmAction: "升级",+ keywords:+ "full install upgrade 安装类型 完整安装 升级 仅聊天 chat only gguf add training 训练 微调 train fine-tune pytorch torch 导出 视频 图像生成 safetensors",+ },repairInstall: {label: "修复安装",description:@@ -1969,6 +1981,8 @@ export const zhCN = {confirmTitle: "要修复此安装吗?",confirmDescription:"停止服务器并重新运行安装程序,为本机 GPU 重新安装 PyTorch。聊天记录和设置会保留。这可能需要几分钟。",+ confirmDescriptionChatOnly:+ "停止服务器并重新运行安装程序。这是仅聊天安装,因此安装程序还会将其升级为包含 PyTorch 的完整安装(共几 GB)。聊天记录和设置会保留。这可能需要几分钟。",confirmAction: "立即修复",},resetPreferences: {diff --git a/studio/frontend/tests/chat-only-full-install.test.ts b/studio/frontend/tests/chat-only-full-install.test.tsnew file mode 100644index 00000000000..bba71cefbab--- /dev/null+++ b/studio/frontend/tests/chat-only-full-install.test.ts@@ -0,0 +1,110 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++// Settings > General's Install type row upgrades a Desktop Chat only install through the manual+// repair; it used to be reachable only through a Train tooltip aimed at Danger zone.++import assert from "node:assert/strict";+import test from "node:test";++import { readSrcAsync, registerBundlerResolver } from "./helpers/kit.ts";++registerBundlerResolver();++const { canUpgradeToFullInstall } = await import("../src/hooks/tauri-repair-context.ts");+const { SETTINGS_SEARCH_KEYWORDS, createSettingsSearchIndex, renderedSearchEntries } =+ await import("../src/features/settings/settings-search.ts");+const { en } = await import("../src/i18n/locales/en.ts");++const managed = { repairInstall: () => Promise.resolve(), isExternalServer: false };+const external = { repairInstall: () => Promise.resolve(), isExternalServer: true };++const MAC_HINT = "Training on this Mac needs MLX, which requires macOS 14 or later.";++test("only a measured no_torch verdict with a managed repair can be upgraded", () => {+ assert.equal(canUpgradeToFullInstall("no_torch", null, true, managed), true);+ assert.equal(canUpgradeToFullInstall("no_torch", null, false, managed), false);+ assert.equal(canUpgradeToFullInstall("no_torch", null, true, null), false);+ assert.equal(canUpgradeToFullInstall("no_torch", null, true, external), false);+ // A Mac the MLX wheels skip.+ assert.equal(canUpgradeToFullInstall("no_torch", MAC_HINT, true, managed), false);+ for (const reason of [+ "no_gpu",+ "intel_mac",+ "rosetta",+ "mlx_unavailable",+ "torch_cpu_build",+ "torch_cuda_unavailable",+ "detection_failed",+ null,+ ]) {+ assert.equal(canUpgradeToFullInstall(reason, null, true, managed), false, String(reason));+ }+});++test("Settings search finds the row by what a Chat only user would type", () => {+ const index = createSettingsSearchIndex({ desktop: true, closeToTray: true, menuBarIcon: false });+ const entry = "settings.general.fullInstall.label";+ assert.ok(index.general.includes(entry));+ assert.ok(renderedSearchEntries(index, "general", "huggingface", true, true).includes(entry));+ // The row renders nothing on a full install, so search must not scroll to it there.+ assert.ok(!renderedSearchEntries(index, "general", "huggingface", true, false).includes(entry));+ assert.ok(+ !createSettingsSearchIndex({ desktop: false, closeToTray: false, menuBarIcon: false }).general.includes(entry),+ );++ const keywordsKey = SETTINGS_SEARCH_KEYWORDS[entry];+ assert.equal(keywordsKey, "settings.general.fullInstall.keywords");+ const keywords = en.settings.general.fullInstall.keywords;+ for (const query of ["full install", "upgrade", "add training", "train", "pytorch", "chat only", "export", "video"]) {+ assert.ok(keywords.includes(query), query);+ }+});++test("the Chat only confirm copy states the download and does not claim a reinstall", () => {+ const full = en.settings.general.fullInstall;+ assert.match(full.confirmDescription, /gigabytes/);+ assert.doesNotMatch(full.confirmDescription, /reinstall/i);+ for (const unlocked of ["training", "export", "video", "safetensors", "image generation"]) {+ assert.match(full.confirmDescription, new RegExp(unlocked));+ }+ const repair = en.settings.general.repairInstall;+ assert.match(repair.confirmDescriptionChatOnly, /upgrades it to the full install with PyTorch/);+ assert.doesNotMatch(repair.confirmDescriptionChatOnly, /reinstalls/);+});++test("the greyed Train row points at the Install type row, not at Danger zone", async () => {+ const source = await readSrcAsync("components/app-sidebar.tsx");+ const hint = /const trainDisabledHint: string \| undefined = ([\s\S]*?\n\s*: undefined);/.exec(source);+ assert.ok(hint, "could not find trainDisabledHint");+ const forNoTorch = (canRepair: boolean, chatOnlyHint: string | null = null) =>+ new Function(+ "chatOnlyMeasured",+ "chatOnlyReason",+ "chatOnlyDetail",+ "chatOnlyHint",+ "canRepair",+ `return ${hint[1]};`,+ )(true, "no_torch", null, chatOnlyHint, canRepair) as string;+ assert.match(forNoTorch(true), /Use Upgrade to full install in Settings/);+ assert.doesNotMatch(forNoTorch(true), /Repair installation/);+ assert.match(forNoTorch(false), /--no-torch/);+ assert.equal(forNoTorch(true, MAC_HINT), MAC_HINT);+ assert.equal(forNoTorch(false, MAC_HINT), MAC_HINT);+});++test("the greyed Train row opens the full install dialog when the upgrade is offered", async () => {+ const source = await readSrcAsync("components/app-sidebar.tsx");+ const row = /train: \{[\s\S]*?\n \},\n/.exec(source);+ assert.ok(row, "could not find the train nav row");+ // Clickable (not natively disabled) only while the upgrade is offered, and greyed all the same.+ assert.match(row[0], /disabled: chatOnlyMeasured && !fullInstall,/);+ assert.match(row[0], /dimmed: chatOnlyMeasured && fullInstall !== null,/);+ assert.match(row[0], /setFullInstallOpen\(true\)/);+ assert.match(row[0], /5 GB/);+ // Never navigates or preloads Train on a Chat only install.+ assert.match(row[0], /if \(chatOnlyMeasured\) \{[\s\S]*?return;\n \}\n navigateFromRow/);+ assert.match(row[0], /onIntent: \(\) => \{\n if \(chatOnlyMeasured\) return;/);+ assert.match(source, /<FullInstallDialog\s+open=\{fullInstallOpen\}/);+ assert.match(en.settings.general.fullInstall.confirmDescription, /at least 5 GB of disk space/);+});diff --git a/studio/frontend/tests/export-unsupported-text.test.ts b/studio/frontend/tests/export-unsupported-text.test.tsindex 828472cd656..8a4a211e2c6 100644--- a/studio/frontend/tests/export-unsupported-text.test.ts+++ b/studio/frontend/tests/export-unsupported-text.test.ts@@ -13,14 +13,14 @@ const { exportUnsupportedText } = await import("../src/features/export/lib/unsupconst NO_TORCH_MESSAGE ="This install was set up without the training stack (--no-torch), so export is disabled. Reinstall Unsloth Studio without --no-torch to enable export.";-test("a Desktop Chat only install is pointed at Repair installation", () => {+test("a Desktop Chat only install is pointed at the full install upgrade", () => {const text = exportUnsupportedText("no_torch", NO_TORCH_MESSAGE, true);- assert.match(text, /Use Repair installation in Settings/);+ assert.match(text, /Use Upgrade to full install in Settings/);assert.doesNotMatch(text, /--no-torch/);});-test("without a Repair action the backend's --no-torch advice stays", () => {- // Web, CLI install.sh --no-torch, or a Desktop attached to a terminal-started backend.+test("without the Install type row the backend's message stays", () => {+ // Web, CLI --no-torch, a terminal-started backend, or a Mac the MLX wheels skip.assert.equal(exportUnsupportedText("no_torch", NO_TORCH_MESSAGE, false), NO_TORCH_MESSAGE);});diff --git a/studio/frontend/tests/general-settings-token-sync.test.ts b/studio/frontend/tests/general-settings-token-sync.test.tsindex 706b89c2757..d52363b255f 100644--- a/studio/frontend/tests/general-settings-token-sync.test.ts+++ b/studio/frontend/tests/general-settings-token-sync.test.ts@@ -188,6 +188,7 @@ function generalTab(initialToken: string) {LIBRARY_SETTINGS_STORAGE_KEY: "library-settings",LIBRARY_VIEW_STORAGE_KEY: "library-view",},+ "../components/full-install-dialog": componentStub,"../components/change-password-dialog": componentStub,"../components/desktop-repair-control": componentStub,"../components/desktop-update-control": componentStub,diff --git a/studio/frontend/tests/provisional-hardware-verdict.test.ts b/studio/frontend/tests/provisional-hardware-verdict.test.tsindex 9bcfe9b1f26..5ceb1c73ed1 100644--- a/studio/frontend/tests/provisional-hardware-verdict.test.ts+++ b/studio/frontend/tests/provisional-hardware-verdict.test.ts@@ -265,7 +265,8 @@ test("the store exposes an unknown state, not just chat-only", async () => {);assert.match(ENV,- /return !state\.fetched && !state\.detectionDeferred;/,+ // verdictStale: the stored verdict came from a backend a repair or restart has replaced.+ /return \(!state\.fetched \|\| state\.verdictStale\) && !state\.detectionDeferred;/,"the selector is not derived from `fetched`, the flag that already means " +"'a server-reported verdict is stored'",);diff --git a/studio/frontend/tests/sidebar-nav-backend-parity.test.ts b/studio/frontend/tests/sidebar-nav-backend-parity.test.tsindex 380f1d7f525..c4a4aed2c4c 100644--- a/studio/frontend/tests/sidebar-nav-backend-parity.test.ts+++ b/studio/frontend/tests/sidebar-nav-backend-parity.test.ts@@ -65,7 +65,8 @@ test("Train and Video are still the capability-gated rows", async () => {// Video needs its own disabled state; reusing the chat-only verdict un-gates it on MLX-only Macs.for (const [id, disabled] of [- ["train", /disabled: chatOnlyMeasured,/],+ // Train stays enabled only to open the full install dialog on an upgradable Chat only install.+ ["train", /disabled: chatOnlyMeasured && !fullInstall,/],["video", /disabled: (?!chatOnlyMeasured)\w+,/],] as const) {const body = bodies.get(id);diff --git a/studio/frontend/tests/sidebar-spinner-column.test.ts b/studio/frontend/tests/sidebar-spinner-column.test.tsindex b68bdd4e7ec..a0d9975bb47 100644--- a/studio/frontend/tests/sidebar-spinner-column.test.ts+++ b/studio/frontend/tests/sidebar-spinner-column.test.ts@@ -185,7 +185,7 @@ test("the expanded row and the flyout both show a pending tooltip", async () =>);assert.match(appSidebar,- /alwaysTooltip=\{rowState\.pending\}/,+ /alwaysTooltip=\{rowState\.pending \|\| Boolean\(row\.dimmed\)\}/,"the inline rows never ask for the exception",);assert.match(appSidebar, /^\s*title=\{tooltip\}$/m, "MoreMenuItem drops a pending title");diff --git a/studio/frontend/tests/verdict-after-backend-restart.test.ts b/studio/frontend/tests/verdict-after-backend-restart.test.tsnew file mode 100644index 00000000000..3010663e004--- /dev/null+++ b/studio/frontend/tests/verdict-after-backend-restart.test.ts@@ -0,0 +1,119 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++// A provisional reply keeps the stored verdict, so after a repair replaced the backend the old+// no_torch stayed "measured" for the session and Train stayed greyed.++import assert from "node:assert/strict";+import { register } from "node:module";+import test from "node:test";++import {+ installLocalStorageFake,+ readSrcAsync,+ registerBundlerResolver,+} from "./helpers/kit.ts";++register("./helpers/vite-env-loader.mjs", import.meta.url);+registerBundlerResolver();+const { store } = installLocalStorageFake();+store.set("unsloth_auth_token", "token");+Object.defineProperty(globalThis, "navigator", {+ configurable: true,+ value: { platform: "Win32", userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" },+});++const CHAT_ONLY = {+ device_type: "windows",+ apple_silicon: false,+ file_manager: "explorer",+ chat_only: true,+ chat_only_reason: "no_torch",+ version: "2026.1.1",+};+const DETECTING = { chat_only: true, hardware_detecting: true, version: "2026.1.1" };+const FULL = { ...CHAT_ONLY, chat_only: false, chat_only_reason: null };++let reply: Record<string, unknown> | null = CHAT_ONLY;+globalThis.fetch = (async () => {+ const body = reply;+ if (body === null) throw new TypeError("Failed to fetch");+ const res = { ok: true, json: async () => ({ ...body }), clone: () => res };+ return res;+}) as unknown as typeof fetch;++const { fetchDeviceType, forgetMeasuredVerdict, usePlatformStore } = await import(+ "../src/config/env.ts"+);++test("a replaced backend's verdict is unmeasured until the new one answers", async () => {+ await fetchDeviceType({ force: true });+ let s = usePlatformStore.getState();+ assert.equal(s.capabilitiesUnknown(), false);+ assert.equal(s.chatOnlyReason, "no_torch");++ forgetMeasuredVerdict();+ assert.equal(usePlatformStore.getState().capabilitiesUnknown(), true);++ reply = DETECTING;+ const realDateNow = Date.now;+ let clock = realDateNow();+ Date.now = () => (clock += 2000);+ try {+ await fetchDeviceType({ force: true });+ } finally {+ Date.now = realDateNow;+ }+ s = usePlatformStore.getState();+ assert.equal(s.capabilitiesUnknown(), true, "a provisional reply ended the wait");+ assert.equal(s.deviceType, "windows");+ assert.equal(s.fileManager, "explorer");++ reply = FULL;+ await fetchDeviceType({ force: true });+ s = usePlatformStore.getState();+ assert.equal(s.capabilitiesUnknown(), false);+ assert.equal(s.isChatOnly(), false, "the new verdict was not stored");+ assert.equal(s.chatOnlyReason, null);+});++test("a replaced backend under deferred detection does not inherit the old reason", async () => {+ // UNSLOTH_STUDIO_DISABLE_TORCH_WARM=1: a deferred reply counts as settled.+ reply = CHAT_ONLY;+ await fetchDeviceType({ force: true });+ assert.equal(usePlatformStore.getState().chatOnlyReason, "no_torch");+ forgetMeasuredVerdict();+ reply = { ...DETECTING, hardware_detection_deferred: true };+ await fetchDeviceType({ force: true });+ const s = usePlatformStore.getState();+ assert.equal(s.capabilitiesUnknown(), false);+ assert.equal(s.isChatOnly(), true);+ assert.equal(s.chatOnlyReason, null);+ assert.equal(s.deviceType, "windows");+});++test("a failed read after replacing a deferred backend stays unmeasured", async () => {+ reply = { ...DETECTING, hardware_detection_deferred: true };+ await fetchDeviceType({ force: true });+ assert.equal(usePlatformStore.getState().detectionDeferred, true);+ forgetMeasuredVerdict();+ assert.equal(usePlatformStore.getState().capabilitiesUnknown(), true);+ // The catch path stores the browser guess (chat_only false on Windows): it must not read as settled.+ reply = null;+ await fetchDeviceType({ force: true });+ assert.equal(usePlatformStore.getState().capabilitiesUnknown(), true);+ reply = CHAT_ONLY;+});++test("only a backend that already answered marks the verdict stale", async () => {+ // Not on first launch, and not on an effect re-run while the same backend stays up.+ const src = await readSrcAsync("app/provider.tsx");+ assert.match(+ src,+ /if \(status === "running"\) servedRef\.current = true;\s*else if \(servedRef\.current\) verdictStaleRef\.current = true;/,+ );+ assert.match(+ src,+ /if \(verdictStaleRef\.current\) \{\s*verdictStaleRef\.current = false;\s*forgetMeasuredVerdict\(\);\s*\}\s*void fetchDeviceType\(\{ force: true \}\)/,+ );+});