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: no --remote-expert-opt beside --pipeline-windows (the first turns the second off); docs: card order (#1352)

Niko1221804dc7c32618
diff --git a/docs/MULTI_GPU.md b/docs/MULTI_GPU.md
index 50080d7d8..d4cda8a5a 100644
--- a/docs/MULTI_GPU.md
+++ b/docs/MULTI_GPU.md
@@ -65,6 +65,8 @@ number per card after the first, not a count of layers per card. With 4 cards an
(or `[24, 36, 42]`) puts layers 0-23 on the first card, 24-35 on the second, 36-41 on the third and 42-47 on the last.
The server checks it before the start and says what is wrong (0.1.39, #644).
+**Card order with `"auto"`** (NVIDIA, #1352): the faster card (multiprocessors x max clock) goes **last** - the last stage runs the head, the draft layer and the verify, and a prompt chunk waits on it (a 4070 Ti SUPER + 5060 Ti read a 6K prompt in 50 s one way round and 15 s the other). Equal cards keep your order; a manual split keeps it too. `"gpu_order": "as_given"` keeps the order you wrote under `"auto"` as well. The engine log line `layer split: card order ...` says when it changed.
+
**Skip the split when the first card holds everything** (opt-in, 0.1.31): `"split_skip_if_fits": true` in the config
(engine flag `--split-skip-if-fits`, with `--layer-split auto`) runs on the first card alone when it holds every
profiled expert plus the context's KV, the draft layer and the reserve, and says so in the log; otherwise the split
diff --git a/setup.py b/setup.py
index 12e87fe11..a14d6ebe8 100644
--- a/setup.py
+++ b/setup.py
@@ -1123,6 +1123,18 @@ def recommend_remote_expert_opt(cfg: dict, off: bool = False) -> None:
if REMOTE_EXPERT_OPT in args:
args.remove(REMOTE_EXPERT_OPT)
return
+ # #1352: --pipeline-windows (the first card starts the next window) is switched off by --remote-expert-opt (the
+ # helper caches), so a config that asks for it keeps its pipeline: one of the two, not both (docs/MULTI_GPU.md)
+ pw = args.index("--pipeline-windows") if "--pipeline-windows" in args else -1
+ if pw >= 0 and pw + 1 < len(args) and args[pw + 1] != "0":
+ if REMOTE_EXPERT_OPT in args:
+ warn("--pipeline-windows and --remote-expert-opt are both in this config: the engine turns the pipeline off "
+ "beside the helper caches. Keep one - remove --remote-expert-opt for the pipeline "
+ "(docs/MULTI_GPU.md, #1352)")
+ else:
+ ok("multi-GPU: --pipeline-windows is set, so --remote-expert-opt is not added (the helper caches turn the "
+ "pipeline off; docs/MULTI_GPU.md)")
+ return
if REMOTE_EXPERT_OPT not in args:
args.append(REMOTE_EXPERT_OPT)
ok("multi-GPU: --remote-expert-opt (helper expert caches complementary to the main GPU's, #578; "
diff --git a/tools/test_setup_remote_opt.py b/tools/test_setup_remote_opt.py
index 7e57ee408..2afdd49ec 100644
--- a/tools/test_setup_remote_opt.py
+++ b/tools/test_setup_remote_opt.py
@@ -45,6 +45,21 @@ class Rule(unittest.TestCase):
setup.recommend_remote_expert_opt(cfg)
self.assertEqual(cfg["args"], ["--spec", "4"])
+ 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):
self.assertNotIn("remote_expert_opt", setup.SETUP_KEYS) # #629: carried over, so the opt-out survives