Skip to content
Open
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,84 @@
# Community benchmark on AMD Radeon RX 6800 XT

Measured on 2026-12-05 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 6800 XT, 16 GiB VRAM
- CPU: AMD Ryzen 7 7800X3D 8-Core Processor (8 cores, 16 threads); installed RAM: 30.5 GiB; storage: zram0; nvme1n1 SSDPR-PX500-512-80 nvme; nvme0n1 KIOXIA-EXCERIA PLUS G3 SSD nvme
- OS: Linux 6.18.66-1-lts; 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: qwen4-35b-a3b-ud-iq4_xs
- Context: 32768 tokens; parallel slots: 1
- Settings: the install's own configuration, unchanged; thinking off for the suite; temperature 0

## Method

Run by `python tools/strata_bench.py --long` against the HTTP API of a PolyStrata server (already running); 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 | 57 (54-62) | 0 | 100 (100-100) | 9 | not measured | 83.6 (55.8-108.7) | 0.42 (0.40-0.73) |
| 4K prompt, fresh | 4020 (4020-4020) | 0 (0-0) | 24 cap | 3 | 1372.0 (835.4-1651.8) | not measured | 3.16 (2.66-4.86) |
| 16K prompt, fresh | 16058 (16058-16058) | 0 (0-0) | 24 cap | 3 | 1553.8 (1252.9-1572.8) | not measured | 10.60 (10.57-13.09) |
| agent session, follow-up turns | 14935 (14924-14957) at the last turn | see below | up to 64 | 3 | see below | 80.4 (55.1-98.2) | 3.14 (1.68-49.97) |

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.1 % (69.0-69.1); earlier-turn tokens read again per session: 5 (5-5) (earlier turns that the cache did not hold; the 14142 (14141-14143) new tokens of the files are read once); first turn (nothing cached) first token: 0.87 s (0.79-1.36). Corpus: `repo_docs` (53cd19872111) [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 | 546 | 0 | 546 | 524.3 | 1.359 | 70.9 |
| 1 | 4059 | 563 | 3496 | 136.8 | 25.604 | 69.0 |
| 2 | 5721 | 4122 | 1599 | 196.3 | 8.407 | 83.1 |
| 3 | 9088 | 5783 | 3305 | 665.9 | 5.236 | 97.6 |
| 4 | 11945 | 9146 | 2799 | 56.3 | 49.974 | 81.7 |
| 5 | 14957 | 12008 | 2949 | 680.7 | 4.687 | 98.2 |

### Skipped and failed

- skipped 32K: the context is 32768 tokens

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: 223 s.

## Notes from the submitter

Facts the tool could not read, filled in by hand:

- **Commit:** `df2c3ff3002cd8af4c914c7fe4ee21379a5210d3` (a `--depth 1` clone, so the tool reported "not a git checkout").
- **Engine build:** compiled on this PC by `./setup.sh --family qwen4 --model UD-IQ4_XS --gguf-dir <folder> --backend hip --build --vision no --yes --no-start` (gfx1030, plain kernels; the start-up line says `Qwen4 STRATA_GDN_MMA: unchanged (unsupported shape, architecture or shared memory)`). No build options changed.
- **ROCm:** Arch Linux system packages, `rocm-core` 10.2, `hip-runtime-amd` 10.1, `rocblas` / `hipblas` 10.2, in `/opt/rocm`. Kernel 6.18.66 LTS, `linux-firmware-amdgpu` 20261124.
- **GPU link and power:** PCIe 4.0 x16 (16 GT/s, x16 of x16); power cap 272 W (`power1_cap`), not changed.
- **Model files:** `unsloth/Qwen4-35B-A3B-GGUF`, `UD-IQ4_XS/Qwen4-35B-A3B-UD-IQ4_XS-0000{1,2}-of-00002.gguf`, SHA-256 checked against the Hugging Face listing on 2026-12-05; on the SSDPR PX500 NVMe (the KIOXIA drive in the storage line holds the OS, not the model). Setup's own uniform expert profile, no calibration.
- **Load:** 6.6 s; 6,379 of 10,496 routed experts in VRAM (10.2 GiB), 1,007 MiB of VRAM free after the load, 11 CPU threads.
- **MTP was on.** `engine_info` above says `"drafting": "off"`; the engine log says otherwise: the embedded MTP layer drafted on every request of this suite and of an earlier manual check, 1,601 of 2,208 drafts accepted (72.5 %) over 41 requests. My reading is that the `drafting` field reports slot drafting (DFlash2 and the like), not the embedded MTP layer; please correct me if that is wrong.
- **Background load:** a desktop session with a browser open; the RX 6800 XT also drives the display. Not idle, not measured.
- **Cold outliers:** the slowest numbers are first-touch effects of the run after load: agent run 1 turns 1 and 4 (25.6 s and 50.0 s to the first token, 137 and 56 tok/s reading), and the first of the three 4K prompts (835 tok/s). Runs 2 and 3 of the agent session stay under 3.3 s per turn.

### Same file on other runtimes (not this tool's suite)

For context only: the same GGUF files, the same PC, measured the same day with my own client script (`/v1/chat/completions` stream, prompt tokens over time to first token, a unique tag on every prompt, thinking off, 3 runs each). These are not comparable digit for digit with the table above.

| Runtime | ~5,150-token prompt, tok/s | Decode after it, tok/s | Short chat decode, tok/s | Drafting |
| --- | ---: | ---: | ---: | --- |
| PolyStrata (this build) | 1,126-1,161 (244 on the first, cold, request) | 65-68 | 72-83 | embedded MTP |
| llama.cpp master `7f6ead10`, ROCm build, `-ot per_layer_token_embd=CPU --n-cpu-moe 40 --moe-cache-mib 10500 -b 2048 -ub 2048 --spec-type draft-mtp --spec-draft-n-max 2` | 945-1,239 | 25.5-69.9 (one run fell to 25.5, VRAM 15.5 of 16 GiB) | 76-80 | MTP |
| Strata 0.2.28, ready-made `strata-q4-lite` 0.1.74.1 `hip-rx6000` | 1,018-1,029 | 67.4-67.5 | 67.6-68.2 | off (Strata refused MTP for this file) |
Loading