[GH-ISSUE #4544] [Other] setup.sh --update on an Intel (SYCL) install always ends with "the engine was NOT: it is still 0.1.12": engine_version() reads the launcher script the config names as exe #2052

Open
opened 2026-11-04 01:56:15 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @otaliptus on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4544

Area

[Other] (setup and installation)

Desktop app, Terminal or source?

Source (setup.sh, SYCL build from source)

What happened

On an Intel install every ./setup.sh --backend sycl --update ends with a failure message although nothing failed:

  [ok] numpy, jinja2, regex, pyyaml, tqdm, requests, pillow, psutil, textual (the screens) already installed
  [ok] thinkingcap-flash-next-iq4_xs: up to date
  [ok] swift-1.5-iq3_s: up to date
  [ok] qwen3.8-flash-next-iq3_s: up to date

  [!]  Strata's files are updated, but the engine was NOT: it is still 0.1.12 and this Strata wants 0.1.46 or newer. The model still starts with the old engine.
  Next step: check the internet connection (and that the model window is closed), then run ./update.sh again; the line above this one says why the engine was not fetched.

The engine is the one just built from this checkout (build-sycl-aot/strata --version prints strata 0.1.53, and engine-sycl/BUILD.json, which this same setup run wrote, says "version": "0.1.53"). The "Strata is updated (engine …)" line never appears on a SYCL install, and the advice (internet connection, run update.sh again) sends the user in circles. Expected: the real engine version, or the version from engine-sycl/BUILD.json.

Cause, from reading setup.py (v0.2.7.1, the same on main today):

  • after the config loop, ver = engine_version(Path(json.loads(have[0].read_text(...))["exe"])).
  • on Intel the config's exe is sycl/serve/strata-sycl.sh (the launcher script that starts the engine in the container), so engine_version() looks for sycl/serve/BUILD.json (does not exist) and then searches the shell script's bytes for engine=X.Y.Z\n (not there), and falls back to "0.1.12" ("a binary without it is older").
  • (0, 1, 12) < MIN_ENGINE → the warning and return 0.

A fix would be: when the config's backend is sycl (or the exe is the launcher), take the version from engine-sycl/BUILD.json (engine_version_of() already exists) or from the real binary the launcher runs (STRATA_SYCL_BIN, default build-sycl-aot/strata), which does carry the engine= line.

Smallest steps or command that reproduce it

  1. Intel install as in docs/INTEL_ARC.md (engine built from source in the strata-sycl-dev image, config written by setup_intel.py).
  2. ./setup.sh --backend sycl --update --yes
  3. The last lines are the warning above. Same on 0.2.6 (2026-10-26) and 0.2.7.1 (2026-10-28).

Reproduction status

Reproduced locally

Strata version

Strata 0.2.11 (re-checked 2026-11-05 on the tag; still present). First seen on Source checkout v0.2.7.1 (46c152a1), engine built from it: strata 0.1.53; on 0.2.11: setup.py and setup.sh are unchanged, the v0.2.11 engine_version() still returns (0, 1, 12) for the launcher (comment of 2026-11-05)

Graphics card, memory and system

Intel Arc Pro B70 32 GB · 62 GB RAM · Debian 13 (kernel 7.2.6, xe driver); engine in the strata-sycl-dev container

Model, size and settings

Qwen3.8-Flash-Next IQ3_S and Swift 1.5 IQ3_S configs from setup_intel.py, 256K context, pictures off (not relevant to the bug)

Logs

The setup output above is the whole relevant part; setup.py lines: engine_version() (the "0.1.12" fallback) and the if any(ver) and tuple(ver) < MIN_ENGINE: block after the config loop.

Originally created by @otaliptus on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4544 ### Area [Other] (setup and installation) ### Desktop app, Terminal or source? Source (setup.sh, SYCL build from source) ### What happened On an Intel install every `./setup.sh --backend sycl --update` ends with a failure message although nothing failed: ``` [ok] numpy, jinja2, regex, pyyaml, tqdm, requests, pillow, psutil, textual (the screens) already installed [ok] thinkingcap-flash-next-iq4_xs: up to date [ok] swift-1.5-iq3_s: up to date [ok] qwen3.8-flash-next-iq3_s: up to date [!] Strata's files are updated, but the engine was NOT: it is still 0.1.12 and this Strata wants 0.1.46 or newer. The model still starts with the old engine. Next step: check the internet connection (and that the model window is closed), then run ./update.sh again; the line above this one says why the engine was not fetched. ``` The engine is the one just built from this checkout (`build-sycl-aot/strata --version` prints `strata 0.1.53`, and `engine-sycl/BUILD.json`, which this same setup run wrote, says `"version": "0.1.53"`). The "Strata is updated (engine …)" line never appears on a SYCL install, and the advice (internet connection, run update.sh again) sends the user in circles. Expected: the real engine version, or the version from `engine-sycl/BUILD.json`. Cause, from reading `setup.py` (v0.2.7.1, the same on main today): - after the config loop, `ver = engine_version(Path(json.loads(have[0].read_text(...))["exe"]))`. - on Intel the config's `exe` is `sycl/serve/strata-sycl.sh` (the launcher script that starts the engine in the container), so `engine_version()` looks for `sycl/serve/BUILD.json` (does not exist) and then searches the shell script's bytes for `engine=X.Y.Z\n` (not there), and falls back to `"0.1.12"` ("a binary without it is older"). - `(0, 1, 12) < MIN_ENGINE` → the warning and `return 0`. A fix would be: when the config's backend is `sycl` (or the exe is the launcher), take the version from `engine-sycl/BUILD.json` (`engine_version_of()` already exists) or from the real binary the launcher runs (`STRATA_SYCL_BIN`, default `build-sycl-aot/strata`), which does carry the `engine=` line. ### Smallest steps or command that reproduce it 1. Intel install as in docs/INTEL_ARC.md (engine built from source in the `strata-sycl-dev` image, config written by `setup_intel.py`). 2. `./setup.sh --backend sycl --update --yes` 3. The last lines are the warning above. Same on 0.2.6 (2026-10-26) and 0.2.7.1 (2026-10-28). ### Reproduction status Reproduced locally ### Strata version Strata 0.2.11 (re-checked 2026-11-05 on the tag; still present). First seen on Source checkout v0.2.7.1 (46c152a1), engine built from it: `strata 0.1.53`; on 0.2.11: setup.py and setup.sh are unchanged, the v0.2.11 engine_version() still returns (0, 1, 12) for the launcher (comment of 2026-11-05) ### Graphics card, memory and system Intel Arc Pro B70 32 GB · 62 GB RAM · Debian 13 (kernel 7.2.6, xe driver); engine in the strata-sycl-dev container ### Model, size and settings Qwen3.8-Flash-Next IQ3_S and Swift 1.5 IQ3_S configs from setup_intel.py, 256K context, pictures off (not relevant to the bug) ### Logs The setup output above is the whole relevant part; `setup.py` lines: `engine_version()` (the `"0.1.12"` fallback) and the `if any(ver) and tuple(ver) < MIN_ENGINE:` block after the config loop.
Author
Owner

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

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660658643 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

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

/reopen

Re-checked on v0.2.11 (2026-11-05): still present.

  • setup.py and setup.sh are byte-identical between v0.2.10 and v0.2.11 (git diff v0.2.10 v0.2.11 -- setup.py setup.sh prints nothing). engine_version() is at setup.py line 7282, the "0.1.12" fallback at line 7294, MIN_ENGINE = (0, 1, 46) at line 271.
  • I ran v0.2.11's engine_version() and engine_version_of() (the two functions, taken from the v0.2.11 file) against this install: for the config's exe, the launcher sycl/serve/strata-sycl.sh, it returns (0, 1, 12); for the binary the launcher runs, build-sycl-aot/strata, it returns (0, 1, 56); engine_version_of(engine-sycl) returns 0.1.56 (the BUILD.json setup wrote). So setup.sh --backend sycl --update on 0.2.11 takes the same tuple(ver) < MIN_ENGINE branch and prints the same "the engine was NOT: it is still 0.1.12" warning after a successful update.
  • Same machine as above: Intel Arc Pro B70 32 GB, 62 GB RAM, Debian 13, engine 0.1.56 built from the v0.2.10 checkout in the strata-sycl-dev container.

Fix suggestion unchanged: when the config's exe is the launcher (or backend is sycl), take the version from engine-sycl/BUILD.json (engine_version_of()) or from the binary the launcher runs (STRATA_SYCL_BIN, default build-sycl-aot/strata).

<!-- gh-comment-id:6665834735 --> @otaliptus commented on GitHub (Nov 5, 2026): /reopen Re-checked on v0.2.11 (2026-11-05): still present. - `setup.py` and `setup.sh` are byte-identical between v0.2.10 and v0.2.11 (`git diff v0.2.10 v0.2.11 -- setup.py setup.sh` prints nothing). `engine_version()` is at setup.py line 7282, the `"0.1.12"` fallback at line 7294, `MIN_ENGINE = (0, 1, 46)` at line 271. - I ran v0.2.11's `engine_version()` and `engine_version_of()` (the two functions, taken from the v0.2.11 file) against this install: for the config's `exe`, the launcher `sycl/serve/strata-sycl.sh`, it returns `(0, 1, 12)`; for the binary the launcher runs, `build-sycl-aot/strata`, it returns `(0, 1, 56)`; `engine_version_of(engine-sycl)` returns `0.1.56` (the BUILD.json setup wrote). So `setup.sh --backend sycl --update` on 0.2.11 takes the same `tuple(ver) < MIN_ENGINE` branch and prints the same "the engine was NOT: it is still 0.1.12" warning after a successful update. - Same machine as above: Intel Arc Pro B70 32 GB, 62 GB RAM, Debian 13, engine 0.1.56 built from the v0.2.10 checkout in the strata-sycl-dev container. Fix suggestion unchanged: when the config's exe is the launcher (or `backend` is `sycl`), take the version from `engine-sycl/BUILD.json` (`engine_version_of()`) or from the binary the launcher runs (`STRATA_SYCL_BIN`, default `build-sycl-aot/strata`).
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2026):

Not reopened yet. Still missing:

  • Re-test on Strata 0.2.0-beta and put that version in "Strata version". If it no longer happens, say so in a comment instead.

Edit the issue and comment /reopen again. Details: CONTRIBUTING.md

<!-- gh-comment-id:6665838426 --> @github-actions[bot] commented on GitHub (Nov 5, 2026): Not reopened yet. Still missing: - [ ] Re-test on Strata 0.2.0-beta and put that version in "Strata version". If it no longer happens, say so in a comment instead. Edit the issue and comment `/reopen` again. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

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

/reopen

The "Strata version" field now starts with 0.2.11, the version re-checked today (details in the comment above).

<!-- gh-comment-id:6665870293 --> @otaliptus commented on GitHub (Nov 5, 2026): /reopen The "Strata version" field now starts with 0.2.11, the version re-checked today (details in the comment above).
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2026):

Reopened, thank you. A maintainer will pick it up from here.

<!-- gh-comment-id:6665874527 --> @github-actions[bot] commented on GitHub (Nov 5, 2026): Reopened, thank you. A maintainer will pick it up from here.
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#2052
No description provided.