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: the HIP engine build pins -DSTRATA_Q6K_EXPERTS=ON too (the same stale CMake cache as #2515 for the CUDA build); the CUDA configure line is tested (tools/test_setup_stale_stamp.py)
Niko12215d83130cdb5d
diff --git a/.gitignore b/.gitignoreindex acca09f3f..c8837367a 100644--- a/.gitignore+++ b/.gitignore@@ -61,3 +61,6 @@ build-vision-cuda12.bat/.ccache//.rocm-win/++# local Windows HIP packaging output+dist-hip/diff --git a/setup.py b/setup.pyindex bb5d3e741..6aa8c4de6 100644--- a/setup.py+++ b/setup.py@@ -3048,7 +3048,7 @@ def build_engine_hip(gpu, llama, vision="none") -> Path:"10-20 minutes, once) ...")cmake_build(ROOT, ROOT / "build-hip", "strata",["-DSTRATA_ENABLE_HIP=ON", "-DSTRATA_ENABLE_CUDA=OFF", "-DSTRATA_BUILD_TESTS=OFF",- "-DSTRATA_PREFILL_MMQ=ON", "-DCMAKE_HIP_ARCHITECTURES=" + ";".join(archs),+ "-DSTRATA_PREFILL_MMQ=ON", "-DSTRATA_Q6K_EXPERTS=ON", "-DCMAKE_HIP_ARCHITECTURES=" + ";".join(archs),f"-DCMAKE_HIP_COMPILER={root / 'llvm' / 'bin' / 'clang++'}", f"-DCMAKE_HIP_COMPILER_ROCM_ROOT={root}","-DCMAKE_PREFIX_PATH=" + ";".join([str(root), *libs]),f"-DCMAKE_HIP_FLAGS=--rocm-path={root} --rocm-device-lib-path={bitcode}",diff --git a/tools/test_setup_stale_stamp.py b/tools/test_setup_stale_stamp.pyindex b282215d6..f16bfdf56 100644--- a/tools/test_setup_stale_stamp.py+++ b/tools/test_setup_stale_stamp.py@@ -81,6 +81,7 @@ class BuildEngineStamp(unittest.TestCase):def fake_build(self, src, bdir, target, defs, vcvars, bat):self.compiles += 1+ self.defs = list(defs)bdir.mkdir(parents=True, exist_ok=True)(bdir / setup.EXE).write_bytes(self.built)@@ -94,6 +95,13 @@ class BuildEngineStamp(unittest.TestCase):self.assertEqual(self.stamp()["version"], "0.1.43")self.assertEqual((self.eng / setup.EXE).read_bytes(), self.built)+ def test_the_q6k_expert_kernels_are_pinned_on(self):+ """PR #2515: a build/ folder first configured while STRATA_Q6K_EXPERTS defaulted to OFF keeps it in CMakeCache.txt;+ the configure line names it, so Qwen3.6 UD-Q4_K_XL (Q4_K gate/up, Q6_K down) still loads."""+ setup.build_engine(GPU, "none", True, Path("llama"), toolkit=13)+ self.assertIn("-DSTRATA_Q6K_EXPERTS=ON", self.defs)+ self.assertNotIn("-DSTRATA_Q6K_EXPERTS=OFF", self.defs)+def test_a_build_that_leaves_the_old_binary_is_not_stamped_or_installed(self):self.built = binary("0.1.42") # the build "succeeded" without producing the new enginewith self.assertRaises(SystemExit):