Yes. Gemma 4 31B fits on the Framework Desktop 128GB at FP16: 75.1 GB needed against 96.0 GB of usable unified memory, so 20.9 GB to spare. FP16 is the top quant tracked here and it fits. With an FP16 KV cache, about 204,000 tokens of context fit beside the 62.5 GB of FP16 weights.
Can the Framework Desktop 128GB run Gemma 4 31B?
Data updated . Last reviewed the same day, when this catalog snapshot was written.
Memory math
The Framework Desktop 128GB has 128 GB of unified memory shared by the CPU and GPU. The catalog counts 75% of it, 96.0 GB, as available for weights plus KV cache and leaves 32.0 GB for the operating system and other apps. A result under 2 GB of headroom is labeled tight.
Gemma 4 31B stores 31.3B parameters. Against 96.0 GB usable, Q4 needs 19.7 GB (76.3 GB spare); Q8 needs 34.0 GB (62.0 GB spare); FP16 needs 75.1 GB (20.9 GB spare). FP16 is the highest of the three that fits. Q4 comes from gemma-4-31B-it-Q4_K_M.gguf plus KV cache at 8K.
The Hub repo also has Q5_K_M (gemma-4-31B-it-Q5_K_M.gguf, 23.0 GB with KV, 73.0 GB spare) and Q6_K (gemma-4-31B-it-UD-Q6_K_XL.gguf, 28.9 GB with KV, 67.1 GB spare), between the catalog's Q4 and Q8 steps.
The Framework Desktop 128GB
- Framework Mini PC, released 2025. List price $3,449, about $36 per usable GB. Framework direct list for the 128GB DIY edition without SSD, 2026. The launch list was $1,999 before the memory price jump. GPU-addressable pool is about 96GB.
- Memory bandwidth 256 GB/s: number 15 from the top of the 16 machines in the can-run list.
- Usable memory 96.0 GB: the most.
The eBay link is a search of used listings, not a price or a recommendation of a seller. RigFit may earn a commission from qualifying eBay purchases made through links on this site, at no extra cost to you. See the disclosure.
Gemma 4 31B
- Gemma family, dense, 31.3B parameters. License Apache-2.0. The model card lists a 262,144-token context window. Hugging Face repo google/gemma-4-31B-it.
- Sizes come from unsloth/gemma-4-31B-it-GGUF: Q4_K_M gemma-4-31B-it-Q4_K_M.gguf is 18.3 GB; Q5_K_M gemma-4-31B-it-Q5_K_M.gguf is 21.7 GB; Q6_K gemma-4-31B-it-UD-Q6_K_XL.gguf is 27.5 GB; Q8_0 gemma-4-31B-it-Q8_0.gguf is 32.6 GB.
- Dense Gemma 4 31B. Q4 fits 24GB; FP16 does not.
Quant ladder
| Quant | Estimate | Headroom | Est. tok/s | Verdict |
|---|---|---|---|---|
| Q4 | 19.7 GB | 76.3 GB | 14.0 tok/s | Yes |
| Q8 | 34.0 GB | 62.0 GB | 7.84 tok/s | Yes |
| FP16 | 75.1 GB | 20.9 GB | 4.09 tok/s | Yes |
- GGUF file size plus an FP16 KV-cache estimate at 8,192 tokens. The cache counts only the layers and heads named in the method on the About page.
- Formula estimate: parameter count × bytes per weight × 1.20. No GGUF file size is stored for this quant.
- Tokens/sec is an estimate, a bandwidth roofline: GB/s divided by active weight GB. It is not a measured generation speed, and it is blank for quants that do not fit.
Context length and KV cache
FP16 KV-cache estimate: 1.3 GB at 8,192 tokens and 5.4 GB at 32,768 tokens, about 164 KB per token (10 counted layers). GQA counts two tensors (K and V) for the stored KV heads and head dimension. config.json also sets a sliding window of 1,024 tokens. The figures assume every counted layer stores the full context, so they can overstate cache on sliding layers and understate the context that fits.
Context that fits in 96.0 GB usable unified memory, counting weights plus FP16 KV cache and nothing else (estimate: (usable - weight file) / KV per token, capped at the model's 262,144-token window): Q4: the model's full 262,144-token window; Q8: the model's full 262,144-token window; FP16: about 204,000 tokens.
Speed estimate
Gemma 4 31B is dense: every one of its 31.3B parameters is used for each token, so the 62.5 GB of FP16 weights set both what must fit and what is read per token.
Estimate, not a benchmark and not from a cited run: 256 GB/s divided by 62.5 GB of weights read per token at FP16 is a ceiling of 4.09 tok/s. It ignores prompt processing, KV-cache reads, and software overhead, so real generation is slower.
Offload
This machine has one memory pool, so there is no VRAM-versus-RAM split and nothing to offload at FP16.
Ollama
This command pulls the Q4_K_M file from unsloth/gemma-4-31B-it-GGUF, the Hub repo whose file size is used above. It is not an official Ollama library tag.
ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q4_K_M
Nearby machines for Gemma 4 31B
- Largest usable memory in the list: No machine in the 16-device list has more usable memory than the Framework Desktop 128GB.
- Next machine down in memory: Mac Studio M3 Ultra 96GB (96.0 GB unified memory, 67.2 GB usable, 819 GB/s, list $3,999), 28.8 GB less usable than here. Yes at Q8, 33.2 GB spare. The best quant drops from FP16 to Q8.
- Cheapest catalog device at Q4: Radeon RX 7900 XTX (22.8 GB usable, list $999).
Nearby models on the Framework Desktop 128GB
- Next smaller model by Q4 size: Qwen3 30B-A3B (30.5B, 3B active, Q4 19.4 GB) on the Framework Desktop 128GB: Yes at FP16, 22.7 GB spare.
- Next larger model by Q4 size: DeepSeek R1 Distill Qwen 32B (32.8B, Q4 22.0 GB) on the Framework Desktop 128GB: Yes at FP16, 17.4 GB spare.
- Largest catalog model that still fits at Q4: Mixtral 8x22B (141B, 39B active, Q4 87.5 GB): Yes at Q4, 8.5 GB spare.
All hardware for Gemma 4 31B · All models for the Framework Desktop 128GB
Questions
- How much memory does Gemma 4 31B need at Q4?
- The Q4 figure used here is 19.7 GB, from gemma-4-31B-it-Q4_K_M.gguf plus KV cache at 8K. GGUF file size plus an FP16 KV-cache estimate at 8,192 tokens. The cache counts only the layers and heads named in the method on the About page.
- Can the Framework Desktop 128GB run Gemma 4 31B?
- Yes. Gemma 4 31B fits on the Framework Desktop 128GB at FP16: 75.1 GB needed against 96.0 GB of usable unified memory, so 20.9 GB to spare. FP16 is the top quant tracked here and it fits. With an FP16 KV cache, about 204,000 tokens of context fit beside the 62.5 GB of FP16 weights.
- How much context fits when Gemma 4 31B runs on the Framework Desktop 128GB?
- Context that fits in 96.0 GB usable unified memory, counting weights plus FP16 KV cache and nothing else (estimate: (usable - weight file) / KV per token, capped at the model's 262,144-token window): Q4: the model's full 262,144-token window; Q8: the model's full 262,144-token window; FP16: about 204,000 tokens.
- How fast is Gemma 4 31B on the Framework Desktop 128GB, as a bandwidth estimate?
- Estimate, not a benchmark and not from a cited run: 256 GB/s divided by 62.5 GB of weights read per token at FP16 is a ceiling of 4.09 tok/s. It ignores prompt processing, KV-cache reads, and software overhead, so real generation is slower.
- What is the cheapest catalog device that runs Gemma 4 31B at Q4?
- Radeon RX 7900 XTX, list price $999, with 22.8 GB usable.