Qwen 3.8 on Two Radeon R9700s: Enthusiast Pushes vLLM from 13 to 40 Tokens/s
The author built a home LLM server with two AMD Radeon R9700 cards and tried to run Qwen 3.8 through vLLM for agents. In the original BF16 format, the model delivered only 13 tokens per second. After switching to FP8, enabling MTP, and calibrating matrices, the benchmark showed a stable 40 tokens per second at a 128K context with 3–4 users. The lesson for RDNA card owners: ready-made optimizations often don't work there, and speed has to be won by hand.
AI-processed from Хабр: Машинное обучение; edited by Hamidun News
Running a large model at home is only half the job. The second half begins when you discover that on AMD graphics cards, half of the usual optimizations simply don't work for the consumer RDNA architecture. The author of a post on Habr built a server with two AMD Radeon R9700 cards, installed vLLM, and went through several iterations to squeeze speed out of Qwen 3.8, a model he wanted to use to run AI agents such as Hermes. The result: he went from 13 tokens per second to a stable 40.
Why the starting speed was so low
For agent workloads, the author considers a 64K-token context window the minimum. In the original BF16 format, the model needed about 75 GB of memory for that window, while the server has less than 64 GB. He managed to get it running, but the speed was only 13 tokens per second; after configuration changes, it reached 15–17.
He ran everything in a ready-made Docker image with ROCm 7.14 and vLLM 0.23.0. These versions aren't the newest, but according to the author, this is the latest image with RDNA support: newer images exist for AMD's CDNA data center accelerators, while consumer cards wait longer for updates. There are also custom vLLM builds for this pair of cards, but the author deliberately took the longer route for the learning experience.
Switching to FP8 solved the memory problem, but the speed stayed about as low as before. The author attributes this to Qwen 3.8's hybrid architecture: it includes mamba layers, for which vLLM's standard accelerations don't activate, so the system falls back to Triton, a general-purpose but slow computation path.
What helped: MTP and custom matrix profiles
The first lever was the built-in MTP layer. Normally, a model generates tokens strictly one at a time, and each step requires streaming all the weights through memory. The theoretical speed ceiling is memory bandwidth divided by the size of the weights. With MTP enabled, the model predicts several tokens ahead at once, and the number of tokens is set in the configuration.
There is also a more powerful option: the DFlash2 speculative drafter. The author writes that it can accelerate generation by 5–10 times. But in essence, it's a second, lightweight model, so it requires additional memory and more complex setup. On this server, with memory to spare, that path doesn't look obvious.
The hardest part turned out to be calibrating the W8A8 GEMM matrices, the computations in which both weights and activations are stored in 8 bits (for the FP8 format). There are no ready-made profiles for RDNA4 (gfx1201), so vLLM uses a "generic" configuration. The author admits that even Gemini couldn't offer anything useful beyond copying the CDNA matrices, and in practice that didn't help either.
The bundled script from vLLM itself, benchmark_w8a8_block_fp8.py, came to the rescue. Building on it, the author wrote his own calibration script: it iterates over Triton kernel configurations on the specific graphics card and writes JSON profiles with optimal parameters for the model's actual matrix sizes. This didn't produce a dramatic speed increase, but the warnings disappeared from the logs.
Results and what follows from them
The final benchmark shows a stable 40 tokens per second using the standard vllm-rocm image, with a 128K context and 3–4 concurrent users. The author is candid that this is not the ceiling: he has read about 120 tokens with the MXFP4 format and the full set of optimizations.
For practitioners, this story points to several takeaways:
- If you have less memory than BF16 requires, switch to FP8 right away: the fight to run in BF16 consumed time without delivering speed.
- Hybrid models with mamba layers on RDNA can get stuck on the Triton fallback, and speed won't improve no matter how much you tweak the config.
- Warnings about missing GEMM profiles in vLLM logs signal that no tuned kernels exist for your card. You can generate them with the standard benchmark scripts.
- MTP is a relatively cheap way to speed things up, while a drafter like DFlash2 delivers more but costs memory and complexity.
There are caveats too. This is one enthusiast's personal experience, without a table of measurements for each step, so the contribution of individual settings to the final 40 tokens can't be assessed. It's also not stated whether the 40 tokens per second is per user or aggregate. Still, as a map of the obstacles for anyone building a local agent server on AMD, the post is useful: it shows exactly where the standard path breaks and what to try next.
- Nov 26, 2026Huawei Is Designing HBM Memory With Twice as Many Contacts as Korean Makers
- Nov 26, 2026Canada adds C$700 million for AI compute and will back domestic cloud providers
- Nov 26, 2026Sber Releases GigaChat 4: Two Models with 37B and 708B Parameters and a 1M-Token Context
- Nov 26, 2026Claude Code with Opus 5.5 solved 75.3% of Kotlin tasks at $0.84 each in JetBrains' benchmark
Key Questions Answered
Why the starting speed was so low?
For agent workloads, the author considers a 64K-token context window the minimum. In the original BF16 format, the model needed about 75 GB of memory for that window, while the server has less than 64 GB. He managed to get it running, but the speed was only 13 tokens per second; after configuration changes, it reached 15–17. He ran everything in a ready-made Docker image with ROCm 7.14 and vLLM 0.23.0.
What helped: MTP and custom matrix profiles?
The first lever was the built-in MTP layer. Normally, a model generates tokens strictly one at a time, and each step requires streaming all the weights through memory. The theoretical speed ceiling is memory bandwidth divided by the size of the weights. With MTP enabled, the model predicts several tokens ahead at once, and the number of tokens is set in the configuration. There is also a more powerful option: the DFlash2 speculative drafter. The author writes that it can accelerate generation by 5–10 times.
What are the key details on Results and what follows from them?
The final benchmark shows a stable 40 tokens per second using the standard vllm-rocm image, with a 128K context and 3–4 concurrent users. The author is candid that this is not the ceiling: he has read about 120 tokens with the MXFP4 format and the full set of optimizations. For practitioners, this story points to several takeaways: If you have less memory than BF16 requires, switch to FP8 right away: the fight to run in BF16 consumed time without delivering speed.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
