1. Home
  2. Google Gemma 4 31B IT
  3. Mac Studio M3 Ultra 96GB

Disclosure As an Amazon Associate I earn from qualifying purchases. Some links on this page are affiliate links. If you sign up or buy through them, LocalAI Moa may earn a commission at no extra cost to you.

Fast

Running Google Gemma 4 31B IT on Mac Studio M3 Ultra 96GB

Running Google Gemma 4 31B IT (Q5_K_M) on Mac Studio M3 Ultra 96GB at 8K context uses 24.5GB of memory at ~20 tok/s (est.). Fits cleanly in memory with headroom to spare—fast enough for interactive chat and coding.

Weights 21.7GB KV Cache 2.1GB Runtime 0.8GB Total 24.5GB
Tokens/sec
20 Est.
Free Headroom
47.5GB
Max Context
190K

Scaling Context Length

Required memory and verdict by context window
ContextRequiredStatus
8K24.5GBFast
16K26.6GBFast
32K30.8GBFast
64K39.1GBFast
128K55.8GBFast

Switching Quantization

Required memory, verdict, and tokens/sec by quantization
QuantRequiredStatusTokens/s
UD-Q3_K_XL18.3GBFast28
IQ4_XS19.3GBFast27
Q4_K_M21.2GBFast24
UD-Q4_K_XL21.7GBFast23
Q5_K_M24.5GBFast20
Q6_K28.1GBRuns Well18
Q8_035.5GBRuns Well14

Other Options

Try Before Buying Affiliate link: LocalAI Moa earns a commission when you sign up and use RunPod at no extra cost to you.
Test Google Gemma 4 31B IT on a cloud GPU before upgrading

Before spending thousands on a new GPU or workstation, spin up an hourly RTX 5090, H100, or B200 on RunPod to verify real-world speed and output quality.

Referral perk · Spend your first $10 after signing up to unlock a $5–$500 random credit bonus.

After creating a RunPod account, paste this setup prompt into ChatGPT, Claude, or Gemini for step-by-step instructions.

I want to run Google Gemma 4 31B IT on a cloud GPU using RunPod. I have already created a RunPod account, and this is my first time setting up a pod. Please look up the current setup steps and guide me step by step—from choosing the right GPU and template to downloading the weights and running inference smoothly.