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++
Merge branch 'f-133-winamd' into rel-0.1.34
Niko12216edbe9d6ed48
diff --cc serve/test_server.pyindex 46fea89cb,9daf3d31b..34e8f731a--- a/serve/test_server.py+++ b/serve/test_server.py@@@ -540,18 -503,18 +540,30 @@@ class GpuChoice(unittest.TestCase)self.assertEqual(plain.get("CUDA_VISIBLE_DEVICES"), os.environ.get("CUDA_VISIBLE_DEVICES"))self.assertEqual(plain.get("CUDA_DEVICE_ORDER"), os.environ.get("CUDA_DEVICE_ORDER"))+ def test_vision_device(self):+ # #408: the image encoder on its own card; the engine's environment stays as it was+ from serve.server import child_env, vision_env+ cfg = {"gpu": [0, 1], "vision": {"exe": "v", "cuda_device": 2}}+ env = child_env(cfg)+ venv = vision_env(cfg, env)+ self.assertEqual(venv["CUDA_VISIBLE_DEVICES"], "2")+ self.assertEqual(venv["CUDA_DEVICE_ORDER"], "PCI_BUS_ID")+ self.assertEqual(env["CUDA_VISIBLE_DEVICES"], "0,1")+ plain = {"gpu": [0, 1], "vision": {"exe": "v"}}+ self.assertIs(vision_env(plain, env), env) # no cuda_device: the engine's environment, unchanged++ def test_hip_ordinal(self):+ """#325: on Windows the HIP ordinal setup resolved wins over the config's "gpu" (an iGPU takes HIP's 0)."""+ from serve.server import child_env+ self.assertEqual(child_env({"backend": "hip", "gpu": 1})["HIP_VISIBLE_DEVICES"], "1") # Linux: KFD order+ self.assertEqual(child_env({"backend": "hip", "hip_ordinal": 1})["HIP_VISIBLE_DEVICES"], "1")+ self.assertEqual(child_env({"backend": "hip", "gpu": 0, "hip_ordinal": 1})["HIP_VISIBLE_DEVICES"], "1")+ self.assertEqual(child_env({"backend": "hip", "gpu": [1, 0], "hip_ordinal": 2})["HIP_VISIBLE_DEVICES"],+ "1,0") # a layer split keeps its list+ self.assertEqual(child_env({"backend": "hip", "gpu": 0, "hip_ordinal": "x"})["HIP_VISIBLE_DEVICES"], "0")+ plain = child_env({"backend": "hip"})+ self.assertEqual(plain.get("HIP_VISIBLE_DEVICES"), os.environ.get("HIP_VISIBLE_DEVICES"))+class RecordingPrompt(MockEngine):def generate(self, ids, max_new, sampling, cancel, embeddings=None):diff --cc setup.pyindex 2ddebc64b,ca65f3a2e..9f42aa4d5--- a/setup.py+++ b/setup.py@@@ -2278,20 -2458,12 +2582,20 @@@ def main() -> int"(for a PC with a big GPU and little RAM); auto: when the experts would not fit the RAM. In ""this mode the experts the GPU does not hold are copied into RAM once when they fit (resident), ""else read through the OS file cache (mmap); resident / mmap force one of the two")+ ap.add_argument("--resident-budget-gib", type=float, metavar="N",+ help="UD-Q4_K_XL: the GiB of its experts kept in RAM (default: the RAM less 24 GB, 40 on 64 GB; "+ "more is kept as you choose, with a note)")+ ap.add_argument("--kv-streaming", choices=["auto", "on", "off"], default="auto",+ help="from a 64K context: keep the KV cache in RAM and only the attention's window in VRAM (more "+ "experts fit on the GPU); auto: when the RAM has room for it")ap.add_argument("--backend", choices=["cuda", "hip"],help="cuda = NVIDIA (default), hip = AMD RX 7900 / 7800 / 7700 XT, RX 9060 XT / 9070 / AI PRO R9700 on "- "Linux (experimental; chosen by itself when the PC has no NVIDIA card Strata can use)")+ "Linux or Windows (experimental; chosen by itself when the PC has no NVIDIA card Strata can use)")ap.add_argument("--skip-build", action="store_true", help=argparse.SUPPRESS)a = ap.parse_args()- if a.gpu is not None: # --gpu 0,2 means --gpus 0,2 (a user tried it: issue report)+ if a.resident_budget_gib is not None and not a.resident_budget_gib > 0:+ ap.error("--resident-budget-gib takes a number of GiB above 0, e.g. --resident-budget-gib 32")+ if a.gpu is not None: # --gpu 0,2 means --gpus 0,2 (a user tried it: issue report)if "," in a.gpu:a.gpus, a.gpu = a.gpus or a.gpu, Noneelif a.gpu.strip().isdigit():