Token Bench Log

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 rating

Four rows, two cards

RX 7900 XTX and RTX 3090, both 24 GB: ROCm 167.11 and Vulkan 182.63 against CUDA 158.16 and Vulkan 164.05 tokens per secondRX 7900 XTX: ROCm 167.11, Vulkan 182.63 tokens per second; RTX 3090: CUDA 158.16, Vulkan 164.05 tokens per second. Vulkan rows: no flash attention.Tokens/s on the shared test, one row for each backend0100200RX 7900 XTX167.11ROCm182.63VulkanRTX 3090158.16CUDA164.05Vulkan

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

The matched pair, one row each: speed on two backends, the maker’s rating and the estimate
CardSpeed on its own backendSpeed on VulkanMaker’s ratingEstimated GPU watts
RX 7900 XTX24 GB video memory167.11 tokens/sROCm, llama.cpp discussion 15021, @Diablo-D3Cited measurement182.63 tokens/sVulkan, llama.cpp discussion 10879 (Vulkan scoreboard), row “AMD Radeon RX 7900 XTX”Cited measurement355 WTypical Board Power (Desktop), maker’s pageMaker’s rating136 to 280 W38 to 79 % of 355 WEstimate
RTX 309024 GB video memory158.16 tokens/sCUDA, llama.cpp discussion 15013, @m18coppolaCited measurement164.05 tokens/sVulkan, llama.cpp discussion 10879 (Vulkan scoreboard), row “Nvidia RTX 3090”Cited measurement350 WGraphics Card Power, maker’s pageMaker’s rating134 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.