Gemma · Mar 2026 · 30.7B
Gemma 4 31B: what runs it and what it costs today
At Q4_K_M with 8K of context it needs about 21 GB of memory. The cheapest machine that runs it today is the NVIDIA Tesla P40 at $270. With 5 GB of the weights in system RAM, the NVIDIA Tesla V100 16GB SXM2 at $178 also runs it, at about 6.9 tokens per second.
By quantization
Memory needed includes the KV cache for 8K of context and runtime overhead. The cheapest machine is the lowest live price, item plus shipping, that fits with room for that context.
| Quant | Needs | Cheapest machine that fits today | Price |
|---|---|---|---|
| FP16 | 64 GB | Apple Mac mini M5 Pro, 64 GB | $3,063.52 |
| Q8_0 | 35 GB | NVIDIA A100 40GB SXM4 | $2,222.16 |
| Q6_K | 27 GB | NVIDIA Tesla V100 32GB SXM | $599 |
| Q5_K_M | 24 GB | NVIDIA Tesla P40 | $270 |
| Q4_K_M | 21 GB | NVIDIA Tesla P40 | $270 |
| Q3_K_M | 17 GB | NVIDIA Tesla P40 | $270 |
| IQ2_M | 13 GB | NVIDIA Tesla V100 16GB SXM2 | $178 |
Every machine at Q4_K_M 54 fit
| Machine | Memory | Fit at 8K | Est. speed at 8K | Price | Per GB |
|---|---|---|---|---|---|
| NVIDIA Tesla P40 card | 24 GB | fits 44K ctx | ~12 tok/s ~11 at 32K | $270 eBay | $11/GB |
| NVIDIA Tesla V100 32GB SXM card | 32 GB | fits 128K+ ctx | ~30 tok/s ~27 at 32K | $599 eBay | $18/GB |
| NVIDIA TITAN RTX 24GB card | 24 GB | fits 44K ctx | ~23 tok/s ~20 at 32K | $928.95 eBay | $38/GB |
| NVIDIA Tesla V100 32GB PCIe card | 32 GB | fits 128K+ ctx | ~30 tok/s ~27 at 32K | $1,058.39 eBay | $33/GB |
| AMD Radeon RX 7900 XTX card | 24 GB | fits 44K ctx | ~25 tok/s ~22 at 32K | $1,125 eBay | $46/GB |
| Intel Arc Pro B70 32GB card | 32 GB | fits 128K+ ctx | ~9.4 tok/s ~8.5 at 32K | $1,370.24 eBay | $42/GB |
| NVIDIA GeForce RTX 3090 card | 24 GB | fits 44K ctx | ~31 tok/s ~28 at 32K | $1,491.90 eBay | $62/GB |
| NVIDIA GeForce RTX 3090 Ti card | 24 GB | fits 44K ctx | ~34 tok/s ~31 at 32K | $1,800.62 eBay | $75/GB |
| AMD Radeon AI PRO R9700 card | 32 GB | fits 128K+ ctx | ~16 tok/s ~15 at 32K | $1,913.93 eBay | $59/GB |
| NVIDIA RTX A5000 card | 24 GB | fits 44K ctx | ~26 tok/s ~23 at 32K | $2,203.60 eBay | $91/GB |
| NVIDIA A100 40GB SXM4 card | 40 GB | fits 128K+ ctx | ~52 tok/s ~47 at 32K | $2,222.16 eBay | $55/GB |
| NVIDIA RTX PRO 4000 Blackwell card | 24 GB | fits 44K ctx | ~23 tok/s ~20 at 32K | $2,564.99 eBay | $106/GB |
| NVIDIA RTX PRO 4000 Blackwell SFF card | 24 GB | fits 44K ctx | ~14 tok/s ~13 at 32K | $2,900 eBay | $120/GB |
| Apple Mac mini M5 Pro, 64 GB desktop box | 64 GB | fits 128K+ ctx | ~9.5 tok/s ~8.6 at 32K | $3,063.52 eBay | $47/GB |
| NVIDIA GeForce RTX 4090 card | 24 GB | fits 44K ctx | ~34 tok/s ~31 at 32K | $3,150.49 eBay | $131/GB |
| NVIDIA L4 24GB card | 24 GB | fits 44K ctx | ~10 tok/s ~9.1 at 32K | $3,250 eBay | $135/GB |
| GMKtec EVO-X2, Ryzen AI Max+ 395, 128 GB desktop box | 128 GB | fits 128K+ ctx | ~6.6 tok/s ~6.0 at 32K | $3,649.99 eBay | $28/GB |
| Apple Mac Studio M5 Max, 64 GB desktop box | 64 GB | fits 128K+ ctx | ~19 tok/s ~17 at 32K | $3,859.99 eBay | $60/GB |
| NVIDIA RTX PRO 4500 Blackwell card | 32 GB | fits 128K+ ctx | ~30 tok/s ~27 at 32K | $3,983.60 eBay | $124/GB |
| Apple Mac Studio M1 Ultra, 128 GB desktop box | 128 GB | fits 128K+ ctx | ~25 tok/s ~22 at 32K | $4,099 eBay | $32/GB |
| Apple Mac Studio M3 Ultra, 96 GB desktop box | 96 GB | fits 128K+ ctx | ~25 tok/s ~23 at 32K | $4,311.93 eBay | $44/GB |
| NVIDIA RTX A6000 card | 48 GB | fits 128K+ ctx | ~26 tok/s ~23 at 32K | $4,359.99 eBay | $90/GB |
| NVIDIA RTX Spark N1X laptop, 128 GB laptop | 128 GB | fits 128K+ ctx | ~10 tok/s ~9.1 at 32K | $4,615.79 eBay | $36/GB |
| Apple Mac Studio M2 Ultra, 128 GB desktop box | 128 GB | fits 128K+ ctx | ~25 tok/s ~22 at 32K | $4,765 eBay | $37/GB |
| NVIDIA A100 40GB PCIe card | 40 GB | fits 128K+ ctx | ~52 tok/s ~47 at 32K | $5,016.56 eBay | $125/GB |
| Apple Mac Studio M4 Max, 128 GB desktop box | 128 GB | fits 128K+ ctx | ~17 tok/s ~15 at 32K | $5,216.15 eBay | $40/GB |
| Apple MacBook Pro M5 Max, 128 GB laptop | 128 GB | fits 128K+ ctx | ~19 tok/s ~17 at 32K | $5,499.99 eBay | $42/GB |
| ASUS Ascent GX10 desktop box | 128 GB | fits 128K+ ctx | ~9.1 tok/s ~8.3 at 32K | $5,557.19 eBay | $43/GB |
| NVIDIA GeForce RTX 5090 D V2 24GB card | 24 GB | fits 44K ctx | ~45 tok/s ~41 at 32K | $5,697 eBay | $237/GB |
| Apple Mac Studio M5 Ultra, 96 GB desktop box | 96 GB | fits 128K+ ctx | ~37 tok/s ~34 at 32K | $6,164.49 eBay | $64/GB |
| Acer Veriton GN100 desktop box | 128 GB | fits 128K+ ctx | ~9.1 tok/s ~8.3 at 32K | $6,360.12 eBay | $49/GB |
| NVIDIA GeForce RTX 5090 card | 32 GB | fits 128K+ ctx | ~60 tok/s ~54 at 32K | $6,379.99 eBay | $199/GB |
| Apple Mac Studio M5 Max, 128 GB desktop box | 128 GB | fits 128K+ ctx | ~19 tok/s ~17 at 32K | $6,385.24 eBay | $49/GB |
| NVIDIA GeForce RTX 5090 Founders Edition card | 32 GB | fits 128K+ ctx | ~60 tok/s ~54 at 32K | $6,499 eBay | $203/GB |
| NVIDIA RTX 6000 Ada card | 48 GB | fits 128K+ ctx | ~32 tok/s ~29 at 32K | $6,849.50 eBay | $142/GB |
| NVIDIA RTX PRO 5000 Blackwell card | 48 GB | fits 128K+ ctx | ~45 tok/s ~41 at 32K | $6,899.95 eBay | $143/GB |
| NVIDIA DGX Spark desktop box | 128 GB | fits 128K+ ctx | ~9.1 tok/s ~8.3 at 32K | $7,186.24 eBay | $56/GB |
| Apple Mac Studio M2 Ultra, 192 GB desktop box | 192 GB | fits 128K+ ctx | ~25 tok/s ~22 at 32K | $7,199.90 eBay | $37/GB |
| Gigabyte AI TOP ATOM desktop box | 128 GB | fits 128K+ ctx | ~9.1 tok/s ~8.3 at 32K | $7,279.99 eBay | $56/GB |
| Dell Pro Max with GB10 desktop box | 128 GB | fits 128K+ ctx | ~9.1 tok/s ~8.3 at 32K | $7,500 eBay | $58/GB |
| MSI EdgeXpert MS-C931 desktop box | 128 GB | fits 128K+ ctx | ~9.1 tok/s ~8.3 at 32K | $7,736.37 eBay | $60/GB |
| HP ZGX Nano AI Station desktop box | 128 GB | fits 128K+ ctx | ~9.1 tok/s ~8.3 at 32K | $7,902.99 eBay | $61/GB |
| AMD Ryzen AI Max+ PRO 495 desktop, 192 GB desktop box | 192 GB | fits 128K+ ctx | ~7.0 tok/s ~6.4 at 32K | $8,199.95 eBay | $42/GB |
| Apple Mac Studio M3 Ultra, 256 GB desktop box | 256 GB | fits 128K+ ctx | ~25 tok/s ~23 at 32K | $8,554.29 eBay | $33/GB |
| NVIDIA A100 80GB SXM4 card | 80 GB | fits 128K+ ctx | ~68 tok/s ~62 at 32K | $10,469.85 eBay | $130/GB |
| Apple Mac Studio M5 Ultra, 256 GB desktop box | 256 GB | fits 128K+ ctx | ~37 tok/s ~34 at 32K | $12,450 eBay | $48/GB |
| NVIDIA RTX PRO 6000 Blackwell card | 96 GB | fits 128K+ ctx | ~60 tok/s ~54 at 32K | $14,999 eBay | $156/GB |
| NVIDIA A100 80GB PCIe card | 80 GB | fits 128K+ ctx | ~65 tok/s ~59 at 32K | $14,999.99 eBay | $187/GB |
| Apple Mac Studio M3 Ultra, 512 GB desktop box | 512 GB | fits 128K+ ctx | ~25 tok/s ~23 at 32K | $17,099 eBay | $33/GB |
| Apple Mac Studio M5 Ultra, 512 GB desktop box | 512 GB | fits 128K+ ctx | ~37 tok/s ~34 at 32K | $26,015.99 eBay | $50/GB |
| NVIDIA H100 80GB PCIe card | 80 GB | fits 128K+ ctx | ~67 tok/s ~61 at 32K | $26,978.16 eBay | $337/GB |
| AMD Instinct MI300X card | 192 GB | fits 128K+ ctx | ~140 tok/s ~120 at 32K | $29,020.86 eBay | $151/GB |
| NVIDIA H100 80GB SXM5 card | 80 GB | fits 128K+ ctx | ~110 tok/s ~100 at 32K | $35,500 eBay | $443/GB |
| NVIDIA H200 NVL 141GB card | 141 GB | fits 128K+ ctx | ~160 tok/s ~150 at 32K | $54,999 eBay | $390/GB |
| NVIDIA Tesla V100 16GB SXM2 card | 16 GB | with 5 GB in system RAM | ~6.9 tok/s ~5.1 at 32K | $178 eBay | $11/GB |
| NVIDIA Tesla P100 16GB card | 16 GB | with 5 GB in system RAM | ~6.6 tok/s ~5.0 at 32K | $210 eBay | $13/GB |
| AMD Radeon Instinct MI50 16GB card | 16 GB | with 5 GB in system RAM | ~6.7 tok/s ~5.0 at 32K | $250 eBay | $15/GB |
| NVIDIA GeForce RTX 3060 12GB card | 12 GB | with 9 GB in system RAM | ~3.8 tok/s ~3.2 at 32K | $347.41 eBay | $28/GB |
| NVIDIA Tesla V100 16GB PCIe card | 16 GB | with 5 GB in system RAM | ~6.9 tok/s ~5.1 at 32K | $350 eBay | $21/GB |
| NVIDIA GeForce RTX 5060 8GB card | 8 GB | with 13 GB in system RAM | ~2.9 tok/s ~2.6 at 32K | $409.90 eBay | $51/GB |
| NVIDIA A2 16GB card | 16 GB | with 5 GB in system RAM | ~4.3 tok/s ~3.5 at 32K | $449.99 eBay | $28/GB |
| NVIDIA Tesla T4 16GB card | 16 GB | with 5 GB in system RAM | ~5.3 tok/s ~4.2 at 32K | $479 eBay | $29/GB |
| NVIDIA GeForce RTX 3080 Ti 12GB card | 12 GB | with 9 GB in system RAM | ~4.2 tok/s ~3.5 at 32K | $610.13 eBay | $50/GB |
| NVIDIA GeForce RTX 4070 12GB card | 12 GB | with 9 GB in system RAM | ~4.0 tok/s ~3.3 at 32K | $629.71 eBay | $52/GB |
| NVIDIA GeForce RTX 4060 Ti 16GB card | 16 GB | with 5 GB in system RAM | ~5.0 tok/s ~4.0 at 32K | $695 eBay | $43/GB |
| NVIDIA RTX 2000 Ada Generation 16GB card | 16 GB | with 5 GB in system RAM | ~4.5 tok/s ~3.7 at 32K | $706.97 eBay | $44/GB |
| NVIDIA GeForce RTX 5060 Ti 16GB card | 16 GB | with 5 GB in system RAM | ~5.9 tok/s ~4.5 at 32K | $708.72 eBay | $44/GB |
| AMD Radeon RX 7900 XT 20GB card | 20 GB | with 1 GB in system RAM | ~15 tok/s ~8.5 at 32K | $784.71 eBay | $39/GB |
| NVIDIA GeForce RTX 5070 12GB card | 12 GB | with 9 GB in system RAM | ~4.1 tok/s ~3.4 at 32K | $880 eBay | $73/GB |
| NVIDIA RTX A4000 card | 16 GB | with 5 GB in system RAM | ~5.9 tok/s ~4.5 at 32K | $930 eBay | $58/GB |
| AMD Radeon RX 9070 XT 16GB card | 16 GB | with 5 GB in system RAM | ~6.0 tok/s ~4.6 at 32K | $934.95 eBay | $58/GB |
| NVIDIA GeForce RTX 4070 Ti SUPER 16GB card | 16 GB | with 5 GB in system RAM | ~6.5 tok/s ~4.9 at 32K | $1,049 eBay | $65/GB |
| NVIDIA GeForce RTX 4080 SUPER 16GB card | 16 GB | with 5 GB in system RAM | ~6.6 tok/s ~5.0 at 32K | $1,299.99 eBay | $81/GB |
| NVIDIA GeForce RTX 4080 16GB card | 16 GB | with 5 GB in system RAM | ~6.6 tok/s ~5.0 at 32K | $1,299.99 eBay | $81/GB |
| NVIDIA GeForce RTX 5070 Ti 16GB card | 16 GB | with 5 GB in system RAM | ~6.9 tok/s ~5.1 at 32K | $1,359.95 eBay | $84/GB |
| NVIDIA RTX 4000 SFF Ada card | 20 GB | with 1 GB in system RAM | ~8.1 tok/s ~5.8 at 32K | $1,461.93 eBay | $73/GB |
| NVIDIA GeForce RTX 5080 16GB card | 16 GB | with 5 GB in system RAM | ~7.0 tok/s ~5.2 at 32K | $1,799.99 eBay | $112/GB |
Estimates assume llama.cpp-style inference for one user. Cards that cannot hold the weights run with the overflow in system RAM, assuming 64 GB, which is slower; see how we estimate. Prices are the cheapest live eBay listing that passed our filters, item plus shipping.