1. Home
  2. Google Gemma 4 31B IT
  3. MacBook Pro 14 M5 32GB

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.

Tight

Running Google Gemma 4 31B IT on MacBook Pro 14 M5 32GB

Running Google Gemma 4 31B IT (IQ4_XS) on MacBook Pro 14 M5 32GB at 8K context uses 19.3GB of memory at ~4.8 tok/s (est.). Fits, but headroom is tight or token speed is modest. Expect limits at longer context windows.

Weights 16.4GB KV Cache 2.1GB Runtime 0.8GB Total 19.3GB
Tokens/sec
4.8 Est.
Free Headroom
1.7GB
Max Context
14K
Speed Rank
#42/ 43

Scaling Context Length

Required memory and verdict by context window
ContextRequiredStatus
8K19.3GBTight
16K21.3GBNo Fit
32K25.5GBNo Fit
64K33.8GBNo Fit
128K50.5GBNo Fit

Switching Quantization

Required memory, verdict, and tokens/sec by quantization
QuantRequiredStatusTokens/s
UD-Q3_K_XL18.3GBTight5.1
IQ4_XS19.3GBTight4.8
Q4_K_M21.2GBNo Fit–
UD-Q4_K_XL21.7GBNo Fit–
Q5_K_M24.5GBNo Fit–
Q6_K28.1GBNo Fit–
Q8_035.5GBNo Fit–

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.