mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3418] Picking a single GPU in the app (Ryzen iGPU + discrete Radeon) is broken twice over #1384
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1384
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @squidwardboom on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3418
Environment
Strata-0.2.0-beta-windows-hip-rdna3.exe)strata-engine0.1.45.3,windows-x86_64-hip-rdna3AMD Radeon(TM) Graphics, gfx1036LOCALAPPDATAlayout; model Qwen3.8-Flash-Next IQ3_SThe two cards matter: HIP numbers the iGPU 0 and the 7900 XTX 1, while the display-adapter order used elsewhere numbers them the other way round.
Bug 1 — a single-card pick is sent as
gpusand rejected by the schemaSteps
Actual
Expected
The card is accepted and the model loads.
Cause
strata_installcarries two mutually exclusive GPU parameters:The one-card case is meant to go through
gpu(integer). The app's Settings puts the selection intogpusinstead, as a string — so a single card arrives as"0", whichGPUS_PATTERNcannot match (it needs ≥ 2 comma-separated cards, orall). The schema rejects it before it ever reachesinstall_plan().Suggested fix
When exactly one card is selected, emit
gpu: <n>(integer). Reservegpusfor 2+ cards. Optionally make the pattern accept a single number and treat it as the one-card case, so a client that never distinguishes the two still works.Bug 2 — with the app install, that number is the display-adapter index, not the HIP ordinal, so the engine starts on the iGPU and dies
Fixing bug 1 alone (sending
gpu=0) does not help on this machine: the UI's0means "the first usable card in display-adapter order", but the engine receives it asHIP_VISIBLE_DEVICES=0, which is the iGPU.Actual
Cause
serve/server.pyalready has the correction for this (#325), and says what should feed it:Two things stop that from working on the app install:
(a) The card list is built in display-adapter order, because the HIP probe is never found.
ROOTisPath(__file__).resolve().parent=<install>\control, and the app install keeps the engine in the component layout, not at<install>\control\engine:So
hip_devices()returnsNone, andamd_gpus_win()falls back toamd_gpus_windows():Observed on this machine:
The 7900 XTX is therefore offered as GPU 0, and that 0 is what lands in the config as
"gpu": 0— which the engine reads as HIP ordinal 0, the iGPU.Note the Terminal /
git cloneinstall does not hit this: thereROOT\engine\strata-device.exeexists,hip_devices()succeeds, and the same card is correctly numbered 1. The two install layouts number the same card differently, and only the app layout gets it wrong.(b) Nothing ever writes
hip_ordinal. The docstring above says setup records it, but a tree-wide grep forhip_ordinalfinds only readers and tests — no producer:So no Windows AMD install reaches
hip_visible()with an ordinal, and the fallbackordered_gpus(cfg)always feeds the display-adapter index toHIP_VISIBLE_DEVICES.Suggested fix
hip_devices()resolve the probe throughstrata_control.engine_component(engine_dir()/ the current engine component folder) instead of the hardcodedROOT / "engine", so the app's component layout numbers cards the way HIP does. Thengpu: 1for this machine is correct without any ordinal at all.hip_ordinal(fromstrata-device --list-devices) when it writes a one-card Windows AMD config, aship_visible()already expects.hip_visible()could skip devices whose arch the engine cannot run (--list-devicesalready printscannot run:for them) instead of trusting the ordinal blindly.Workaround that works today
Add the ordinal by hand to the run config (
<LOCALAPPDATA>\Strata\install\strata-<model>.json):With that the model loads and answers normally:
Related
#325 (iGPU takes HIP ordinal 0), #524, #942
@github-actions[bot] commented on GitHub (Oct 20, 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:
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
@Niko1221 commented on GitHub (Oct 21, 2026):
Thanks, this is a very clear report. Two things, and you found both.
gpusand getting "Gpus='0' is not valid": fixed in 0.2.1 (one card is sent asgpunow).control\engine. It now looks in both, so the 7900 XTX shows up as GPU 1 and the model starts on it. This is in 0.2.2 now.If you can, please tell us on 0.2.2 whether the list now shows the 7900 XTX as GPU 1.