[GH-ISSUE #5413] [Other] a source checkout keeps two engine folders: strata update fills engine-feed/engine/ while setup and the run configs read engine/, which nothing upgrades past `WIN_HIP_MIN_ENGINE #3233

Open
opened 2026-11-07 14:39:03 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @werewolfvit on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5413

  • Area: [Other] (anything else, including setup and installation)
  • Desktop app, Terminal or source: Source (START-HERE.bat, setup.sh or a build)
  • Strata version: Strata 0.2.11 · engine 0.1.55 (installed) / 0.1.57 (in the feed store) · source checkout at commit 9f7d977d220e9fdf2ec53cf2620cdadac1cfb24e
  • Graphics card, memory and system: Radeon RX 7900 XTX 24 GB · 63 GB RAM · Windows 11 Pro (10.0.26300), AMD driver 32.0.31041.5005
  • Model, size and settings: UD-IQ3_XXS (Qwen3.8-Flash-Next), 131072 context, pictures on
  • Reproduction status: Reproduced locally

What happened

I updated the engine successfully and it says 0.1.57 everywhere I look, but setup still refuses the model:

UD-IQ3_XXS needs engine 0.1.57 or newer; this one is 0.1.55
update Strata (or compile the engine with --build) and run setup again

strata update had already installed 0.1.57, and strata components engines agrees:

0.1.57-windows-x86_64-hip-rdna3   in use, newest
0.1.55-windows-x86_64-hip-rdna3

The reason is that a source checkout has two engine folders, and the update path only writes one of them:

folder BUILD.json version who uses it
E:\Strata\engine-feed\engine\0.1.57-windows-x86_64-hip-rdna3\ 0.1.57, "source": "f-0214-int" strata update, strata components engines, anything that resolves component:strata-engine
E:\Strata\engine\ 0.1.55, "source": "prebuilt" setup.py (engine_step, the version gate) and my strata-iq3_xxs.json / run-iq3_xxs.bat, which pin "exe": "E:\Strata\engine\strata.exe", "lib_dirs": ["E:\Strata\engine\rocm\bin"]

A source checkout points the component store at <checkout>\engine-feed (strata_cli/update_cmd.py:242-263,
default_components_dir/source_store), so strata update writes there — and stops. The flat engine/ folder
is only ever written by setup, and for AMD on Windows setup refuses to touch it:

  • update_installed_engine() (setup.py:5895) does, for backend == "hip" on Windows:
    if meta.get("source") == "prebuilt" and ver < WIN_HIP_MIN_ENGINE: → update. My 0.1.55 is above
    WIN_HIP_MIN_ENGINE (setup.py:4635, max(MIN_ENGINE, (0, 1, 33)) = 0.1.46), so the branch returns and
    nothing is refreshed.
  • get_prebuilt_hip() (setup.py:4970) then returns the existing folder as
    "ready-made AMD engine already installed" (the ver >= WIN_HIP_MIN_ENGINE and not updating check), so the
    HEAD probe of the release assets — which is the only route into engine_from_feed() (setup.py:4919, the
    feed→engine/ copier, used since the 0.2 releases publish no flat zips, #3469 #3437) — is never reached.
  • The gate at setup.py:10799 compares engine_ver from that folder against MODELS["UD-IQ3_XXS"]["engine"]
    = UNSLOTH_V31_ENGINE = (0, 1, 57) (setup.py:434) and fails.

So the hint "update Strata" leads to a command that reports success and changes nothing the setup can see:
UPDATE.bat, setup.py --update and strata install --update all pass, and there is no documented way to
bring the feed package into engine/. Copying engine-feed\engine\0.1.57-…\* over engine\ does fix it, but
that is not something a user can be expected to guess, and it also has to rewrite BUILD.json's "source" to
"prebuilt" — the feed package says "source": "f-0214-int", which setup reads as "compiled from this source"
(setup.py:10788) and would start a compile instead.

Smallest steps or command that reproduce it

cd E:\Strata
.venv\Scripts\python.exe .\strata.py update            # engine 0.1.57 installed: "up to date"
.venv\Scripts\python.exe .\strata.py components engines # 0.1.57 in use, newest
Get-Content engine\BUILD.json | Select-String version   # "version": "0.1.55"
.venv\Scripts\python.exe setup.py --model UD-IQ3_XXS --yes
# -> UD-IQ3_XXS needs engine 0.1.57 or newer; this one is 0.1.55

Held at 0.1.55 because engine\BUILD.json says source: "prebuilt" and 0.1.55 ≥ WIN_HIP_MIN_ENGINE; re-running
setup or --update never changes it.

Logs

// engine-feed\.updates\state.json (after the update)
"engine": { "active": "0.1.57-windows-x86_64-hip-rdna3",
            "previous": "0.1.55-windows-x86_64-hip-rdna3", "failed": {} }
"feed":   { "sequence": 121, "key_id": "5d1bc23abbeffd0d", "channel": "stable" }

// engine\BUILD.json
{ "source": "prebuilt", "backend": "hip", "version": "0.1.55", "rocm": "10.2.0a20260930",
  "archs": ["gfx1100","gfx1101","gfx1102","gfx1151"], "commit": "99866a47a2b8..." }

// engine-feed\engine\0.1.57-windows-x86_64-hip-rdna3\BUILD.json
{ "source": "f-0214-int", "backend": "hip", "version": "0.1.57", "rocm": "10.2.0a20260930",
  "archs": ["gfx1100","gfx1101","gfx1102","gfx1151"], "lib_dirs": ["rocm/bin"] }

.updates/logs/test-start-0.1.57.log (7244 B) shows the new engine starting and answering the one-token probe on
this card, so the engine itself is not the problem — only its placement.

What I expected

Either:

  • setup to notice that the feed store holds a newer engine for this card and copy it into engine/ the way
    engine_from_feed() already does (same install_unpacked() / .previous swap), e.g. by relaxing the HIP
    Windows branch of update_installed_engine() to compare against the resolved component version rather than
    WIN_HIP_MIN_ENGINE; or
  • the version gate at setup.py:10800 to say which folder it read (E:\Strata\engine, BUILD.json version
    0.1.55) and that the newer engine sits in engine-feed\engine\0.1.57-…, instead of a generic "update Strata"; or
  • strata update in a source checkout to keep engine/ in step (or to say plainly that in a checkout the engine
    lives in the component store and engine/ is only what setup/downloaded).

A second, smaller thing: a run config written by setup for a source checkout pins "exe": "E:\Strata\engine\strata.exe",
so it keeps using the stale folder even after strata components use 0.1.57. component:strata-engine (what the
updater's own test config uses) would follow the store.

Originally created by @werewolfvit on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5413 - **Area:** `[Other]` (anything else, including setup and installation) - **Desktop app, Terminal or source:** Source (START-HERE.bat, setup.sh or a build) - **Strata version:** Strata 0.2.11 · engine 0.1.55 (installed) / 0.1.57 (in the feed store) · source checkout at commit `9f7d977d220e9fdf2ec53cf2620cdadac1cfb24e` - **Graphics card, memory and system:** Radeon RX 7900 XTX 24 GB · 63 GB RAM · Windows 11 Pro (10.0.26300), AMD driver 32.0.31041.5005 - **Model, size and settings:** UD-IQ3_XXS (Qwen3.8-Flash-Next), 131072 context, pictures on - **Reproduction status:** Reproduced locally ## What happened I updated the engine successfully and it says 0.1.57 everywhere I look, but setup still refuses the model: ``` UD-IQ3_XXS needs engine 0.1.57 or newer; this one is 0.1.55 update Strata (or compile the engine with --build) and run setup again ``` `strata update` had already installed 0.1.57, and `strata components engines` agrees: ``` 0.1.57-windows-x86_64-hip-rdna3 in use, newest 0.1.55-windows-x86_64-hip-rdna3 ``` The reason is that a source checkout has **two engine folders**, and the update path only writes one of them: | folder | `BUILD.json` version | who uses it | | --- | --- | --- | | `E:\Strata\engine-feed\engine\0.1.57-windows-x86_64-hip-rdna3\` | `0.1.57`, `"source": "f-0214-int"` | `strata update`, `strata components engines`, anything that resolves `component:strata-engine` | | `E:\Strata\engine\` | `0.1.55`, `"source": "prebuilt"` | `setup.py` (`engine_step`, the version gate) and my `strata-iq3_xxs.json` / `run-iq3_xxs.bat`, which pin `"exe": "E:\Strata\engine\strata.exe"`, `"lib_dirs": ["E:\Strata\engine\rocm\bin"]` | A source checkout points the component store at `<checkout>\engine-feed` (`strata_cli/update_cmd.py:242-263`, `default_components_dir`/`source_store`), so `strata update` writes there — and stops. The flat `engine/` folder is only ever written by setup, and for AMD on Windows setup refuses to touch it: - `update_installed_engine()` (`setup.py:5895`) does, for `backend == "hip"` on Windows: `if meta.get("source") == "prebuilt" and ver < WIN_HIP_MIN_ENGINE:` → update. My 0.1.55 is above `WIN_HIP_MIN_ENGINE` (`setup.py:4635`, `max(MIN_ENGINE, (0, 1, 33))` = `0.1.46`), so the branch returns and nothing is refreshed. - `get_prebuilt_hip()` (`setup.py:4970`) then returns the existing folder as *"ready-made AMD engine already installed"* (the `ver >= WIN_HIP_MIN_ENGINE and not updating` check), so the HEAD probe of the release assets — which is the only route into `engine_from_feed()` (`setup.py:4919`, the feed→`engine/` copier, used since the 0.2 releases publish no flat zips, #3469 #3437) — is never reached. - The gate at `setup.py:10799` compares `engine_ver` from that folder against `MODELS["UD-IQ3_XXS"]["engine"]` = `UNSLOTH_V31_ENGINE` = `(0, 1, 57)` (`setup.py:434`) and fails. So the hint *"update Strata"* leads to a command that reports success and changes nothing the setup can see: `UPDATE.bat`, `setup.py --update` and `strata install --update` all pass, and there is no documented way to bring the feed package into `engine/`. Copying `engine-feed\engine\0.1.57-…\*` over `engine\` does fix it, but that is not something a user can be expected to guess, and it also has to rewrite `BUILD.json`'s `"source"` to `"prebuilt"` — the feed package says `"source": "f-0214-int"`, which setup reads as "compiled from this source" (`setup.py:10788`) and would start a compile instead. ## Smallest steps or command that reproduce it ```powershell cd E:\Strata .venv\Scripts\python.exe .\strata.py update # engine 0.1.57 installed: "up to date" .venv\Scripts\python.exe .\strata.py components engines # 0.1.57 in use, newest Get-Content engine\BUILD.json | Select-String version # "version": "0.1.55" .venv\Scripts\python.exe setup.py --model UD-IQ3_XXS --yes # -> UD-IQ3_XXS needs engine 0.1.57 or newer; this one is 0.1.55 ``` Held at 0.1.55 because `engine\BUILD.json` says `source: "prebuilt"` and 0.1.55 ≥ `WIN_HIP_MIN_ENGINE`; re-running setup or `--update` never changes it. ## Logs ``` // engine-feed\.updates\state.json (after the update) "engine": { "active": "0.1.57-windows-x86_64-hip-rdna3", "previous": "0.1.55-windows-x86_64-hip-rdna3", "failed": {} } "feed": { "sequence": 121, "key_id": "5d1bc23abbeffd0d", "channel": "stable" } // engine\BUILD.json { "source": "prebuilt", "backend": "hip", "version": "0.1.55", "rocm": "10.2.0a20260930", "archs": ["gfx1100","gfx1101","gfx1102","gfx1151"], "commit": "99866a47a2b8..." } // engine-feed\engine\0.1.57-windows-x86_64-hip-rdna3\BUILD.json { "source": "f-0214-int", "backend": "hip", "version": "0.1.57", "rocm": "10.2.0a20260930", "archs": ["gfx1100","gfx1101","gfx1102","gfx1151"], "lib_dirs": ["rocm/bin"] } ``` `.updates/logs/test-start-0.1.57.log` (7244 B) shows the new engine starting and answering the one-token probe on this card, so the engine itself is not the problem — only its placement. ## What I expected Either: - setup to notice that the feed store holds a newer engine for this card and copy it into `engine/` the way `engine_from_feed()` already does (same `install_unpacked()` / `.previous` swap), e.g. by relaxing the HIP Windows branch of `update_installed_engine()` to compare against the resolved component version rather than `WIN_HIP_MIN_ENGINE`; or - the version gate at `setup.py:10800` to say which folder it read (`E:\Strata\engine`, `BUILD.json` version 0.1.55) and that the newer engine sits in `engine-feed\engine\0.1.57-…`, instead of a generic *"update Strata"*; or - `strata update` in a source checkout to keep `engine/` in step (or to say plainly that in a checkout the engine lives in the component store and `engine/` is only what setup/downloaded). A second, smaller thing: a run config written by setup for a source checkout pins `"exe": "E:\Strata\engine\strata.exe"`, so it keeps using the stale folder even after `strata components use 0.1.57`. `component:strata-engine` (what the updater's own test config uses) would follow the store.
Author
Owner

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

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6689507346 --> @github-actions[bot] commented on GitHub (Nov 6, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
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#3233
No description provided.