Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# Community benchmark on AMD Radeon RX 7900 XTX

Measured on 2026-12-01 by @dontaskmeformyname. Qwen3.8-Flash-Next ISTA IQ3_S on this card, with and
without `--mtp`. Measurement only, no engine changes. The same PolyStrata build and the
same model files ran twice without MTP and once with the MTP draft head, on one card, in the order
`suite-nomtp` → `suite-mtp` → `suite-nomtp-r2`.

## Hardware and software

- GPU: AMD Radeon RX 7900 XTX (gfx1100), 24 GiB (24,560 MiB), one card. It only drives the monitor (HDMI); the
desktop renders on the CPU's integrated GPU (KWin with `KWIN_DRM_DEVICES`, integrated GPU first).
- CPU / RAM: AMD Ryzen 7 7800X3D (8 cores, 16 threads); 90.0 GiB installed RAM.
- Storage: NVMe CT1000T700SSD3 and a Samsung SSD 860 PRO 2TB SATA; model files on the NVMe.
- OS: CachyOS Linux, kernel 7.3.6-3-cachyos.
- ROCm: 10.2.0 in `/opt/rocm/.info/version`; the installed package set is mixed
(`rocm-core` 10.2-1.1, `hip-runtime-amd` 10.1-2, `hipblaslt` 10.1-1, `rocblas` 10.1-2).
HIP backend. `hipconfig --version` reports `7.16.0-0000000`.
- PolyStrata: **v0.2.20-poly.6**, source checkout `ce7010d6cd1e15e6defed027360fd49de9afb246`;
engine 0.1.66 (`strata --version`), the production build installed as `~/models/bin/strata`.
The `strata_commit` field in `results.json` is `null` because that binary is not a git checkout;
the commit above is the production source revision it was built from.
- Background load: nothing else on the GPU; other desktop programs were not closed or measured.

## Model and configuration

- Model: **Qwen3.8-Flash-Next GSQ-RCO IQ3_S** from the model card
[ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF),
revision `ed59f92082b1e93c0e96d60a8b11aab089b52f09`, folder `IQ3_S`, two shards:
`Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf` (54,817,524,224 B,
SHA-256 `4c1eb2ceb4915e1192f4f386021897bde56a97f40a0bb78bb86465e0f7d2aca3`) and
`...-00002-of-00002.gguf` (28,800,138,432 B,
SHA-256 `316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113`).
- Pack `ista-iq3_s`, tokenizer from that pack, expert profile `terminal/data/expert-profile.bin`,
context 262,144, KV `int8`, `--kv-resident 32768`, PLE table from shard 00002, vision on
(not exercised by this suite).
- The GSQ-RCO GGUF contains **no MTP head**. The MTP arm uses a head prepared from the BF16 checkpoint
[Qwen/Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) revision `de4b8e4d43b917e7706784d8bb445c9af86a3540`: 31 `mtp.*`
tensors fetched and SHA-256-verified (5.214 GB), packed as Q2_0 (`mtp-q2_0.gguf`, 889,017,216 B,
SHA-256 `a22206a4d74eafbf31063a84610292535fb3b49af9a339963817fd04aed81e4d`), and written as
the runtime folder `rt/` with `experts.bin` (707,788,800 B,
SHA-256 `09398406be61f1f54c93861f449e48b8df0bfccbc9ec9b2b7636775a6ea9244f`),
`dense.bin` (116,099,072 B, SHA-256 `c724dc0b0822ada5d2977bf5bde821605feabaa64ea2e0045b67ca656329070a`),
`dense.txt`, and `draft_vocab.bin` (425,196 B,
SHA-256 `b1e1d3a7a9e4bf862dcd5923ce661fb59bbd07907e594df5cf86a62ac235cb91`).
The engine log at start: `draft layer loaded (Q2_0 S2), 835 MiB of VRAM (experts 675, dense 111)`;
with the packed 106,299-token head the expert cache holds 8,158 experts (15.47 GiB) instead of
8,724 (16.55 GiB) without MTP.

The launch command for the MTP arm (the no-MTP arm is identical without the last two lines):

```text
strata --pack <models>/packs/ista-iq3_s \
--native <models>/ista-flash-next-iq3_s/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf \
--ple-gguf <models>/ista-flash-next-iq3_s/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf \
--expert-profile .../PolyStrata/terminal/data/expert-profile.bin \
--expert-cache auto --prefill auto:16384 --spec 4 --spec-min-p 0.5 \
--max-context 262144 --kv int8 --vision --kv-resident 32768 --vram-reserve-mib 1024 \
--conversation-cache-mib 8192 --conversation-cache-slots 8 --prompt-cache 12 \
--mtp <models>/packs/qwen38-flash-next-mtp/rt
```

