Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
Images: Vulkan decodes in 256-pixel tiles at a quarter's overlap (the 780M's 1024x1024 VAE: 23 s instead of 45 s); docs/IMAGES.md speed table
Niko1221faf6c1c95589
diff --git a/docs/IMAGES.md b/docs/IMAGES.mdindex 7f6273554..108642a1d 100644--- a/docs/IMAGES.md+++ b/docs/IMAGES.md@@ -36,8 +36,9 @@ out of the config).Backends: CUDA on NVIDIA (needs the CUDA Toolkit), HIP on AMD cards with their own memory (Linux, the same ROCm as theengine), Vulkan on AMD APUs/iGPUs (Radeon 780M, Strix Point/Halo), Intel Arc and AMD under Windows. A Linux PC withoutthe Vulkan development files gets the LunarG Vulkan SDK unpacked into `third_party/` (no sudo); on Windows install the-Vulkan SDK first. On Vulkan setup adds `--vae-tiling`: an untiled 1024x1024 VAE decode on a Radeon 780M is one GPU-job long enough to trip the kernel driver's job timeout (no image).+Vulkan SDK first. On Vulkan setup adds `--vae-tiling --vae-tile-overlap 0.25`: an untiled 1024x1024 VAE decode on a Radeon 780M is one+GPU job long enough to trip the kernel driver's job timeout (no image), and a quarter's overlap decodes in half the+time of sd.cpp's default half overlap.## Use it@@ -75,5 +76,13 @@ files takes a few seconds per image from the page cache.## Speed-Seconds per 1024x1024 image (8 steps) measured in the I1 tests are in `phaseA-tests/notes-qimage.md`-(Radeon 780M: HIP Q8_0 ~131 s, Vulkan Q8_0 ~200 s with `--vae-tiling`).+Seconds per image through the API, Q8_0, 8 steps (one `sd-cli` process per image, loading included):++| GPU | backend | 1024x1024 | 512x512 |+|---|---|---|---|+| RTX A4000 16 GB | CUDA | 27 | 8.8 |+| Radeon 780M (iGPU) | HIP | 131 | 29 |+| Radeon 780M (iGPU) | Vulkan | 179 | 43 |++On the 780M HIP is faster but runs through the ROCm path whose queue evictions reset this GPU on current firmware+(a driver/firmware defect, not this feature; no reset was seen in these image runs); Vulkan is setup's default there, `--image-backend hip` picks HIP.diff --git a/tools/image/qimage.py b/tools/image/qimage.pyindex 386f27e18..f57b12b0a 100644--- a/tools/image/qimage.py+++ b/tools/image/qimage.py@@ -11,7 +11,8 @@ setup.py (--images qwen-image) and tools/image/install.py use these pieces; servmodel card's choice). Each file is checked against the SHA-256 the Hugging Face API lists for it at thepinned revision.defaults 8 steps, CFG 1, euler, Turbo's own sigmas (serve/images.py), --diffusion-fa; on Vulkan also --vae-tiling- (an untiled 1024x1024 VAE decode is one dispatch long enough to trip the amdgpu job timeout on a 780M).+ (an untiled 1024x1024 VAE decode is one dispatch long enough to trip the amdgpu job timeout on a 780M)+ with --vae-tile-overlap 0.25."""from __future__ import annotations@@ -98,7 +99,9 @@ def pick_backend(gpu: dict | None, win: bool) -> str:def default_args(backend: str) -> list[str]:"""sd-cli's fixed arguments besides the ones serve/images.py writes per request."""- return ["--diffusion-fa"] + (["--vae-tiling"] if backend == "vulkan" else [])+ # Vulkan: 256-pixel tiles at a quarter's overlap, not sd.cpp's half: the 780M's 1024x1024 decode takes 23 s instead+ # of 45 s, at an LPIPS of 0.012 against the half-overlap image (Q8_0's own distance to bf16 is ~0.03)+ return ["--diffusion-fa"] + (["--vae-tiling", "--vae-tile-overlap", "0.25"] if backend == "vulkan" else [])def file_url(name: str, endpoint: str = "https://huggingface.co") -> str:diff --git a/tools/test_qimage.py b/tools/test_qimage.pyindex b38507981..9c6ef5dff 100644--- a/tools/test_qimage.py+++ b/tools/test_qimage.py@@ -68,7 +68,7 @@ class Choices(unittest.TestCase):def test_default_args(self):self.assertEqual(QI.default_args("cuda"), ["--diffusion-fa"])- self.assertEqual(QI.default_args("vulkan"), ["--diffusion-fa", "--vae-tiling"])+ self.assertEqual(QI.default_args("vulkan"), ["--diffusion-fa", "--vae-tiling", "--vae-tile-overlap", "0.25"])def test_setup_recommends_never_forces(self):ns = argparse.Namespace(image_backend=None, image_quant=None)@@ -137,7 +137,7 @@ class Config(unittest.TestCase):def test_section(self):c = QI.image_config("vulkan", "Q8_0", Path("/e/sd-cli"), Path("/m"), uma=True, lib_dirs=["/l"])self.assertEqual(c["diffusion_model"], str(Path("/m/qwen-image-2.1-turbo/qwen-image-2.1-turbo-Q8_0.gguf")))- self.assertEqual(c["args"], ["--diffusion-fa", "--vae-tiling"])+ self.assertEqual(c["args"], ["--diffusion-fa", "--vae-tiling", "--vae-tile-overlap", "0.25"])self.assertTrue(c["uma"])self.assertEqual(c["gpu_policy"], "auto")from serve.images import ImageGen