[GH-ISSUE #5086] [Engine] 0.2.10 / 0.1.56: every SYCL start dies in install_two_card_spec's engine_args wrapper (TypeError: unexpected keyword 'announce') #2372

Closed
opened 2026-11-04 01:58:47 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @Maddy55555 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5086

Summary
On v0.2.10 (engine 0.1.56) the SYCL serve path cannot start at all. sycl/serve/server_intel.py installs install_two_card_spec(), which monkeypatches S.engine_args with a closure that only accepts (cfg). serve/server.py 0.1.56 calls engine_args() with more arguments in several places — engine_args(cfg, announce=False) (server.py:9758, :9175, :9236 and mtp_retry_args at :3483/:3486) and engine_args(cfg, exe) (:9114, :9142, :9169, :9237). Every SYCL start therefore dies before the engine is loaded:

File ".../serve/server.py", line 9758, in main
    warn_budget_over_ram(engine_args(cfg, announce=False) if "args" in cfg else [])      # #1080
                         ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
TypeError: install_two_card_spec.<locals>.engine_args() got an unexpected keyword argument 'announce'

Under a supervisor the unit loops (48 restarts on my box before I caught it), the port never binds. This hits every SYCL card — the wrapper is installed unconditionally in server_intel.py's __main__, and my box has exactly one card. Affects 0.2.10; I did not test 0.2.9.

Reproduce
Any sycl/serve/server_intel.py start on v0.2.10, e.g. the run script written by ./setup.sh --backend sycl, on any Intel GPU. No special config needed.

Environment

  • Strata v0.2.10 (tag, self-built SYCL engine, AOT bmg-g31, engine 0.1.56)
  • Arc Pro B70 32 GB (xe), Ubuntu, single GPU
  • Model Qwen3.8-Flash-Next Unsloth UD-IQ4_XS, but the crash happens before the engine starts — model-independent

Suggested fix (one line, works on my box)
Let the wrapper pass its call arguments through to the original:

-    def engine_args(cfg):
-        args = original(cfg)
+    def engine_args(cfg, *call_args, **call_kwargs):
+        args = original(cfg, *call_args, **call_kwargs)

After this change everything in 0.2.10 works as documented (measured: decode 30-45 tok/s, prefill 1355-1411 tok/s at 67k, 256k context, --pcie-frac auto, vision on).

A second thought: since the two-card rule only rewrites --spec, the wrapper could also simply skip its logic when call_kwargs.get("announce") is false — the announcement previews (warn_budget_over_ram, mtp_retry_args) should probably not print the "two-card --spec" line at all.

Originally created by @Maddy55555 on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5086 **Summary** On v0.2.10 (engine 0.1.56) the SYCL serve path cannot start at all. `sycl/serve/server_intel.py` installs `install_two_card_spec()`, which monkeypatches `S.engine_args` with a closure that only accepts `(cfg)`. `serve/server.py` 0.1.56 calls `engine_args()` with more arguments in several places — `engine_args(cfg, announce=False)` (server.py:9758, :9175, :9236 and `mtp_retry_args` at :3483/:3486) and `engine_args(cfg, exe)` (:9114, :9142, :9169, :9237). Every SYCL start therefore dies before the engine is loaded: ``` File ".../serve/server.py", line 9758, in main warn_budget_over_ram(engine_args(cfg, announce=False) if "args" in cfg else []) # #1080 ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ TypeError: install_two_card_spec.<locals>.engine_args() got an unexpected keyword argument 'announce' ``` Under a supervisor the unit loops (48 restarts on my box before I caught it), the port never binds. This hits **every** SYCL card — the wrapper is installed unconditionally in server_intel.py's `__main__`, and my box has exactly one card. Affects 0.2.10; I did not test 0.2.9. **Reproduce** Any `sycl/serve/server_intel.py` start on v0.2.10, e.g. the run script written by `./setup.sh --backend sycl`, on any Intel GPU. No special config needed. **Environment** - Strata v0.2.10 (tag, self-built SYCL engine, AOT bmg-g31, engine 0.1.56) - Arc Pro B70 32 GB (xe), Ubuntu, single GPU - Model Qwen3.8-Flash-Next Unsloth UD-IQ4_XS, but the crash happens before the engine starts — model-independent **Suggested fix (one line, works on my box)** Let the wrapper pass its call arguments through to the original: ```diff - def engine_args(cfg): - args = original(cfg) + def engine_args(cfg, *call_args, **call_kwargs): + args = original(cfg, *call_args, **call_kwargs) ``` After this change everything in 0.2.10 works as documented (measured: decode 30-45 tok/s, prefill 1355-1411 tok/s at 67k, 256k context, `--pcie-frac` auto, vision on). A second thought: since the two-card rule only rewrites `--spec`, the wrapper could also simply skip its logic when `call_kwargs.get("announce")` is false — the announcement previews (`warn_budget_over_ram`, `mtp_retry_args`) should probably not print the "two-card --spec" line at all.
Author
Owner

@mbaaku commented on GitHub (Nov 3, 2026):

Confirmed on an Arc Pro B70 (bmg-g31, AOT build, single card, Linux Ubuntu 26, Kernel 7.x, Docker), v0.2.10 checkout ffa80d73, Qwen3.8-Flash-Next UD-Q4_K_XL:

File ".../serve/server.py", line 9775, in main
    warn_budget_over_ram(engine_args(cfg, announce=False) if "args" in cfg else [])      # #1080
TypeError: install_two_card_spec.<locals>.engine_args() got an unexpected keyword argument 'announce'

Note that this is a single-card setup, so the two-card rule never applies here, but the wrapper is installed on every SYCL start and breaks it anyway.

Local workaround that gets past the crash (forward the extra arguments; only print the note when the caller announces):

--- a/sycl/serve/server_intel.py
+++ b/sycl/serve/server_intel.py
@@ -331,15 +331,16 @@ def install_two_card_spec():
     from strata_control import intel_spec
     original = S.engine_args
 
-    def engine_args(cfg):
-        args = original(cfg)
+    def engine_args(cfg, *a, **kw):
+        args = original(cfg, *a, **kw)
         try:
             if cfg.get("backend") == "sycl" and S.layer_split_of(cfg):
                 sysfs = intel_spec.sysfs_cards()
                 cards = [sysfs[i] for i in S.gpu_list(cfg) if isinstance(i, int) and 0 <= i < len(sysfs)]
                 new, note = intel_spec.plan(args, cfg.get("user_args"), cards, mtp_off=cfg.get("mtp") is False)
                 if note:
-                    print("[strata] " + note, flush=True)
+                    if kw.get("announce", True):
+                        print("[strata] " + note, flush=True)
                     return new
<!-- gh-comment-id:6603896398 --> @mbaaku commented on GitHub (Nov 3, 2026): Confirmed on an Arc Pro B70 (bmg-g31, AOT build, single card, Linux Ubuntu 26, Kernel 7.x, Docker), v0.2.10 checkout `ffa80d73`, Qwen3.8-Flash-Next UD-Q4_K_XL: File ".../serve/server.py", line 9775, in main warn_budget_over_ram(engine_args(cfg, announce=False) if "args" in cfg else []) # #1080 TypeError: install_two_card_spec.<locals>.engine_args() got an unexpected keyword argument 'announce' Note that this is a single-card setup, so the two-card rule never applies here, but the wrapper is installed on every SYCL start and breaks it anyway. Local workaround that gets past the crash (forward the extra arguments; only print the note when the caller announces): ```diff --- a/sycl/serve/server_intel.py +++ b/sycl/serve/server_intel.py @@ -331,15 +331,16 @@ def install_two_card_spec(): from strata_control import intel_spec original = S.engine_args - def engine_args(cfg): - args = original(cfg) + def engine_args(cfg, *a, **kw): + args = original(cfg, *a, **kw) try: if cfg.get("backend") == "sycl" and S.layer_split_of(cfg): sysfs = intel_spec.sysfs_cards() cards = [sysfs[i] for i in S.gpu_list(cfg) if isinstance(i, int) and 0 <= i < len(sysfs)] new, note = intel_spec.plan(args, cfg.get("user_args"), cards, mtp_off=cfg.get("mtp") is False) if note: - print("[strata] " + note, flush=True) + if kw.get("announce", True): + print("[strata] " + note, flush=True) return new
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Hello Maddy55555,

Thank you, this was a real break for every SYCL start. In Strata 0.2.11 the engine_args wrapper takes the base signature and forwards it, so the TypeError is gone. We started the SYCL engine on an Arc A750 with the old code (TypeError) and the new code (starts, three correct chats, no GPU hang in the kernel log). We did not run your card. If a SYCL start still fails on 0.2.11, please send the first error line of the server log.

The Strata project

<!-- gh-comment-id:6658441001 --> @Niko1221 commented on GitHub (Nov 5, 2026): Hello Maddy55555, Thank you, this was a real break for every SYCL start. In Strata 0.2.11 the `engine_args` wrapper takes the base signature and forwards it, so the TypeError is gone. We started the SYCL engine on an Arc A750 with the old code (TypeError) and the new code (starts, three correct chats, no GPU hang in the kernel log). We did not run your card. If a SYCL start still fails on 0.2.11, please send the first error line of the server log. The Strata project
Author
Owner

@Maddy55555 commented on GitHub (Nov 5, 2026):

Confirmed fixed in v0.2.11 (engine 0.1.57). I rebuilt the tag (fresh AOT, bmg-g31) on 2× Arc Pro B70 Pro, layer split, 256k — dropped my one-line workaround: no TypeError, the two-card --spec rule applies, and all my gates stay green (decode 47–51 short / 61–65 at 16k, prefill ~2140 tok/s, vision pass). 5bf9626f covers every start path I exercise — thanks for the quick fix, fine to close from my side.

@mbaaku same wrapper path on single-card bmg-g31 — worth a try with 0.2.11.

<!-- gh-comment-id:6659334033 --> @Maddy55555 commented on GitHub (Nov 5, 2026): **Confirmed fixed in v0.2.11 (engine 0.1.57).** I rebuilt the tag (fresh AOT, `bmg-g31`) on 2× Arc Pro B70 Pro, layer split, 256k — dropped my one-line workaround: no `TypeError`, the two-card `--spec` rule applies, and all my gates stay green (decode 47–51 short / 61–65 at 16k, prefill ~2140 tok/s, vision pass). 5bf9626f covers every start path I exercise — thanks for the quick fix, fine to close from my side. @mbaaku same wrapper path on single-card bmg-g31 — worth a try with 0.2.11.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2372
No description provided.