How Much To Run AI
Open weights

Gemma 4 12B: QAT Downloads, Local Setup and Costs

Gemma 4 12B is Google’s dense instruction-tuned model for text output from text and supported visual or audio inputs. Its approximately 11.95B parameters are available under Apache 2.0. Google’s QAT Q4_0 GGUF offers a smaller local download; the memory used while running also depends on context, cache settings and the runtime.

Content reviewed:

Gemma 4 12B QAT Q4_0 downloads are a 6.98 GB GGUF and 175 MB mmproj. Running memory adds KV cache, buffers and loaded modality components; MTP is optional.
Memory-planning guide. File sizes describe downloads; the boxes show allocation categories rather than a proportional VRAM measurement. Compare MTP with matched runtime and cache settings.

Use this model

Official model repository

Local tools and guides

Choose a first local task

  • Extract a small JSON object from a document and check the fields against the source.
  • Summarize or revise a local text, keeping input length and response length visible.
  • Evaluate visual or audio understanding with a runtime that supports the selected input format.

Choose the Gemma 4 12B checkpoint and format

The instruction-tuned identity is google/gemma-4-12B-it. The 12B Unified architecture is dense, with about 11.95B total parameters and a documented context capacity of 256K tokens. Its native multimodal architecture differs from the smaller E-series models with separate encoders. Runtime support still determines which input modes you can use.

Quantization-aware training prepares weights to tolerate reduced precision. An unquantized QAT checkpoint retains half-precision weights for further conversion or research. Select the ready-to-run Q4_0 GGUF for that four-bit deployment path; the word QAT alone does not mean the downloaded weights are four-bit.

DownloadUse it forWhat to budget
Original instruction-tuned weightsNative-framework deploymentFull weights, runtime and cache
Unquantized QAT weightsCustom compilation or researchHalf-precision weights before conversion
Official QAT Q4_0 GGUFA compatible local GGUF runtimeQuantized weights, runtime and cache

A 6.98 GB GGUF is a download size

Google’s verified 29d0977 revision lists gemma-4-12b-it-qat-q4_0.gguf at 6.98 GB and the accompanying mmproj file at 175 MB. These are artifact sizes. Running memory adds cache, buffers and any modality-specific allocations, and the split between GPU and system RAM depends on offloading.

Start with a context size suited to the actual document. A model’s 256K capacity is not a promise that every desktop can fill it. Leave room for the output as well as the input, and increase context only after checking memory consumption with the chosen cache precision.

Start Gemma 4 12B with llama.cpp

Use a current llama.cpp build with Gemma 4 support. Google’s model page provides the repository selector below for llama-server. The first launch downloads the selected artifact, so allow storage and download time before evaluating generation speed. Start with a short text request and confirm that the server loads the intended Q4_0 file.

Open the local server’s web interface after it starts. Ask for a short answer with an objectively checkable result, such as extracting a date and amount from a paragraph. Record the runtime build, checkpoint revision, context size and GPU offload settings before changing one of them.

For visual input, follow the runtime’s multimodal instructions and load its matching components. A successful text-only session does not demonstrate that the same build accepts images or audio. Keep text-only memory measurements separate from multimodal sessions.

Official GGUF selector with a modest initial context
./llama-server \
  -hf google/gemma-4-12B-it-qat-q4_0-gguf:Q4_0 \
  -c 8192

Replace the malformed early GGUF download

A July 17 Hugging Face discussion reported a vocabulary assertion in the initial artifact. Google’s lgusm replied that the malformed GGUF had been fixed. The current file listing identifies a validated checkpoint with corrected vocabulary. If you retained the early file, replace that artifact before treating the old report as a current model failure.

A measured RTX 5060 Ti configuration

Murasan Lab’s July 27 report, updated August 4, uses an RTX 5060 Ti 16GB, llama.cpp build 9570 (3ac3c20c9), full GPU offload and a 65,536-token context setting. The target is the third-party QAT UD-Q4_K_XL GGUF, not Google’s Q4_0 artifact. Each fixed-length test generates 256 tokens five times with temperature 0, seed 42 and thinking disabled; mmproj is not loaded.

Without MTP, the f16-cache configuration averages 50.33 tokens/s and 8,248 MiB under load. With q8_0 KV cache plus a Q4_0 MTP draft and n-max=2, it averages 80.31 tokens/s and 8,076 MiB. Multiple settings change between those rows. The 65K value is configured capacity rather than a filled 65K prompt, and these generation rates are not complete API response latency.

UD-Q4_K_XL configurationGeneration rateReported VRAM
f16 KV; no MTP50.33 tokens/s8,248 MiB
q8_0 KV; MTP; n-max=280.31 tokens/s8,076 MiB

Estimate Gemma 4 12B running costs

The existing LLM calculator includes Gemma 4 12B with local and cloud deployment estimates. Choose GGUF Q4 for a four-bit planning scenario, then set your workload and deployment choice. Its generic capacity and throughput estimates are separate from the official QAT artifact and the Murasan configuration above.

For rented hardware, budget the entire billed session. A hypothetical two-hour session at $0.50 per hour costs $1. If it produces 200 accepted responses, compute spend is $0.005 per accepted response, before storage and transfer. Downloads, idle time and rejected answers reduce the amount of useful work that session buys.

For owned hardware, measure power at the wall. A hypothetical 200 W total system load for two hours consumes 0.4 kWh, costing $0.08 at $0.20/kWh. That is an electricity example; hardware purchase and maintenance remain separate. Use your measured power rather than a GPU’s advertised maximum as the input.

Gemma 4 12B licensing

Google lists Apache 2.0 for this Gemma 4 release, including the QAT GGUF. Retain the applicable license and notices when redistributing it. Model licensing and any terms of a hosted inference service are separate parts of a deployment decision.

Before you use it

  • Document capacity, runtime allocations and actual prompt length determine memory use alongside the quantized weights.
  • A community UD-Q4_K_XL speed result does not measure Google’s official Q4_0 GGUF.

How to get started

Load the official QAT GGUF for a short text task, check the result and memory use, then compare deployment costs with the matching Gemma 4 12B calculator selection.

Sources

Sources (5)

Calculators

Using this calculator for this model

Estimate a text model’s ongoing cost by choosing where it runs and how many hours it is active each month. Usage levels are 120, 360 or 720 hours per month; choose the closest to your planned schedule.

For open weights, select the precision and deployment that match the artifact and runtime you plan to use. The hardware result is a capacity estimate; context length, runtime and model-specific components can change actual memory use.

How to fill in the calculator
Precision
Select the weight format you will actually run. GGUF Q4 is a broad capacity estimate for a 4-bit GGUF variant; exact file size depends on the quantization and included components.
Deployment
Local estimates use hardware ownership, electricity and operations; cloud estimates use hourly rental pricing. Compare the path you are considering.
Usage level
Choose 120, 360 or 720 active hours per month, based on your planned schedule. For bursty work, use the nearest level as a comparison.
Electricity rate
Use your billed price per kWh. This changes local electricity cost only.
Wall power
Leave blank to use the GPU TDP reference. For multiple GPUs or a full system, enter measured whole-machine watts.
Salary and FTE
Enter a monthly salary range and the share of one full-time role spent operating the service; use zero if you allocate no labor.
PUE and system cost
Keep defaults if unknown. PUE scales local electricity; the system cost multiplier scales upfront hardware cost.

Use the calculator for a deployment budget; enter your expected usage and measured wall power.