Both arms also ran with the production `cmd_prefix` environment: the gfx1100 hipBLASLt table
`gfx1100-hipblaslt-100401.txt`, `STRATA_SCORES_THREAD=1`, `STRATA_KV_HOST_DMA=1`,
`STRATA_EXPDEC=1`. The only configuration difference between the arms is `--mtp` (their log paths
also differ). Thinking is off for this suite, as the tool does it.

## Method

The community guide's quick suite, exactly `python terminal/tools/strata_bench.py --runs 3 --long`,
with the server started by the tool from the run config. Model loading is not timed. One warm-up chat
and a 1K prompt are discarded; every measured prompt carries a unique tag, so the fresh-prompt tests
cannot reuse the conversation cache. Speeds are the engine's own `prompt_per_second` /
`predicted_per_second`; first-token time is measured by the client over loopback HTTP. No request was
retried. Suite duration after loading: 130 s (no MTP), 143 s (MTP), 156 s (no MTP, second run).
This is **not** the draft standard protocol (`strata bench run`); it is the quick speed check the
community guide and the earlier reports in this folder use.

## Results

Medians with the observed minimum and maximum; `n` is the number of requests that returned tokens.
`Capped` output was 24 tokens for the prompt tests, 100 for chat and up to 64 for an agent turn.

| Configuration | Case | Actual prompt tokens | Reused | n | Prompt tok/s | Decode tok/s | TTFT s |
| --- | --- | ---: | ---: | ---: | --- | --- | --- |
| no MTP (r1) | short chat | 46 (43-51) | 0 | 9 | not measured | 54.8 (52.8-57.6) | 0.58 (0.52-0.79) |
| no MTP (r1) | 4K fresh | 4,019 | 0 | 3 | 1,783.4 (1,687.5-1,858.8) | not measured | 2.27 (2.18-2.40) |
| no MTP (r1) | 16K fresh | 16,058 | 0 | 3 | 2,829.7 (2,465.5-3,151.7) | not measured | 5.70 (5.12-6.54) |
| no MTP (r1) | 32K fresh | 32,049 | 0 | 3 | 3,439.8 (3,336.5-3,442.5) | not measured | 9.35 (9.34-9.64) |
| no MTP (r1) | agent, follow-ups | 14,987 at the last turn | 69.23 % | 15 | see below | 60.4 (52.5-66.1) | 1.71 (1.18-2.61) |
| **MTP** | short chat | 46 (43-51) | 0 | 9 | not measured | **76.3 (67.8-90.9)** | 0.75 (0.30-1.27) |
| **MTP** | 4K fresh | 4,019 | 0 | 3 | **1,847.1 (1,312.9-1,867.3)** | not measured | 2.20 (2.17-3.08) |
| **MTP** | 16K fresh | 16,058 | 0 | 3 | 2,675.7 (2,406.8-3,132.5) | not measured | 6.03 (5.17-6.70) |
| **MTP** | 32K fresh | 32,049 | 0 | 3 | 2,799.9 (2,765.1-3,147.8) | not measured | 11.48 (10.22-11.62) |
| **MTP** | agent, follow-ups | 14,935 at the last turn | 69.21 % | 15 | see below | **93.2 (74.4-130.9)** | 2.17 (1.30-4.39) |
| no MTP (r2) | short chat | 46 (43-51) | 0 | 9 | not measured | 54.6 (54.0-57.6) | 0.53 (0.36-0.85) |
| no MTP (r2) | 4K fresh | 4,019 | 0 | 3 | 1,640.1 (1,569.9-1,793.1) | not measured | 2.47 (2.26-2.58) |
| no MTP (r2) | 16K fresh | 16,058 | 0 | 3 | 2,481.2 (2,373.1-3,362.4) | not measured | 6.50 (4.86-6.79) |
| no MTP (r2) | 32K fresh | 32,049 | 0 | 3 | 3,291.6 (2,689.3-3,436.1) | not measured | 9.77 (9.36-11.95) |
| no MTP (r2) | agent, follow-ups | 14,909 at the last turn | 69.24 % | 15 | see below | 60.2 (36.6-67.0) | 2.43 (1.33-6.46) |

The two no-MTP runs differ by −2.9 % (chat decode), −8.0 % (4K prompt), −12.3 % (16K prompt),
−4.3 % (32K prompt) and −0.3 % (agent decode); that spread is the run-to-run noise of this machine
that day.

Against the mean of the two no-MTP runs:

