Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(create): the CPU-mode banner gives Linux AMD users the Linux answer

purple3376b7b4f7ae
diff --git a/src/api/backend.ts b/src/api/backend.ts
index ba2a7470..564973b0 100644
--- a/src/api/backend.ts
+++ b/src/api/backend.ts
@@ -33,6 +33,15 @@ export function isMacOS(): boolean {
return /Mac|iPhone|iPad|iPod/.test(plat) || /Mac OS X|Macintosh/.test(ua);
}
+/** True on Linux (WebKitGTK reports "Linux ..." / "X11; Linux"). Same
+ * runtime-check rule as isMacOS — one dist serves all three OS builds. */
+export function isLinux(): boolean {
+ if (typeof navigator === "undefined") return false;
+ const plat = navigator.platform || "";
+ const ua = navigator.userAgent || "";
+ return (/Linux/.test(plat) || /Linux/.test(ua)) && !/Android/.test(ua);
+}
+
/**
* Launch policy: the macOS desktop app is now a full local+cloud app like
* Windows/Linux (David 2026-07-22 — local mode built + tested). The former
diff --git a/src/components/create/experimental/CreateExperimental.tsx b/src/components/create/experimental/CreateExperimental.tsx
index ea4fb08d..d007a536 100644
--- a/src/components/create/experimental/CreateExperimental.tsx
+++ b/src/components/create/experimental/CreateExperimental.tsx
@@ -16,6 +16,7 @@ import { MaskEditor } from './MaskEditor'
import { VhsInstallModal } from './VhsInstallModal'
import { INTENT_MAP, isIntentAvailable } from './intents'
import { isMlxImageHost } from '../../../api/mlx-image'
+import { isLinux } from '../../../api/backend'
import { fetchGalleryItemBlob } from './galleryUrl'
import { loadImageRef } from './loadImage'
@@ -163,7 +164,13 @@ function CreateExperimentalInner() {
<AlertTriangle size={12} className="shrink-0" />
<span>
ComfyUI is running on the CPU (no usable GPU detected). Generation will be extremely slow and may time out.
- AMD GPU? Point LU at a ROCm/ZLUDA ComfyUI and set Settings → Hardware → ComfyUI GPU to force GPU.
+ {/* The right AMD path differs per OS — three users followed the
+ generic ZLUDA pointer on Linux, where ZLUDA guides are
+ Windows-only dead ends (numbrain/lapbo/suraj3014, 2026-08-02).
+ Linux AMD wants a ROCm torch inside ComfyUI's own venv. */}
+ {isLinux()
+ ? ' AMD GPU? Install the ROCm build of PyTorch into ComfyUI’s venv (pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2), then set Settings → Hardware → ComfyUI GPU to force GPU.'
+ : ' AMD GPU? Point LU at a ROCm/ZLUDA ComfyUI and set Settings → Hardware → ComfyUI GPU to force GPU.'}
</span>
</div>
)}