mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #4982] [Benchmark] Vega 64 (gfx900, 8 GB) + 32 GB RAM, Qwen3.8-Flash-Next Coder IQ1_M: build notes and load test #2298
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nerdoc on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4982
What did you measure, or what went wrong
Strata on a Radeon RX Vega 64 (gfx900, 8 GB HBM2) with 32 GB RAM, running Qwen3.8-Flash-Next Coder IQ1_M through
the gfx906 compat backend. It builds with four small changes and survived a ~2 h load test without a failed request.
Posting the build notes and numbers for other gfx900 owners, plus one scope question (hipBLAS < 1.0).
Environment
c62d5e3a(engine 0.1.55), ggml at the pinned3cf0325--mmap-experts --expert-profile data/expert-profile-coder.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt> --max-context 65536 --kv int8 --kv-resident 16384 --vram-reserve-mib 768 --adapt-every 0 --pcie-frac 0, served withserve.server --engine strataWhat the gfx900 build needed at
c62d5e3av_fma_mixlo_f16inline asm ingdn_out_norm_loop_kernel<false>does not assemble for gfx900 (the mixinstructions are gfx906+). Fixed in #4983.
__shared__ alignas(16) int4iniq_kernels.cu(clang 17): covered by open PRs; I use #4600 (drops theredundant
alignas,alignof(int4) == 16on HIP), confirmed there.cudaStreamCreateWithPriority/cudaDeviceGetStreamPriorityRangeindflash2.cpp: I use #4766, confirmedthere.
hipblasComputeType_t, andhipblasGemmExtakeshipblasDatatype_tfor every type argument. I mappedCUBLAS_COMPUTE_32F/CUDA_R_32F/CUDA_R_16F/CUDA_R_16BFtoHIPBLAS_R_32F/HIPBLAS_R_32F/HIPBLAS_R_16F/HIPBLAS_R_16Bunder#if hipblasVersionMajor < 1inhip_compat/cublas_v2.h. Built against ROCm 6.4 from Debian sid (hipBLAS,rocBLAS 6.4.4, HIP 6.4.3, in a container on the same machine) the build needs only changes 1–3, and that binary
served requests on the card without hipBLAS errors (14–15 t/s decode, a 2,627-token prompt at 116 t/s).
Question: is hipBLAS < 1.0 in scope for the gfx906 backend? If yes, I can open a PR with this mapping;
if not, a line in
docs/AMD_HIP.mdsaying "needs hipBLAS ≥ 1.0 / ROCm ≥ 6" would have saved me some time.Side note for the sid container: GCC 16's libstdc++
<format>uses[[__gnu__::__noinline__]], which collideswith HIP's
__noinline__macro. Building with--gcc-install-dirpointing at GCC 15 avoids it. That is a HIP/GCCissue, not Strata's.
Load test (2026-11-01/02, single machine, OpenAI API on
127.0.0.1, server-default sampling,enable_thinking: false;numbers are the server's
timings, one run each):lengthDecode is bounded by the expert reads from RAM, not the GPU (VRAM expert cache hit rate ~8–10 %). VRAM in use went from 7,466 to
7,734 MiB in the first 50 min and then stayed there, swap flat, no GPU faults in
dmesg. Another client sent two requests during the needle stages, sothose prefill numbers are slightly pessimistic.
After that an agent run (hermes-agent with tools: write a script, run it, write and run a unittest, write a
report): 10 model turns at 9.7k–15.7k tokens of context, 6 min in total, correct result. From the second turn on the
conversation cache leaves 150–2,600 new tokens per turn (4–17 s prefill); decode 14–17 t/s.
Observations
dmesgshowsamdgpu: init_user_pages: Failed to get user pages: -1in bursts (~1,900 lines at engine start,~22,500 during the test). As far as I can tell this is
pin_blobs()insrc/program/generate.cpp:cudaHostRegister(..., cudaHostRegisterReadOnly | ...)on the read-only mapped expert files fails on HIP 5.7 andthe range stays pageable, as the code intends. No request failed; I did not check whether ROCm 6.4 pins them.
GPU memory access faultuntil a reboot, and while the engine runs amdgpu refuses to suspend at all. Hibernate works. (Seen with Strata
0.2.8 on 2026-10-30; I now stop the engine before sleep and disabled S3.)
~3–10 t/s); after that the numbers above apply.
Reproduction status
Measured locally
@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