Makes the model fit on the accelerator instead of staying completely out of reach.
Removes host-memory offload, which is usually the single biggest latency and throughput win.
~$449 MSRP
Gemma 4 12B needs ~14.1 GB VRAM. RTX 4070 12GB has 12.0 GB. With Q3_K_S quantization, expect ~33 tok/s.
Operating mode
Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.
Current mode
Balanced
Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.
Select quantization to explore
3.6 GB over capacity — needs offload or smaller quantization
Fit status
Too heavy
Decode
23.5 tok/s
TTFT
8247 ms
Safe context
6K
Memory
15.6 GB / 12.0 GB
Offload
20%
It fits through host-memory offload, and offload is the main reason performance drops.
CPU or host-memory offload is active
About 20% of the working set spills out of accelerator memory, which usually hurts latency and sustained decode throughput.
Very little memory headroom
You can run the model, but there is not much room left for longer context, bigger batches, extra apps, or future model updates.
Remove offload with more accelerator memory
Prioritize a GPU or unified-memory tier that fits the whole model natively. Removing offload usually helps more than small compute gains.
Buy headroom, not only minimum fit
A slightly larger memory tier gives you safer context growth and makes the recommendation more future-proof.
Increase host RAM if you keep offloading
This setup may need roughly 0.9 GB of extra host RAM just for the offloaded portion, before OS and other tools.
| Workload | Grade | Fit | Decode | TTFT | Context |
|---|---|---|---|---|---|
| Chat | A | Runs with offload (needs ~0.4 GB host RAM) | 36.4 tok/s | 2902 ms | 6K |
| Coding | F | Too heavy | 23.5 tok/s | 8247 ms | 6K |
| Agentic Coding | F | Too heavy | 12.0 tok/s | 23491 ms | 6K |
| Reasoning | F | Too heavy | 23.5 tok/s | 9747 ms | 6K |
| RAG | F | Too heavy | 12.0 tok/s | 29364 ms | 6K |
Inference speed
Estimated decode speed (tokens/sec) for Gemma 4 12B at Q4_K_M across popular GPUs and Apple Silicon, using the fastest local runtime per device. Fastest is RTX 5090 32GB at ~168 tok/s. Speed is memory-bandwidth bound, so cards that fit the whole model in VRAM run far faster than ones that offload to system RAM.
| GPU / Mac | Memory | Quant | Speed (tok/s) | Fits? |
|---|---|---|---|---|
| 32 GB | Q4_K_M | 168.0 | Fits | |
| 24 GB | Q4_K_M | 109.9 | Fits | |
RX 7900 XTX 24GB | 24 GB | Q4_K_M | 99.1 | Fits |
| 24 GB | Q4_K_M | 94.0 | Fits | |
| 16 GB | Q4_K_M | 87.6 | Offloads | |
Mac Studio M3 Ultra 256GB | 256 GB | Q4_K_M | 60.5 | Fits |
Mac Studio M2 Ultra 128GB | 128 GB | Q4_K_M | 50.4 | Fits |
Mac Studio M1 Ultra 128GB | 128 GB | Q4_K_M | 47.8 | Fits |
MacBook Pro M4 Max 64GB | 64 GB | Q4_K_M | 43.4 | Fits |
MacBook Pro M3 Max 64GB | 64 GB | Q4_K_M | 34.4 | Fits |
MacBook Pro M4 Max 128GB | 128 GB | Q4_K_M | 32.9 | Fits |
MacBook Pro M1 Max 64GB | 64 GB | Q4_K_M | 31.6 | Fits |
MacBook Pro M4 Pro 48GB | 48 GB | Q4_K_M | 26.5 | Fits |
| 12 GB | Q4_K_M | 23.5 | Too big | |
| 12 GB | Q4_K_M | 14.8 | Too big | |
| 8 GB | Q4_K_M | 5.5 | Too big |
Estimates for single-stream decoding at Q4_K_M; real tokens/sec varies with prompt length, context, batch size, and runtime build. Prompt processing (prefill) is faster than the decode figures shown here.
How Gemma 4 12B (12B params) fits at each quantization level on RTX 4070 12GB (12.0 GB usable).
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 4.7 GB | Low | A83 |
Q3_K_S | 3 | 5.9 GB | Low | A84 |
NVFP4 | 4 | 6.7 GB | Medium | A83 |
Q4_K_M | 4 | 7.3 GB | Medium | A83 |
Q5_K_MBest for your GPU | 5 | 8.6 GB | High | A83 |
Q6_K | 6 | 9.8 GB | High | F0 |
Q8_0 | 8 | 12.8 GB | Very High | F0 |
F16 | 16 | 24.6 GB | Maximum | F0 |
Copy-paste commands to run Gemma 4 12B on your machine.
Run
lms load gemma-4-12B-it && lms server startOpções de upgrade
Makes the model fit on the accelerator instead of staying completely out of reach.
Removes host-memory offload, which is usually the single biggest latency and throughput win.
~$449 MSRP
Makes the model fit on the accelerator instead of staying completely out of reach.
Removes host-memory offload, which is usually the single biggest latency and throughput win.
~$499 MSRP
Makes the model fit on the accelerator instead of staying completely out of reach.
Removes host-memory offload, which is usually the single biggest latency and throughput win.
~$625 MSRP
Makes the model fit on the accelerator instead of staying completely out of reach.
Removes host-memory offload, which is usually the single biggest latency and throughput win.
~$1,499 MSRP
Yes, RTX 4070 12GB can run Gemma 4 12B at Q3_K_S quantization (Very compromised (needs ~0.9 GB host RAM)). The recommended Q4_K_M requires 15.6 GB which exceeds available memory, but at Q3_K_S it needs only 14.1 GB. Expected decode speed: 33.3 tok/s.
Gemma 4 12B (12B parameters) requires approximately 15.6 GB at Q4_K_M quantization. On RTX 4070 12GB, it fits at Q3_K_S using 14.1 GB.
The recommended quantization is Q4_K_M, but on RTX 4070 12GB the best fitting quantization is Q3_K_S, which uses 14.1 GB.
On RTX 4070 12GB, Gemma 4 12B achieves approximately 33.3 tokens per second decode speed with a time-to-first-token of 5808ms using Q3_K_S quantization.
For coding workloads, Gemma 4 12B on RTX 4070 12GB receives a F grade with 23.5 tok/s and 6K context.
On RTX 4070 12GB, Gemma 4 12B can safely use up to 10K tokens of context at Q3_K_S quantization. The model's official context limit is 262K, but available memory constrains the safe maximum.
Remove offload with more accelerator memory. Prioritize a GPU or unified-memory tier that fits the whole model natively. Removing offload usually helps more than small compute gains.
Paste this snippet into any page to show a live fit card.
<iframe src="https://willitrunai.com/embed/gemma-4-12b-on-rtx-4070-12gb" width="400" height="180" frameborder="0" style="border:none;border-radius:12px;overflow:hidden;" title="Will It Run AI — fit result"></iframe>
Preview: