AMD vs NVIDIA for local LLMs: one matched pair
On the Llama 2 7B Q4_0 test, Vulkan, no flash attention, the RX 7900 XTX row is 11.3 % above the RTX 3090 row, 182.63 against 164.05 tokens/s. ROCm against CUDA, it is 5.7 % above.
+11.3 %
Vulkan, AMD row against NVIDIA row
Cited measurement+5.7 %
ROCm against CUDA
Cited measurement+1.4 %
the makers’ ratings, each in its own label
Maker’s ratingFour rows, two cards
Four cited rows from three threads, with different posters and builds. They show a pattern in these rows, not a rule about the cards. Vulkan rows: no flash attention. The RTX 3090 Vulkan row notes coopmat2, a Vulkan path that only NVIDIA cards use; the AMD row has no such note.
What makes a pair fair
- The same memory. Both cards here have 24 GB, so neither is held back by what fits.
- The same test model. Every row is Llama 2 7B Q4_0, tg128, the shared llama.cpp test.
- The same backend, where one exists. Vulkan runs on both cards, so it is the like-for-like pair. ROCm and CUDA are each card’s own route and not one thing.
- Ratings read with care. NVIDIA prints “Graphics Card Power” and AMD prints “Typical Board Power (Desktop)”, so 350 and 355 W are not one measurement.
The figures
| Card | Speed on its own backend | Speed on Vulkan | Maker’s rating | Estimated GPU watts |
|---|---|---|---|---|
| RX 7900 XTX24 GB video memory | 167.11 tokens/sROCm, llama.cpp discussion 15021, @Diablo-D3Cited measurement | 182.63 tokens/sVulkan, llama.cpp discussion 10879 (Vulkan scoreboard), row “AMD Radeon RX 7900 XTX”Cited measurement | 355 WTypical Board Power (Desktop), maker’s pageMaker’s rating | 136 to 280 W38 to 79 % of 355 WEstimate |
| RTX 309024 GB video memory | 158.16 tokens/sCUDA, llama.cpp discussion 15013, @m18coppolaCited measurement | 164.05 tokens/sVulkan, llama.cpp discussion 10879 (Vulkan scoreboard), row “Nvidia RTX 3090”Cited measurement | 350 WGraphics Card Power, maker’s pageMaker’s rating | 134 to 276 W38 to 79 % of 350 WEstimate |
Each speed is one poster’s row. A gap of a few percent between two rows from different builds is not a result. For ROCm and Vulkan on AMD cards alone, see AMD GPUs for local LLMs.
Watts
No study measures either card here, so each gets the same share of its rating: RTX 3090 134 to 276 W and RX 7900 XTX 136 to 280 W while generating. Estimate
The share holds for a graphics card running a small model, not for a larger one. How the band is set. The calculator turns watts and speed into a running cost at your own price per kWh.
What this page cannot say
- Speed for any model other than the shared Llama 2 7B test.
- What either card costs, where it is in stock, or how long a driver supports it.
- The effect of a longer context, or of two cards in one PC.
- A ranking. Four rows from three posters put neither card first.
Each card on its own page: RX 7900 XTX, RTX 3090. Same memory size: 24 GB cards. Three NVIDIA cards side by side: RTX 3090 vs 4090 vs 5090.