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

Merge f-141-fixb: Python, docs and bench fixes and ports

Niko1221ef8071303245
diff --cc tools/test_setup_remote_opt.py
index 2afdd49ec,8d797a2ae..ed1288cf2
--- a/tools/test_setup_remote_opt.py
+++ b/tools/test_setup_remote_opt.py
@@@ -41,23 -54,23 +54,38 @@@ class Rule(unittest.TestCase)
cfg = {"args": ["--spec", "4", FLAG], "gpu": [0, 1]}
setup.recommend_remote_expert_opt(cfg, off=True)
self.assertEqual(cfg["args"], ["--spec", "4"])
- cfg = {"args": ["--spec", "4"], "gpu": [0, 1, 2], "remote_expert_opt": False}
+ cfg = {"args": ["--spec", "4"] + HELPER, "gpu": [0, 1, 2], "remote_expert_opt": False}
setup.recommend_remote_expert_opt(cfg)
- self.assertEqual(cfg["args"], ["--spec", "4"])
+ self.assertEqual(cfg["args"], ["--spec", "4"] + HELPER)
+
+ def test_pipeline_windows_wins(self):
+ """#1352: the two exclude each other (the engine drops the pipeline beside the helper caches), so setup
+ does not add the flag to a config that asks for the pipeline, and says so when both are there."""
+ cfg = {"args": ["--spec", "4", "--pipeline-windows", "2"] + HELPER, "gpu": [0, 1]}
+ setup.recommend_remote_expert_opt(cfg)
+ self.assertEqual(cfg["args"], ["--spec", "4", "--pipeline-windows", "2"] + HELPER)
+ both = {"args": [FLAG, "--pipeline-windows", "2"], "gpu": [0, 1]}
+ with mock.patch.object(setup, "warn") as w:
+ setup.recommend_remote_expert_opt(both)
+ self.assertEqual(both["args"], [FLAG, "--pipeline-windows", "2"]) # a recommendation, never forced
+ self.assertEqual(w.call_count, 1)
+ off = {"args": ["--pipeline-windows", "0"] + HELPER, "gpu": [0, 1]} # 0: no pipeline asked for
+ setup.recommend_remote_expert_opt(off)
++ self.assertIn(FLAG, off["args"])
+
+ def test_pipeline_windows_wins(self):
+ """#1352: the two exclude each other (the engine drops the pipeline beside the helper caches), so setup
+ does not add the flag to a config that asks for the pipeline, and says so when both are there."""
+ cfg = {"args": ["--spec", "4", "--pipeline-windows", "2"], "gpu": [0, 1]}
+ setup.recommend_remote_expert_opt(cfg)
+ self.assertEqual(cfg["args"], ["--spec", "4", "--pipeline-windows", "2"])
+ both = {"args": [FLAG, "--pipeline-windows", "2"], "gpu": [0, 1]}
+ with mock.patch.object(setup, "warn") as w:
+ setup.recommend_remote_expert_opt(both)
+ self.assertEqual(both["args"], [FLAG, "--pipeline-windows", "2"]) # a recommendation, never forced
+ self.assertEqual(w.call_count, 1)
+ off = {"args": ["--pipeline-windows", "0"], "gpu": [0, 1]} # 0: no pipeline asked for
+ setup.recommend_remote_expert_opt(off)
self.assertIn(FLAG, off["args"])
def test_the_users_key_is_kept_on_a_rerun(self):