| Case | MTP vs no MTP |
| --- | ---: |
| short chat decode | **+39.5 %** (76.3 vs 54.7 tok/s) |
| agent decode (follow-up turns) | **+54.6 %** (93.2 vs 60.3 tok/s) |
| 4K prompt | +7.9 % (1,847.1 vs 1,711.8 tok/s) |
| 16K prompt | +0.8 % (2,675.7 vs 2,655.5 tok/s) |
| 32K prompt | **−16.8 %** (2,799.9 vs 3,365.7 tok/s) |
| chat TTFT | 0.75 s vs 0.56 s |
| agent TTFT | 2.17 s vs 2.07 s |
| 32K TTFT | 11.48 s vs 9.56 s |

Draft acceptance over all requests in the run: 58.1 % with MTP (1,076 of 1,852 offered) versus
24.4 % (74 of 303) and 22.5 % (86 of 382) in the two no-MTP runs; the no-MTP runs can only offer
suffix/prompt-lookup drafts. Per-run request data and the other cases are in each sub-folder's
`results.json`; its `README.md` and `engine-log-excerpt.txt` carry the same numbers and the startup
lines.

### Agent session

| Arm | Cache hit | Re-read tokens per session | Decode tok/s | Turn-0 TTFT |
| --- | ---: | ---: | ---: | ---: |
| no MTP (r1) | 69.3 % | 5 | 60.4 (52.5-66.1) | 1.56 s (1.27-3.44) |
| MTP | 69.2 % | 5 | 93.2 (74.4-130.9) | 2.59 s (1.99-4.17) |
| no MTP (r2) | 69.2 % | 5 | 60.2 (36.6-67.0) | 4.76 s (3.56-6.46) |

The corpus is the tool's `repo_docs` (`README.md`, `docs/HOW_IT_WORKS.md`, `docs/DETAILS.md`,
`docs/INSTALL.md`, `docs/MODELS.md`, SHA-256 prefix `53e7037ff848`).

## Correctness and limitations

- This suite is a speed check, not an accuracy test. It includes no task with a pass/fail answer.
- Separate checks on the same day and build, **not part of this suite**: a llama-swap smoke request
on the production MTP config returned `391` for `17 × 23`, and its engine log contained
`draft layer loaded`; the earlier `bench_openai.py` T2 run (thinking on, temperature 0.6) on the
same MTP config scored `rechnen` 3/3 and the `get_weather` tool call 3/3. These are small checks,
not a quality evaluation.
- Prompt speed with MTP is lower at 32K than in both no-MTP runs. The MTP arm also holds 566 fewer
experts in VRAM (8,158 vs 8,724; 15.47 vs 16.55 GiB), because the draft layer and its packed head
take about 1 GiB. The 32K result is therefore reported as measured; this run cannot separate that
cache effect from the order (the MTP arm ran second) and from clock/thermal drift, which was not
logged.
- One card, one day, one quantization, one model file; the order was `no MTP → MTP → no MTP`, not
randomized. No `--clients` concurrency run. No vision, recall, coding or long-context needle test.
- The MTP head comes from the BF16 source checkpoint, not from the IQ3_S uploader, because the
GSQ-RCO GGUF carries no MTP tensors. Its speed and acceptance on another quantization or another
IQ3_S upload are not tested.
- `gpu_driver` and `cuda` are `null` in `results.json`: the tool does not read an AMD driver version
and this machine has no CUDA. The ROCm line above was read from the installed packages.
- This is the community guide's quick suite, not the draft standard protocol; the report makes no
standard-benchmark claim.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Community benchmark on AMD Radeon RX 7900 XTX

Measured on 2026-12-01 with `tools/strata_bench.py` (suite 1, 3 runs per test, medians with ranges). Speeds are the engine's own timings; first-token times are measured by the client over HTTP. Speed only: no correctness check was run.

## Hardware and software

- GPU and VRAM: AMD Radeon RX 7900 XTX, 24 GiB VRAM
- CPU: AMD Ryzen 7 7800X3D 8-Core Processor (8 cores, 16 threads); installed RAM: 90.0 GiB; storage: sda Samsung SSD 860 PRO 2TB sata; zram0; nvme0n1 CT1000T700SSD3 nvme
- OS: Linux 7.3.6-3-cachyos; GPU driver: not read; CUDA (driver supports up to): not read
- PolyStrata: project 0.1.66, commit not a git checkout; engine 0.1.66
- Background workloads: not recorded (GPU power limit/draw read above)

## Model and configuration

- Model and quantization: ista-qwen3.8-flash-next-gsq-rco-iq3_s
- Context: 262144 tokens; parallel slots: 1
- Settings: the production configuration plus `--mtp` (hip backend); thinking off for the suite; temperature 0

