SoftRyva · SR-037 · Keyword Hunter 02/20

AI RAM & VRAM Calculator

Estimate dense transformer inference memory. Defaults are a hypothetical 7B architecture, not a named model. All memory outputs use GiB (1 GiB = 2^30 bytes).

How it works

Weights = parameters × effective bits / 8. KV cache = 2 × layers × KV heads × head dimension × tokens × bytes × sequences. Convert bytes to GiB and add the buffer reserve. File size, if supplied, replaces the weight estimate only. Effective bits include quantization metadata if known.

Results are indicative, not compatibility or speed guarantees. This simplified full-attention model excludes architecture-specific variations, extra allocations, model loading peaks and shared memory duplication. CPU and GPU fits are assessed independently; hybrid offload is not predicted. Runtime reserve is an editable assumption. Do not count shared iGPU memory twice.

Calculations stay in this page. No external scripts, API requests, cookies or analytics are included in this tool.

Background: KV cache strategies · Context length