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++

quant_quality: --gpu-experts N (e.g. auto) for a measurement at a real expert-cache size

Niko1221221834c6fc53
diff --git a/tools/quant_quality.py b/tools/quant_quality.py
index 2ab13e639..10065e3a0 100644
--- a/tools/quant_quality.py
+++ b/tools/quant_quality.py
@@ -81,7 +81,7 @@ def mem_available_gb() -> float:
return float("inf")
-def engine_args(cfg: dict, gpu_experts: bool, seg_tokens: int) -> list[str]:
+def engine_args(cfg: dict, gpu_experts, seg_tokens: int) -> list[str]:
base, out, i = list(cfg["args"]), [], 0
while i < len(base):
x = base[i]
@@ -95,7 +95,7 @@ def engine_args(cfg: dict, gpu_experts: bool, seg_tokens: int) -> list[str]:
i += 1
fixed = list(FIXED)
if gpu_experts:
- fixed[1] = "1500"
+ fixed[1] = gpu_experts if isinstance(gpu_experts, str) else "1500"
return [cfg["exe"], "--serve", *out, *fixed, "--max-context", str(seg_tokens + 512),
"--short-read", str(seg_tokens + 64), "--prefill", "512"]
@@ -351,7 +351,8 @@ def main() -> int:
p.add_argument("--out", required=True)
p.add_argument("--ids", default=str(SET_DIR / "set.ids.json"))
p.add_argument("--env", action="append")
- p.add_argument("--gpu-experts", action="store_true", help="--expert-cache 1500 instead of one slot (the experts on the GPU kernels)")
+ p.add_argument("--gpu-experts", nargs="?", const=True, default=False,
+ help="--expert-cache 1500 (or the N given, e.g. auto) instead of one slot (the experts on the GPU kernels)")
p.add_argument("--min-free-gb", type=float, default=16)
p.add_argument("--wrap", help="a command prefix for the engine, e.g. 'systemd-run --user --scope -p MemoryMax=200G'")
p = sub.add_parser("prompt", help="the batched prompt path's next-token logits after 20 prompts (a directory)")