llm workload · 63 runs on record

Llama 3 8B (Q4_K_M)

Meta Llama 3 8B Instruct, Q4_K_M GGUF, batch 1, 4K context.

Primary metric: Tokens / sec (tok/s)

Reference prompts

Representative prompts for this workload. Exact prompts and harness settings still depend on the cited source for each record.

  • Prompt 1

    Explain the relationship between attention heads and KV cache memory usage for a 7B-parameter transformer at 4K context.

  • Prompt 2

    Write a 60-word product description for a mid-range AI workstation: 1× RTX 4090, 64GB DDR5, 2TB NVMe. Highlight one trade-off.

  • Prompt 3

    List five concrete differences between INT4 weight-only quantization (Q4_K_M) and INT8 quantization (Q8_0) for inference.

  • Prompt 4

    I have 12GB of VRAM and want to run a coding assistant locally. What model size and quantization fit, with what context length?

  • Prompt 5

    Summarize the difference between greedy decoding and nucleus sampling in 3 short bullet points.

Reference runtime command

A representative invocation for reproducing this workload class. Source-specific runs may use adjacent runtimes unless the record says otherwise.

shell
llama-server -m llama-3-8b-instruct.Q4_K_M.gguf -c 4096 -ngl 999 --seed 42

Single batch. Q4_K_M GGUF (~5GB). Median of 5 runs, prompt eval excluded.

Full leaderboard

Every record for Llama 3 8B Q4.

Top 10 leaderboard

Llama 3 8B (Q4_K_M) · sorted by tokens / sec

Bar chart: Top 10 devices ranked by Tokens / sec for Llama 3 8B (Q4_K_M). 1. AMD Instinct MI300X 192GB at 920 tok/s. 2. NVIDIA GeForce RTX 5090 32GB at 720 tok/s. 3. NVIDIA GeForce RTX 4090 24GB at 540 tok/s. 4. NVIDIA B200 192GB at 360 tok/s. 5. AWS Trainium2 at 215 tok/s.

Value frontier, MSRP vs tokens / sec

Each dot is a device. Top-left is best value (cheap + fast).

Scatter chart of MSRP versus Tokens / sec across 63 devices. Devices in the upper-left region offer the best price/performance ratio. Top 5 by primary metric: Instinct MI300X 192GB at $15,000 delivering 920 tok/s; GeForce RTX 5090 32GB at $1,999 delivering 720 tok/s; GeForce RTX 4090 24GB at $1,599 delivering 540 tok/s; B200 192GB at $39,999 delivering 360 tok/s; AWS Trainium2 at $28,000 delivering 215 tok/s.

Full leaderboard

Click any row for detailed breakdown. Click column headers to sort.

