[GH-ISSUE #2883] [Other] gfx906 / MI50: reproducible Linux releases and community validation #1165

Closed
opened 2026-11-04 01:49:01 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @romeo5353535353-ui on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2883

Area

[Other]

What do you want to do?

I am planning a local API server with AMD Instinct MI50 (gfx906), primarily running Qwen3.8-Flash-Next. The application will extract GPU mining benchmark records into JSON from Discord message text and locally generated OCR text. Reliable repeated requests and correct extracted values matter more to this workload than peak token throughput.

Thank you for keeping the community gfx906 path available. I understand that it is an opt-in wave64 build, that setup does not install it automatically, and that the maintainers do not have a gfx906 card. I have not built or benchmarked v0.1.45 on this hardware yet.

Could we establish a small, reproducible Linux validation path for current releases?

  1. A pinned build recipe and a compile smoke check per release. Pin the ROCm/gfx906 image or toolchain and llama.cpp revision, and build the actual strata serving executable. An optional community-maintained recipe or container would already help; automatic installation could follow later. This would make build regressions such as #2459 easier to catch.
  2. Documented starting configurations and support limits. A tested baseline for one or two MI50 cards, distinguishing 16 GB and 32 GB boards, model/quantization, KV format, context, MTP and layer split. Please mark options measured only on RDNA/CUDA separately from those validated on gfx906, and state whether Qwen3.6 and CPU vision are supported on this path.
  3. A maintainer-agreed community test checklist. We can contribute reports covering exact versions and configuration, self-tests, fresh-prompt processing, decode, first-token latency, long-context correctness, repeated API requests and one versus two clients. Results should include warm-up, repeated measurements, errors and answer correctness, not only tokens/s. What is the smallest useful test set for contributors without access to your other GPU backends?

Related work:

  • #641: the original gfx906 port and the maintainers' preference for a separate opt-in build.
  • #2459: the existing v0.1.44.1 build regression report. Any reproduced build failure should be followed up there rather than duplicated here.
  • #1923: expert-cache policy experiments; the reported offline hit-rate improvement is not yet an end-to-end speed measurement.
  • #2461: multi-GPU settings whose gains did not transfer to a fully resident gfx906 workload.

For v0.1.45, source inspection still shows the missing cuBLAS aliases discussed in #2459 in include/strata/platform/hip_compat/cublas_v2.h, while src/qwen35/q36_engine.cu uses those names. This is a static observation, not a claim that I reproduced a v0.1.45 build failure.

Would a community-maintained Linux recipe plus this validation checklist be a useful first contribution? Which of these steps would you prefer us to start with?


Re-test on 0.2.0-beta (2026-10-19)

  • Version: v0.2.0-beta, commit 3d1fb480
  • Hardware: 2x AMD Instinct MI50 16 GB (gfx906, the driver reports 1002:66af), Ryzen 7 5700X, 64 GB DDR4-3600, ASUS ROG Strix X570-E
  • System: Ubuntu 24.04.5, kernel 6.8.0-147, ROCm from mixa3607/rocm-gfx906:7.14-complete (the image docs/AMD_HIP.md names)
  • Build:
    cmake -S . -B build-906 -G Ninja -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 \
          -DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++
    ninja -C build-906 strata
    

Result: the gfx906 build still fails on 0.2.0-beta, with the same errors as 0.1.44+:

src/qwen35/q36_engine.cu:1555:13: error: use of undeclared identifier 'cublasSgemm'; did you mean 'hipblasSgemm'?
src/qwen35/q36_engine.cu:1958:29: error: use of undeclared identifier 'cublasGemmStridedBatchedEx'
src/qwen35/q36_engine.cu:1972:29: error: use of undeclared identifier 'cublasGemmStridedBatchedEx'

The qwen35 targets are still added unconditionally in CMakeLists.txt (around line 730), and
include/strata/platform/hip_compat/strata_hip.h still has no cublasSgemm / cublasGemmStridedBatchedEx
mapping. generate.cpp already guards every use with #if defined(STRATA_HAVE_QWEN35), so wrapping that block in
if(NOT STRATA_HIP_GFX906) is enough for the engine to build and link (verified locally by applying exactly that
patch to 0.1.45).

What works today: the same machine builds and runs v0.1.43.1 (a0116b2) with STRATA_HIP_GFX906=ON, 2x MI50,
Flash-Next IQ3_XXS at the full 131,072-token context. Measured decode 66-68 tok/s with --pipeline-windows 2
(+36% over the default) and 371 tok/s prompt reading; report in #3173 and PR #3175.

So the gfx906 path is usable, but only by pinning the checkout to 0.1.43.1. A build fix for the qwen35 block (or a
-DSTRATA_SKIP_QWEN35=ON switch) would let MI50 owners follow docs/AMD_HIP.md on a current release again.

Originally created by @romeo5353535353-ui on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2883 ### Area [Other] ## What do you want to do? I am planning a local API server with AMD Instinct MI50 (gfx906), primarily running Qwen3.8-Flash-Next. The application will extract GPU mining benchmark records into JSON from Discord message text and locally generated OCR text. Reliable repeated requests and correct extracted values matter more to this workload than peak token throughput. Thank you for keeping the community gfx906 path available. I understand that it is an opt-in wave64 build, that setup does not install it automatically, and that the maintainers do not have a gfx906 card. I have not built or benchmarked v0.1.45 on this hardware yet. Could we establish a small, reproducible Linux validation path for current releases? 1. **A pinned build recipe and a compile smoke check per release.** Pin the ROCm/gfx906 image or toolchain and llama.cpp revision, and build the actual `strata` serving executable. An optional community-maintained recipe or container would already help; automatic installation could follow later. This would make build regressions such as #2459 easier to catch. 2. **Documented starting configurations and support limits.** A tested baseline for one or two MI50 cards, distinguishing 16 GB and 32 GB boards, model/quantization, KV format, context, MTP and layer split. Please mark options measured only on RDNA/CUDA separately from those validated on gfx906, and state whether Qwen3.6 and CPU vision are supported on this path. 3. **A maintainer-agreed community test checklist.** We can contribute reports covering exact versions and configuration, self-tests, fresh-prompt processing, decode, first-token latency, long-context correctness, repeated API requests and one versus two clients. Results should include warm-up, repeated measurements, errors and answer correctness, not only tokens/s. What is the smallest useful test set for contributors without access to your other GPU backends? Related work: - #641: the original gfx906 port and the maintainers' preference for a separate opt-in build. - #2459: the existing v0.1.44.1 build regression report. Any reproduced build failure should be followed up there rather than duplicated here. - #1923: expert-cache policy experiments; the reported offline hit-rate improvement is not yet an end-to-end speed measurement. - #2461: multi-GPU settings whose gains did not transfer to a fully resident gfx906 workload. For v0.1.45, source inspection still shows the missing cuBLAS aliases discussed in #2459 in `include/strata/platform/hip_compat/cublas_v2.h`, while `src/qwen35/q36_engine.cu` uses those names. This is a static observation, not a claim that I reproduced a v0.1.45 build failure. Would a community-maintained Linux recipe plus this validation checklist be a useful first contribution? Which of these steps would you prefer us to start with? --- ## Re-test on 0.2.0-beta (2026-10-19) - **Version:** v0.2.0-beta, commit `3d1fb480` - **Hardware:** 2x AMD Instinct MI50 16 GB (gfx906, the driver reports `1002:66af`), Ryzen 7 5700X, 64 GB DDR4-3600, ASUS ROG Strix X570-E - **System:** Ubuntu 24.04.5, kernel 6.8.0-147, ROCm from `mixa3607/rocm-gfx906:7.14-complete` (the image `docs/AMD_HIP.md` names) - **Build:** ```sh cmake -S . -B build-906 -G Ninja -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 \ -DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++ ninja -C build-906 strata ``` **Result: the gfx906 build still fails on 0.2.0-beta**, with the same errors as 0.1.44+: ``` src/qwen35/q36_engine.cu:1555:13: error: use of undeclared identifier 'cublasSgemm'; did you mean 'hipblasSgemm'? src/qwen35/q36_engine.cu:1958:29: error: use of undeclared identifier 'cublasGemmStridedBatchedEx' src/qwen35/q36_engine.cu:1972:29: error: use of undeclared identifier 'cublasGemmStridedBatchedEx' ``` The `qwen35` targets are still added unconditionally in `CMakeLists.txt` (around line 730), and `include/strata/platform/hip_compat/strata_hip.h` still has no `cublasSgemm` / `cublasGemmStridedBatchedEx` mapping. `generate.cpp` already guards every use with `#if defined(STRATA_HAVE_QWEN35)`, so wrapping that block in `if(NOT STRATA_HIP_GFX906)` is enough for the engine to build and link (verified locally by applying exactly that patch to 0.1.45). **What works today:** the same machine builds and runs **v0.1.43.1** (`a0116b2`) with `STRATA_HIP_GFX906=ON`, 2x MI50, Flash-Next IQ3_XXS at the full 131,072-token context. Measured decode 66-68 tok/s with `--pipeline-windows 2` (+36% over the default) and 371 tok/s prompt reading; report in #3173 and PR #3175. So the gfx906 path is usable, but only by pinning the checkout to 0.1.43.1. A build fix for the qwen35 block (or a `-DSTRATA_SKIP_QWEN35=ON` switch) would let MI50 owners follow `docs/AMD_HIP.md` on a current release again.
Author
Owner

@ken2425pm commented on GitHub (Oct 18, 2026):

A full 2x MI50 (gfx906) report on system ROCm 6.3.3 is open as PR #3077: the build, runtime (warm decode 21-24 tok/s on the final config vs 11.6 tok/s on the earlier verified tree — not a same-request A/B), serve-mode A/Bs, dual-GPU layer split (~+20% decode vs one clean single GPU), and a 12-hour split-config soak answering the TEST_REQUESTS.md row. Setup-side card recognition is #3080 (lists the card, points at the hand build — no builder branch, no wheels for this arch). The report also states what was not tested: CUDA/SYCL builds, -Werror, deep-context KV-streaming cost, 64K+ prefill timing.

<!-- gh-comment-id:6252827114 --> @ken2425pm commented on GitHub (Oct 18, 2026): A full 2x MI50 (gfx906) report on system ROCm 6.3.3 is open as PR #3077: the build, runtime (warm decode 21-24 tok/s on the final config vs 11.6 tok/s on the earlier verified tree — not a same-request A/B), serve-mode A/Bs, dual-GPU layer split (~+20% decode vs one clean single GPU), and a 12-hour split-config soak answering the TEST_REQUESTS.md row. Setup-side card recognition is #3080 (lists the card, points at the hand build — no builder branch, no wheels for this arch). The report also states what was not tested: CUDA/SYCL builds, `-Werror`, deep-context KV-streaming cost, 64K+ prefill timing.
Author
Owner

@romeo5353535353-ui commented on GitHub (Oct 18, 2026):

Thanks @ken2425pm for the detailed report and the pointers to #3077 and #3080.

@Niko1221, could we make automated Linux installation for gfx906 (MI50 / MI60 / Radeon VII) an explicit follow-up to this issue? An experimental, opt-in path would already be very useful.

I understand that #3080 only recognizes the cards and points to a manual build, and that the normal TheRock wheel path does not include gfx906. The request is for a setup path that also handles the compatible dependencies and engine build, rather than stopping at card recognition. A pinned container would also be a useful first solution if that is easier to maintain than a host installation.

The practical goal is one documented command that checks compatibility, builds the actual serving engine, prepares the selected model and starts the server, with a short smoke test and clear errors when prerequisites are missing.

I am willing to help as much as I can: prepare reproducible test cases, collect installation/runtime logs and MI50 test reports when hardware is available, reproduce failures, and help with small installer or documentation changes. I have not validated the proposed installer or claimed any new measurements yet.

Would you accept an experimental installer contribution along these lines? Which approach would you prefer, and what minimum checks would you require before merging it? Is this planned for a particular release, or should we start by helping prepare a small PR here?

Thank you for keeping the community gfx906 path available.

<!-- gh-comment-id:6253883537 --> @romeo5353535353-ui commented on GitHub (Oct 18, 2026): Thanks @ken2425pm for the detailed report and the pointers to #3077 and #3080. @Niko1221, could we make automated Linux installation for gfx906 (MI50 / MI60 / Radeon VII) an explicit follow-up to this issue? An experimental, opt-in path would already be very useful. I understand that #3080 only recognizes the cards and points to a manual build, and that the normal TheRock wheel path does not include gfx906. The request is for a setup path that also handles the compatible dependencies and engine build, rather than stopping at card recognition. A pinned container would also be a useful first solution if that is easier to maintain than a host installation. The practical goal is one documented command that checks compatibility, builds the actual serving engine, prepares the selected model and starts the server, with a short smoke test and clear errors when prerequisites are missing. I am willing to help as much as I can: prepare reproducible test cases, collect installation/runtime logs and MI50 test reports when hardware is available, reproduce failures, and help with small installer or documentation changes. I have not validated the proposed installer or claimed any new measurements yet. Would you accept an experimental installer contribution along these lines? Which approach would you prefer, and what minimum checks would you require before merging it? Is this planned for a particular release, or should we start by helping prepare a small PR here? Thank you for keeping the community gfx906 path available.
Author
Owner

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

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271340528 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

@romeo5353535353-ui commented on GitHub (Oct 19, 2026):

/reopen

<!-- gh-comment-id:6277155815 --> @romeo5353535353-ui commented on GitHub (Oct 19, 2026): /reopen
Author
Owner

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

Not reopened yet. Still missing:

  • Fill in "Area".

Edit the issue and comment /reopen again. Details: CONTRIBUTING.md

<!-- gh-comment-id:6277158680 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Not reopened yet. Still missing: - [ ] Fill in "Area". Edit the issue and comment `/reopen` again. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@romeo5353535353-ui commented on GitHub (Oct 19, 2026):

/reopen

<!-- gh-comment-id:6277207580 --> @romeo5353535353-ui commented on GitHub (Oct 19, 2026): /reopen
Author
Owner

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

Reopened, thank you. A maintainer will pick it up from here.

<!-- gh-comment-id:6277210450 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Reopened, thank you. A maintainer will pick it up from here.
Author
Owner

@Marczellito commented on GitHub (Oct 19, 2026):

2× Radeon Pro VII (gfx906), v0.1.45: end-to-end report (200K k8v4, CPU vision)

First, thanks — the opt-in wave64 build and the compat layer do real work. This is a data point for the validation path discussed in this issue, not a new bug report. It is on v0.1.45 (477ac13c), not 0.2.0-beta; #3172 already confirms the build still fails on 0.2.0-beta.

Short version: two Radeon Pro VII 16 GB cards, system ROCm 7.2.4 (no container), Qwen3.8-Flash-Next IQ3_S, 200K context with --kv k8v4, CPU vision: works end-to-end after a 4-file patch (the CMake + cublas hunks match the patch posted in #2459; my copy adds the __noinline__ undef for GCC 16 and a local setup.py enablement). Long chats up to ~75.5K total tokens ran at 44–52 tok/s decode; a 23K-token prompt read at 590 tok/s. setup.py still refuses gfx906 at step 1, which is the main install friction.

Environment

GPUs 2× AMD Radeon Pro VII 16 GB, gfx906 (Vega 20, 1002:66a1), 190 W power limit, PCIe 3.0 (engine probe 13.8 GB/s host→device)
CPU / RAM Intel Xeon E5-2696 v3, 18C/36T, AVX2; 64 GB DDR4-2133 ECC at 1866 MT/s (setup reports 63 GB)
OS CachyOS (Arch-based), kernel 7.2.3-1-cachyos, GCC 16.2.1
ROCm system ROCm 7.2.4 at /opt/rocm, HIP 7.2.53211, AMD clang 22.0.0; no container, no HSA_OVERRIDE_GFX_VERSION. The distro package ships gfx906 rocBLAS kernels (Kernels.so-000-gfx906-xnack-.hsaco); I did not need the community image.
Strata source v0.1.45, commit 477ac13c, engine reports strata 0.1.45; llama.cpp 3cf03257f
Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S, two shards 54.82 + 28.80 GB; vision mmproj-Qwen3.8-Flash-Next-BF16.gguf on CPU
Config --max-context 204800 --kv k8v4 --vision --gpus 0,1 --layer-split auto --spec 4 --spec-min-p 0.5 --prefill auto --expert-cache auto --vram-reserve-mib 700 --vram-reserve-later-mib 1006
MTP draft layer reused from an earlier install under Strata-data/mtp/rt; tools/mtp_fetch.py verify rc=0

Note: setup's step-2 summary prints KV cache: 4-bit (Hadamard-rotated) for any non-int8 choice (setup.py:6581); the written config is --kv k8v4 (K 8-bit, V 4-bit). Wording only.

What worked

  • Build: the documented -DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 path, with the compat layer, built the engine and the CPU vision encoder. Build time ~15 min at -j18. The 4-file diff is attached; the CMake + cublas hunks are the same set posted in #2459, and #3172 tracks the same blockers.
  • KV parity on the cards: kv_hybrid_parity ALL PASS (k8v4 appends/gathers, 0 bad of 786,432/24,576; mode-3 batched attention 7.82e-08 vs the dequant reference), kv_stream_parity k8v4 ring 0 failures, kv_window_parity 0 bad/0 stale, kv_steps_parity 120/120, kv_q8_parity OK.
  • End-to-end: setup (patched) → engine → download → pack → start script; server /health ready; text 17*23? → 391; vision (64×64 red PNG) → Red; images on. The docs' gfx906 section currently lists images (--vision) as not done — this run verifies the CPU encoder path on Radeon Pro VII.
  • Start: ~75–90 s to ready; 46.84 GiB of experts into RAM at 1.51 GiB/s; expert cache 5,724 slots (10.30 GiB) and, on CUDA1, 4,180 slots (8.42 GiB); 586 MiB / 768 MiB free after load.
  • 200K config: k8v4 at 204,800 costs ~2.2 GB and stays in VRAM. KV streaming is off: it needs ~2.2 GB beside the ~62 GB of experts on a 63 GB machine. No KV-related errors.
  • Long sessions: several chats with 23K–35K-token prompts and 22K–42K-token outputs; decode held 43.8–51.6 tok/s (table below). The requests completed; the only warnings were the VRAM notes.
  • Downloads / MTP: 86 download interrupted retry lines across 13 setup attempts (mostly DNS, 12 read timeouts) on a flaky link; every resume continued from .part, zero corruption. MTP verify passed.

What did not work / known issues

Known / already tracked

  1. setup.py refuses gfx906 at step 1 — documented as "Setup does not build it yet", but the failure also makes the ~84 GB download and pack preparation unreachable through setup. Exact first-run output (before the local patch):

      Your AMD GPUs:
        GPU 0: AMD Radeon (gfx906), 16 GB VRAM - cannot be used
      [!] AMD GPU 0 (AMD Radeon (gfx906)) cannot be used: not supported - [...]
          this is gfx906
      Setup stopped. Fix the item above and run it again - everything already done is kept and skipped.
    

    My local setup.py change adds gfx906 to AMD_ARCHS/AMD_NAMES and passes the gfx906 flags (including -DSTRATA_ENABLE_HIP=OFF). I am not proposing it as the default (the docs say manual build); a download-only path, or a clearer "these are the commands to get the model" in the docs, would remove the dead end. This is the main friction I hit.

  2. Build blockers on 0.1.45 (reproduced locally; exact messages in build-errors.txt):

    • missing cublasSgemm, cublasSgemmStridedBatched, cublasGemmStridedBatchedEx aliases in platform/hip_compat/cublas_v2.h (qwen35 q36_engine.cu);
    • strata_mmq_w4a4 compiled without GGML_USE_HIP → cuda.h not found;
    • f16kq::* undefined at link — missing src/prefill/moe_f16_kq.cu in strata_mmq under STRATA_HIP_GFX906;
    • GCC 16 <format> vs HIP's __noinline__ macro (fix: #undef __noinline__ in the gfx906 compat header);
    • stale build-hip cache with STRATA_ENABLE_HIP=ON + STRATA_HIP_GFX906=ON → "enable only one"; pass -DSTRATA_ENABLE_HIP=OFF or use a fresh build directory.

    These are in #3172 (open; confirmed on 0.2.0-beta) and were reported in #2459 (closed by the tracker reset). I am adding the end-to-end result, not a new build bug.

Rough edges found here

  1. VRAM is tight at request start. The first start (only --vram-reserve-mib 700) logged CUDA1: 462 MiB ... LOW; adding --vram-reserve-later-mib 1006 removed it (768 MiB free after load). One later request still logged:

    WARNING: only 493 MiB of VRAM free at the start of this request (below 512 MiB) ... Add --vram-reserve-mib 768 ...
    

    The following long requests still ran at 44–52 tok/s, but if the driver starts paging, --vram-reserve-mib 768 (or 1024) is the engine's own suggestion. The desktop here is on CUDA1; --vram-reserve-later-mib 1006 is what fixed the CUDA1 window-capture warning.

  2. qsa_prompt_attn mode 3 refuses on HIP and the older kernel runs; output is correct, but if mode 3 is expected to work on gfx906 this is masking it. (Observed in the parity tests; not a correctness failure.)

  3. No hipBLASLt tuning table for gfx906 (hipBLASLt 100202): setup says the prompt's dense GEMMs use plain hipBLAS. Expected for this arch, but it is a prompt-speed opportunity.

  4. Network: the only reason setup needed 13 attempts; not a Strata issue, but the log is full of it.

Measurements (informal, one session)

From strata-iq3_s.log after the 1006 restart. These are engine-reported averages from one continuous session, not the 3-run benchmark protocol. "Prompt read" is the newly read part; the reused prefix is excluded, so the prompt speed is the speed of that read, not of the whole context.

prompt tokens (reused + new) prompt speed generated decode drafts accepted cache hit end context
23,133 (81 + 23,052) 590.3 tok/s 41,406 51.6 tok/s 25,704 / 33,271 97.4% ~64.5K
31,231 (23,128 + 8,103) 403.8 tok/s 33,051 43.8 tok/s 17,267 / 27,890 97.2% ~64.3K
32,910 (31,226 + 1,684) 295.7 tok/s 42,604 50.3 tok/s 27,297 / 38,890 96.9% ~75.5K
34,916 (32,905 + 2,011) 312.2 tok/s 22,758 50.4 tok/s 14,153 / 17,521 94.4% ~57.7K
500 (56 + 444) 157.5 tok/s 2,829 48.2 tok/s 1,638 / 2,453 94.5% —
  • First request after start: 50 tokens at 12.9 tok/s (graph capture), then 50.3 tok/s on the next one. Do not judge from the first request.
  • Tiny prompts (61–86 tokens) read at 46–76 tok/s; short prompts are fixed-overhead bound, as the docs say.
  • The 200K limit was configured, but the largest verified request ended at ~75.5K total tokens; I did not fill 200K. Anyone reading "200K" as tested should know this.
  • My earlier "45–70 tok/s" was from the chat UI; the engine's sustained averages are 44–52 tok/s. The 70 figure was a short burst.

CPU usage: ~50% (18 of 36 threads)

top peaks around 50% on this 18C/36T Xeon. The engine log says:

strata generate: 17 pool workers on logical processors 1,...,17, the host thread on 0 (--host-core first)
strata aux cpus: ... CPUs 18 (off at start; a request's aux_cpus=1 turns it on)

So it uses one logical CPU per physical core (17 workers + host = 18 threads) and leaves the 18 SMT siblings alone. docs/AMD_HIP.md (gfx1030 report) says the default is one worker per physical core and that using all logical CPUs was slower there (27 vs 38–42 tok/s); docs/DETAILS.md:557 documents --pool-workers. I think this is expected, not a bug. If a sweep on Haswell-EP would be useful, I can run --pool-workers 8/17/24/35 with a fixed prompt, but I have not done it.

Not tested

  • 0.2.0-beta (3d1fb480): not run; #3172 says the gfx906 build still fails there. This report is v0.1.45 only.
  • Full 200K prompt / needle tests; KV streaming on; concurrent requests; a 12 h soak; a formal 3-run benchmark or tools/strata_bench.py; vision accuracy/speed beyond one image; CUDA/SYCL builds; Windows; a fresh MTP download.
  • I did not run the CUDA build. My CMake changes are inside STRATA_HIP_GFX906, and the cublas/__noinline__ changes are in the gfx906 compat headers, but I cannot claim the other backends from this machine.

Logs

Sanitized files in one secret gist (link-only, not indexed): setup-evidence.log (curated; the full setup log is 1,193 lines), engine-session-evidence.log, build-errors.txt, strata-gfx906-fixes.patch, config-iq3_s-sanitized.json — https://gist.github.com/Marczellito/9e9324702246fe9f1acfb0306e868c9e. Local paths are shortened to ~; no API keys, passwords, emails, or hostnames. Full logs on request.

If this is useful, I can turn it into the community checklist runs (warm-up + 3 repeats per size + failures) or a results-only PR; I have not done that yet, so please treat the table as informal.

Cross-reference: the two questions from this report (the gfx906 setup/download path, and the ~50% CPU use) are also filed as a Question-form issue: #3271.

<!-- gh-comment-id:6277480147 --> @Marczellito commented on GitHub (Oct 19, 2026): ## 2× Radeon Pro VII (gfx906), v0.1.45: end-to-end report (200K k8v4, CPU vision) First, thanks — the opt-in wave64 build and the compat layer do real work. This is a data point for the validation path discussed in this issue, not a new bug report. It is on **v0.1.45 (`477ac13c`)**, not 0.2.0-beta; #3172 already confirms the build still fails on 0.2.0-beta. **Short version:** two Radeon Pro VII 16 GB cards, system ROCm 7.2.4 (no container), Qwen3.8-Flash-Next IQ3_S, 200K context with `--kv k8v4`, CPU vision: works end-to-end after a 4-file patch (the CMake + cublas hunks match the patch posted in #2459; my copy adds the `__noinline__` undef for GCC 16 and a local `setup.py` enablement). Long chats up to ~75.5K total tokens ran at 44–52 tok/s decode; a 23K-token prompt read at 590 tok/s. `setup.py` still refuses gfx906 at step 1, which is the main install friction. ### Environment | | | |---|---| | GPUs | 2× AMD Radeon Pro VII 16 GB, gfx906 (Vega 20, `1002:66a1`), 190 W power limit, PCIe 3.0 (engine probe 13.8 GB/s host→device) | | CPU / RAM | Intel Xeon E5-2696 v3, 18C/36T, AVX2; 64 GB DDR4-2133 ECC at 1866 MT/s (setup reports 63 GB) | | OS | CachyOS (Arch-based), kernel 7.2.3-1-cachyos, GCC 16.2.1 | | ROCm | system ROCm 7.2.4 at `/opt/rocm`, HIP 7.2.53211, AMD clang 22.0.0; no container, no `HSA_OVERRIDE_GFX_VERSION`. The distro package ships gfx906 rocBLAS kernels (`Kernels.so-000-gfx906-xnack-.hsaco`); I did not need the community image. | | Strata | source v0.1.45, commit `477ac13c`, engine reports `strata 0.1.45`; llama.cpp `3cf03257f` | | Model | Qwen3.8-Flash-Next GSQ-RCO IQ3_S, two shards 54.82 + 28.80 GB; vision `mmproj-Qwen3.8-Flash-Next-BF16.gguf` on CPU | | Config | `--max-context 204800 --kv k8v4 --vision --gpus 0,1 --layer-split auto --spec 4 --spec-min-p 0.5 --prefill auto --expert-cache auto --vram-reserve-mib 700 --vram-reserve-later-mib 1006` | | MTP | draft layer reused from an earlier install under `Strata-data/mtp/rt`; `tools/mtp_fetch.py verify` rc=0 | Note: setup's step-2 summary prints `KV cache: 4-bit (Hadamard-rotated)` for any non-int8 choice (`setup.py:6581`); the written config is `--kv k8v4` (K 8-bit, V 4-bit). Wording only. ### What worked - **Build:** the documented `-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906` path, with the compat layer, built the engine and the CPU vision encoder. Build time ~15 min at `-j18`. The 4-file diff is attached; the CMake + cublas hunks are the same set posted in #2459, and #3172 tracks the same blockers. - **KV parity on the cards:** `kv_hybrid_parity` **ALL PASS** (k8v4 appends/gathers, 0 bad of 786,432/24,576; mode-3 batched attention 7.82e-08 vs the dequant reference), `kv_stream_parity` k8v4 ring 0 failures, `kv_window_parity` 0 bad/0 stale, `kv_steps_parity` 120/120, `kv_q8_parity` OK. - **End-to-end:** setup (patched) → engine → download → pack → start script; server `/health` ready; text `17*23?` → `391`; vision (64×64 red PNG) → `Red`; images on. The docs' gfx906 section currently lists images (`--vision`) as not done — this run verifies the CPU encoder path on Radeon Pro VII. - **Start:** ~75–90 s to ready; 46.84 GiB of experts into RAM at 1.51 GiB/s; expert cache 5,724 slots (10.30 GiB) and, on CUDA1, 4,180 slots (8.42 GiB); 586 MiB / 768 MiB free after load. - **200K config:** `k8v4` at 204,800 costs ~2.2 GB and stays in VRAM. KV streaming is off: it needs ~2.2 GB beside the ~62 GB of experts on a 63 GB machine. No KV-related errors. - **Long sessions:** several chats with 23K–35K-token prompts and 22K–42K-token outputs; decode held 43.8–51.6 tok/s (table below). The requests completed; the only warnings were the VRAM notes. - **Downloads / MTP:** 86 `download interrupted` retry lines across 13 setup attempts (mostly DNS, 12 read timeouts) on a flaky link; every resume continued from `.part`, zero corruption. MTP verify passed. ### What did not work / known issues **Known / already tracked** 1. **`setup.py` refuses gfx906 at step 1** — documented as "Setup does not build it yet", but the failure also makes the ~84 GB download and pack preparation unreachable through setup. Exact first-run output (before the local patch): ``` Your AMD GPUs: GPU 0: AMD Radeon (gfx906), 16 GB VRAM - cannot be used [!] AMD GPU 0 (AMD Radeon (gfx906)) cannot be used: not supported - [...] this is gfx906 Setup stopped. Fix the item above and run it again - everything already done is kept and skipped. ``` My local `setup.py` change adds gfx906 to `AMD_ARCHS`/`AMD_NAMES` and passes the gfx906 flags (including `-DSTRATA_ENABLE_HIP=OFF`). I am **not** proposing it as the default (the docs say manual build); a **download-only** path, or a clearer "these are the commands to get the model" in the docs, would remove the dead end. This is the main friction I hit. 2. **Build blockers on 0.1.45** (reproduced locally; exact messages in `build-errors.txt`): - missing `cublasSgemm`, `cublasSgemmStridedBatched`, `cublasGemmStridedBatchedEx` aliases in `platform/hip_compat/cublas_v2.h` (qwen35 `q36_engine.cu`); - `strata_mmq_w4a4` compiled without `GGML_USE_HIP` → `cuda.h` not found; - `f16kq::*` undefined at link — missing `src/prefill/moe_f16_kq.cu` in `strata_mmq` under `STRATA_HIP_GFX906`; - GCC 16 `<format>` vs HIP's `__noinline__` macro (fix: `#undef __noinline__` in the gfx906 compat header); - stale `build-hip` cache with `STRATA_ENABLE_HIP=ON` + `STRATA_HIP_GFX906=ON` → "enable only one"; pass `-DSTRATA_ENABLE_HIP=OFF` or use a fresh build directory. These are in **#3172** (open; confirmed on 0.2.0-beta) and were reported in **#2459** (closed by the tracker reset). I am adding the end-to-end result, not a new build bug. **Rough edges found here** 3. **VRAM is tight at request start.** The first start (only `--vram-reserve-mib 700`) logged `CUDA1: 462 MiB ... LOW`; adding `--vram-reserve-later-mib 1006` removed it (768 MiB free after load). One later request still logged: ``` WARNING: only 493 MiB of VRAM free at the start of this request (below 512 MiB) ... Add --vram-reserve-mib 768 ... ``` The following long requests still ran at 44–52 tok/s, but if the driver starts paging, `--vram-reserve-mib 768` (or 1024) is the engine's own suggestion. The desktop here is on CUDA1; `--vram-reserve-later-mib 1006` is what fixed the CUDA1 window-capture warning. 4. **`qsa_prompt_attn mode 3` refuses on HIP** and the older kernel runs; output is correct, but if mode 3 is expected to work on gfx906 this is masking it. (Observed in the parity tests; not a correctness failure.) 5. **No hipBLASLt tuning table for gfx906** (hipBLASLt 100202): setup says the prompt's dense GEMMs use plain hipBLAS. Expected for this arch, but it is a prompt-speed opportunity. 6. **Network:** the only reason setup needed 13 attempts; not a Strata issue, but the log is full of it. ### Measurements (informal, one session) From `strata-iq3_s.log` after the 1006 restart. These are engine-reported averages from one continuous session, **not** the 3-run benchmark protocol. "Prompt read" is the newly read part; the reused prefix is excluded, so the prompt speed is the speed of that read, not of the whole context. | prompt tokens (reused + new) | prompt speed | generated | decode | drafts accepted | cache hit | end context | |---|---|---|---|---|---|---| | 23,133 (81 + 23,052) | 590.3 tok/s | 41,406 | 51.6 tok/s | 25,704 / 33,271 | 97.4% | ~64.5K | | 31,231 (23,128 + 8,103) | 403.8 tok/s | 33,051 | 43.8 tok/s | 17,267 / 27,890 | 97.2% | ~64.3K | | 32,910 (31,226 + 1,684) | 295.7 tok/s | 42,604 | 50.3 tok/s | 27,297 / 38,890 | 96.9% | ~75.5K | | 34,916 (32,905 + 2,011) | 312.2 tok/s | 22,758 | 50.4 tok/s | 14,153 / 17,521 | 94.4% | ~57.7K | | 500 (56 + 444) | 157.5 tok/s | 2,829 | 48.2 tok/s | 1,638 / 2,453 | 94.5% | — | - First request after start: 50 tokens at **12.9 tok/s** (graph capture), then 50.3 tok/s on the next one. Do not judge from the first request. - Tiny prompts (61–86 tokens) read at 46–76 tok/s; short prompts are fixed-overhead bound, as the docs say. - The 200K limit was **configured**, but the largest verified request ended at ~75.5K total tokens; I did not fill 200K. Anyone reading "200K" as tested should know this. - My earlier "45–70 tok/s" was from the chat UI; the engine's sustained averages are 44–52 tok/s. The 70 figure was a short burst. ### CPU usage: ~50% (18 of 36 threads) `top` peaks around 50% on this 18C/36T Xeon. The engine log says: ``` strata generate: 17 pool workers on logical processors 1,...,17, the host thread on 0 (--host-core first) strata aux cpus: ... CPUs 18 (off at start; a request's aux_cpus=1 turns it on) ``` So it uses one logical CPU per physical core (17 workers + host = 18 threads) and leaves the 18 SMT siblings alone. `docs/AMD_HIP.md` (gfx1030 report) says the default is one worker per physical core and that using all logical CPUs was slower there (27 vs 38–42 tok/s); `docs/DETAILS.md:557` documents `--pool-workers`. I think this is expected, not a bug. If a sweep on Haswell-EP would be useful, I can run `--pool-workers 8/17/24/35` with a fixed prompt, but I have not done it. ### Not tested - **0.2.0-beta** (`3d1fb480`): not run; #3172 says the gfx906 build still fails there. This report is v0.1.45 only. - Full 200K prompt / needle tests; KV streaming on; concurrent requests; a 12 h soak; a formal 3-run benchmark or `tools/strata_bench.py`; vision accuracy/speed beyond one image; CUDA/SYCL builds; Windows; a fresh MTP download. - I did not run the CUDA build. My CMake changes are inside `STRATA_HIP_GFX906`, and the cublas/`__noinline__` changes are in the gfx906 compat headers, but I cannot claim the other backends from this machine. ### Logs Sanitized files in one secret gist (link-only, not indexed): `setup-evidence.log` (curated; the full setup log is 1,193 lines), `engine-session-evidence.log`, `build-errors.txt`, `strata-gfx906-fixes.patch`, `config-iq3_s-sanitized.json` — https://gist.github.com/Marczellito/9e9324702246fe9f1acfb0306e868c9e. Local paths are shortened to `~`; no API keys, passwords, emails, or hostnames. Full logs on request. If this is useful, I can turn it into the community checklist runs (warm-up + 3 repeats per size + failures) or a results-only PR; I have not done that yet, so please treat the table as informal. Cross-reference: the two questions from this report (the gfx906 setup/download path, and the ~50% CPU use) are also filed as a Question-form issue: #3271.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659314519 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1165
No description provided.