okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
c97ad41eb
main
Community benchmark: AMD MI50 (gfx906), Intel i5-12400F
Measured on 2026-10-04 by xxDoman, on the Linux machine LianLi. This tests Strata 0.1.38 with the original Flash-Next IQ2_XS, one GPU (the MI50), at the model's full 131,072-token context with KV streaming.
Median decode throughput was 36.0 tok/s at 4,096 prompt tokens, 34.0 tok/s at 32,768, and 33.5 tok/s at 128,000 — it barely drops as the context grows. Prompt processing held ~330 tok/s at 4K/32K and ~305 tok/s at 128K. These are synthetic code-explanation requests with greedy decoding and a 256-token output cap. They do not establish general answer quality or performance on other workloads.
This is, to our knowledge, the first measured community run of Strata on an AMD MI50 (Vega 20, gfx906). It is an experimental, unsupported architecture: the build carries no vendor tuning tables, and the numbers reflect that. It also shows that the MI50 — a 32 GB card — can serve the model's full 128K context with KV streaming, at a decode cost of only ~7% versus a 4K prompt.
Hardware and software
- AMD Radeon Instinct MI50 32GB (Vega 20, gfx906); 34,342,961,152 bytes VRAM
reported; PCIe Gen4 x16 (
LnkSta16 GT/s, width x16). The TDC GFX limit is pinned to 150 W at boot (a host service); clocks were not fixed otherwise. - 12th Gen Intel Core i5-12400F; 12 logical CPUs. The engine selected an AVX2 build and 5 expert-pool workers plus its host thread.
- 64 GB installed RAM; Linux reported 61.50 GiB total. Local NVMe storage: Lexar SSD NM790 2TB. 15 GiB system swap.
- Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic. AMD ROCm 7.2.1 (
hipccreports AMD clang 22.0.0). - Source commit
99f3dbd0b21d1401b3769e0c0d963913607f380b; engine 0.1.38. Built on the host for gfx906 with the ROCm 7.2.1 toolchain and packaged into a Docker image (strata-mi50:0.1.38); the server runs inside the container with/dev/kfdand/dev/dripassed through. See BUILD.json. - The GPU was dedicated to Strata during the run (the co-located Ollama server held no model). Other CPU services remained running; this was not a completely isolated operating system.
Model and configuration
Model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, revision
ed59f92082b1e93c0e96d60a8b11aab089b52f09:
IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.ggufIQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf
Both local GGUF SHA-256 hashes matched the revision's published LFS hashes
(see model-sha256.txt and provenance.json).
mmproj-Qwen3.8-Flash-Next-BF16.gguf is present on disk but was not passed
to the engine: vision was off for this run, so this report does not cover it.
- Context 131,072; KV streaming
--kv-resident 32768— 32,768 KV cells per QSA layer resident in VRAM, with the full K/V in pinned RAM. This is what makes the full 128K context fit the card while leaving VRAM for experts. - KV type INT8.
- Expert cache
auto: 19,304 slots, profile-prefilled with no eviction. Engine log: cache hit path ON; per-requesthit_rate0.97–0.995. - Prefill 2,048-token chunks.
- MTP
--spec 3 --spec-min-p 0.9. - Vision off; temperature 0; maximum 256 generated tokens per speed run.
The complete measured configuration is strata-iq2_xs.json and the engine's own startup and per-request lines are in engine.log.
Method and reproduction
This uses an adaptation of the repository's community harness
(bench/results/2026-09-30-community-rtx-5090/benchmark.py).
The only changes are the target port/pack path for the container and a required
Authorization header (benchmark_mi50.py). It runs inside
the container (imports strata_tokenizer and serve.frontend from /opt/strata).
docker exec strata python3 /work/bench/benchmark_mi50.py--api-key < key> \ --url http://127.0.0.1:8085 --out /work/bench/results --targets 4096,32768,128000 --runs 3
The script generates deterministic synthetic Python functions, adds a different nonce near the start of each request, and counts the complete rendered chat prompt using Strata's tokenizer, adjusting the filler to the target and verifying the count against the server afterward. One warm-up request was excluded. Three runs at each length were executed serially in increasing-length order on the same loaded engine. All nine speed requests processed their entire prompt: zero reused tokens. Loading time is excluded; the expert cache was kept between requests.
TTFT is measured client-side from immediately before the HTTP request until the
first nonempty text delta. Engine prompt throughput uses freshly read tokens
divided by prompt_ms; decode throughput uses engine_generated / decode_ms.
System memory and GPU memory were sampled once per second by
monitor_mi50.py (host rocm-smi adaptation), before load
through the last run; raw samples in telemetry.jsonl.
Results
Each cell is the median [minimum–maximum] of three runs. Every request generated 256 tokens and stopped at the output limit; no failed or cancelled speed requests.
| Prompt tokens | Reused | Prompt tok/s | Decode tok/s | TTFT seconds | Total seconds |
|---|---|---|---|---|---|
| 4,096 | 0 | 331.9 [330.1–332.3] | 36.0 [35.9–37.4] | 12.4 [12.4–12.5] | 19.4 [19.3–19.5] |
| 32,768 | 0 | 327.2 [327.2–327.3] | 34.0 [33.9–34.1] | 100.2 [100.2–100.2] | 107.7 [107.7–107.7] |
| 128,000 | 0 | 305.2 [304.7–305.2] | 33.5 [32.4–34.0] | 419.6 [419.4–419.7] | 427.2 [426.8–430.0] |
Raw per-run records: results.json. Calculated aggregates:
summary.json. Per-request engine values are also preserved in
tokens-<N>-run-<R>-raw.json.
The very first request of a session (a previous, discarded invocation) showed a one-off prefill overhead (~35 s for 14 prompt tokens) before the cache settled; the warm-up in this run was excluded, and steady-state prefill was a flat ~305–330 tok/s across all three lengths.
Memory, from telemetry.jsonl:
- Host RAM: peak 40.96 GiB, calculated as
MemTotal - MemAvailableover all processes (not Strata's RSS alone). The ~41 GiB is the expert set in RAM plus the streamed K/V for the 128K context. - Swap: peak ~2.9 GiB used, up from ~0 — Strata pages during the run.
- GPU memory: the MI50 was filled to essentially all available VRAM
(~33.5 GB, 32 GB class card); the engine reported
964 MiBfree with the window up and1024 MiBreserved for the draft head. - No out-of-memory error occurred.
Correctness and limitations
Long-context recall via the repository's unchanged tools/needle_bench.py:
a single probe at the full context — --lengths 128k --depths 50 — which
found the needle in a 122,754-token prompt (426 s). Result in
needles.json.
This is one machine, one quantization, one configuration, and a small synthetic workload. Long output, sampled decoding, thinking, coding-task correctness, vision, tool use, multi-request concurrency, and a sustained thermal run were not evaluated. As an unsupported gfx906 build there are no vendor tuning tables; results on supported architectures are not comparable to these. No same-workload baseline on another engine or GPU was run.
1# Community benchmark: AMD MI50 (gfx906), Intel i5-12400F 2 3Measured on 2026-10-04 by [xxDoman](https://github.com/xxDoman), on the Linux 4machine **LianLi**. This tests Strata 0.1.38 with the original Flash-Next 5IQ2_XS, one GPU (the MI50), at the model's full **131,072-token context** with 6KV streaming. 7 8Median decode throughput was **36.0 tok/s at 4,096 prompt tokens, 34.0 tok/s at 932,768, and 33.5 tok/s at 128,000** — it barely drops as the context grows. 10Prompt processing held **~330 tok/s at 4K/32K and ~305 tok/s at 128K**. These are 11synthetic code-explanation requests with greedy decoding and a 256-token output 12cap. They do not establish general answer quality or performance on other 13workloads. 14 15This is, to our knowledge, the first measured community run of Strata on an AMD 16MI50 (Vega 20, gfx906). It is an experimental, unsupported architecture: the 17build carries no vendor tuning tables, and the numbers reflect that. It also 18shows that the MI50 — a 32 GB card — can serve the model's full 128K context 19with KV streaming, at a decode cost of only ~7% versus a 4K prompt. 20 21## Hardware and software 22 23- AMD Radeon Instinct MI50 32GB (Vega 20, gfx906); 34,342,961,152 bytes VRAM 24reported; PCIe Gen4 x16 (`LnkSta` 16 GT/s, width x16). The TDC GFX limit is 25 pinned to 150 W at boot (a host service); clocks were not fixed otherwise. 26 - 12th Gen Intel Core i5-12400F; 12 logical CPUs. The engine selected an AVX2 27build and 5 expert-pool workers plus its host thread. 28 - 64 GB installed RAM; Linux reported 61.50 GiB total. Local NVMe storage: 29Lexar SSD NM790 2TB. 15 GiB system swap. 30 - Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic. AMD **ROCm 7.2.1** (`hipcc` 31reports AMD clang 22.0.0). 32 - Source commit `99f3dbd0b21d1401b3769e0c0d963913607f380b`; engine 0.1.38. 33Built on the host for **gfx906** with the ROCm 7.2.1 toolchain and packaged 34 into a Docker image (`strata-mi50:0.1.38`); the server runs inside the 35 container with `/dev/kfd` and `/dev/dri` passed through. See [BUILD.json](BUILD.json). 36 - The GPU was dedicated to Strata during the run (the co-located Ollama server 37held no model). Other CPU services remained running; this was not a 38 completely isolated operating system. 39 40 ## Model and configuration 41 42Model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, revision 43`ed59f92082b1e93c0e96d60a8b11aab089b52f09`: 44 45- `IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf` 46- `IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf` 47 48Both local GGUF SHA-256 hashes matched the revision's published LFS hashes 49(see [model-sha256.txt](model-sha256.txt) and [provenance.json](provenance.json)). 50`mmproj-Qwen3.8-Flash-Next-BF16.gguf` is present on disk but was **not** passed 51to the engine: vision was off for this run, so this report does not cover it. 52 53- **Context 131,072; KV streaming `--kv-resident 32768`** — 32,768 KV cells per 54QSA layer resident in VRAM, with the full K/V in pinned RAM. This is what 55makes the full 128K context fit the card while leaving VRAM for experts. 56- KV type INT8. 57- Expert cache `auto`: 19,304 slots, profile-prefilled with no eviction. Engine 58log: cache hit path ON; per-request `hit_rate` 0.97–0.995. 59- Prefill 2,048-token chunks. 60- MTP `--spec 3 --spec-min-p 0.9`. 61- Vision off; temperature 0; maximum 256 generated tokens per speed run. 62 63The complete measured configuration is [strata-iq2_xs.json](strata-iq2_xs.json) 64and the engine's own startup and per-request lines are in [engine.log](engine.log). 65 66## Method and reproduction 67 68This uses an adaptation of the repository's community harness 69([`bench/results/2026-09-30-community-rtx-5090/benchmark.py`](../2026-09-30-community-rtx-5090/benchmark.py)). 70The only changes are the target port/pack path for the container and a required 71`Authorization` header ([benchmark_mi50.py](benchmark_mi50.py)). It runs inside 72the container (imports `strata_tokenizer` and `serve.frontend` from `/opt/strata`). 73 74``` bash 75docker exec strata python3 /work/bench/benchmark_mi50.py --api-key < key > \ 76--url http://127.0.0.1:8085 --out /work/bench/results --targets 4096,32768,128000 --runs 3 77``` 78 79The script generates deterministic synthetic Python functions, adds a different 80nonce near the start of each request, and counts the complete rendered chat 81prompt using Strata's tokenizer, adjusting the filler to the target and 82verifying the count against the server afterward. One warm-up request was 83excluded. Three runs at each length were executed serially in increasing-length 84order on the same loaded engine. All nine speed requests processed their entire 85prompt: **zero reused tokens**. Loading time is excluded; the expert cache was 86kept between requests. 87 88TTFT is measured client-side from immediately before the HTTP request until the 89first nonempty text delta. Engine prompt throughput uses freshly read tokens 90divided by `prompt_ms`; decode throughput uses `engine_generated / decode_ms`. 91 92System memory and GPU memory were sampled once per second by 93[monitor_mi50.py](monitor_mi50.py) (host `rocm-smi` adaptation), before load 94through the last run; raw samples in [telemetry.jsonl](telemetry.jsonl). 95 96## Results 97 98Each cell is the median **[minimum–maximum]** of three runs. Every request 99generated 256 tokens and stopped at the output limit; no failed or cancelled 100speed requests. 101 102| Prompt tokens | Reused | Prompt tok/s | Decode tok/s | TTFT seconds | Total seconds | 103| ---: | ---: | ---: | ---: | ---: | ---: | 104| 4,096 | 0 | 331.9 [330.1–332.3] | 36.0 [35.9–37.4] | 12.4 [12.4–12.5] | 19.4 [19.3–19.5] | 105| 32,768 | 0 | 327.2 [327.2–327.3] | 34.0 [33.9–34.1] | 100.2 [100.2–100.2] | 107.7 [107.7–107.7] | 106| 128,000 | 0 | 305.2 [304.7–305.2] | 33.5 [32.4–34.0] | 419.6 [419.4–419.7] | 427.2 [426.8–430.0] | 107 108Raw per-run records: [results.json](results.json). Calculated aggregates: 109[summary.json](summary.json). Per-request engine values are also preserved in 110`tokens-<N>-run-<R>-raw.json`. 111 112The very first request of a session (a previous, discarded invocation) showed a 113one-off prefill overhead (~35 s for 14 prompt tokens) before the cache settled; 114the warm-up in this run was excluded, and steady-state prefill was a flat 115~305–330 tok/s across all three lengths. 116 117Memory, from [telemetry.jsonl](telemetry.jsonl): 118 119- Host RAM: peak **40.96 GiB**, calculated as `MemTotal - MemAvailable` over all 120processes (not Strata's RSS alone). The ~41 GiB is the expert set in RAM plus 121the streamed K/V for the 128K context. 122- Swap: peak **~2.9 GiB used**, up from ~0 — Strata pages during the run. 123- GPU memory: the MI50 was filled to essentially all available VRAM 124(~33.5 GB, 32 GB class card); the engine reported `964 MiB` free with the 125window up and `1024 MiB` reserved for the draft head. 126- No out-of-memory error occurred. 127 128## Correctness and limitations 129 130Long-context recall via the repository's unchanged `tools/needle_bench.py`: 131a single probe at the full context — `--lengths 128k --depths 50` — which 132**found the needle** in a 122,754-token prompt (426 s). Result in 133[needles.json](needles.json). 134 135_This is one machine, one quantization, one configuration, and a small synthetic 136workload. Long output, sampled decoding, thinking, coding-task correctness, 137vision, tool use, multi-request concurrency, and a sustained thermal run were 138not evaluated. As an unsupported gfx906 build there are no vendor tuning tables; 139results on supported architectures are not comparable to these. No 140same-workload baseline on another engine or GPU was run._