Repository navigation
Replies: 5 comments
Update: Qwen3.8-Flash-Next — 128K, MTP, DFlash2 and MoE CacheTest environment
Qwen3.8-Flash-Next GSQ-RCO IQ3_S
Main model KV cache: Q8_0. The MTP test at 64K generated more than 6,600 tokens, Native MoE cache autotuningResults from moe-cache-tune.py:
The larger cache configurations caused significant According to the tuner source, --max-mib limits Qwen3.8-Flash-Next Unsloth UD-IQ4_XSThe larger IQ4_XS quantization was tested with Configuration
Generation performance
Hardware observations
ConclusionThe UD-IQ4_XS configuration appears suitable for Speculative decoding improved IQ3_S performance The most impressive observations are the low GPU These are real-world inference observations, The full 128K context was not populated. Thanks to the llama.cpp developers for making |
Additional benchmark: Gemma 4 26B-A4B Q8_0 — ROCm — MoE Cache + MTPHardware
Model
Runtime configurationllama-server \
-m gemma-4-26B-A4B-it-Q8_0.gguf \
--model-draft mtp-gemma-4-26B-A4B-it.gguf \
--mmproj mmproj-BF16.gguf \
-c 65536 \
-t 8 \
-tb 8 \
-ngl auto \
-cmoe \
--moe-cache-mib 2624 \
--moe-cache-cpu-share 0.95 \
--fit off \
-fa on \
-ctk q8_0 \
-ctv q8_0 \
--parallel 1 \
--spec-type draft-mtp \
--spec-draft-n-max 31. Native MoE cache tunerTwo tuning runs using the official
Second tuning run: Predicted throughput with a warm cache:
Tuner recommendation: 2. Independent verification through llama-server RouterTo reproduce the final tuner workload, I used the same
Prompt: Results:
Combined generation throughput: 47.97 t/s. The independent API measurements are consistent with 3. Russian technical workloadThe same model was tested using a Russian technical
4. Observations
5. Benchmark reporting suggestionWhen reporting performance with speculative decoding,
A single tokens-per-second figure does not adequately These measurements use a configured 64K context window, The BF16 vision projector was loaded, but image processing No controlled MTP-disabled comparison was performed. Overall, running a 26B MoE model at Q8_0 with MTP, Thank you to the llama.cpp developers for the ROCm, |
Vulkan vs ROCm — RX 7800 XT | MoE Cache, MTP and Real Coding WorkloadTest date: November 19, 2026 Following my previous ROCm benchmarks, I compiled llama.cpp with the Vulkan backend and tested the same models on the same AMD workstation. The most interesting observation is that Vulkan provides competitive inference performance while keeping the GPU significantly cooler in my configuration. 1. Hardware and software
Both backends were built from the same llama.cpp source revision. 2. Vulkan buildcmake -B build-vulkan \
-DGGML_VULKAN=ON \
-DGGML_HIP=OFF \
-DGGML_CUDA=OFF \
-DGGML_NATIVE=ON \
-DLLAMA_BUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release
cmake --build build-vulkan \
--target llama-server llama-bench -j8Detected device: The existing ROCm build was preserved. 3. Gemma 4 26B A4B — Q8_0 + MTPModel configuration:
MoE cache tuningNative llama.cpp
Performance comparisonRecommended Vulkan configuration
The Vulkan tuner predicted 42.2 t/s. One unusual tuner result was an estimated CPU bandwidth of 653.7 GiB/s. This should not be interpreted as actual physical DRAM bandwidth. It appears to be a fitted model parameter rather than a realistic hardware measurement. 4. Gemma 26B — real WebUI inferenceTwo short conversational workloads were tested using the native llama.cpp WebUI.
MTP was confirmed operational on Vulkan. The multimodal projector loaded successfully. Actual image inference was not tested. 5. GLM-4.7-Flash Q6_K — Vulkan without MTPThe second model was GLM-4.7-Flash Q6_K. Configuration:
Native MoE cache tuning
Measured tuning performanceVulkan tuner predictions
The tuner recommended: I then tested this configuration directly in the WebUI. 6. GLM — WebUI launch configurationllama-server \
-m "$MODEL" \
--alias "GLM-4.7-Flash-Q6_K" \
-c 65536 \
-t 8 \
-tb 8 \
-ngl auto \
-cmoe \
--moe-cache-mib 11136 \
--moe-cache-cpu-share 0 \
--fit off \
-fa on \
-ctk q8_0 \
-ctv q8_0 \
--parallel 1 \
--spec-type none \
--host 127.0.0.1 \
--port 9931Conversational workload results
The actual performance was close to the tuner prediction. Observed GPU hotspot:
7. GLM — real HTML/CMS coding workloadInstead of repetitive text generation, I asked the model to create a complete test HTML page with login functionality and a minimal CMS. Original prompt: English translation: The model produced a complete HTML/CSS/JavaScript document containing:
The generated application uses demonstration-only client-side authentication. It is not production-secure, and functional browser testing was not performed. Real coding performance
Combined result
The WebUI made two sequential requests during this workload. Throughput over generation progressEach value represents the cumulative average throughput within its respective request. xychart-beta
title "GLM Vulkan - Average throughput during coding"
x-axis ["R1-100", "R1-819", "R1-2046", "R1-3738", "R2-100", "R2-1010", "R2-2028", "R2-3746"]
y-axis "Tokens/s" 0 --> 25
line [18.59, 21.18, 20.62, 18.99, 15.77, 15.78, 15.50, 14.78]
Performance gradually decreased as the workload progressed. The exact cause of this decrease has not yet been established. Context growth, expert routing, cache behavior and backend overhead are possible factors that require further investigation. Final server log excerpts8. Temperature observationsOne of the most interesting differences was GPU temperature. Additional observations:
These are informal hardware observations, not controlled thermal or power-efficiency benchmarks. Power consumption, ambient temperature and identical fan curves were not recorded. 9. Summary
10. ConclusionsVulkan is a viable alternative to ROCm on my RX 7800 XT configuration. Main observations:
These results suggest that tuning CPU share and expert cache size independently for each backend is important. The tests used a 65536-token context allocation, but did not fill the entire context window. Further controlled testing is needed to compare power efficiency, long-context performance, and identical coding workloads across both backends. Thank you to the llama.cpp developers for the Vulkan backend, MoE cache implementation, native tuning tools and speculative decoding support. Coding workload — functional verificationThe generated CMS was manually tested in a browser and confirmed to work. GLM successfully extended its original implementation with a public website, article management, publishing and draft functionality. Attached files are the original model-generated HTML source code, without manual corrections.
Context Across all turns |
Flint Q8_0 — 25.1 tok/s on RX 7800 XT 16GB (Vulkan, 120K context)Hi everyone! Sharing some benchmark results from my local llama.cpp Vulkan setup. I managed to run Flint Q8_0 (~40B total / ~2.5B active parameters) on a single AMD Radeon RX 7800 XT 16GB, using CPU/GPU hybrid MoE execution. Hardware
llama.cpp
Benchmark results
The last three configurations were tested with 256 warmup tokens followed by 1024 generated tokens using llama-server's /completion endpoint. These are single-run measurements, not averages across multiple repetitions. Best configurationThe fastest tested configuration used:
Result: 25.10 tok/s with 11.90 GiB peak VRAM. The GPU utilization observed during testing was around 50–60%, with GPU clocks around 1700 MHz. These utilization and clock figures are observations, not controlled measurements. Speculative decodingI also tested
The measured draft acceptance rate during the main request was approximately 14.3%. For this workload, speculative decoding was slower, so I disabled it. Observations
Next stepsI plan to test:
My goal is to find the best performance/VRAM balance on a single 16GB Radeon GPU. If anyone has experience tuning hybrid MoE inference on Vulkan/RADV, I'd be interested in suggestions. Thanks to the llama.cpp developers! |
[Vulkan][AMD RDNA3] Untapped GPU Performance Potential — Two Concurrent 40B MoE Models on RX 7800 XTSummaryI would like to bring attention to the performance potential of the existing Vulkan backend in llama.cpp, particularly on AMD RDNA3 GPUs. During local experiments, I successfully ran two independent instances of Flint Q8_0 (approximately 40B MoE) simultaneously on a single AMD Radeon RX 7800 XT with 16 GB VRAM. Both instances maintained approximately 16 tokens/second. The most interesting observation was that GPU utilization remained around 70%, despite both models generating tokens concurrently. This raises an important question: Could the Vulkan backend achieve significantly higher inference throughput through improved GPU scheduling, MoE execution, and memory management? I am not suggesting that Vulkan is inherently faster than ROCm. However, my experience suggests that Vulkan deserves further performance optimization rather than being treated primarily as a compatibility solution. Hardware
Exact llama.cpp RevisionExperimental SetupTwo independent Both used the same model file, with separate inference contexts. Server Configuration
Earlier tests also used a 2,048 MiB MoE cache. Measured PerformanceConcurrent Token Generation
Both model instances were generating simultaneously. System Resource Observations
These figures are from practical local experiments rather than a standardized benchmark suite. The resource measurements were collected during the experimentation period, and not every value has been independently verified against an identical workload. Nevertheless, the simultaneous generation results are interesting. Why This Matters1. Vulkan May Have Additional Performance HeadroomTwo large MoE inference instances were able to run on one consumer GPU without consistently reporting full GPU utilization. This does not necessarily mean that 30% additional performance is immediately available. GPU utilization alone cannot identify the limiting factor. However, it does suggest that the current execution behavior deserves closer examination. Potential bottlenecks include:
2. Multi-Instance Performance Is ImportantMany local AI workloads involve multiple simultaneous inference requests. These may include:
For these workloads, aggregate generation throughput can matter as much as single-request tokens/second. The Vulkan backend may already have valuable execution characteristics for concurrent inference. 3. GPU Utilization Does Not Equal Useful PerformanceA GPU operating at 100% reported utilization is not necessarily delivering optimal inference efficiency. The important measurements are:
A backend that produces competitive throughput with lower resource usage can be valuable even if GPU utilization is lower. Suggested Areas for InvestigationA. AMD RDNA3 Vulkan Compute OptimizationInvestigate opportunities to improve:
B. MoE Expert ExecutionInvestigate whether additional performance can be obtained through:
C. Concurrent InferenceEvaluate the Vulkan backend with:
Compare both single-request latency and aggregate throughput. Existing Open-Source Optimization WorkThere is already useful Vulkan and AMD-specific development worth investigating.
The preferred approach would be to review existing optimization work and evaluate suitable changes rather than implementing duplicate functionality. What I Am RequestingI am not requesting a new Vulkan backend. llama.cpp already has one. I am asking whether the maintainers would consider investigating its remaining performance potential, especially for:
Key ObservationOn a single AMD Radeon RX 7800 XT: The result suggests that Vulkan can support useful concurrent inference performance on consumer AMD hardware. It does not establish an architectural performance ceiling or prove that Vulkan must outperform ROCm. However, it is a practical reason to investigate further optimization. Final QuestionIs there interest among llama.cpp Vulkan developers in investigating AMD RDNA3 performance headroom, particularly for concurrent large-MoE inference? I believe there is substantial potential in the existing Vulkan backend. The goal is not simply to increase GPU utilization to 100%. The goal is to obtain more useful inference throughput from the same hardware, ideally without significantly increasing memory consumption or power usage. |
Uh oh!
There was an error while loading. Please reload this page.
I would like to share benchmark results from my consumer AMD desktop, including KV cache tuning, MoE expert caching, CPU thread tuning and speculative decoding.
Hardware
1. Gemma 4 E4B IT — Q5_K_M + MTP
Model: gemma-4-E4B-it-Q5_K_M.gguf
Draft model: mtp-gemma-4-E4B-it.gguf
Allocated context: 65536 tokens.
Prompt: 76 tokens.
Generation: 900 tokens.
All three tests completed successfully (HTTP 200).
F16 KV cache delivered the best generation performance.
2. GLM-4.7-Flash Q6_K — KV cache tuning
Model size: 22.99 GiB.
Allocated context: 65536 tokens.
Prompt: 72 tokens.
Generation: 900 tokens.
3. GLM-4.7-Flash Q6_K — llama-bench
4. GLM-4.7-Flash Q6_K — MoE expert cache tuning
Increasing the GPU expert cache significantly improved generation performance.
5. Qwen3.8-Flash-Next GSQ-RCO IQ3_S
Allocated context: 65536 tokens.
The best observed configuration was a 9152 MiB expert cache with CPU share set to 0.50.
For reference, the same model running through Strata on this machine typically delivers around 40 tokens/s during software development workloads.
This is not a controlled head-to-head comparison because the inference settings and workloads differ.
Strata report:
Niko1221/Strata#6147
6. Qwen3.8-27B Q4_0
Model size: 14.94 GiB.
Parameters: 27.32B.
Fit context target: 65536.
Flash Attention: ON.
All four benchmark configurations completed successfully.
Conclusions
Testing notes
These measurements were collected from local llama-bench and llama-server logs.
The 64K context allocation does not mean the context was fully populated during testing.
Some MoE cache tests used different generation lengths. The results should therefore be treated as observed tuning results rather than a strictly controlled benchmark matrix.
The exact ROCm version, complete build flags and local source modifications are not included in this report. The results should not be assumed to represent an unmodified upstream build.
I hope these results are useful to llama.cpp developers and other users running large local models on consumer AMD hardware.
Thank you for your work!
All reactions