Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.
TypeScript ai-photo-editorcomfyui-alternativegenerative-fillimage-editingimage-generationinpaintinglinuxlocal-aimacosmcpmcp-servernano-banana-alternativeofflinephoto-editorprivacyqwen-imageqwen-image-2-1stable-diffusion-cppvulkanwindows
Mac: Apple-grid app icon, Mac-only settings, presets named by Mac memory
Gabriele Lozuponec1d844844654
diff --git a/assets/brand/README.md b/assets/brand/README.mdindex 91fa058..aa967cc 100644--- a/assets/brand/README.md+++ b/assets/brand/README.md@@ -24,6 +24,7 @@ The app UI itself is monochrome (see `src/styles.css`).| --- | --- | --- || `icon/kokon-icon*` | light squircle tile with the black mark | desktop app (installed into `src-tauri/icons`) || `icon/kokon-icon-inverse*` | black tile, light mark | website, social avatars, anywhere but the desktop app |+| `icon/macos/` | macOS icon on Apple's template grid (824 px squircle in 1024, 100 px margin, soft shadow), PNGs + `kokon.icns` | installed into `src-tauri/icons/macos` (used by `tauri.macos.conf.json`, also the Dock icon in dev) || `icon/kokon-app.ico` | Windows icon, 16–256 px each drawn directly | copied to `src-tauri/icons/icon.ico` (app, installer, uninstaller) || `mark/` | the mark alone on transparent, black and light | documents, slides, merch || `logo/` | mark + "Kokon" (Inter SemiBold, outlined) | README header, website header; `-white` on dark backgrounds |diff --git a/assets/brand/icon/macos/kokon-macos-1024.png b/assets/brand/icon/macos/kokon-macos-1024.pngnew file mode 100644index 0000000..81db701Binary files /dev/null and b/assets/brand/icon/macos/kokon-macos-1024.png differdiff --git a/assets/brand/icon/macos/kokon-macos-128.png b/assets/brand/icon/macos/kokon-macos-128.pngnew file mode 100644index 0000000..b7e1c8fBinary files /dev/null and b/assets/brand/icon/macos/kokon-macos-128.png differdiff --git a/assets/brand/icon/macos/kokon-macos-16.png b/assets/brand/icon/macos/kokon-macos-16.pngnew file mode 100644index 0000000..61805f4Binary files /dev/null and b/assets/brand/icon/macos/kokon-macos-16.png differdiff --git a/assets/brand/icon/macos/kokon-macos-256.png b/assets/brand/icon/macos/kokon-macos-256.pngnew file mode 100644index 0000000..4d024b2Binary files /dev/null and b/assets/brand/icon/macos/kokon-macos-256.png differdiff --git a/assets/brand/icon/macos/kokon-macos-32.png b/assets/brand/icon/macos/kokon-macos-32.pngnew file mode 100644index 0000000..d9b9cb1Binary files /dev/null and b/assets/brand/icon/macos/kokon-macos-32.png differdiff --git a/assets/brand/icon/macos/kokon-macos-512.png b/assets/brand/icon/macos/kokon-macos-512.pngnew file mode 100644index 0000000..c6e53c6Binary files /dev/null and b/assets/brand/icon/macos/kokon-macos-512.png differdiff --git a/assets/brand/icon/macos/kokon-macos-64.png b/assets/brand/icon/macos/kokon-macos-64.pngnew file mode 100644index 0000000..b22b282Binary files /dev/null and b/assets/brand/icon/macos/kokon-macos-64.png differdiff --git a/assets/brand/icon/macos/kokon.icns b/assets/brand/icon/macos/kokon.icnsnew file mode 100644index 0000000..bd93cf5Binary files /dev/null and b/assets/brand/icon/macos/kokon.icns differdiff --git a/crates/qls-core/src/catalog.rs b/crates/qls-core/src/catalog.rsindex b091f42..f41a368 100644--- a/crates/qls-core/src/catalog.rs+++ b/crates/qls-core/src/catalog.rs@@ -234,6 +234,11 @@ pub struct Preset {pub label: &'static str,/// Smallest reported VRAM (MiB) this preset is recommended for.pub min_vram_mib: u64,+ /// Name on a Mac: the unified memory sizes it is chosen for (through+ /// `planner::unified_memory_planning_mib`), since "12 GB" would read as RAM there.+ pub unified_label: &'static str,+ /// `summary` for a Mac (no "system RAM": it is the same memory).+ pub unified_summary: &'static str,pub diffusion: Download,pub text_encoder: Download,pub text_encoder_placement: TextEncoderPlacement,@@ -248,6 +253,8 @@ pub const PRESETS: &[Preset] = &[Preset {id: "12gb",label: "12 GB",+ unified_label: "16–24 GB Mac",+ unified_summary: "4-bit image model and text encoder; images of about 1–1.5 megapixels",min_vram_mib: 0,diffusion: DIFFUSION_Q4_K_M,text_encoder: TEXT_ENCODER_Q4_K_M,@@ -258,6 +265,8 @@ pub const PRESETS: &[Preset] = &[Preset {id: "16gb",label: "16 GB",+ unified_label: "32–36 GB Mac",+ unified_summary: "4-bit image model and text encoder; native 2K for Quality",min_vram_mib: 14 * 1024,diffusion: DIFFUSION_Q4_K_M,text_encoder: TEXT_ENCODER_Q4_K_M,@@ -268,6 +277,8 @@ pub const PRESETS: &[Preset] = &[Preset {id: "24gb",label: "24 GB",+ unified_label: "48 GB Mac",+ unified_summary: "8-bit image model (closest to the original); larger edits fit",min_vram_mib: 20 * 1024,diffusion: DIFFUSION_Q8_0,text_encoder: TEXT_ENCODER_Q4_K_M,@@ -278,6 +289,8 @@ pub const PRESETS: &[Preset] = &[Preset {id: "32gb",label: "32 GB+",+ unified_label: "64 GB+ Mac",+ unified_summary: "8-bit image model and 8-bit text encoder",min_vram_mib: 28 * 1024,diffusion: DIFFUSION_Q8_0,text_encoder: TEXT_ENCODER_Q8_0,diff --git a/crates/qls-core/src/engine.rs b/crates/qls-core/src/engine.rsindex cdbfedb..3d8c015 100644--- a/crates/qls-core/src/engine.rs+++ b/crates/qls-core/src/engine.rs@@ -842,9 +842,9 @@ impl Engine {};j.request.width = None;j.request.height = None;- j.view.notes.push("Ran out of VRAM; retrying at a lower resolution.".into());+ j.view.notes.push("Ran out of GPU memory; retrying at a lower resolution.".into());} else {- j.view.notes.push("Ran out of VRAM; retrying with memory optimization.".into());+ j.view.notes.push("Ran out of GPU memory; retrying with memory optimization.".into());}j.view.status = JobStatus::Queued;j.view.stage = None;diff --git a/crates/qls-core/src/error.rs b/crates/qls-core/src/error.rsindex 24fbf8b..3328766 100644--- a/crates/qls-core/src/error.rs+++ b/crates/qls-core/src/error.rs@@ -120,7 +120,7 @@ pub fn translate_generation_failure(backend_message: &str, log_tail: &str, size:let combined = format!("{backend_message}\n{log_tail}");let lc = combined.to_ascii_lowercase();if looks_like_oom(&combined) {- let mut e = AppError::new(ErrorCode::OutOfMemory, format!("Not enough VRAM for {}×{}.", size.0, size.1));+ let mut e = AppError::new(ErrorCode::OutOfMemory, format!("Not enough GPU memory for {}×{}.", size.0, size.1));e = match smaller {Some((w, h)) => e.suggest(format!("Try {w}×{h}, fewer reference images, or the Fast preset.")),None => e.suggest("Try a smaller resolution or fewer reference images."),@@ -150,8 +150,8 @@ pub fn translate_startup_failure(log_tail: &str) -> AppError {.detail(log_tail.to_string());}if looks_like_oom(log_tail) {- return AppError::new(ErrorCode::OutOfMemory, "Not enough VRAM to load the model.")- .suggest("Close other GPU applications, or store the text encoder in RAM (Settings).")+ return AppError::new(ErrorCode::OutOfMemory, "Not enough GPU memory to load the model.")+ .suggest("Close other apps that use the GPU, or lower the memory use in Settings → Performance.").detail(log_tail.to_string());}if lc.contains("address already in use") || lc.contains("bind") && lc.contains("fail") {@@ -182,7 +182,7 @@ mod tests {fn oom_is_translated_with_suggestion() {let e = translate_generation_failure("generate_image returned empty results", "[ERROR] cudaMalloc failed: out of memory", (2048, 2048), Some((1536, 1536)));assert_eq!(e.code, ErrorCode::OutOfMemory);- assert_eq!(e.message, "Not enough VRAM for 2048×2048.");+ assert_eq!(e.message, "Not enough GPU memory for 2048×2048.");assert!(e.suggestion.unwrap().contains("1536×1536"));assert!(e.detail.unwrap().contains("cudaMalloc"));}diff --git a/crates/qls-core/src/planner.rs b/crates/qls-core/src/planner.rsindex 7e10c21..e496162 100644--- a/crates/qls-core/src/planner.rs+++ b/crates/qls-core/src/planner.rs@@ -309,7 +309,7 @@ pub struct Plan {pub quality: Quality,pub resolution: ResolutionMode,pub aspect_label: String,- /// User-visible notes such as "Optimized for available VRAM".+ /// User-visible notes such as "Optimized for available GPU memory".pub notes: Vec<String>,pub optimized_for_vram: bool,pub estimated_seconds: f32,@@ -710,7 +710,7 @@ pub fn plan(req: &GenerationRequest, inputs: &PlanInputs, rec: &RecommendedSettilet allowed = (budget_area as f64 / (1.0 + n_refs)) as u64;if wanted > allowed {optimized = true;- notes.push("Resolution reduced to fit available VRAM.".into());+ notes.push("Resolution reduced to fit available GPU memory.".into());allowed} else {wanted@@ -728,7 +728,7 @@ pub fn plan(req: &GenerationRequest, inputs: &PlanInputs, rec: &RecommendedSettilet mid = (lo + hi) / 2;if fits(mid) { lo = mid } else { hi = mid }}- notes.push("Resolution reduced to fit available VRAM.".into());+ notes.push("Resolution reduced to fit available GPU memory.".into());lo};@@ -990,6 +990,12 @@ mod tests {assert_eq!(recommended_preset(Some(mac(48))).id, "24gb");assert_eq!(recommended_preset(Some(mac(64))).id, "32gb");assert_eq!(unified_memory_planning_mib(4096, te), 0, "never underflows");+ // The Mac names of the presets match what each memory size gets.+ for (gb, id) in [(16, "12gb"), (24, "12gb"), (32, "16gb"), (36, "16gb"), (48, "24gb"), (64, "32gb"), (128, "32gb")] {+ let p = recommended_preset(Some(mac(gb)));+ assert_eq!(p.id, id, "{gb} GB Mac");+ assert!(p.unified_label.contains(&gb.to_string()) || (gb > 64 && p.unified_label.contains('+')), "{gb} GB Mac labelled {}", p.unified_label);+ }}use super::*;diff --git a/crates/qls-service/src/api.rs b/crates/qls-service/src/api.rsindex cc786dd..4cfc4e9 100644--- a/crates/qls-service/src/api.rs+++ b/crates/qls-service/src/api.rs@@ -225,13 +225,14 @@ async fn setup_hardware(State(s): St, Query(q): Query<HardwareQ>) -> ApiResult<Jlet vendor = gpu.as_ref().map(|g| g.vendor.clone());let recommended_backend = vendor.as_deref().map(GpuBackend::for_vendor).unwrap_or_default();let backend = q.backend.unwrap_or(if cfg.setup_complete { cfg.gpu_backend } else { recommended_backend });+ let unified = gpu.as_ref().is_some_and(|g| g.unified);let presets: Vec<Value> = catalog::PRESETS.iter().map(|p| {let files = catalog::downloads_for(p, backend, true);let (download, disk) = installer::space_needed(&dir, &files);json!({- "id": p.id, "label": p.label, "summary": p.summary, "verified": p.verified, "min_vram_mib": p.min_vram_mib,+ "id": p.id, "label": if unified { p.unified_label } else { p.label }, "summary": if unified { p.unified_summary } else { p.summary }, "verified": p.verified, "min_vram_mib": p.min_vram_mib,"files": installer::preview(&dir, &files), "download_bytes": download, "disk_bytes": disk,})})diff --git a/scripts/brand/kokon_brand.py b/scripts/brand/kokon_brand.pyindex 08a2bc9..af93b31 100644--- a/scripts/brand/kokon_brand.py+++ b/scripts/brand/kokon_brand.py@@ -11,6 +11,7 @@ app already ships in node_modules/@fontsource-variable/inter).from __future__ import annotationsimport math+import shutilimport sysfrom dataclasses import dataclassfrom pathlib import Path@@ -236,6 +237,30 @@ def icon_layers(v: Variant, size: int, inverse=False, border=True):return rl, sl+def macos_icon(v: Variant, size: int):+ """macOS app icon on Apple's template grid: an 824/1024 squircle centred on the canvas+ (100 px margin), mark at the same share of the tile as the desktop icon, and the soft+ drop shadow every Dock icon has. Without the margin Kokon looks bigger than its+ neighbours in the Dock."""+ k = size / 1024+ r = 412 * k+ cx, cy = size / 2, size / 2+ tile = squircle(cx, cy, r)+ m = 2 * r * (0.50 / 0.92) # mark/tile ratio of icon_layers+ paths, _ = placed(mark(v), (cx - m / 2, cy - m / 2, m, m))+ # Shadow: the tile shape, 12 px lower, blurred 20 px, 30 % black (at 1024).+ from PIL import ImageFilter+ sh = Image.new("L", (size * SS, size * SS), 0)+ ImageDraw.Draw(sh).polygon([(x * SS, (y + 12 * k) * SS) for x, y in tile.pts], fill=int(255 * 0.30))+ sh = sh.resize((size, size), Image.LANCZOS)+ if size >= 64:+ sh = sh.filter(ImageFilter.GaussianBlur(20 * k))+ img = Image.new("RGBA", (size, size), (0, 0, 0, 0))+ img.putalpha(sh)+ body = raster((size, size), [([tile], PAPER_RGB + (255,)), (paths, INK_RGB + (255,))])+ return Image.alpha_composite(img, body)++# ---------------------------------------------------------------------------------------# Inter (wordmark): instance the variable font the app ships, as TTF for Pillow and paths.# ---------------------------------------------------------------------------------------@@ -452,6 +477,21 @@ def build(v: Variant):imgs[256].save(app_ico, sizes=[(s, s) for s in ico_sizes], append_images=[imgs[s] for s in ico_sizes if s != 256])made.append(app_ico)+ # 7. macOS app icon set (Apple template grid), installed into src-tauri/icons/macos.+ mac = {sz: macos_icon(v, sz) for sz in (16, 32, 64, 128, 256, 512, 1024)}+ for sz, img in mac.items():+ save(img, f"icon/macos/kokon-macos-{sz}.png")+ icns = OUT / "icon" / "macos" / "kokon.icns"+ mac[1024].save(icns, format="ICNS", append_images=[mac[s] for s in (16, 32, 64, 128, 256, 512)])+ made.append(icns)+ tauri = ROOT / "src-tauri" / "icons" / "macos"+ tauri.mkdir(parents=True, exist_ok=True)+ for sz, name in [(32, "32x32.png"), (128, "128x128.png"), (256, "[email protected]"), (512, "icon.png")]:+ mac[sz].save(tauri / name)+ made.append(tauri / name)+ shutil.copyfile(icns, tauri / "icon.icns")+ made.append(tauri / "icon.icns")+# 6. Social preview (GitHub, links): dark, white logo, one line of copy.W_, H_ = 1280, 640size_l, mp, tp = lockup(v, 150, PAPER_RGB)diff --git a/src-tauri/icons/macos/128x128.png b/src-tauri/icons/macos/128x128.pngnew file mode 100644index 0000000..b7e1c8fBinary files /dev/null and b/src-tauri/icons/macos/128x128.png differdiff --git a/src-tauri/icons/macos/[email protected] b/src-tauri/icons/macos/[email protected]new file mode 100644index 0000000..4d024b2Binary files /dev/null and b/src-tauri/icons/macos/[email protected] differdiff --git a/src-tauri/icons/macos/32x32.png b/src-tauri/icons/macos/32x32.pngnew file mode 100644index 0000000..d9b9cb1Binary files /dev/null and b/src-tauri/icons/macos/32x32.png differdiff --git a/src-tauri/icons/macos/icon.icns b/src-tauri/icons/macos/icon.icnsnew file mode 100644index 0000000..bd93cf5Binary files /dev/null and b/src-tauri/icons/macos/icon.icns differdiff --git a/src-tauri/icons/macos/icon.png b/src-tauri/icons/macos/icon.pngnew file mode 100644index 0000000..c6e53c6Binary files /dev/null and b/src-tauri/icons/macos/icon.png differdiff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.jsonindex 5c43761..3874c84 100644--- a/src-tauri/tauri.macos.conf.json+++ b/src-tauri/tauri.macos.conf.json@@ -1,7 +1,7 @@{"bundle": {"targets": ["app", "dmg"],- "icon": ["icons/32x32.png", "icons/128x128.png", "icons/[email protected]", "icons/icon.icns"],+ "icon": ["icons/macos/32x32.png", "icons/macos/128x128.png", "icons/macos/[email protected]", "icons/macos/icon.icns"],"macOS": { "minimumSystemVersion": "26.0", "signingIdentity": "-" }}}diff --git a/src/components/Composer.tsx b/src/components/Composer.tsxindex 78fb6d7..6314c59 100644--- a/src/components/Composer.tsx+++ b/src/components/Composer.tsx@@ -319,7 +319,7 @@ export function Composer() {const hintTitle = plan? [plan.working.width !== plan.output.width || plan.working.height !== plan.output.height ? `Works at ${plan.working.width}×${plan.working.height}` : "",- plan.optimized_for_vram ? "Optimized for VRAM" : "",+ plan.optimized_for_vram ? "Optimized for GPU memory" : "",...plan.notes,].filter(Boolean)diff --git a/src/components/Settings.tsx b/src/components/Settings.tsxindex 9e7c144..35d75cc 100644--- a/src/components/Settings.tsx+++ b/src/components/Settings.tsx@@ -109,6 +109,8 @@ export function Settings() {if (!cfg) return null;const profile = cfg.profiles.find((p) => p.id === cfg.activeProfile) ?? cfg.profiles[0];+ // Apple Silicon (Metal) has unified memory: no VRAM, device picker or CUDA-only options.+ const mac = cfg.gpuBackend === "metal";const set = (patch: Partial<AppConfig>) => {setCfg({ ...cfg, ...patch });setDirty(true);@@ -165,7 +167,7 @@ export function Settings() {<span>Keep inference server running after closing the app</span><Switch on={cfg.keepServerRunning} onChange={(v) => set({ keepServerRunning: v })} /></div>- <span className="muted" style={{ marginTop: -10 }}>Keeps the model in VRAM so the next start is instant.</span>+ <span className="muted" style={{ marginTop: -10 }}>Keeps the model loaded so the next start is instant.</span><label className="field-row"><span>Unload the model after idle minutes (app closed)</span><input className="input" type="number" min={0} max={1440} style={{ width: 90 }} value={cfg.idleUnloadMinutes} onChange={(e) => set({ idleUnloadMinutes: Math.max(0, Number(e.target.value) || 0) })} />@@ -224,11 +226,38 @@ export function Settings() {</>)}- {tab === "performance" && (+ {tab === "performance" && mac && (+ <>+ <div className="field">+ <span>Engine</span>+ <span>Metal (Apple Silicon GPU, beta)</span>+ </div>+ <div className="field">+ <span>Model memory</span>+ <Seg<TextEncoderPlacement>+ value={cfg.textEncoderPlacement === "disk" ? "disk" : "gpu"}+ options={[+ { value: "gpu", label: "Keep loaded" },+ { value: "disk", label: "Load when needed" },+ ]}+ onChange={(v) => set({ textEncoderPlacement: v })}+ />+ <span className="muted">+ Keep loaded: every model stays in memory, fastest between steps; needs 24 GB or more. Load when needed: each model (text encoder, image model, decoder) is loaded from the SSD when it runs and released after, so the image model has room to work on 16 GB Macs. It adds a few seconds per image. macOS cannot swap memory the GPU is using, so this is what makes 16 GB work.+ </span>+ </div>+ <label className="field-row">+ <span>Memory kept free for macOS (GiB)</span>+ <input className="input" type="number" min={0} max={16} step={0.5} style={{ width: 90 }} value={cfg.vramReserveGib} onChange={(e) => set({ vramReserveGib: Math.max(0, Number(e.target.value) || 0) })} />+ </label>+ </>+ )}++ {tab === "performance" && !mac && (<><div className="field"><span>Engine</span>- <span>{{ cuda: "CUDA (NVIDIA)", vulkan: "Vulkan", metal: "Metal (Apple Silicon, beta)" }[cfg.gpuBackend]}</span>+ <span>{cfg.gpuBackend === "vulkan" ? "Vulkan" : "CUDA (NVIDIA)"}</span><span className="muted">To switch engine, use Models → Set up models…: it downloads the other engine if needed. Both can stay installed.</span></div><label className="field-row">@@ -251,26 +280,32 @@ export function Settings() {{ value: "gpu", label: "GPU" },{ value: "cpu", label: "CPU" },{ value: "auto", label: "Auto" },- { value: "disk", label: "Disk" },]}onChange={(v) => set({ textEncoderPlacement: v })}/><span className="muted">- RAM (recommended): weights in system memory, computed on the GPU. CPU uses the least VRAM but makes image editing several times slower. Disk reads all weights from disk when needed: least memory, slower (for 16 GB Macs). On a Mac, RAM and GPU are the same memory.+ RAM (recommended): weights in system memory, computed on the GPU. CPU uses the least VRAM but makes image editing several times slower.</span></div><label className="field-row"><span>VRAM reserve (GiB)</span><input className="input" type="number" min={0} max={16} step={0.5} style={{ width: 90 }} value={cfg.vramReserveGib} onChange={(e) => set({ vramReserveGib: Math.max(0, Number(e.target.value) || 0) })} /></label>+ </>+ )}++ {tab === "performance" && (+ <><div className="field-row"><span>Flash attention</span><Switch on={cfg.flashAttention} onChange={(v) => set({ flashAttention: v })} /></div>- <div className="field-row">- <span>SageAttention (faster sampling)</span>- <Switch on={cfg.sageAttention && cfg.gpuBackend === "cuda"} onChange={(v) => set({ sageAttention: v })} disabled={cfg.gpuBackend !== "cuda"} />- </div>+ {cfg.gpuBackend === "cuda" && (+ <div className="field-row">+ <span>SageAttention (faster sampling)</span>+ <Switch on={cfg.sageAttention} onChange={(v) => set({ sageAttention: v })} />+ </div>+ )}<label className="field-row"><span>VAE tile size (px, 0 = off)</span><input className="input" type="number" min={0} max={2048} step={128} style={{ width: 90 }} value={cfg.vaeTileSize} onChange={(e) => set({ vaeTileSize: Math.max(0, Math.round(Number(e.target.value) || 0)) })} />@@ -288,13 +323,15 @@ export function Settings() {onChange={(v) => set({ prefixCacheType: v })}/><span className="muted">- Reuses the reference image and prompt across steps so each step only computes the new image. 8-bit (recommended) fits a 2 MP edit on 16 GB; FP16 is more exact but needs twice the memory; Auto uses FP32 when SageAttention is on and usually does not fit.+ Reuses the reference image and prompt across steps so each step only computes the new image. 8-bit (recommended) uses the least memory; FP16 is more exact but needs twice the memory{cfg.gpuBackend === "cuda" ? "; Auto uses FP32 when SageAttention is on and usually does not fit" : ""}.</span></div>- <div className="field-row">- <span>Load all weights at startup</span>- <Switch on={cfg.eagerLoad} onChange={(v) => set({ eagerLoad: v })} />- </div>+ {cfg.textEncoderPlacement !== "disk" && (+ <div className="field-row">+ <span>Load all weights at startup</span>+ <Switch on={cfg.eagerLoad} onChange={(v) => set({ eagerLoad: v })} />+ </div>+ )}<div className="field"><span>Detailed upscale</span><Seg<RefineMode>@@ -313,13 +350,17 @@ export function Settings() {<span>ESRGAN tile size (px, 0 = default 128)</span><input className="input" type="number" min={0} max={1024} step={64} style={{ width: 90 }} value={cfg.upscaleTileSize} onChange={(e) => set({ upscaleTileSize: Math.max(0, Math.round(Number(e.target.value) || 0)) })} /></label>- <label className="field-row">- <span>Simulated VRAM for testing (MiB, 0 = detect)</span>- <input className="input" type="number" min={0} max={196608} step={1024} style={{ width: 100 }} value={cfg.vramOverrideMib} onChange={(e) => set({ vramOverrideMib: Math.max(0, Math.round(Number(e.target.value) || 0)) })} />- </label>- <span className="muted" style={{ marginTop: -10 }}>- Plans image sizes as if the card had this much memory (e.g. 12288 to test a 12 GB card). Combine with the VRAM ballast script in scripts/dev so the memory is really unavailable.- </span>+ {!mac && (+ <>+ <label className="field-row">+ <span>Simulated VRAM for testing (MiB, 0 = detect)</span>+ <input className="input" type="number" min={0} max={196608} step={1024} style={{ width: 100 }} value={cfg.vramOverrideMib} onChange={(e) => set({ vramOverrideMib: Math.max(0, Math.round(Number(e.target.value) || 0)) })} />+ </label>+ <span className="muted" style={{ marginTop: -10 }}>+ Plans image sizes as if the card had this much memory (e.g. 12288 to test a 12 GB card). Combine with the VRAM ballast script in scripts/dev so the memory is really unavailable.+ </span>+ </>+ )}<label className="field-row"><span>Inference server port</span><input className="input" type="number" min={1024} max={65535} style={{ width: 100 }} value={cfg.serverPort} onChange={(e) => set({ serverPort: Number(e.target.value) || cfg.serverPort })} />diff --git a/src/components/Setup.tsx b/src/components/Setup.tsxindex db0cbb0..bedb57c 100644--- a/src/components/Setup.tsx+++ b/src/components/Setup.tsx@@ -241,12 +241,17 @@ export function Setup() {</div>)}<div className="field">- <span>Preset for your graphics card</span>+ <span>{hw.gpu?.unified ? "Preset for your Mac's memory" : "Preset for your graphics card"}</span><Seg<string> value={preset ?? hw.recommended} options={hw.presets.map((p) => ({ value: p.id, label: p.label }))} onChange={setPreset} />{chosen && (<span className="muted">{chosen.summary}.{chosen.id === hw.recommended ? " Recommended for your GPU." : ""}- {chosen.verified ? "" : " Not yet tested on a real card of this size."}+ {hw.gpu?.unified ? " Not yet tested on a Mac." : chosen.verified ? "" : " Not yet tested on a real card of this size."}+ </span>+ )}+ {hw.gpu?.unified && (+ <span className="muted">+ Presets are named by total unified memory. macOS lets the graphics part use about two thirds of it, and the text encoder shares the same memory, so the image model gets less than the number on your Mac: a 16 GB Mac has room for the lightest preset only. Pick a larger one only on a Mac with that much memory.</span>)}</div>