[GH-ISSUE #3795] [Engine] Field report: 0.1.41 -> 0.2.2 upgrade on two AMD rigs - mixed NVIDIA+AMD installer mispick + silent tuning-flag rollback #1602

Closed
opened 2026-11-04 01:52:33 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @twining69-tech on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3795

Ran the full 0.1.41 -> 0.2.2 (engine 0.1.47) upgrade on two Windows AMD rigs this week. One daily-driver, one test bench. Summary + two concrete fixes you could ship.

What went great

  • Official HIP vision reader (strata-vision-hip) is fantastic — we retired a hand-built vision bridge we'd maintained since 0.1.41. First-party wins.
  • Non-git source copy upgraded fine via the main.zip path; engine pinned + hash-verified against SHA256SUMS.
  • Engine 0.1.47 hip-rdna3 has been our primary local LLM runtime (voice assistant + agent tooling) with zero instability overnight.
  • The #2065 VRAM warning ("driver pages to system RAM, decode falls to few tok/s") is accurate and actionable telemetry — it matched our observed latency spikes exactly. More warnings like this please.

Bug 1: mixed NVIDIA+AMD rig — installer picks the wrong GPU, silently wrong build
On a rig with an RTX 3060 + RX 7900 XTX, setup asks "which cards?" with NVIDIA as the default, and WMI on that machine reports BOTH GPUs as 4 GB (measured: 12 and 24). So the default answer installs the CUDA build on the weaker card. First install attempt was a full waste.
Suggest: enumerate adapters via DXGI (or at least cross-check reported VRAM against the actual adapter) and make --backend hip prominent in install docs — mixed rigs are increasingly common (game GPU + compute GPU).

Bug 2: "keep user settings" silently reverts undocumented tuning flags
Setup preserved core flags but reset an undocumented tuning set: a spec-min-p style ratio went back to 0.5 and two adaptation flag groups vanished from the args (they exist in the binary but not in --help). Only caught by diffing the config against a pre-update snapshot.
Suggest: either document the tuning flags in --help, or preserve user_args verbatim and diff-report anything reverted.

Corroboration

  • #3469 (UPDATE.bat fails to fetch engine 0.1.46 on non-git copies): confirmed, +1; main.zip path is a clean workaround.
  • RX 6700 XT (gfx1031) note for the RDNA2 file: first Windows source-build of v0.2.2 on that card completed on our bench — prefill +38.8% (147.2 -> 204.4 tok/s vs 0.1.41), decode stable, and a previously reported GPU bug did NOT reproduce on 0.1.47. Official RDNA2 support works in the wild.

Hardware: RX 7900 XTX 24GB (gfx1100, daily) / RX 6700 XT 12GB (gfx1031, bench), Windows, 64GB RAM (96GB coming).

Originally created by @twining69-tech on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3795 Ran the full 0.1.41 -> 0.2.2 (engine 0.1.47) upgrade on two Windows AMD rigs this week. One daily-driver, one test bench. Summary + two concrete fixes you could ship. **What went great** - Official HIP vision reader (strata-vision-hip) is fantastic — we retired a hand-built vision bridge we'd maintained since 0.1.41. First-party wins. - Non-git source copy upgraded fine via the main.zip path; engine pinned + hash-verified against SHA256SUMS. - Engine 0.1.47 hip-rdna3 has been our primary local LLM runtime (voice assistant + agent tooling) with zero instability overnight. - The #2065 VRAM warning ("driver pages to system RAM, decode falls to few tok/s") is accurate and actionable telemetry — it matched our observed latency spikes exactly. More warnings like this please. **Bug 1: mixed NVIDIA+AMD rig — installer picks the wrong GPU, silently wrong build** On a rig with an RTX 3060 + RX 7900 XTX, setup asks "which cards?" with NVIDIA as the default, and WMI on that machine reports BOTH GPUs as 4 GB (measured: 12 and 24). So the default answer installs the CUDA build on the weaker card. First install attempt was a full waste. Suggest: enumerate adapters via DXGI (or at least cross-check reported VRAM against the actual adapter) and make `--backend hip` prominent in install docs — mixed rigs are increasingly common (game GPU + compute GPU). **Bug 2: "keep user settings" silently reverts undocumented tuning flags** Setup preserved core flags but reset an undocumented tuning set: a spec-min-p style ratio went back to 0.5 and two adaptation flag groups vanished from the args (they exist in the binary but not in --help). Only caught by diffing the config against a pre-update snapshot. Suggest: either document the tuning flags in --help, or preserve user_args verbatim and diff-report anything reverted. **Corroboration** - #3469 (UPDATE.bat fails to fetch engine 0.1.46 on non-git copies): confirmed, +1; main.zip path is a clean workaround. - RX 6700 XT (gfx1031) note for the RDNA2 file: first Windows source-build of v0.2.2 on that card completed on our bench — prefill +38.8% (147.2 -> 204.4 tok/s vs 0.1.41), decode stable, and a previously reported GPU bug did NOT reproduce on 0.1.47. Official RDNA2 support works in the wild. Hardware: RX 7900 XTX 24GB (gfx1100, daily) / RX 6700 XT 12GB (gfx1031, bench), Windows, 64GB RAM (96GB coming).
Author
Owner

@github-actions[bot] commented on GitHub (Oct 23, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

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:6357933413 --> @github-actions[bot] commented on GitHub (Oct 23, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". 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)
Author
Owner

@twining69-tech commented on GitHub (Oct 23, 2026):

Edited the title to carry the [Engine] prefix per the housekeeping note - thanks for the pointer. Both flagged findings still reproduce cleanly on two separate Windows AMD rigs (7900 XTX daily + 6700 XT bench): the installer preferring CUDA bits on mixed-rig machines, and tuning flags silently rolling back across the upgrade. Logs and exact repro steps on request. Happy the first-party HIP vision reader let us retire a hand-built bridge we had maintained since 0.1.41 - that is the win worth shipping in the changelog.

<!-- gh-comment-id:6374402018 --> @twining69-tech commented on GitHub (Oct 23, 2026): Edited the title to carry the [Engine] prefix per the housekeeping note - thanks for the pointer. Both flagged findings still reproduce cleanly on two separate Windows AMD rigs (7900 XTX daily + 6700 XT bench): the installer preferring CUDA bits on mixed-rig machines, and tuning flags silently rolling back across the upgrade. Logs and exact repro steps on request. Happy the first-party HIP vision reader let us retire a hand-built bridge we had maintained since 0.1.41 - that is the win worth shipping in the changelog.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 23, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6374405084 --> @github-actions[bot] commented on GitHub (Oct 23, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 26, 2026):

Thanks for the field report. For the setup question 'Which cards?' on the mixed RTX 3060 and RX 7900 XTX rig, please send the setup output from that prompt, including where the 4 GB figure appeared. For the tuning flags that went back to defaults, please send the config's args list before and after the update (remove the keys you do not want to share) and the Strata version you started from. You can reopen with those at any time.

<!-- gh-comment-id:6423334774 --> @Niko1221 commented on GitHub (Oct 26, 2026): Thanks for the field report. For the setup question 'Which cards?' on the mixed RTX 3060 and RX 7900 XTX rig, please send the setup output from that prompt, including where the 4 GB figure appeared. For the tuning flags that went back to defaults, please send the config's args list before and after the update (remove the keys you do not want to share) and the Strata version you started from. You can reopen with those at any time.
Author
Owner

@twining69-tech commented on GitHub (Oct 28, 2026):

Reopening with the three items you asked for.

1. Setup output from the "Which cards?" prompt — mixed RTX 3060 + RX 7900 XTX rig

The Oct 26 update run was console-only (no log was kept). We re-ran the same 0.2.2 setup.py --check on the same rig and the prompt block reproduces:

  This PC has NVIDIA and AMD cards Strata can use:
  1) NVIDIA: NVIDIA GeForce RTX 3060 (12 GB)   (recommended)
  2) AMD: AMD Radeon RX 7900 XTX (24 GB)   (the ready-made AMD engine, pictures on - docs/AMD_HIP.md)
  ...
  [ok] GPU: NVIDIA GeForce RTX 3060, 12.0 GB VRAM, compute capability 8.6, driver 610.88

With --check (like --yes) the ask("Which cards?", ["1", "2"], "1") call auto-answers the default — the CUDA build on the 3060 is picked even though the XTX is the bigger card. The default answer on a mixed rig is the mispick.

Where the 4 GB figure comes from: Win32_VideoController.AdapterRAM on this machine reports the same capped value for both discrete GPUs:

Name                    AdapterRAM
AMD Radeon RX 7900 XTX  4293918720   (formats as "4 GB"; actual 24 GB)
NVIDIA GeForce RTX 3060 4293918720   (formats as "4 GB"; actual 12 GB)

setup.py's Windows AMD enumerator (amd_gpus_windows()) prefers the registry's 64-bit HardwareInformation.qwMemorySize and falls back to the WMI 32-bit figure when it is absent — the code's own comment: # WMI's 32-bit figure (at most 4 GB) (0.2.2 setup.py, L4186-4187). On the first install attempt, before any HIP engine existed, hip_devices() was empty and this WMI path was the enumerator: the AMD line showed "4 GB" for the 7900 XTX. The registry values are present now (24.0 / 12.0 GB), which is why a re-run today shows correct numbers — the fallback fires exactly when the driver has not provisioned them, which is the state a fresh mixed-rig install starts in. Suggestion stands: cross-check the WMI figure against the registry/qwMemorySize (or DXGI) before printing it, and consider making the bigger card the default rather than NVIDIA-by-default.

2. Config args before and after the update

Before (working hip config, snapshotted pre-update):

"args": ["--pack", "<pack>", "--native", "<gguf-1>", "--ple-gguf", "<gguf-2>",
         "--expert-profile", "<profile>", "--expert-cache", "auto", "--prefill", "auto",
         "--spec", "4", "--spec-min-p", "0.70", "--mtp", "<mtp>",
         "--max-context", "131072", "--kv", "int8",
         "--pcie-frac", "0.35", "--adapt-every", "1", "--adapt-swaps", "160", "--adapt-decay", "0.97",
         "--vision", "--vram-reserve-mib", "700"]
"backend": "hip",
"lib_dirs": ["<engine>/rocm/bin"],
"env": {"STRATA_HIPBLASLT_TUNING": "<tuning-file>"}
"vision": {"gpu": false, "threads": 12, "max_tokens": 300}

After (written by the 0.2.2 updater):

"args": ["--pack", "...", "--spec", "4", "--spec-min-p", "0.5", "--mtp", "...",
         "--max-context", "131072", "--kv", "int8",
         "--vision", "--vram-reserve-mib", "1152"]
"lib_dirs": ["C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.0\\bin",
             "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.0\\bin\\x64"]
"vision": {"gpu": true, "max_tokens": 1024}
"user_args": ["--vram-reserve-mib", "1152"]

What the updater silently changed on an AMD rig:

  • --spec-min-p 0.70 → 0.5 (the ratio reset from the report)
  • --pcie-frac, --adapt-every, --adapt-swaps, --adapt-decay — all four dropped from args
  • backend: "hip" removed; lib_dirs switched to CUDA v13.0 (the installer mispick made permanent in the config)
  • STRATA_HIPBLASLT_TUNING env removed
  • --vram-reserve-mib 700 → 1152; vision gpu false → true, max_tokens 300 → 1024
  • user_args preserved only --vram-reserve-mib — the four tuning flags were not in it

No secrets in these args; only this rig's paths, genericized.

3. Version started from: Strata 0.1.41 → upgraded to 0.2.2 (engine 0.1.47 hip-rdna3 was the working live build; the CUDA mis-build was parked as engine-CUDA-backup-0151).

<!-- gh-comment-id:6459741159 --> @twining69-tech commented on GitHub (Oct 28, 2026): Reopening with the three items you asked for. **1. Setup output from the "Which cards?" prompt — mixed RTX 3060 + RX 7900 XTX rig** The Oct 26 update run was console-only (no log was kept). We re-ran the same 0.2.2 `setup.py --check` on the same rig and the prompt block reproduces: ``` This PC has NVIDIA and AMD cards Strata can use: 1) NVIDIA: NVIDIA GeForce RTX 3060 (12 GB) (recommended) 2) AMD: AMD Radeon RX 7900 XTX (24 GB) (the ready-made AMD engine, pictures on - docs/AMD_HIP.md) ... [ok] GPU: NVIDIA GeForce RTX 3060, 12.0 GB VRAM, compute capability 8.6, driver 610.88 ``` With `--check` (like `--yes`) the `ask("Which cards?", ["1", "2"], "1")` call auto-answers the default — the CUDA build on the 3060 is picked even though the XTX is the bigger card. The default answer on a mixed rig is the mispick. Where the 4 GB figure comes from: `Win32_VideoController.AdapterRAM` on this machine reports the same capped value for both discrete GPUs: ``` Name AdapterRAM AMD Radeon RX 7900 XTX 4293918720 (formats as "4 GB"; actual 24 GB) NVIDIA GeForce RTX 3060 4293918720 (formats as "4 GB"; actual 12 GB) ``` setup.py's Windows AMD enumerator (`amd_gpus_windows()`) prefers the registry's 64-bit `HardwareInformation.qwMemorySize` and falls back to the WMI 32-bit figure when it is absent — the code's own comment: `# WMI's 32-bit figure (at most 4 GB)` (0.2.2 setup.py, L4186-4187). On the first install attempt, before any HIP engine existed, `hip_devices()` was empty and this WMI path was the enumerator: the AMD line showed "4 GB" for the 7900 XTX. The registry values are present now (24.0 / 12.0 GB), which is why a re-run today shows correct numbers — the fallback fires exactly when the driver has not provisioned them, which is the state a fresh mixed-rig install starts in. Suggestion stands: cross-check the WMI figure against the registry/`qwMemorySize` (or DXGI) before printing it, and consider making the bigger card the default rather than NVIDIA-by-default. **2. Config args before and after the update** Before (working hip config, snapshotted pre-update): ```json "args": ["--pack", "<pack>", "--native", "<gguf-1>", "--ple-gguf", "<gguf-2>", "--expert-profile", "<profile>", "--expert-cache", "auto", "--prefill", "auto", "--spec", "4", "--spec-min-p", "0.70", "--mtp", "<mtp>", "--max-context", "131072", "--kv", "int8", "--pcie-frac", "0.35", "--adapt-every", "1", "--adapt-swaps", "160", "--adapt-decay", "0.97", "--vision", "--vram-reserve-mib", "700"] "backend": "hip", "lib_dirs": ["<engine>/rocm/bin"], "env": {"STRATA_HIPBLASLT_TUNING": "<tuning-file>"} "vision": {"gpu": false, "threads": 12, "max_tokens": 300} ``` After (written by the 0.2.2 updater): ```json "args": ["--pack", "...", "--spec", "4", "--spec-min-p", "0.5", "--mtp", "...", "--max-context", "131072", "--kv", "int8", "--vision", "--vram-reserve-mib", "1152"] "lib_dirs": ["C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.0\\bin", "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.0\\bin\\x64"] "vision": {"gpu": true, "max_tokens": 1024} "user_args": ["--vram-reserve-mib", "1152"] ``` What the updater silently changed on an AMD rig: - `--spec-min-p` 0.70 → 0.5 (the ratio reset from the report) - `--pcie-frac`, `--adapt-every`, `--adapt-swaps`, `--adapt-decay` — all four dropped from args - `backend: "hip"` removed; `lib_dirs` switched to CUDA v13.0 (the installer mispick made permanent in the config) - `STRATA_HIPBLASLT_TUNING` env removed - `--vram-reserve-mib` 700 → 1152; vision `gpu` false → true, `max_tokens` 300 → 1024 - `user_args` preserved only `--vram-reserve-mib` — the four tuning flags were not in it No secrets in these args; only this rig's paths, genericized. **3. Version started from:** Strata **0.1.41** → upgraded to **0.2.2** (engine 0.1.47 hip-rdna3 was the working live build; the CUDA mis-build was parked as `engine-CUDA-backup-0151`).
Author
Owner

@RandomGHUser commented on GitHub (Oct 30, 2026):

I'm getting a (related/similar) multigpu issue on the latest version of Strata (wanting to run with AMD RX 7900 XTX, but Strata picking up my NVIDIA card and refuses to run, stating I need to use the NVIDIA version).

This is running in a k8s container on Linux. I've been able to work around the issue by creating an apparmor profile that blocks access to my NVIDIA card devices under the applicable /sys/devices and /proc/bus/pci nodes.

<!-- gh-comment-id:6514498575 --> @RandomGHUser commented on GitHub (Oct 30, 2026): I'm getting a (related/similar) multigpu issue on the latest version of Strata (wanting to run with AMD RX 7900 XTX, but Strata picking up my NVIDIA card and refuses to run, stating I need to use the NVIDIA version). This is running in a k8s container on Linux. I've been able to work around the issue by creating an apparmor profile that blocks access to my NVIDIA card devices under the applicable /sys/devices and /proc/bus/pci nodes.
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#1602
No description provided.