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: the engine builds pin -DSTRATA_MMQ_KQUANTS=ON too (465cd61d flipped it with STRATA_Q6K_EXPERTS, and a stale CMakeCache.txt keeps the old OFF the same way; found by qiuzan2001 on #2515)

Niko12213d99819e3858
diff --git a/Dockerfile b/Dockerfile
index 7358a352c..643060188 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -79,7 +79,7 @@ arch = os.environ.get("CUDA_ARCHITECTURES", "75;80;86;89;120").strip().strip('"'
vision = "gpu" if os.environ.get("BUILD_VISION", "1") == "1" else "none"
setup.cmake_build(setup.ROOT, setup.ROOT / "build", "strata",
- ["-DSTRATA_ENABLE_CUDA=ON", "-DSTRATA_Q6K_EXPERTS=ON", "-DSTRATA_BUILD_TESTS=OFF",
+ ["-DSTRATA_ENABLE_CUDA=ON", "-DSTRATA_Q6K_EXPERTS=ON", "-DSTRATA_MMQ_KQUANTS=ON", "-DSTRATA_BUILD_TESTS=OFF",
f"-DCMAKE_CUDA_ARCHITECTURES={arch}", f"-DCMAKE_CUDA_COMPILER={nvcc}",
f"-DSTRATA_GGML_DIR={llama}"], None, "build-strata.bat")
if vision != "none":
diff --git a/setup.py b/setup.py
index 6aa8c4de6..19b29532e 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", "-DSTRATA_Q6K_EXPERTS=ON", "-DCMAKE_HIP_ARCHITECTURES=" + ";".join(archs),
+ "-DSTRATA_PREFILL_MMQ=ON", "-DSTRATA_Q6K_EXPERTS=ON", "-DSTRATA_MMQ_KQUANTS=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}",
@@ -4002,7 +4002,7 @@ def build_engine(gpu, vision, yes, llama, toolkit=None) -> Path:
" The engine's source changed: compiling it again (only what changed, a few minutes) ..."
if local and (eng / EXE).exists() else " Compiling the Strata engine for your GPU (10-20 minutes, once) ...")
cmake_build(ROOT, bdir, "strata",
- ["-DSTRATA_ENABLE_CUDA=ON", "-DSTRATA_BUILD_TESTS=OFF", "-DSTRATA_Q6K_EXPERTS=ON",
+ ["-DSTRATA_ENABLE_CUDA=ON", "-DSTRATA_BUILD_TESTS=OFF", "-DSTRATA_Q6K_EXPERTS=ON", "-DSTRATA_MMQ_KQUANTS=ON",
f"-DCMAKE_CUDA_ARCHITECTURES={cuda_archs}",
f"-DCMAKE_CUDA_COMPILER={nvcc}", *toolkit_root_defs(nvcc), f"-DSTRATA_GGML_DIR={llama}",
*host_compiler_defs(True), *engine_defs(archs, toolkit),
diff --git a/tools/test_setup_stale_stamp.py b/tools/test_setup_stale_stamp.py
index f16bfdf56..a7c98d797 100644
--- a/tools/test_setup_stale_stamp.py
+++ b/tools/test_setup_stale_stamp.py
@@ -101,6 +101,7 @@ class BuildEngineStamp(unittest.TestCase):
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)
+ self.assertIn("-DSTRATA_MMQ_KQUANTS=ON", self.defs) # flipped OFF -> ON in the same commit (465cd61d)
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 engine