Set up private Gemma 4 chat
Choose official QAT packages for Gemma 4 E2B, E4B, or 12B, or a clearly marked community abliterated E4B package; follow Mac, Windows, or Linux instructions for your choice.
Before you begin
Hardware
Short text-chat estimates for the exact packages shown, ordered by model tier. Published weights plus estimated runtime headroom inform these rows; AMD and Intel still need a working GPU backend.
| Machine | Gemma 4 E2B · QAT | Gemma 4 E4B · QAT | Gemma 4 12B · QAT | Gemma 4 E4B · abliterated Q4 |
|---|---|---|---|---|
| NVIDIA GPU · 8 GB | Runs at short context; modest headroom | Runs at short context; tight headroom | Can run with CPU offload; slower | Runs at short context; modest headroom |
| NVIDIA GPU · 12 GB | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| NVIDIA GPU · 16 GB | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| NVIDIA GPU · 24 GB | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| NVIDIA GPU · 32 GB | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| AMD Radeon · 8 GB | Runs at short context; modest headroom; verify GPU backend | Runs at short context; tight headroom; verify GPU backend | Can run with CPU offload; slower; verify GPU backend | Runs at short context; modest headroom; verify GPU backend |
| AMD Radeon · 16 GB | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend |
| AMD Radeon · 24 GB | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend |
| AMD Radeon · 32 GB | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend |
| Intel Arc · 8 GB | Runs at short context; modest headroom; verify GPU backend | Runs at short context; tight headroom; verify GPU backend | Can run with CPU offload; slower; verify GPU backend | Runs at short context; modest headroom; verify GPU backend |
| Intel Arc · 16 GB | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend |
| Intel Arc · 24 GB | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend |
| Intel Arc · 32 GB | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend | Runs with room for short chat; verify GPU backend |
| Apple Silicon · 16 GB unified | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| Apple Silicon · 24 GB unified | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| Apple Silicon · 32 GB unified | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| Apple Silicon · 64 GB unified | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat | Runs with room for short chat |
| CPU-only · 16 GB RAM | Runs in RAM at short context; slower | Runs in RAM at short context; slower | Runs in RAM at short context; slower | Runs in RAM at short context; slower |
| CPU-only · 32 GB RAM | Runs in RAM at short context; slower | Runs in RAM at short context; slower | Runs in RAM at short context; slower | Runs in RAM at short context; slower |
An 8 GB GPU can run E2B and E4B QAT at short 4K text context; 12B QAT may require slower CPU offload and enough system RAM. These are capacity estimates. Start at 4K, then raise context while checking ollama ps for the GPU/CPU split; image input needs more memory.
Pick the Gemma package that fits your machine.
Model tiers are ordered E2B → E4B → 12B; download size varies with quantization. These official QAT weights have smaller published downloads than the default tags. Select a package to switch the commands for your operating system.
Choose your package
Select the weights you want. The instructions, downloads and settings change with your choice.
Save your machine in My Hardware to get an automatic starting choice. You can always choose any package yourself.
Gemma 4 E2B · QAT · official
Start with 4K text context on an 8 GB GPU or 16 GB Apple Silicon Mac. The 4.3 GB download leaves capacity for runtime and KV cache at that short setting; increase toward 8K only after checking ollama ps and free memory. Longer context and image input need more memory.
Set up Gemma 4 E2B · QAT on your machine
Choose your computer first, then its GPU path. The instructions below update to match your selection.
Use Terminal. Metal acceleration is supported on Apple Silicon.
Check Apple Silicon
Confirm the Ollama app is open and Metal is available on this Apple Silicon Mac.
Ollama hardware supportCheck the local runtime
In Terminal, confirm Ollama is installed before downloading weights.
ollama --versionStart the selected Gemma package
Run this exact official package. The first launch downloads it and opens a local text chat.
Official Gemma packagesollama run gemma4:e2b-it-qatTest a private reply
Ask a short question with a known answer, then follow up. This first check uses text only; image input and longer context need more memory.
Check where the model runs
In a second Terminal window, see whether Ollama loaded the model on the GPU or CPU and how much context it allocated.
ollama psYour first local Gemma reply
Ask a short, verifiable question and confirm a reply appears in the local Ollama session. Run ollama list in another terminal to verify the exact selected tag is installed.
The abliterated package is a third-party modification. Package sizes come from the linked sources; hardware tiers are estimates and have not been physically tested by YouRunAI.
When it doesn’t go to plan
Check the exact tag with ollama list, close other GPU-heavy apps, and choose the E2B QAT package if VRAM is tight. If Ollama offloads to CPU, verify you have enough system RAM.
Community-modified weights can change output quality and safety behavior. Switch back to the official E4B package to compare on the same prompt.
Sources and files
Original instructions, model files, and compatibility notes behind this setup.
The model behind this workflow
Gemma 4 · E4BKeep exploring
Qwen3.5 · 9B private chat setup
Source-backed package and platform-route plan for private local chat with Qwen3.5 · 9B. Preserves the official Ollama 9B package, a smaller 4B family fallback, and a clearly labeled community uncensored GGUF option.
Build a private coding assistant with Qwen3.8 27B
Run Qwen3.8 27B with Ollama, connect it to Cline in VS Code, and make one reviewable code change in a tiny local project.
Create images locally with FLUX.2 Klein
Generate images from text prompts in ComfyUI with the fast distilled or more adjustable base 4B model. Save your results and reuse the visual workflow.