mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #156] RX 9070 XT (gfx1201, 16 GB) on Windows 11, HIP: speed report (Maya-S / Maya-S24) + two small issues #57
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#57
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 @pros02 on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/156
First report I could find for a 16 GB discrete RDNA4 card on Windows with the HIP backend. Everything below was measured on the machine described here with Maya v1.1.4 (
f4d13e1);maya-report.txtis at the end.Machine
START-MAYA.bat --backend hip --gpu 0 --setup --yes --model <model> --download-model --no-vision --context 8192 --port 8099Setup, build (~20 min), download (sha256 verified) and pack all worked first time. No bugchecks, driver resets (4101) or WHEA events during ~2.5 h of runs.
Results (
--bench, 8K context, engine settings as written by setup unless noted)STRATA_GLM_PREFILL_MB=2048PREFILL_MB=3072PREFILL_MB=4096+PREFILL_SUB=1024GPU_FLUSH_ON_EXECUTION=1PREFILL_MB=2048PREFILL_MB=3072--model.GPU_FLUSH_ON_EXECUTION=1costs decode here too (8.5 -> 6.7), as on the 8065S.Issue 1:
--benchreports the wrong GPU on Windows when an old AMD adapter is still in the registrymaya-bench.txtsaysGPUs: AMD Radeon RX 6700 XT 12 GB, while--checkand--reportcorrectly showGPU 0 (AMD Radeon RX 9070 XT, 16 GB, gfx1201)from hipInfo. The engine itself runs on the 9070 XT (15.92 GB in its log), so only the label is wrong.Cause: the display class in the registry still holds the card this PC had before (
0000 AMD Radeon RX 6700 XT,Get-PnpDevicestatus Unknown = not present), andbench()(maya.py:2497) callsS.amd_gpus()without the hipInfo path, so on Windows it falls back towindows_amd_adapters(), which lists every AMD entry in the registry, present or not.Possible fixes: pass the hipInfo path in
bench()as--checkdoes, and/or havewindows_amd_adapters()skip adapters that are not present (e.g. filter byGet-PnpDevice -PresentOnly). That also matters for--gpu Non a PC without hipInfo, where the stale entry would shift the numbering.Issue 2: a prompt budget the pool cannot lend drops prefill to token-by-token (a 5-6x cliff)
With
STRATA_GLM_PREFILL_MB=3072(or 4096) on Maya-S, the log saysand prefill goes from 54 to 9 tok/s. It would be friendlier to shrink the chunk to what the pool can lend (2048 MB worked here) instead of falling back to one token at a time. Setup does not write these settings for cards under 20 GB, so this only bites when set by hand, but it is an easy trap on 16 GB cards.
maya-report.txt (Maya-S24)
maya-bench.txt (Maya-S, default settings)
🤖 Generated with Claude Code
@pros02 commented on GitHub (Oct 13, 2026):
Follow-up: Maya-S24 at 32K context on the same PC (RX 9070 XT 16 GB, Windows 11, HIP 7.2, v1.1.4). Setup re-run with
--context 32768, engine settings as setup writes them.--bench:glm stat (prompt only)Through the API (Japanese documents, thinking off, temperature 0), 32K:
At 8K the same ~3K-token prompt read at 249 tok/s. The answers were correct at every length (a fact that appears only near the end of the 19K-token prompt was found).
One thing I can't explain: a 2K prompt fits in one chunk at both 8K (10240) and 32K (7936), yet prefill is ~3x slower per token at 32K (3.4 vs 9.5 ms/tok). Longer prompts then speed up (61 -> 152 -> 174 tok/s), as if each prompt pays a fixed cost that does not depend on its length. Is that expected from the larger KV/attention setup at 32K, or worth a look? Happy to run anything that helps (an env setting, a log level).
🤖 Generated with Claude Code
@mw00 commented on GitHub (Oct 13, 2026):
Thanks - the first RDNA4 report on Windows, and a careful one. Both issues are real:
1. The wrong GPU name in
maya-bench.txt: confirmed.--bench(and the start's VRAM lookup) list AMD GPUs without hipInfo, so on Windows they fall back to the registry, which still holds your old 6700 XT. The fix is the one you suggest: use hipInfo there as--checkdoes, and skip adapters that aren't present. It's on our list.2. The token-by-token cliff: confirmed too. When the prompt buffers don't fit in what the expert pool can lend, the engine shrinks only the prestage buffer and then gives up the prompt path entirely. Shrinking the chunk to fit is better, and that's what we'll do. Until then, setup's own choice (no
STRATA_GLM_PREFILL_MBon 16 GB cards) is the safe one.The 32K follow-up: a 2K prompt being ~3x slower per token at 32K than at 8K isn't expected - it fits one chunk either way, and with every expert in VRAM + RAM there's no disk in it. To see which part of the prompt pass grows, could you run
--benchonce at each context with"STRATA_GLM_PREFILL_PROF": "1"added to the config'senv, and paste theglm prefill profblock from each engine log? The engine prints it when it stops, with the time of each phase.And good to see Maya-S24 confirmed as the right pick for 16 GB.
@pros02 commented on GitHub (Oct 19, 2026):
Thanks for confirming both issues and for the detailed explanation.
Sorry, I have since removed Maya from this PC, so I can't run the
STRATA_GLM_PREFILL_PROFbench you asked for. If I install it again,I'll run it and post the
glm prefill profblocks here.@mw00 commented on GitHub (Oct 19, 2026):
Thanks for the detailed report and for following up! Closing this for now. If you install Maya again, feel free to reopen it with the prefill profile output and we'll pick it up from there.