LLM VRAM Calculator

Will your local language model fit on one GPU? Estimate the memory for the model weights, the conversation cache and the runtime, then see which setting to change first.

GPU and model
Use free memory after other apps, not the number on the box.
Use the size of the actual quantized file. Add all shards.
Allow for both the prompt and the reply.
Leave at 1 for one local chat.
Model architecture and runtime settings

Defaults are for Qwen3 8B. For another model, enter that model's layer count, KV heads and head dimension from its configuration. File size alone cannot determine the cache size.

Estimated GPU memory

Enter your settings to calculate an estimate.

What measured runs show

In LeanLM's Ollama benchmark, Qwen2.5 7B Instruct at Q4_K_M peaked at 5.1 GiB at 4,096 context tokens and 6.8 GiB at 32,768 tokens. Both runs used full GPU offload with flash attention on one 96 GiB RTX PRO 6000. These are third-party measurements on that setup, not measurements on 8, 12 or 16 GiB cards, and not the Qwen3 preset above.

For a worked estimate, the Qwen3 8B preset gives about 6.25 GiB at 4,096 tokens. At 32,768 tokens it rises to 10.18 GiB, with the same weights and 1 GiB reserve. That is why lowering context can help when the weights alone already fit.

How this estimate works

Total = weights + KV cache + runtime reserve. For standard attention with uniform layer dimensions, this planner estimates the cache as 2 × layers × KV heads × head dimension × bytes per cache value × context tokens × simultaneous sessions. The factor of 2 is for keys and values. We convert bytes to GiB, where 1 GiB is 1,073,741,824 bytes; file hosts often display decimal GB instead.

The default weight size uses Qwen's Qwen3 8B Q4_K_M file listing; its layer and head values come from the official model configuration. Cache precision and weight quantization are separate settings. The 8-bit cache option is approximate, excludes block metadata and only applies if your runtime supports it.

This is a planning estimate for one fully offloaded GPU, not a guarantee. File size is only a proxy for resident weights. Allocators, batching and backend buffers can differ; sliding-window and hybrid models, CPU offload and multiple GPUs are not modeled. Use your runtime's configured context and stay below the model's supported context even when the memory estimate suggests more room.

© 2026 Universal Convertor. All rights reserved.

Developed By Bahlool Hanif

Accurate conversion for everyone, everywhere.