#DeviceVerifBuy
1
AMD Instinct MI300X 192GBDatacenter GPU
AMD·Q4_K_M·4K ctx
6
920tok/s
192 GB750 W$15k1.23 tok/s/W$0.17/MAmazon
2
NVIDIA GeForce RTX 5090 32GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
720tok/s
32 GB575 W$2.0k1.25 tok/s/W$0.03/MAmazon
3
NVIDIA GeForce RTX 4090 24GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
540tok/s
24 GB450 W$1.6k1.20 tok/s/W$0.03/MAmazon
#4
NVIDIA B200 192GBDatacenter GPU
NVIDIA·Q4_K_M·128K ctx
6
360tok/s
192 GB1000 W$40k0.36 tok/s/W$0.0012/kAmazon
#5
AWS Trainium2ASIC
AWS·Q4_K_M·8K ctx
6
215tok/s
96 GB500 W$28k0.43 tok/s/W$0.0014/kAmazon
#6
NVIDIA H200 141GBDatacenter GPU
NVIDIA·Q4_K_M·128K ctx
6
215tok/s
141 GB700 W$30k0.31 tok/s/W$0.0015/kAmazon
#7
NVIDIA GeForce RTX 5090 32GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
182tok/s
σ 5.6
32 GB575 W$2.0k0.32 tok/s/W$0.12/MAmazon
#8
NVIDIA H100 SXM5 80GBDatacenter GPU
NVIDIA·Q4_K_M·128K ctx
6
178tok/s
80 GB700 W$25k0.25 tok/s/W$0.0015/kAmazon
#9
NVIDIA GeForce RTX 5080 16GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
165tok/s
σ 4.8
16 GB360 W$9990.46 tok/s/W$0.06/MAmazon
#10
NVIDIA GeForce RTX 5090 32GBConsumer GPU
NVIDIA·Q4_K_M·32K ctx
6
162tok/s
32 GB575 W$2.0k0.28 tok/s/W$0.13/MAmazon
#11
NVIDIA GeForce RTX 4090 24GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
132tok/s
σ 3.8
24 GB450 W$1.6k0.29 tok/s/W$0.13/MAmazon
#12
NVIDIA GeForce RTX 5070 Ti 16GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
128tok/s
16 GB300 W$7490.43 tok/s/W$0.06/MAmazon
#13
AMD Instinct MI300X 192GBDatacenter GPU
AMD·Q4_K_M·128K ctx
6
122tok/s
192 GB750 W$15k0.16 tok/s/W$0.0013/kAmazon
#14
NVIDIA GeForce RTX 4090 24GBConsumer GPU
NVIDIA·Q4_K_M·32K ctx
6
112tok/s
24 GB450 W$1.6k0.25 tok/s/W$0.15/MAmazon
#15
NVIDIA GeForce RTX 4080 Super 16GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
102tok/s
σ 3.4
16 GB320 W$9990.32 tok/s/W$0.10/MAmazon
#16
Apple M3 Ultra (80c GPU, 512GB)Apple Silicon
Apple·Q4_K_M·8K ctx
6
102tok/s
512 GB270 W$9.5k0.38 tok/s/W$0.98/MAmazon
#17
AMD Radeon RX 7900 XTX 24GBConsumer GPU
AMD·Q4_K_M·4K ctx
6
95tok/s
24 GB355 W$9990.27 tok/s/W$0.11/MAmazon
#18
NVIDIA GeForce RTX 5070 12GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
92tok/s
12 GB250 W$5490.37 tok/s/W$0.06/MAmazon
#19
NVIDIA GeForce RTX 3090 24GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
88tok/s
24 GB350 W$1.5k0.25 tok/s/W$0.18/MAmazon
#20
NVIDIA GeForce RTX 4070 Ti 12GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
78tok/s
12 GB285 W$7990.27 tok/s/W$0.11/MAmazon
#21
NVIDIA GeForce RTX 5060 Ti 16GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
72tok/s
16 GB180 W$4490.40 tok/s/W$0.07/MAmazon
#22
AMD Radeon RX 7800 XT 16GBConsumer GPU
AMD·Q4_K_M·4K ctx
6
64tok/s
16 GB263 W$4990.24 tok/s/W$0.08/MAmazon
#23
NVIDIA A40 48GBPro GPU
NVIDIA·Q4_K_M·4K ctx
6
64tok/s
48 GB300 W$5.5k0.21 tok/s/W$0.91/MAmazon
#24
NVIDIA GeForce RTX 4070 12GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
62tok/s
12 GB200 W$5990.31 tok/s/W$0.10/MAmazon
#25
NVIDIA RTX A5000 24GBPro GPU
NVIDIA·Q4_K_M·4K ctx
6
58tok/s
24 GB230 W$2.2k0.25 tok/s/W$0.40/MAmazon
#26
NVIDIA GeForce RTX 5060 Ti 8GBConsumer GPU
NVIDIA·Q4_K_M·2K ctx
6
58tok/s
8 GB165 W$3790.35 tok/s/W$0.07/MAmazon
#27
Apple M4 Max (40c GPU, 128GB)Apple Silicon
Apple·Q4_K_M·8K ctx
6
56tok/s
σ 1.8
128 GB70 W$4.7k0.80 tok/s/W$0.89/MAmazon
#28
AMD Radeon RX 7700 XT 12GBConsumer GPU
AMD·Q4_K_M·4K ctx
6
52tok/s
12 GB245 W$4490.21 tok/s/W$0.09/MAmazon
#29
Apple M3 Max (40c GPU, 64GB)Apple Silicon
Apple·Q4_K_M·8K ctx
6
50tok/s
64 GB65 W$3.5k0.77 tok/s/W$0.74/MAmazon
#30
NVIDIA GeForce RTX 4060 Ti 16GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
48tok/s
16 GB165 W$4990.29 tok/s/W$0.11/MAmazon
#31
NVIDIA GeForce RTX 5060 8GBConsumer GPU
NVIDIA·Q4_K_M·2K ctx
6
48tok/s
8 GB145 W$2990.33 tok/s/W$0.07/MAmazon
#32
Apple M4 Max (40c GPU, 128GB)Apple Silicon
Apple·Q4_K_M·32K ctx
6
48tok/s
128 GB65 W$4.7k0.74 tok/s/W$0.0010/kAmazon
#33
NVIDIA GeForce RTX 3060 12GBConsumer GPU
NVIDIA·Q4_K_M·4K ctx
6
42tok/s
12 GB170 W$3290.25 tok/s/W$0.08/MAmazon
#34
NVIDIA RTX A4000 16GBPro GPU
NVIDIA·Q4_K_M·4K ctx
6
42tok/s
16 GB140 W$1.0k0.30 tok/s/W$0.25/MAmazon
#35
NVIDIA GeForce RTX 4060 8GBConsumer GPU
NVIDIA·Q4_K_M·2K ctx
6
42tok/s
8 GB115 W$2990.36 tok/s/W$0.07/MAmazon
#36
Intel Arc B580 12GBConsumer GPU
Intel·Q4_K_M·4K ctx
6
38tok/s
12 GB190 W$2490.20 tok/s/W$0.07/MAmazon
#37
Apple M2 Max (38c GPU, 96GB)Apple Silicon
Apple·Q4_K_M·4K ctx
6
38tok/s
96 GB60 W$3.3k0.63 tok/s/W$0.92/MAmazon
#38
Apple M4 Pro (20c GPU, 48GB)Apple Silicon
Apple·Q4_K_M·8K ctx
6
38tok/s
48 GB50 W$2.5k0.76 tok/s/W$0.69/MAmazon
#39
Apple M3 Ultra (80c GPU, 512GB)Apple Silicon
Apple·Q4_K_M·128K ctx
6
38tok/s
512 GB100 W$10.0k0.38 tok/s/W$0.0028/kAmazon
#40
Intel Arc A770 16GBConsumer GPU
Intel·Q4_K_M·4K ctx
6
36tok/s
16 GB225 W$3290.16 tok/s/W$0.10/MAmazon
#41
NVIDIA GeForce RTX 4060 8GBConsumer GPU
NVIDIA·Q4_K_M·2K ctx
6
32tok/s
8 GB115 W$2990.28 tok/s/W$0.10/MAmazon
#42
Apple Mac mini M4 Pro 24GBApple Silicon
Apple·Q4_K_M·8K ctx
6
32tok/s
24 GB35 W$1.4k0.91 tok/s/W$0.46/MAmazon
#43
AMD Radeon RX 7600 8GBConsumer GPU
AMD·Q4_K_M·2K ctx
6
28tok/s
8 GB165 W$2690.17 tok/s/W$0.10/MAmazon
#44
AMD Ryzen AI Max+ 395 (Strix Halo, 96GB)NPU
AMD·Q4_K_M·8K ctx
6
28tok/s
96 GB120 W$2.2k0.23 tok/s/W$0.83/MAmazon
#45
Intel Arc A750 8GBConsumer GPU
Intel·Q4_K_M·2K ctx
6
24tok/s
8 GB225 W$2490.11 tok/s/W$0.11/MAmazon
#46
NVIDIA Jetson AGX Orin 64GBEdge
NVIDIA·Q4_K_M·4K ctx
6
22tok/s
64 GB60 W$2.0k0.37 tok/s/W$0.96/MAmazon
#47
Apple M3 Pro (18c GPU, 36GB)Apple Silicon
Apple·Q4_K_M·4K ctx
6
22tok/s
36 GB50 W$2.5k0.44 tok/s/W$0.0012/kAmazon
#48
Apple M2 Pro (19c GPU, 32GB)Apple Silicon
Apple·Q4_K_M·4K ctx
6
20tok/s
32 GB45 W$2.0k0.44 tok/s/W$0.0011/kAmazon
#49
Apple M4 (10c GPU, 24GB)Apple Silicon
Apple·Q4_K_M·4K ctx
6
18tok/s
24 GB22 W$1.6k0.82 tok/s/W$0.94/MAmazon
#50
NVIDIA Jetson Orin NX 16GBEdge
NVIDIA·Q4_K_M·4K ctx
6
18tok/s
16 GB25 W$5990.72 tok/s/W$0.35/MAmazon
#51
Apple Mac mini M4 24GBApple Silicon
Apple·Q4_K_M·8K ctx
6
17tok/s
24 GB22 W$9990.77 tok/s/W$0.62/MAmazon
#52
Apple Mac mini M4 16GBApple Silicon
Apple·Q4_K_M·4K ctx
6
16tok/s
16 GB18 W$5990.89 tok/s/W$0.40/MAmazon
#53
NVIDIA Jetson Orin Nano Super 8GBEdge
NVIDIA·Q4_K_M·2K ctx
6
14tok/s
8 GB25 W$2490.56 tok/s/W$0.19/MAmazon
#54
Intel Xeon 6980P (128c Granite Rapids)CPU-only
Intel·Q4_K_M·4K ctx
6
14tok/s
, 500 W$18k0.03 tok/s/W$0.0134/kAmazon
#55
AMD Threadripper PRO 7995WX (96-core)CPU-only
AMD·Q4_K_M·4K ctx
6
12tok/s
, 350 W$10.0k0.03 tok/s/W$0.0088/kAmazon
#56
Qualcomm Snapdragon X Elite (X1E-84-100)NPU
Qualcomm·INT4·4K ctx
6
12tok/s
, 23 W$1.2k0.52 tok/s/W$0.0011/kAmazon
#57
Qualcomm Snapdragon X Elite (X1E-84-100)NPU
Qualcomm·INT4·2K ctx
6
11tok/s
, 23 W$1.2k0.48 tok/s/W$0.0012/kAmazon
#58
Intel Core Ultra 9 288V (Lunar Lake) NPUNPU
Intel·INT4·2K ctx
6
9tok/s
, 17 W$5490.53 tok/s/W$0.64/MAmazon
#59
NVIDIA Jetson Orin Nano 8GBEdge
NVIDIA·Q4_K_M·2K ctx
6
8tok/s
8 GB15 W$4990.53 tok/s/W$0.66/MAmazon
#60
AMD Ryzen AI 9 HX 370 NPUNPU
AMD·INT4·2K ctx
6
7tok/s
, 28 W$1.5k0.25 tok/s/W$0.0023/kAmazon
#61
AMD Ryzen AI 9 365 NPUNPU
AMD·INT4·2K ctx
6
6tok/s
, 28 W$1.2k0.21 tok/s/W$0.0021/kAmazon
#62
Intel Core Ultra 7 258V (Lunar Lake)NPU
Intel·INT4·2K ctx
6
6tok/s
, 17 W$1.3k0.32 tok/s/W$0.0025/kAmazon
#63
Raspberry Pi 5 + AI HAT+ (Hailo-8)Edge
Raspberry Pi·INT8·1K ctx
6
1tok/s
8 GB12 W$1500.10 tok/s/W$0.0013/kAmazon
Sorted by Tokens / sec (high → low)

Cite this benchmark

Use this in your paper, blog post, or comparison table.

BibTeX
@misc{myaihardware_llama3-8b-q4_2026,
  title  = {MyAI Bench: Llama 3 8B (Q4_K_M)},
  author = {{MyAIHardware Contributors}},
  year   = {2026},
  url    = {https://www.myaihardware.com/benchmarks/workload/llama3-8b-q4},
  note   = {Version 1.3, accessed 2026-08-27}
}
APA
MyAIHardware Contributors. (2026). MyAI Bench: Llama 3 8B (Q4_K_M). MyAIHardware. Retrieved 2026-08-27, from https://www.myaihardware.com/benchmarks/workload/llama3-8b-q4
MLA
MyAIHardware Contributors. "MyAI Bench: Llama 3 8B (Q4_K_M)." MyAIHardware, 2026, https://www.myaihardware.com/benchmarks/workload/llama3-8b-q4. Accessed 2026-08-27.
Plain text
MyAI Bench, Llama 3 8B (Q4_K_M). MyAIHardware Contributors, 2026. Version 1.3. https://www.myaihardware.com/benchmarks/workload/llama3-8b-q4 (accessed 2026-08-27).