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++
setup: opt-in gfx1150 (Radeon 890M / 880M, Strix Point) as a unified-memory AMD card
Niko12216f0505c69e8c
diff --git a/setup.py b/setup.pyindex 4ceb60b3a..c7fecd080 100644--- a/setup.py+++ b/setup.py@@ -2077,6 +2077,7 @@ ROCM_INDEXES = {"gfx1100": "https://rocm.nightlies.amd.com/v2/gfx110X-dgpu/","gfx1030": "https://rocm.nightlies.amd.com/v2/gfx103X-all/","gfx1031": "https://rocm.nightlies.amd.com/v2/gfx103X-all/","gfx1151": "https://rocm.nightlies.amd.com/v2/gfx1151/", # Strix Halo (docs/STRIX_HALO.md)+ "gfx1150": "https://rocm.nightlies.amd.com/v2/gfx1150/", # Strix Point: only with STRATA_EXPERIMENTAL_GFX1150=1"gfx1103": "https://rocm.nightlies.amd.com/v2/gfx110X-all/"} # Radeon 780M: only with STRATA_EXPERIMENTAL_GFX1103=1# The TheRock nightly indexes are pruned and move on, and each GPU family's index holds its own range (#1103: gfx103X-all# starts at 7.13.0a20260422 and has no 7.10; #1267: the 7.10 wheel segfaults on a Strix Halo with kernel 7.2.8), so one@@ -2094,7 +2095,14 @@ ROCM_SYSTEM_MIN = (7, 0) # an older system ROCm is passed over for the whe# as a unified-memory AMD card like Strix Halo, with the native dot4 and gfx11 WMMA kernels, the gfx1103 exact speed switches# and a hipBLASLt table when one matches (measured on one machine: Ryzen 7 8745HS). Unset: unchanged.GFX1103_OPT_IN = os.environ.get("STRATA_EXPERIMENTAL_GFX1103") == "1"-AMD_ARCHS = ("gfx1100", "gfx1101", "gfx1102", "gfx1200", "gfx1201", "gfx1030", "gfx1031", "gfx1151") + (("gfx1103",) if GFX1103_OPT_IN else ())+# STRATA_EXPERIMENTAL_GFX1150=1 (opt-in, unvalidated): the Radeon 890M / 880M iGPU (Ryzen AI 300, Strix Point, gfx1150)+# is taken as a unified-memory AMD card like Strix Halo. The engine builds and runs for gfx1150 from 0.1.40.2 (#1217;+# tools/hip/gfx1150-hipblaslt-100401.txt is calibrated on it), but no release ships a ready-made Windows engine for it:+# build one with `STRATA_HIP_ARCHS=gfx1150 tools\hip\build_windows.bat` and start setup with `--prebuilt dist\`.+# Unset: unchanged.+GFX1150_OPT_IN = os.environ.get("STRATA_EXPERIMENTAL_GFX1150") == "1"+AMD_ARCHS = ("gfx1100", "gfx1101", "gfx1102", "gfx1200", "gfx1201", "gfx1030", "gfx1031", "gfx1151") \+ + (("gfx1103",) if GFX1103_OPT_IN else ()) + (("gfx1150",) if GFX1150_OPT_IN else ())# The exact (bit-identical) speed switches the engine turns on by default on gfx1151 (src/core/arch_defaults.cpp), less# STRATA_HCD_EXACT: that one copies the gfx1151 hipBLASLt table's solutions 1176 / 1177, and the gfx1103 table# (tools/hip/gfx1103-hipblaslt-100401.txt) picks others, so it would only report that it cannot run. A gfx1103 install@@ -2216,6 +2224,15 @@ def is_strix_halo(g) -> bool:return isinstance(g, dict) and gfx_arch_is(g.get("arch"), STRIX_HALO_ARCH)+def is_uma_apu(g) -> bool:+ """A unified-memory AMD APU whose "VRAM" is a BIOS carve-out plus shared system memory: Strix Halo (gfx1151), and+ the opt-in gfx1150 (Strix Point) / gfx1103 (Phoenix / Hawk Point) iGPUs. Everything else is a discrete card."""+ arch = g.get("arch") if isinstance(g, dict) else None+ return (is_strix_halo(g)+ or (GFX1150_OPT_IN and gfx_arch_is(arch, "gfx1150"))+ or (GFX1103_OPT_IN and gfx_arch_is(arch, "gfx1103")))++def amd_apply_uma(g: dict, gtt_gb: float = 0.0, ram: float | None = None) -> dict:"""Strix Halo is an APU with unified memory. Its "dedicated VRAM" is a BIOS carve-out (512 MB to 96 GB; 2 GB on themaintainers' box) and the GPU also reaches shared system memory (Linux: the GTT pool, `mem_info_gtt_total`, half the@@ -2223,7 +2240,7 @@ def amd_apply_uma(g: dict, gtt_gb: float = 0.0, ram: float | None = None) -> dicthe model's experts live in, so it is not extra room beside the RAM. g gets: uma, dedicated_gb (the carve-out: theonly part that adds to the RAM, which the low-RAM mode counts) and vram_gb = the memory the GPU can use in all(the carve-out plus the shared pool less what the OS keeps), which sizes the context and the parallel slots."""- if g.get("uma") or not (is_strix_halo(g) or (GFX1103_OPT_IN and gfx_arch_is(g.get("arch"), "gfx1103"))):+ if g.get("uma") or not is_uma_apu(g):return gram = ram_gb() if ram is None else ramcarve = max(0.0, float(g.get("vram_gb") or 0.0))@@ -2371,10 +2388,29 @@ def gfx1103_notes(gpu, ram) -> list[str]:return notes+def gfx1150_notes(gpu, ram) -> list[str]:+ """What setup tells the owner of a Radeon 890M / 880M (Ryzen AI 300, Strix Point, gfx1150, unified memory): never+ the Strix Halo text, which is about another chip (gfx1151). Opt-in only (STRATA_EXPERIMENTAL_GFX1150=1)."""+ notes = [f" Radeon 890M / 880M class (gfx1150, Strix Point): the CPU and the GPU share one memory pool ({ram:.0f} GB "+ f"seen by the OS + a {gpu.get('dedicated_gb', 0.0):.1f} GB BIOS carve-out), so the model's experts live in "+ "that pool and the expert cache is sized from the memory the OS can give back."]+ notes.append(" " + ("The engine is compiled here for gfx1150" if not WIN else+ "Windows has no ready-made engine for gfx1150: build one with STRATA_HIP_ARCHS=gfx1150 "+ "tools\\hip\\build_windows.bat and start setup with --prebuilt dist\\")+ + " (experimental opt-in, STRATA_EXPERIMENTAL_GFX1150=1, unvalidated: docs/AMD_HIP.md).")+ if not WIN and gpu.get("shared_gb", 0) < 0.75 * ram - 1:+ notes.append(f"!the GPU can reach {gpu.get('shared_gb', 0):.0f} GB of shared memory (the GTT pool; the kernel's "+ "default is about half of the RAM). The kernel option ttm.pages_limit raises it; setup changes no "+ "host setting - a bigger model needs the room, a smaller one runs as it is")+ return notes++def igpu_notes(gpu, ram) -> list[str]:- """The unified-memory notes for exactly this chip: Strix Halo (gfx1151) or the gfx1103 opt-in, nothing else."""+ """The unified-memory notes for exactly this chip: Strix Halo (gfx1151) or the gfx1150 / gfx1103 opt-in, nothing else."""if is_strix_halo(gpu):return strix_halo_notes(gpu, ram)+ if GFX1150_OPT_IN and gfx_arch_is(gpu.get("arch"), "gfx1150"):+ return gfx1150_notes(gpu, ram)if gfx_arch_is(gpu.get("arch"), "gfx1103"):return gfx1103_notes(gpu, ram)return []@@ -2502,9 +2538,9 @@ def amd_gpus_win() -> list[dict]:hip = hip_devices()if not hip:return amd_gpus_windows()- halo = [g for g in hip if is_strix_halo(g)]+ halo = [g for g in hip if is_uma_apu(g)]if halo: # an APU: the HIP runtime's figure is not the BIOS carve-out- reg = [r for r in amd_gpus_windows() if is_strix_halo(r)]+ reg = [r for r in amd_gpus_windows() if is_uma_apu(r)]for k, g in enumerate(halo):reported = g["vram_gb"]g["vram_gb"] = reg[k]["dedicated_gb"] if k < len(reg) else 0.0