[GH-ISSUE #4925] [Benchmark] RX 7800 XT over OCuLink, 12900, 64GB 4800 #2265

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

Originally created by @msb2295 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4925

Benchmark on AMD Radeon RX 7800 XT (gfx1101) over OCuLink

Measured on 2026-11-01 with tools/strata_bench.py --long (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: ASUS Dual RX 7800 XT (gfx1101), 16 GiB VRAM, in an OCuLink dock (PCIe Gen4 x4, Resizable BAR on)
  • Host: Lenovo P360 Ultra, i9-12900, 64 GB DDR5-4800, models on NVMe
  • OS: Ubuntu 26.04.1 LTS, kernel 7.0.0-38, in-kernel amdgpu driver
  • ROCm: setup's venv wheels, hipBLASLt 1.2.0 (100200)
  • Strata: v0.2.9 source build (commit c62d5e3a), engine 0.1.55
  • Kernel parameters: amdgpu.runpm=0 pcie_aspm=off. Without them the card dropped off the bus with AER errors whenever amdgpu woke it from BACO over OCuLink.

Model and configuration

  • Model: Qwen3.8-Flash-Next IQ3_XXS (ISTA-DASLab GSQ-RCO)
  • Context: 65536 tokens, 1 slot, int8 KV, vision on
  • Expert cache: 5,713 experts on the GPU (9.26 GiB); all experts in RAM
strata --serve --pack iq3_xxs --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp rt --max-context 65536 --kv int8 --vision --vram-reserve-mib 450

Changed from setup's defaults:

STRATA_HIP_WMMA=1
STRATA_PF_GEMM=1
STRATA_PF_SWITCH_MIN_T=4096
STRATA_HIPBLASLT_TUNING=gfx1101-hipblaslt-100200.txt

The tuning table (attached) was calibrated on this card with tune_hipblaslt, using the case list from tools/hip/gfx1100-hipblaslt-100200.txt.

gfx1101-hipblaslt-100200.txt

Results

Test Prompt tok/s Decode tok/s First token (s)
Short chat - 49.3 (43.4-60.3) 0.70 (0.62-0.89)
4K prompt 558.5 (553.6-560.8) - 7.22 (7.19-7.29)
16K prompt 845.8 (845.3-850.9) - 19.02 (18.90-19.03)
32K prompt 845.2 (843.9-845.7) - 37.96 (37.93-38.02)
Agent session - 58.7 (52.0-65.2) 6.25 (5.90-6.57)

Agent session cache hit: 69.4%, with 3 earlier tokens re-read per session.

Compared with setup's defaults

Same machine, model and suite.

  • 4K prompt: 405 → 559 tok/s (+38%), first token 9.95 → 7.22 s
  • 16K prompt: 451 → 846 tok/s (+88%), first token 35.6 → 19.0 s
  • 32K prompt: 449 → 845 tok/s (+88%), first token 71.4 → 38.0 s
  • Agent turn first token: 7.72 → 6.25 s (-19%)
  • Decode: chat 46.5 → 49.3, agent 52.7 → 58.7 tok/s

How each change contributed (4K / 16K / 32K prompt tok/s):

  • Defaults: 405 / 451 / 449
  • WMMA + PF_GEMM: 359 / 693 / 698. Long prompts +55%, but 4K slower.
  • Same with PF_SWITCH_MIN_T=8192: 363 / 560 / 623. Did not fix 4K and cost long prompts, so the 4K dip seems to come from WMMA.
  • Plus the hipBLASLt table: 559 / 846 / 845. Faster at every size.

The AMD guide says a hipBLASLt 1.2.0 table measured within noise on the R9700. On gfx1101 the same version gave the biggest single gain here.

Originally created by @msb2295 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4925 # Benchmark on AMD Radeon RX 7800 XT (gfx1101) over OCuLink Measured on 2026-11-01 with `tools/strata_bench.py --long` (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: ASUS Dual RX 7800 XT (gfx1101), 16 GiB VRAM, in an OCuLink dock (PCIe Gen4 x4, Resizable BAR on) - Host: Lenovo P360 Ultra, i9-12900, 64 GB DDR5-4800, models on NVMe - OS: Ubuntu 26.04.1 LTS, kernel 7.0.0-38, in-kernel amdgpu driver - ROCm: setup's venv wheels, hipBLASLt 1.2.0 (100200) - Strata: v0.2.9 source build (commit c62d5e3a), engine 0.1.55 - Kernel parameters: `amdgpu.runpm=0 pcie_aspm=off`. Without them the card dropped off the bus with AER errors whenever amdgpu woke it from BACO over OCuLink. ## Model and configuration - Model: Qwen3.8-Flash-Next IQ3_XXS (ISTA-DASLab GSQ-RCO) - Context: 65536 tokens, 1 slot, int8 KV, vision on - Expert cache: 5,713 experts on the GPU (9.26 GiB); all experts in RAM ``` strata --serve --pack iq3_xxs --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp rt --max-context 65536 --kv int8 --vision --vram-reserve-mib 450 ``` Changed from setup's defaults: ``` STRATA_HIP_WMMA=1 STRATA_PF_GEMM=1 STRATA_PF_SWITCH_MIN_T=4096 STRATA_HIPBLASLT_TUNING=gfx1101-hipblaslt-100200.txt ``` The tuning table (attached) was calibrated on this card with `tune_hipblaslt`, using the case list from `tools/hip/gfx1100-hipblaslt-100200.txt`. [gfx1101-hipblaslt-100200.txt](https://github.com/user-attachments/files/34240003/gfx1101-hipblaslt-100200.txt) ## Results | Test | Prompt tok/s | Decode tok/s | First token (s) | | --- | ---: | ---: | ---: | | Short chat | - | 49.3 (43.4-60.3) | 0.70 (0.62-0.89) | | 4K prompt | 558.5 (553.6-560.8) | - | 7.22 (7.19-7.29) | | 16K prompt | 845.8 (845.3-850.9) | - | 19.02 (18.90-19.03) | | 32K prompt | 845.2 (843.9-845.7) | - | 37.96 (37.93-38.02) | | Agent session | - | 58.7 (52.0-65.2) | 6.25 (5.90-6.57) | Agent session cache hit: 69.4%, with 3 earlier tokens re-read per session. ## Compared with setup's defaults Same machine, model and suite. - 4K prompt: 405 → 559 tok/s (+38%), first token 9.95 → 7.22 s - 16K prompt: 451 → 846 tok/s (+88%), first token 35.6 → 19.0 s - 32K prompt: 449 → 845 tok/s (+88%), first token 71.4 → 38.0 s - Agent turn first token: 7.72 → 6.25 s (-19%) - Decode: chat 46.5 → 49.3, agent 52.7 → 58.7 tok/s How each change contributed (4K / 16K / 32K prompt tok/s): - Defaults: 405 / 451 / 449 - WMMA + PF_GEMM: 359 / 693 / 698. Long prompts +55%, but 4K slower. - Same with PF_SWITCH_MIN_T=8192: 363 / 560 / 623. Did not fix 4K and cost long prompts, so the 4K dip seems to come from WMMA. - Plus the hipBLASLt table: 559 / 846 / 845. Faster at every size. The AMD guide says a hipBLASLt 1.2.0 table measured within noise on the R9700. On gfx1101 the same version gave the biggest single gain here.
Author
Owner

@carcoder123 commented on GitHub (Nov 3, 2026):

How is this possible? Pcie x4 should be very limiting...

<!-- gh-comment-id:6614324577 --> @carcoder123 commented on GitHub (Nov 3, 2026): How is this possible? Pcie x4 should be very limiting...
Author
Owner

@msb2295 commented on GitHub (Nov 4, 2026):

Most of the work never crosses the link. The most-used experts (9.26 GiB) live in VRAM, so most tokens read weights at roughly 624 GB/s on the card, not 8 GB/s over OCuLink. Speculative decoding and MTP add extra tokens per pass. Prefill batches thousands of tokens per expert transfer, so link time is tiny next to compute. That's also why GEMM tuning gave +88%: the GPU, not OCuLink, is the bottleneck.

<!-- gh-comment-id:6624166785 --> @msb2295 commented on GitHub (Nov 4, 2026): Most of the work never crosses the link. The most-used experts (9.26 GiB) live in VRAM, so most tokens read weights at roughly 624 GB/s on the card, not 8 GB/s over OCuLink. Speculative decoding and MTP add extra tokens per pass. Prefill batches thousands of tokens per expert transfer, so link time is tiny next to compute. That's also why GEMM tuning gave +88%: the GPU, not OCuLink, is the bottleneck.
Author
Owner

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

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658927047 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
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#2265
No description provided.