llmrun
TOTORONGGemma 4Gemma4ForConditionalGeneration

ExtGemma4 40 5B — Hardware Requirements & GPU Compatibility

ChatReasoning

ExtGemma4 40 5B is a 39.5B-parameter open language model from TOTORONG in the Gemma 4 family. It supports a context window of up to 262,144 tokens. At BF16 it needs about 80.94 GB of VRAM — see which GPUs and Macs can run it below.

39.5B params · dense262K contextGemma Terms1.4K downloads4 likes

ExtGemma4 40 5B runs on a 96 GB+ Mac or a workstation GPU

Best local pick → Mac Studio (M3 Ultra, 96GB) · BF16 · 82.7 GB · ~7 tok/s

Macs from96 GB BF16 · ~7 tok/s

Gemma Terms

Not set up for it?

Reference GPU · RTX 4090 24 GB

Estimates, ±20% · how we estimate

Run ExtGemma4 40 5B

One recommended way. Every other method, OS and quant is in the step-by-step guide.

Recommended

vLLM
one command · needs vLLM installed
$vllm serve TOTORONG/extGemma4-40_5B --max-model-len 16384 --tensor-parallel-size 8

vLLM repo with its own quantisation

Download: Weights on Hugging Face

install, OS, other quants

Other ways

each opens step-by-step

Run in cloud

Fits on H200 (141 GB) (58 GB headroom) · BF16

Generation speed
~39 tok/s
generation speed
Cost per 1M output tokens
$25.90
per 1M output tokens

How Much VRAM Does ExtGemma4 40 5B Need?

Select a quantization level; the listed hardware adheres to it.

QuantizationVRAM+32KRuns on
80.9 GB85.6 GB16-bit · bfloat — Brain floating point 16 — preferred for trainingRuns on RTX PRO 6000 Blackwell Max-Q Workstation Edition 96 GB
est.calculated, no published file yet

Selected BF16

Brain floating point 16

82.7GBat 16K context

Weights
78.9 GB
KV cache
3.5 GB
Overhead
0.3 GB

Server-class: ~82.7 GB at 16K context · one RTX PRO 6000 Blackwell Max-Q Workstation Edition 96 GB

Or rent H200 from $3.59/hr.

Which Hardware Can Run ExtGemma4 40 5B?

BF16 · 80.9 GB

ExtGemma4 40 5B (BF16) requires 80.9 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 106+ GB is recommended. Using the full 262K context window can add up to 44.1 GB, bringing total usage to 125.0 GB. No consumer GPU has enough memory. 30 devices with unified memory can run ExtGemma4 40 5B, including Mac Studio (M3 Ultra, 256GB), Mac Studio (M3 Ultra, 512GB), Mac Studio (M3 Ultra, 96GB).

By VRAM tier · typical GPUs and Macs at BF16

Consumer GPUs (up to 32 GB) and Macs up to 64 GB: too small for this model (needs ≥ 82.7 GB)8 GB tier →12 GB tier →16 GB tier →24 GB tier →Macs →

Alternatives to ExtGemma4 40 5B

Gemma 4 family · 35 models →

Similar models

3
ModelScoreVRAMWhy it is similar
Phi 3.5 MoE InstructMicrosoft—23.9 GBsame size
Falcon 40B InstructTII UAE—23.8 GBsame size
K2 Horizon MoVA 36B A4BIFM—23.4 GBsame size

Specifications

Publisher
TOTORONG
Family
Gemma 4
Parameters
39.5B
Architecture
Gemma4ForConditionalGeneration
Context Length
262,144 tokens
Vocabulary Size
262,144
Release Date
2026-07-12
License
Gemma Terms

Frequently Asked Questions

How much VRAM does ExtGemma4 40 5B need?

ExtGemma4 40 5B requires 80.9 GB of VRAM at BF16. Full 262K context adds up to 44.1 GB (125.0 GB total).

VRAM = Weights + KV Cache + Overhead

Weights = 39.5B × 16 bits ÷ 8 = 78.9 GB

KV Cache + Overhead ≈ 2 GB (at 2K context + ~0.3 GB framework)

Fit ratings and hardware model lists check this model with room for a 16K-token context, which needs a little more memory.

KV Cache + Overhead ≈ 46.1 GB (at full 262K context)

VRAM usage by quantization

80.9 GB
125.0 GB

Learn more about VRAM estimation →

Can NVIDIA GeForce RTX 5090 run ExtGemma4 40 5B?

No — ExtGemma4 40 5B requires at least 80.9 GB at BF16, which exceeds the NVIDIA GeForce RTX 5090's 32 GB of VRAM.

Can I run ExtGemma4 40 5B on a Mac?

Yes — Mac Studio (M3 Ultra, 96GB) and 20 other Macs can run ExtGemma4 40 5B. Apple Silicon uses unified memory, so the model shares RAM with the system. At BF16 you need at least 80.9 GB of usable unified memory (RAM minus macOS overhead).

Can I run ExtGemma4 40 5B locally?

Yes — ExtGemma4 40 5B can run locally on consumer hardware. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is ExtGemma4 40 5B?

At BF16, ExtGemma4 40 5B can reach ~59 tok/s on AMD Instinct MI350X. Speed depends mainly on GPU memory bandwidth. Real-world results typically within ±20%.

tok/s = (bandwidth GB/s ÷ model GB) × efficiency

Example: NVIDIA B200 → 8000 ÷ 80.9 × 0.65 = ~64 tok/s

Estimated speed at BF16 (80.9 GB)

~64 tok/s
~64 tok/s
~59 tok/s

Real-world results typically within ±20%. Speed depends on batch size, quantization kernel, and software stack.

Learn more about tok/s estimation →

What's the download size of ExtGemma4 40 5B?

At BF16, the download is about 78.94 GB.

Which GPUs can run ExtGemma4 40 5B?

No single consumer GPU has enough VRAM to run ExtGemma4 40 5B at BF16 (80.9 GB). Multi-GPU or professional hardware is required.

Which devices can run ExtGemma4 40 5B?

30 devices with unified memory can run ExtGemma4 40 5B at BF16 (80.9 GB), including ASUS Ascent GX10, Beelink GTR9 Pro (Ryzen AI Max+ 395, 128 GB), Framework Desktop (Ryzen AI Max+ 395, 128 GB), GMKtec EVO-X2 (Ryzen AI Max+ 395, 128 GB). Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.