```text
strata --pack ista-iq3_s --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --prefill auto:16384 --spec 4 --spec-min-p 0.5 --max-context 262144 --kv int8 --vision --kv-resident 32768 --vram-reserve-mib 1024 --conversation-cache-mib 8192 --conversation-cache-slots 8 --prompt-cache 12 --mtp rt
```

## Method

Run by `python tools/strata_bench.py --long` against the HTTP API of a PolyStrata server (started by the benchmark from the install configuration); model loading is not timed. One warm-up chat and a 1K prompt are discarded first. Every prompt starts with a unique tag, so the conversation cache cannot help the fresh-prompt tests.

- short chat: the three questions of `tools/ab_engine.py`, up to 100 new tokens, 3 runs
- 4K / 16K prompts: generated word lists sized by a calibration request, 24 new tokens, 3 fresh prompts each
- agent session: system prompt and four tools, then 5 turns that each add about 1500 words of a project file and continue from the model's own earlier answers (the way agent clients resend a conversation), 64 new tokens per turn, 3 sessions; the cache numbers come from the answer's usage (`cached_tokens`) and timings (`prompt_n`)
- concurrency (when run): N requests sent at the same moment, total tokens over the wall time of the burst, latency over all requests

## Results

| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range |
| --- | ---: | ---: | ---: | ---: | --- | --- | --- |
| short chat | 46 (43-51) | 0 | 100 (100-100) | 9 | not measured | 76.3 (67.8-90.9) | 0.75 (0.30-1.27) |
| 4K prompt, fresh | 4019 (4019-4019) | 0 (0-0) | 24 cap | 3 | 1847.1 (1312.9-1867.3) | not measured | 2.20 (2.17-3.08) |
| 16K prompt, fresh | 16058 (16058-16058) | 0 (0-0) | 24 cap | 3 | 2675.7 (2406.8-3132.5) | not measured | 6.03 (5.17-6.70) |
| 32K prompt, fresh | 32049 (32049-32049) | 0 (0-0) | 24 cap | 3 | 2799.9 (2765.1-3147.8) | not measured | 11.48 (10.22-11.62) |
| agent session, follow-up turns | 14935 (14909-14942) at the last turn | see below | up to 64 | 3 | see below | 93.2 (74.4-130.9) | 2.17 (1.30-4.39) |

Ranges are the lowest and highest of the runs; `Runs` counts requests that returned a token.

### Agent session (conversation cache)

Cache hit over the follow-up turns: 69.2 % (69.2-69.2); earlier-turn tokens read again per session: 5 (5-5) (earlier turns that the cache did not hold; the 14100 (14100-14100) new tokens of the files are read once); first turn (nothing cached) first token: 2.59 s (1.99-4.17). Corpus: `repo_docs` (53e7037ff848) [README.md, docs/HOW_IT_WORKS.md, docs/DETAILS.md, docs/INSTALL.md, docs/MODELS.md].

| Turn (run 1) | Prompt tokens | Reused | Read | Prompt tok/s | First token (s) | Decode tok/s |
| ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| 0 | 609 | 0 | 609 | 309.5 | 1.991 | 30.8 |
| 1 | 4075 | 630 | 3445 | 1174.8 | 2.958 | 77.0 |
| 2 | 5739 | 4138 | 1601 | 366.3 | 4.393 | 92.8 |
| 3 | 9110 | 5802 | 3308 | 1023.8 | 3.256 | 74.4 |
| 4 | 11951 | 9150 | 2801 | 899.5 | 3.137 | 112.9 |
| 5 | 14935 | 11985 | 2950 | 755.1 | 3.932 | 90.4 |

Per-request data: `results.json`. Engine log lines from the start: `engine-log-excerpt.txt` (when this run started the server).

## Correctness and limitations

Not measured: this is a speed suite. The conversation uses the model's own replies, so token counts differ a little between runs. Machine details come from the server, `nvidia-smi`/`rocm-smi` and the OS; background load is not recorded. Total time of the suite: 143 s.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[strata] Drafting: MTP (the DFlash2 drafter isn't downloaded yet)
[strata] loading the experts into RAM (about 55 GB) and locking part of them for the GPU.
Please wait and don't close this window; the server says when it is ready.
[strata] filling the GPU's expert cache (8158 experts, 15.47 GiB of VRAM) ...
[strata] almost ready ...
[strata] note: 951 MiB of VRAM free with the model loaded. If this AMD card also drives your desktop and the desktop or apps crash after the start (the driver moves the expert cache to RAM and the OOM killer ends the session), keep more VRAM free: ./setup.sh --vram-reserve-mib 3072 (remembered; the expert cache gets 2.0 GB less, a few % of speed)
ready: http://127.0.0.1:8095/v1 (OpenAI: /v1/chat/completions, Anthropic: /v1/messages, context 262144 tokens, images on)
Loading