[GH-ISSUE #102] Project Maya on AMD Strix Halo (gfx1151) / Windows 11 — test report + one bug with a fix #36

Open
opened 2026-10-29 21:19:29 +07:00 by bsakaguchi · 2 comments
Owner

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

Draft for a GitHub issue on https://github.com/mw00/project-maya. Written 2026-10-11.
Two parts: (A) gfx1151 / Windows APU test results and (B) a bug: the Monitor shows no GPU data on
Windows+AMD, with a tested patch
. They can be filed as one issue or two.
Everything below is measured on the machine described in §1; nothing is extrapolated from another box.


1. Machine and setup

GPU AMD Radeon 8060S (Ryzen AI Max+ 395, gfx1151), 128 GB unified, BIOS carve-out 96 GiB
What Windows sees 31.65 GiB RAM, commit limit 127.65 GiB
GPU memory HIP reports 107.87 GB (hipInfo), of which the carve is 96 GiB
OS Windows 11 (10.0.26100), native — not WSL2
ROCm AMD HIP SDK 7.2 (C:\Program Files\AMD\ROCm\7.2), clang 21.0.0
VS Visual Studio Build Tools 2022 17.14 (Desktop C++, x64)
Python 3.13.15 x64 (Maya's docs say 3.12; the launcher only requires ≥3.10 — worked)
Disk model on NVMe
Maya v1.0.30 (commit c189f7a)
Model Maya-S-v2-IQ2_XXS (3 shards + vision/, 90.90 GiB on disk), sha256 verified against maya.py
Backend / GPU --backend hip --gpu 0 (one GPU — an APU is single-GPU, as documented)
Context 262144
Install path START-MAYA.bat --backend hip --gpu 0 --setup --yes --gguf-dir <folder with the .gguf files>

Relevant STRATA_GLM_* settings (written by setup, unmodified):

STRATA_GLM_RESERVE_MB      3072
STRATA_GLM_RAM_HEADROOM_GB 16
STRATA_GLM_SPLIT           0
STRATA_GLM_PREFILL_SUB     1024
STRATA_GLM_PREFILL_MB      6144
STRATA_HIPBLASLT_TUNING    tools\hip\gfx1151-glm-hipblaslt-100202.txt

Engine command (from maya-maya-s-v2-iq2_xxs-hip.json):

strata.exe --glm-pack <pack> --max-context 262144 --prefill auto

Notes for whoever reproduces this

  • --gguf-dir works and bypasses the download entirely. maya.py:85 hardcodes
    HF = "https://huggingface.co/..."; from this network huggingface.co is unreachable (connect timeout) while
    hf-mirror.com works. I downloaded the five files with aria2c from the mirror, verified each sha256 against the
    values published in maya.py, and pointed setup at the folder. No source change was needed for that, and it
    might be worth documenting that --gguf-dir also serves as the "I cannot reach huggingface.co" path.
  • --gguf-dir must 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.
  • Setup found the system ROCm without complaint. It first tries AMD's ROCm SDK wheels and prints
    ERROR running init: rocm_sdk_devel module ... is not installed when they are absent; it then falls back to
    the system ROCm and continues. Harmless, but the ERROR line reads like a failure.

2. It works

It runs, and answers correctly. Loading takes ~40 s, and the expert tiers warm in ~43 s.

glm fast: CUDA0 layers [0,45) expert pool 80.17 GB, 288-288 slots/layer (12096 total)
glm fast: CUDA0 RAM tier 1.96 GB pinned, 296 slots
glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 43 s (2.00 GB/s)
glm fast: CUDA0 CPU lane: 16 threads, an expert 0.173 ms on the CPU vs 0.054 ms over PCIe
          -> of 0..8 RAM-tier experts the CPU takes 0 0 0 0 1 1 1 1 1

At 262144 context the engine reports:

glm fast: CUDA0 VRAM before the expert pool: 12.69 of 107.87 GB in use
          - dense weights 6.86, state/KV (262144 ctx) 3.32, activations 0.06, other 2.45

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:

glm stat: decode 54.41 ms/tok (18.38 tok/s) | vram hit 99.98% | ram fetches 0.07/tok
          | disk 0.00 reads/tok | cpu lane 0.00/tok in 0.00 ms/tok | vram 11960/12096 ram 136/355

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.md suggests "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: 0 was asserted on every row. Speeds are the engine's own
per-request numbers (prompt_ms, decode_ms) from GET /metrics, not wall clock. Decode is the row after
the prompt was read, so it is decode at that depth. Thinking off, greedy.

Trap worth documenting: conversation slots silently defeat a prefill measurement.
With the default STRATA_GLM_SLOTS=4, the engine keeps conversations in <pack>/slots/ and, on a later
request whose prompt matches one, takes the whole conversation back from disk instead of reading the prompt.
That sets reused to the prompt length and the reported prefill_tok_s becomes the time for the one new
token — I measured 10.8 and 16.5 tok/s on rows whose true cold prefill was ~315 tok/s. Any prefill benchmark
should either set STRATA_GLM_SLOTS=0 or assert reused == 0. For a bug report this is probably obvious, but it
cost me a full run; consider a line about it in the benchmarking notes.

target actual prompt tokens prefill tok/s (median of 3) range decode tok/s (median of 3) range ms/tok
8K 8,632–9,070 315.1 311.1–320.5 15.90 15.50–16.00 63.0
16K 15,645–16,399 320.2 318.9–322.1 16.10 16.10–16.20 62.0
32K 30,537–35,886 312.2 310.7–317.6 15.40 15.20–15.90 65.1
64K 64,419–67,248 306.9 306.8–306.9 15.60 15.50–15.60 64.3
128K 127,893–131,111 296.2 295.8–296.6 14.80 14.70–15.00 67.5
256K 261,748–261,771 274.5 274.5–274.5 14.20 14.00–14.40 70.5

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:

depth decode, ~65-token answers (n=3) decode, 1024-token answers (n) difference
8K 15.90 16.80 (n=3, 16.7/16.8/16.8) +0.90
32K 15.40 16.40 (n=3, 16.4/16.4/16.5) +1.00
128K 14.80 15.50 (n=3, 15.5/15.5/15.3) +0.70
256K 14.20 (n=3) 14.30 (n=1 — see note) +0.10

Both columns come from the same prompts per depth; only max_tokens changed (256 versus 1024). The ~65-token rows
are where the model stopped on its own (finish: stop), not where it was cut off. Every row reused: 0.

Note on the 256K long-output row: it is a single sample. Getting more is awkward, and the reason is worth
recording because it is a property of measuring at the context edge: prompts here are sized by character
count
, and this corpus's tokens-per-character varies by region — the same 934,756 characters measured 255,774
tokens in one region and 262,541 in another (2.6%). At 256K that spread is larger than the 2,048-token output
reserve, so a prompt aimed at the top of the window is either a few tokens short or over the limit. The one
long-output sample that landed measured 255,699 tokens. I would rather report n=1 than tune the prompt until it
fits and call that a measurement.

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: 2048 and got:

{"error": {"type": "invalid_request_error",
           "message": "prompt (262541 tokens) + max tokens (2048) exceeds the context (262144); requests are never truncated"}}

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 table

START-MAYA.bat --backend hip --bench --config maya-maya-s-v2-iq2_xxs-hip.json:

decode (writing the answer): mean 18.3 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
    18.3 / 18.4 / 18.3 tokens/s
prefill (reading the prompt): 267 tokens/s, 2048 tokens
prefill (reading the prompt): 320 tokens/s, 8192 tokens
this box (Windows, gfx1151) README (128 GB Strix Halo)
decode 18.3 ~17.4–17.8
prefill 2048 267 —
prefill 8192 320 ~221

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_tokens output reused engine decode
64 47 0 (cold prompt) 15.7 tok/s
128 47 7,853 (prompt fully reused) 17.5 tok/s
256 47 7,853 17.5 tok/s
512 47 7,853 17.5 tok/s

The 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 already
in 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.md reports ~210 tok/s prefill and ~17.8 tok/s decode on a 128 GB Strix Halo (ROCm 7.2.2, tuned).
Here:

this box README
prefill, long prompt 279–320 ~210 higher
decode, short context 16.0 ~17.8 −10%

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 /metrics shows "gpu_name": null and no gpu_util / gpu_mem_*.

Root cause. serve/telemetry.py has one GPU reader, _Nvml, which loads nvml.dll. On an AMD machine that
load fails, so Telemetry.__init__ (self.gpus = [(i, _Nvml(i)) for i in idx]) keeps a reader whose .ok() is
False, and sample() skips the whole if 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:

os.name        = nt
_Nvml(0).ok()  = False        <- loads no nvml.dll

Fix. Read the OS's own GPU performance counters through pdh.dll. The patch is already written and tested for
Strata (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:

  1. insert the block (_PDH_MORE_DATA … class _WinGpu) — see the patch file;
  2. one line in Telemetry.__init__:
reader = _WinGpu if os.name == "nt" else _Nvml
self.gpus = [(i, reader(i)) for i in idx]

Result on this machine (before -> after, read from a running server's GET /metrics):

field before after
gpu_name None AMD Radeon(TM) 8060S Graphics
gpu_util None 0.2 (%)
gpu_mem_used None 99,047,526,400
gpu_mem_total None 103,079,215,104 (= the 96 GiB carve)
gpu_mem_shared None 2,440,888,320
gpu_temp / gpu_power / gpu_pcie_* None None (expected — Windows PDH has no such counters)

Note gpu_util is the busiest single engine instance (Task Manager's own algorithm), not the whole-card
percentage Linux's gpu_busy_percent gives — 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 (pure
Python), and NVIDIA's path is untouched — _Nvml is still what a nt machine with an NVIDIA card will pick first
via ok().

5. What I did NOT test

  • Vision — built with --no-vision (the encoder compiles separately); not exercised.
  • Multi-GPU — an APU is single-GPU by design.
  • Concurrency — one request at a time, as documented.
  • Quality — no accuracy measurement of any kind; this is speed and stability only.
  • --calibrate — not run (the CPU/PCIe split was left at the engine's start-up guess: pcie_share 0.92).
  • Anything on NVIDIA — I have no NVIDIA GPU.
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 > Draft for a GitHub issue on https://github.com/mw00/project-maya. Written 2026-10-11. > Two parts: **(A) gfx1151 / Windows APU test results** and **(B) a bug: the Monitor shows no GPU data on > Windows+AMD, with a tested patch**. They can be filed as one issue or two. > Everything below is measured on the machine described in §1; nothing is extrapolated from another box. --- ## 1. Machine and setup | | | |---|---| | **GPU** | AMD Radeon 8060S (Ryzen AI Max+ 395, **gfx1151**), 128 GB unified, **BIOS carve-out 96 GiB** | | **What Windows sees** | **31.65 GiB RAM**, commit limit **127.65 GiB** | | GPU memory HIP reports | 107.87 GB (`hipInfo`), of which the carve is 96 GiB | | **OS** | Windows 11 (10.0.26100), native — not WSL2 | | ROCm | AMD HIP SDK **7.2** (`C:\Program Files\AMD\ROCm\7.2`), clang 21.0.0 | | VS | Visual Studio Build Tools **2022** 17.14 (Desktop C++, x64) | | Python | 3.13.15 x64 (Maya's docs say 3.12; the launcher only requires ≥3.10 — worked) | | Disk | model on NVMe | | **Maya** | **v1.0.30** (commit `c189f7a`) | | **Model** | **Maya-S-v2-IQ2_XXS** (3 shards + `vision/`, 90.90 GiB on disk), sha256 verified against `maya.py` | | Backend / GPU | `--backend hip --gpu 0` (**one GPU** — an APU is single-GPU, as documented) | | Context | **262144** | | Install path | `START-MAYA.bat --backend hip --gpu 0 --setup --yes --gguf-dir <folder with the .gguf files>` | **Relevant `STRATA_GLM_*` settings** (written by setup, unmodified): ``` STRATA_GLM_RESERVE_MB 3072 STRATA_GLM_RAM_HEADROOM_GB 16 STRATA_GLM_SPLIT 0 STRATA_GLM_PREFILL_SUB 1024 STRATA_GLM_PREFILL_MB 6144 STRATA_HIPBLASLT_TUNING tools\hip\gfx1151-glm-hipblaslt-100202.txt ``` **Engine command** (from `maya-maya-s-v2-iq2_xxs-hip.json`): ``` strata.exe --glm-pack <pack> --max-context 262144 --prefill auto ``` ### Notes for whoever reproduces this * **`--gguf-dir` works and bypasses the download entirely.** `maya.py:85` hardcodes `HF = "https://huggingface.co/..."`; from this network `huggingface.co` is unreachable (connect timeout) while `hf-mirror.com` works. I downloaded the five files with aria2c from the mirror, verified each sha256 against the values published in `maya.py`, and pointed setup at the folder. **No source change was needed for that**, and it might be worth documenting that `--gguf-dir` also serves as the "I cannot reach huggingface.co" path. * **`--gguf-dir` must 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. * **Setup found the system ROCm without complaint.** It first tries AMD's ROCm SDK wheels and prints `ERROR running init: rocm_sdk_devel module ... is not installed` when they are absent; it then falls back to the system ROCm and continues. Harmless, but the `ERROR` line reads like a failure. ## 2. It works **It runs, and answers correctly.** Loading takes ~40 s, and the expert tiers warm in ~43 s. ``` glm fast: CUDA0 layers [0,45) expert pool 80.17 GB, 288-288 slots/layer (12096 total) glm fast: CUDA0 RAM tier 1.96 GB pinned, 296 slots glm fast: CUDA0 tiers warm: 12096 experts (86.0 GB) in 43 s (2.00 GB/s) glm fast: CUDA0 CPU lane: 16 threads, an expert 0.173 ms on the CPU vs 0.054 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 0 1 1 1 1 1 ``` At 262144 context the engine reports: ``` glm fast: CUDA0 VRAM before the expert pool: 12.69 of 107.87 GB in use - dense weights 6.86, state/KV (262144 ctx) 3.32, activations 0.06, other 2.45 ``` 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: ``` glm stat: decode 54.41 ms/tok (18.38 tok/s) | vram hit 99.98% | ram fetches 0.07/tok | disk 0.00 reads/tok | cpu lane 0.00/tok in 0.00 ms/tok | vram 11960/12096 ram 136/355 ``` 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.md` suggests "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: 0` was asserted on every row. Speeds are the **engine's own** per-request numbers (`prompt_ms`, `decode_ms`) from `GET /metrics`, not wall clock. Decode is the row **after** the prompt was read, so it is decode *at that depth*. Thinking off, greedy. > **Trap worth documenting: conversation slots silently defeat a prefill measurement.** > With the default `STRATA_GLM_SLOTS=4`, the engine keeps conversations in `<pack>/slots/` and, on a later > request whose prompt matches one, **takes the whole conversation back from disk** instead of reading the prompt. > That sets `reused` to the prompt length and the reported `prefill_tok_s` becomes the time for the *one* new > token — I measured 10.8 and 16.5 tok/s on rows whose true cold prefill was ~315 tok/s. Any prefill benchmark > should either set `STRATA_GLM_SLOTS=0` or assert `reused == 0`. For a bug report this is probably obvious, but it > cost me a full run; consider a line about it in the benchmarking notes. | target | **actual prompt tokens** | **prefill tok/s** (median of 3) | range | **decode tok/s** (median of 3) | range | ms/tok | |---:|---:|---:|---|---:|---|---:| | 8K | 8,632–9,070 | **315.1** | 311.1–320.5 | **15.90** | 15.50–16.00 | 63.0 | | 16K | 15,645–16,399 | **320.2** | 318.9–322.1 | **16.10** | 16.10–16.20 | 62.0 | | 32K | 30,537–35,886 | **312.2** | 310.7–317.6 | **15.40** | 15.20–15.90 | 65.1 | | 64K | 64,419–67,248 | **306.9** | 306.8–306.9 | **15.60** | 15.50–15.60 | 64.3 | | 128K | 127,893–131,111 | **296.2** | 295.8–296.6 | **14.80** | 14.70–15.00 | 67.5 | | **256K** | **261,748–261,771** | **274.5** | 274.5–274.5 | **14.20** | 14.00–14.40 | 70.5 | **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: | depth | decode, ~65-token answers (n=3) | decode, 1024-token answers (n) | difference | |---:|---:|---:|---:| | 8K | 15.90 | **16.80** (n=3, 16.7/16.8/16.8) | +0.90 | | 32K | 15.40 | **16.40** (n=3, 16.4/16.4/16.5) | +1.00 | | 128K | 14.80 | **15.50** (n=3, 15.5/15.5/15.3) | +0.70 | | **256K** | 14.20 (n=3) | **14.30** (**n=1** — see note) | +0.10 | Both columns come from the same prompts per depth; only `max_tokens` changed (256 versus 1024). The ~65-token rows are where the **model stopped on its own** (`finish: stop`), not where it was cut off. Every row `reused: 0`. > **Note on the 256K long-output row: it is a single sample.** Getting more is awkward, and the reason is worth > recording because it is a property of measuring at the context edge: prompts here are sized by **character > count**, and this corpus's tokens-per-character varies by region — the same 934,756 characters measured 255,774 > tokens in one region and 262,541 in another (**2.6%**). At 256K that spread is larger than the 2,048-token output > reserve, so a prompt aimed at the top of the window is either a few tokens short or over the limit. The one > long-output sample that landed measured 255,699 tokens. I would rather report n=1 than tune the prompt until it > fits and call that a measurement. **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: 2048` and got: ```json {"error": {"type": "invalid_request_error", "message": "prompt (262541 tokens) + max tokens (2048) exceeds the context (262144); requests are never truncated"}} ``` 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 table `START-MAYA.bat --backend hip --bench --config maya-maya-s-v2-iq2_xxs-hip.json`: ``` decode (writing the answer): mean 18.3 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 18.3 / 18.4 / 18.3 tokens/s prefill (reading the prompt): 267 tokens/s, 2048 tokens prefill (reading the prompt): 320 tokens/s, 8192 tokens ``` | | this box (Windows, gfx1151) | README (128 GB Strix Halo) | |---|---:|---:| | decode | **18.3** | ~17.4–17.8 | | prefill 2048 | 267 | — | | prefill 8192 | **320** | ~221 | ### 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_tokens` | output | `reused` | engine decode | |---:|---:|---:|---:| | 64 | 47 | **0** (cold prompt) | **15.7 tok/s** | | 128 | 47 | 7,853 (prompt fully reused) | **17.5 tok/s** | | 256 | 47 | 7,853 | 17.5 tok/s | | 512 | 47 | 7,853 | 17.5 tok/s | The 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 already in 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.md` reports ~210 tok/s prefill and ~17.8 tok/s decode on a 128 GB Strix Halo (ROCm 7.2.2, tuned). Here: | | this box | README | | |---|---:|---:|---| | prefill, long prompt | **279–320** | ~210 | **higher** | | decode, short context | **16.0** | ~17.8 | −10% | 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 /metrics` shows `"gpu_name": null` and no `gpu_util` / `gpu_mem_*`. **Root cause.** `serve/telemetry.py` has one GPU reader, `_Nvml`, which loads `nvml.dll`. On an AMD machine that load fails, so `Telemetry.__init__` (`self.gpus = [(i, _Nvml(i)) for i in idx]`) keeps a reader whose `.ok()` is False, and `sample()` skips the whole `if 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:** ``` os.name = nt _Nvml(0).ok() = False <- loads no nvml.dll ``` **Fix.** Read the OS's own GPU performance counters through `pdh.dll`. The patch is already written and tested for Strata (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: 1. insert the block (`_PDH_MORE_DATA` … `class _WinGpu`) — see the patch file; 2. one line in `Telemetry.__init__`: ```python reader = _WinGpu if os.name == "nt" else _Nvml self.gpus = [(i, reader(i)) for i in idx] ``` **Result on this machine** (before -> after, read from a *running* server's `GET /metrics`): | field | before | after | |---|---|---| | `gpu_name` | `None` | `AMD Radeon(TM) 8060S Graphics` | | `gpu_util` | `None` | `0.2` (%) | | `gpu_mem_used` | `None` | `99,047,526,400` | | `gpu_mem_total` | `None` | `103,079,215,104` (= the 96 GiB carve) | | `gpu_mem_shared` | `None` | `2,440,888,320` | | `gpu_temp` / `gpu_power` / `gpu_pcie_*` | `None` | `None` (**expected** — Windows PDH has no such counters) | Note `gpu_util` is the **busiest single engine instance** (Task Manager's own algorithm), not the whole-card percentage Linux's `gpu_busy_percent` gives — 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 (pure Python), and NVIDIA's path is untouched — `_Nvml` is still what a `nt` machine with an NVIDIA card will pick first via `ok()`. ## 5. What I did NOT test * **Vision** — built with `--no-vision` (the encoder compiles separately); not exercised. * **Multi-GPU** — an APU is single-GPU by design. * **Concurrency** — one request at a time, as documented. * **Quality** — no accuracy measurement of any kind; this is speed and stability only. * **`--calibrate`** — not run (the CPU/PCIe split was left at the engine's start-up guess: `pcie_share 0.92`). * Anything on NVIDIA — I have no NVIDIA GPU.
Author
Owner

@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: 0 asserted 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 _WinGpu class would be very welcome. One change to the selection line: keep NVML first, and use _WinGpu only when NVML isn't available. On a Windows PC with an NVIDIA card NVML gives temperatures, power and PCIe that PDH doesn't, and reader = _WinGpu if os.name == "nt" else _Nvml would take those away. Something like:

self.gpus = [(i, r if r.ok() or os.name != "nt" else _WinGpu(i)) for i in idx for r in [_Nvml(i)]]

Your speeds (Radeon 8060S, 96 GB carve-out, Windows 11: --bench 18.3 tok/s decode, 320 tok/s prefill at 8K) go into the README's table (#100).

Your notes, all taken:

  • --gguf-dir when huggingface.co can't be reached: yes, that's exactly the path. It'll be said in the setup docs.
  • The ERROR running init: rocm_sdk_devel ... line: it comes from AMD's rocm-sdk itself 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.
  • Conversation slots and prefill benchmarks: a good trap to write down. STRATA_GLM_SLOTS=0 (or asserting reused == 0, as you did) for any prefill measurement goes into the benchmarking notes.
  • Decode after a cold prompt vs a warm one: that's the expert tiers adapting to new text, as you found; the bench's short warm prompts sit at the optimistic end. Worth saying next to the table, and we will.
  • The carve-out, not the RAM, sets the speed on a Windows APU: agreed, and the complete-pool change in #101 builds on exactly that geometry (every expert in the carve-out, prompts borrowing only the free tail).
<!-- gh-comment-id:6105712156 --> @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: 0` asserted 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 `_WinGpu` class would be very welcome. One change to the selection line: keep NVML first, and use `_WinGpu` only when NVML isn't available. On a Windows PC with an NVIDIA card NVML gives temperatures, power and PCIe that PDH doesn't, and `reader = _WinGpu if os.name == "nt" else _Nvml` would take those away. Something like: ```python self.gpus = [(i, r if r.ok() or os.name != "nt" else _WinGpu(i)) for i in idx for r in [_Nvml(i)]] ``` **Your speeds** (Radeon 8060S, 96 GB carve-out, Windows 11: `--bench` 18.3 tok/s decode, 320 tok/s prefill at 8K) go into the README's table (#100). **Your notes, all taken:** - **`--gguf-dir` when huggingface.co can't be reached:** yes, that's exactly the path. It'll be said in the setup docs. - **The `ERROR running init: rocm_sdk_devel ...` line:** it comes from AMD's `rocm-sdk` itself 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. - **Conversation slots and prefill benchmarks:** a good trap to write down. `STRATA_GLM_SLOTS=0` (or asserting `reused == 0`, as you did) for any prefill measurement goes into the benchmarking notes. - **Decode after a cold prompt vs a warm one:** that's the expert tiers adapting to new text, as you found; the bench's short warm prompts sit at the optimistic end. Worth saying next to the table, and we will. - **The carve-out, not the RAM, sets the speed on a Windows APU:** agreed, and the complete-pool change in #101 builds on exactly that geometry (every expert in the carve-out, prompts borrowing only the free tail).
Author
Owner

@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.

<!-- gh-comment-id:6360579630 --> @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.
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#36
No description provided.