Skip to content

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: accept gfx1102 (RX 7600 / 7600 XT) as an unvalidated AMD card (#938, #942)

Niko12214372e3a828c8
diff --git a/docs/AMD_HIP.md b/docs/AMD_HIP.md
index 5996177e1..5d385bc3a 100644
--- a/docs/AMD_HIP.md
+++ b/docs/AMD_HIP.md
@@ -136,7 +136,7 @@ cmake --build build-hip --target strata -j2
`CMAKE_HIP_ARCHITECTURES` is `gfx1100`, `gfx1101`, `gfx1200`, `gfx1201`, or a list such as `"gfx1100;gfx1201"`
(one binary for both). gfx1102 (the same wave32, 64 KiB LDS and dot4 instruction) builds with a warning: it passed
-ctest (#192) but no model run has been reported; so does gfx1030 (RDNA2: the older `v_dot4_i32_i8`, a community run in #311). At startup the engine and `strata-device` compare each GPU they use
+ctest (#192), and one RX 7600 XT (16 GB, i7-13700K, 64 GB) ran Swift IQ3_XXS over 146 requests up to 51K context at about 43 tok/s decode (28-50) and 250-300 tok/s prompt (#942); setup accepts it (unvalidated, #938); so does gfx1030 (RDNA2: the older `v_dot4_i32_i8`, a community run in #311). At startup the engine and `strata-device` compare each GPU they use
(`gcnArchName` up to the `:` feature suffix) with the architectures the binary was compiled for, and require
wave32. A binary carried to another card stops with the card's name, its architecture and the build's list,
instead of failing later with "invalid device function".
diff --git a/setup.py b/setup.py
index fcc09830e..361ab9ccc 100644
--- a/setup.py
+++ b/setup.py
@@ -1485,6 +1485,7 @@ def cuda_lib_dirs(toolkit=13):
# No images yet.
ROCM_INDEXES = {"gfx1100": "https://rocm.nightlies.amd.com/v2/gfx110X-dgpu/", # TheRock's wheels per GPU family
"gfx1101": "https://rocm.nightlies.amd.com/v2/gfx110X-dgpu/",
+ "gfx1102": "https://rocm.nightlies.amd.com/v2/gfx110X-dgpu/",
"gfx1200": "https://rocm.nightlies.amd.com/v2/gfx120X-all/",
"gfx1201": "https://rocm.nightlies.amd.com/v2/gfx120X-all/",
"gfx1030": "https://rocm.nightlies.amd.com/v2/gfx103X-all/",
@@ -1496,9 +1497,10 @@ ROCM_SYSTEM_MIN = (7, 0) # an older system ROCm is passed over for the whe
# 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_ARCHS = ("gfx1100", "gfx1101", "gfx1102", "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)",
+ "gfx1102": "AMD Radeon RX 7600 / 7600 XT (gfx1102)",
"gfx1200": "AMD Radeon RX 9060 series (gfx1200)",
"gfx1201": "AMD Radeon RX 9070 series / AI PRO R9700 (gfx1201)",
"gfx1030": "AMD Radeon RX 6800 / 6900 series (gfx1030)",
@@ -1510,7 +1512,7 @@ AMD_NAMES = {"gfx1100": "AMD Radeon RX 7900 series (gfx1100)", # when sysfs ha
"gfx1103": "AMD Radeon 780M / 760M / 740M (Ryzen 7040 / 8040, Phoenix / Hawk Point, gfx1103)"}
AMD_CARDS = ("the RX 7900 XT / XTX (gfx1100), RX 7800 XT / 7700 XT (gfx1101), RX 9060 XT (gfx1200) and "
"RX 9070 / 9070 XT / Radeon AI PRO R9700 (gfx1201), and the RX 6800 / 6900 series (gfx1030) and RX 6700 XT "
- "(gfx1031, #524), both unvalidated, and the Ryzen AI Max \"Strix Halo\" APU (Radeon 8060S / 8050S / 8040S, "
+ "(gfx1031, #524), and the RX 7600 / 7600 XT (gfx1102, one run reported, #942), all unvalidated, and the Ryzen AI Max \"Strix Halo\" APU (Radeon 8060S / 8050S / 8040S, "
"gfx1151: experimental, docs/STRIX_HALO.md)")
diff --git a/tools/test_setup_amd.py b/tools/test_setup_amd.py
index d3cde6ff8..07f68d749 100644
--- a/tools/test_setup_amd.py
+++ b/tools/test_setup_amd.py
@@ -49,7 +49,7 @@ class KfdDetection(unittest.TestCase):
(110001, 120, 128, "", 16 << 30), # gfx1101 without a product name
(120000, 64, 129, None, 16 << 30), # gfx1200, no product_name file
(120001, 128, 130, "AMD Radeon AI PRO R9700", 32 << 30),
- (110002, 64, 131, None, 8 << 30), # gfx1102: listed, not supported
+ (110002, 64, 131, None, 8 << 30), # gfx1102: supported, unvalidated (#938)
(100306, 4, 132, None, 512 << 20), # an integrated gfx1036: listed, not supported
(110000, 192, 133, "Radeon RX 7900 XTX", 24 << 30),
])
@@ -59,11 +59,10 @@ class KfdDetection(unittest.TestCase):
self.assertEqual(g[0]["name"], setup.AMD_NAMES["gfx1101"])
self.assertEqual(g[1]["name"], setup.AMD_NAMES["gfx1200"])
self.assertEqual(g[2]["name"], "AMD Radeon AI PRO R9700")
- self.assertEqual(g[3]["name"], "AMD Radeon (gfx1102)")
+ self.assertEqual(g[3]["name"], setup.AMD_NAMES["gfx1102"])
self.assertAlmostEqual(g[2]["vram_gb"], 32.0)
ok = [x["arch"] for x in g if setup.amd_problem(x) is None]
- self.assertEqual(ok, ["gfx1101", "gfx1200", "gfx1201", "gfx1100"])
- self.assertIn("gfx1102", setup.amd_problem(g[3]))
+ self.assertEqual(ok, ["gfx1101", "gfx1200", "gfx1201", "gfx1102", "gfx1100"])
self.assertIn("gfx1036", setup.amd_problem(g[4]))
def test_no_kfd(self):
diff --git a/tools/test_setup_strix_halo.py b/tools/test_setup_strix_halo.py
index 5f74da02e..2b271dbd9 100644
--- a/tools/test_setup_strix_halo.py
+++ b/tools/test_setup_strix_halo.py
@@ -247,7 +247,7 @@ class OtherChips(LinuxBase):
self.assertFalse(setup.is_strix_halo(g), arch)
self.assertAlmostEqual(g["vram_gb"], vram) # a card's VRAM is not changed
self.assertEqual(setup.low_ram_vram(g), vram)
- self.assertEqual(setup.amd_problem(g) is None, arch != "gfx1102", arch)
+ self.assertIsNone(setup.amd_problem(g), arch)
class DualGpu(LinuxBase):