mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[GH-ISSUE #102] Project Maya on AMD Strix Halo (gfx1151) / Windows 11 — test report + one bug with a fix #36
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#36
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 @LIN-LAB-AI on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/102
Project Maya on AMD Strix Halo (gfx1151) / Windows 11 — test report + one bug with a fix
1. Machine and setup
hipInfo), of which the carve is 96 GiBC:\Program Files\AMD\ROCm\7.2), clang 21.0.0c189f7a)vision/, 90.90 GiB on disk), sha256 verified againstmaya.py--backend hip --gpu 0(one GPU — an APU is single-GPU, as documented)START-MAYA.bat --backend hip --gpu 0 --setup --yes --gguf-dir <folder with the .gguf files>Relevant
STRATA_GLM_*settings (written by setup, unmodified):Engine command (from
maya-maya-s-v2-iq2_xxs-hip.json):Notes for whoever reproduces this
--gguf-dirworks and bypasses the download entirely.maya.py:85hardcodesHF = "https://huggingface.co/..."; from this networkhuggingface.cois unreachable (connect timeout) whilehf-mirror.comworks. I downloaded the five files with aria2c from the mirror, verified each sha256 against thevalues published in
maya.py, and pointed setup at the folder. No source change was needed for that, and itmight be worth documenting that
--gguf-diralso serves as the "I cannot reach huggingface.co" path.--gguf-dirmust name the folder that holds the shards. Pointing it at the parent folder fails by design(
local_first()->glm_files()errors when a folder holds more than one model). The files live in...\GLM-5.3-Flash-Maya\Maya-S-v2-IQ2_XXS\, and that is the folder to pass.ERROR running init: rocm_sdk_devel module ... is not installedwhen they are absent; it then falls back tothe system ROCm and continues. Harmless, but the
ERRORline reads like a failure.2. It works
It runs, and answers correctly. Loading takes ~40 s, and the expert tiers warm in ~43 s.
At 262144 context the engine reports:
Greedy output over a 228K-token prompt was coherent and on-topic; arithmetic and formatting looked right.
No stalls, no crashes, no watchdog trips across every run below (the watchdog never fired).
The memory geometry on a Windows APU, in case it is useful
With a 96 GiB carve Windows sees 31.65 GiB, so the RAM tier is tiny (1.96–2.4 GB, ~300 slots) — and it did not
matter, because the 80.17 GB VRAM pool held 11,961 of 12,096 experts (99.98% hit) during decode:
So on this box the carve, not the RAM, is what makes it fast — the opposite of the usual advice, and worth
knowing because
docs/AMD_MAYA.mdsuggests "96 GB on a 128 GB one", which is exactly what this is.3. Speeds
3.1 Context sweep — prefill and decode, 8K to 256K
Method: real English technical prose (a 1.16 M-character corpus), a different slice for every sample, so no
prompt is ever served from a cache —
reused: 0was asserted on every row. Speeds are the engine's ownper-request numbers (
prompt_ms,decode_ms) fromGET /metrics, not wall clock. Decode is the row afterthe prompt was read, so it is decode at that depth. Thinking off, greedy.
17 of 18 samples are good and every one had
reused: 0. The 256K prompt took a median of 953.7 s (~15.9 min)to read; the 8K one, 27.7 s.
Prefill peaks at 16K (320.2) and then declines gently — 64K is 4.2% down, 128K 7.5%, 256K 14.3%. Decode falls
11.8% over the same range (16.10 -> 14.20). Both are very flat, consistent with the sparse/linear attention
hybrid in GLM-5.3-Flash (a dense-attention model would collapse far more).
3.5 Decode depends on how much is generated — worth stating in the docs
Holding depth fixed and varying only the length of the answer:
Both columns come from the same prompts per depth; only
max_tokenschanged (256 versus 1024). The ~65-token rowsare where the model stopped on its own (
finish: stop), not where it was cut off. Every rowreused: 0.So a bare "decode tok/s" is not a complete number on this engine: the length of the answer matters by 0.7–1.0 tok/s
(about 5%) up to 128K. The bench's own protocol (3 answers of 256 tokens) therefore lands between the two columns,
which is worth knowing when comparing it with a long-generation number. Not a defect — just a reporting issue, and it
would help to say which regime a published figure comes from.
3.6 A note in Maya's favour: the context overflow is rejected clearly
While sweeping I sent a prompt that measured 262,541 tokens with
max_tokens: 2048and got:That is exactly right, it names both numbers, and it says what it will not do. Filing it here as a positive: no
silent truncation, no engine hang, and the message told me what to change. (The overflow was my error — I sized
prompts by character count, and this corpus's token density varies by region.)
3.2
--bench, for direct comparison with the README tableSTART-MAYA.bat --backend hip --bench --config maya-maya-s-v2-iq2_xxs-hip.json:3.3 On the gap between 18.3 (bench) and 15.9 (sweep) — they measure different things
The bench's short prompts decode at 18.3; the sweep's 8K-token prompts decode at 15.9. I checked whether output
length explains it, holding depth fixed at ~7.9K and varying
max_tokens:max_tokensreusedThe model stops on its own at 47 tokens in all four, so output length is not the cause. The difference tracks
reused: the decode that follows a real (cold) prefill runs 15.7 tok/s; the same decode with the prompt alreadyin cache runs 17.5. So a decode number is only comparable when the prompt state is the same, and the README's
bench (short prompt, warm) is the optimistic end. Both numbers are real; they answer different questions.
3.4 Comparison with the README's Strix Halo prose numbers
docs/AMD_MAYA.mdreports ~210 tok/s prefill and ~17.8 tok/s decode on a 128 GB Strix Halo (ROCm 7.2.2, tuned).Here:
The decode shortfall is in the range the README itself mentions for official-vs-local differences. The prefill
being higher is unexpected given the small RAM tier; a likely reason is that essentially every expert was
resident in VRAM here. Offering it as a data point, not a claim.
4. Bug: the Monitor shows no GPU data at all on Windows + AMD
Symptom. With Maya running on Windows + AMD, the dashboard's Monitor has no GPU readings — every
gpu_*field is
None.GET /metricsshows"gpu_name": nulland nogpu_util/gpu_mem_*.Root cause.
serve/telemetry.pyhas one GPU reader,_Nvml, which loadsnvml.dll. On an AMD machine thatload fails, so
Telemetry.__init__(self.gpus = [(i, _Nvml(i)) for i in idx]) keeps a reader whose.ok()isFalse, and
sample()skips the wholeif self.gpu.ok():block. There is no Windows/AMD branch at all.(The same defect existed in upstream Strata and was diagnosed and fixed there; see below.)
Verified on this machine:
Fix. Read the OS's own GPU performance counters through
pdh.dll. The patch is already written and tested forStrata (it is the same file lineage), and it transplants into Maya unchanged because its class already implements
_Nvml's interface (.ok()/.name()/.read()). Two edits:_PDH_MORE_DATA…class _WinGpu) — see the patch file;Telemetry.__init__:Result on this machine (before -> after, read from a running server's
GET /metrics):gpu_nameNoneAMD Radeon(TM) 8060S Graphicsgpu_utilNone0.2(%)gpu_mem_usedNone99,047,526,400gpu_mem_totalNone103,079,215,104(= the 96 GiB carve)gpu_mem_sharedNone2,440,888,320gpu_temp/gpu_power/gpu_pcie_*NoneNone(expected — Windows PDH has no such counters)Note
gpu_utilis the busiest single engine instance (Task Manager's own algorithm), not the whole-cardpercentage Linux's
gpu_busy_percentgives — the two mean different things.Prior art / credit. This is the same fix already applied to Strata, where it was reported upstream (Strata issue
about Windows/AMD telemetry). If a Maya PR is wanted: it is one new class plus one changed line,
#if-free (purePython), and NVIDIA's path is untouched —
_Nvmlis still what antmachine with an NVIDIA card will pick firstvia
ok().5. What I did NOT test
--no-vision(the encoder compiles separately); not exercised.--calibrate— not run (the CPU/PCIe split was left at the engine's start-up guess:pcie_share 0.92).@mw00 commented on GitHub (Oct 11, 2026):
Thank you, this is one of the most careful reports we've had. Numbers measured this way, with
reused: 0asserted on every row, are rare.The Monitor on Windows + AMD: confirmed by reading
serve/telemetry.py: there is only the NVML reader, so an AMD card on Windows gets nothing. A PR with your_WinGpuclass would be very welcome. One change to the selection line: keep NVML first, and use_WinGpuonly when NVML isn't available. On a Windows PC with an NVIDIA card NVML gives temperatures, power and PCIe that PDH doesn't, andreader = _WinGpu if os.name == "nt" else _Nvmlwould take those away. Something like:Your speeds (Radeon 8060S, 96 GB carve-out, Windows 11:
--bench18.3 tok/s decode, 320 tok/s prefill at 8K) go into the README's table (#100).Your notes, all taken:
--gguf-dirwhen huggingface.co can't be reached: yes, that's exactly the path. It'll be said in the setup docs.ERROR running init: rocm_sdk_devel ...line: it comes from AMD'srocm-sdkitself when its compiler wheel isn't there, and the setup then goes on with the HIP SDK, as you saw. We'll add a line saying so, so it doesn't read as a failure.STRATA_GLM_SLOTS=0(or assertingreused == 0, as you did) for any prefill measurement goes into the benchmarking notes.@mw00 commented on GitHub (Oct 23, 2026):
Thank you for the early Strix Halo report - its numbers are in the README's speed table. Correction to my first note here: part (B) is not fixed yet - the Monitor still has no GPU reader on Windows + AMD (only NVML, and amdgpu's sysfs on Linux). Reopening this for that part; your pdh.dll approach is the one we'll look at.