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++
hip: opt-in gfx1103 (Radeon 780M iGPU): CMake accepts it, STRATA_EXPERIMENTAL_GFX1103=1 makes setup treat it as a unified-memory AMD card
Niko12212497a05c26ff
diff --git a/cmake/hip_backend.cmake b/cmake/hip_backend.cmakeindex 0697f82ac..7d55b31c7 100644--- a/cmake/hip_backend.cmake+++ b/cmake/hip_backend.cmake@@ -12,7 +12,7 @@ endif()# same wave32 / 64 KiB LDS / sudot4 family as gfx1100, on a unified-memory APU; experimental.set(_strata_hip_validated gfx1100 gfx1201)set(_strata_hip_community gfx1101 gfx1200)-set(_strata_hip_unvalidated gfx1012 gfx1102 gfx1030 gfx1031 gfx1034 gfx1151)+set(_strata_hip_unvalidated gfx1012 gfx1102 gfx1103 gfx1030 gfx1031 gfx1034 gfx1151) # gfx1103: Radeon 780M iGPU, opt-in, portable kernels (no WMMA)# CMake hands HIP a ';' list, but a -DCMAKE_HIP_ARCHITECTURES typed by hand (or ROCm's own Windows tooling) may use# spaces, which foreach(IN LISTS) would otherwise treat as one element.string(REPLACE " " ";" _strata_hip_norm "${CMAKE_HIP_ARCHITECTURES}")diff --git a/setup.py b/setup.pyindex ee657ce7d..ba41dd1fb 100644--- a/setup.py+++ b/setup.py@@ -1489,10 +1489,14 @@ ROCM_INDEXES = {"gfx1100": "https://rocm.nightlies.amd.com/v2/gfx110X-dgpu/","gfx1201": "https://rocm.nightlies.amd.com/v2/gfx120X-all/","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)+ "gfx1151": "https://rocm.nightlies.amd.com/v2/gfx1151/", # Strix Halo (docs/STRIX_HALO.md)+ "gfx1103": "https://rocm.nightlies.amd.com/v2/gfx110X-all/"} # Radeon 780M: only with STRATA_EXPERIMENTAL_GFX1103=1ROCM_VERSION = os.environ.get("STRATA_ROCM_VERSION", "7.10.0a20251120") # what Strata's HIP build was tested withROCM_SYSTEM_MIN = (7, 0) # an older system ROCm is passed over for the wheels (gfx1201 needs ROCm 6.4 or newer)-AMD_ARCHS = ("gfx1100", "gfx1101", "gfx1200", "gfx1201", "gfx1030", "gfx1031", "gfx1151")+# STRATA_EXPERIMENTAL_GFX1103=1 (opt-in, unsupported): the Radeon 780M / 760M / 740M iGPU (Ryzen 7040 / 8040, gfx1103) is taken+# as a unified-memory AMD card like Strix Halo, with the portable kernels (no WMMA) (measured on one machine: Ryzen 7 255). Unset: unchanged.+GFX1103_OPT_IN = os.environ.get("STRATA_EXPERIMENTAL_GFX1103") == "1"+AMD_ARCHS = ("gfx1100", "gfx1101", "gfx1200", "gfx1201", "gfx1030", "gfx1031", "gfx1151") + (("gfx1103",) if GFX1103_OPT_IN else ())AMD_NAMES = {"gfx1100": "AMD Radeon RX 7900 series (gfx1100)", # when sysfs has no product name"gfx1101": "AMD Radeon RX 7800 XT / 7700 XT (gfx1101)","gfx1200": "AMD Radeon RX 9060 series (gfx1200)",@@ -1548,7 +1552,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):+ if g.get("uma") or not (is_strix_halo(g) or (GFX1103_OPT_IN and gfx_arch_is(g.get("arch"), "gfx1103"))):return gram = ram_gb() if ram is None else ramcarve = max(0.0, float(g.get("vram_gb") or 0.0))@@ -3109,7 +3113,7 @@ def write_config(path: Path, cfg: dict):# "sampling" or "mcp_servers" block, "allowed_hosts", "cors_origins", "open_browser" - and is kept when setup runs againSETUP_KEYS = frozenset({"exe", "args", "cwd", "tokenizer", "model_name", "log", "lib_dirs", "port", "backend", "env","gpu", "gpus_asked", "layer_split", "host", "api_key", "draft_vocab", "vision"})-SETUP_ENV = frozenset({"STRATA_HIPBLASLT_TUNING", "STRATA_RESIDENT_PIN"}) # the "env" entries setup writes+SETUP_ENV = frozenset({"STRATA_HIPBLASLT_TUNING", "STRATA_RESIDENT_PIN", "STRATA_NO_ARENA_THP"}) # the "env" entries setup writesSETUP_VISION = frozenset({"exe", "mmproj", "model", "gpu", "max_tokens", "threads"})@@ -4879,6 +4883,9 @@ def main() -> int:table = hipblaslt_table(gpu["arch"], lib_dirs, meta.get("hipblaslt_version"))if table:cfg["env"] = {"STRATA_HIPBLASLT_TUNING": str(table)}+ if GFX1103_OPT_IN and gfx_arch_is(gpu["arch"], "gfx1103") and not WIN:+ # the 780M's KFD queues are evicted (a GPU reset) while transparent huge pages move the pinned expert arena+ cfg.setdefault("env", {})["STRATA_NO_ARENA_THP"] = "1"if resident: # ROCm: large page-locked host allocations can fail or be slow for the CPU; keep the copy pageablecfg.setdefault("env", {})["STRATA_RESIDENT_PIN"] = "0"if gpu["count"] > 1 or a.gpu is not None: