Gemma 4 26B A4B IT Q4_K_M · 8K context
Excellent The model needs about 18.1 GB and fits in the 23.3 GB available, with 5.2 GB to spare.
Your hardware Tesla P40 24 GB · 64 GB RAM
Estimated memory ~18.1 GB estimate
VRAM (usable memory) 23.3 GB
GPU only Yes
CPU/GPU offload Not required
Generation speed 68–95 tok/s estimate
Largest context in fast memory 256K tokens Memory breakdown ~18.1 GB (17.3 GB–18.8 GB) needed · estimate
Fits entirely in VRAM · 5.2 GB left
VRAM 23 GB
VRAM System RAM 51 GB →
Model weights 15.9 GB KV cache 0.4 GB Runtime overhead 1 GB Safety margin 0.9 GB Assumptions: context 8K tokens · KV cache f16 · llama.cpp (CUDA) · flash attention on · weights = real file size · sliding-window layers keep 1,024 tokens EstimateData updated on September 25, 2026 Source: Run LLM Locally engine , Hugging Face config.json + model card
What makes this estimate less reliable
no benchmark for this hardware and model yet mixture-of-experts: speed depends on expert routing