Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

AI Model Memory Calculator

GPU memory for weights and KV cache in exact bytes

How much accelerator memory a model needs for inference, counted in bytes from parameters, formats and context

Tool Web
Official product page Publisher: POLPROG
Official product page
13
Weight formats
5
KV cache formats
2
Memory units
0
Requests sent to a server
01AI Model Memory Calculator

About

AI Model Memory Calculator answers one question before a model is deployed: does it fit in the memory of the accelerator, and how much room is left. The calculation works in bytes and shows the result in GiB or GB.

What is counted

  • Weights: 13 formats from INT2 to FP32, including group-wise INT4 and the MXFP4, NVFP4 and MXFP8 microscaling formats, with the bytes their scales take.
  • KV cache: layers, key and value heads and head dimensions for grouped-query attention, in five cache formats.
  • Workload: prompt and output tokens, the number of sequences served at once and a reserve for the runtime.

The values are set with faders grouped as model, workload and hardware, and one wide bar shows how the memory is divided. Every assumption the estimate leaves out is stated next to the result.

02Use case

What it solves

The problem
  • Rules of thumb such as two bytes per parameter ignore quantization scales and the KV cache
  • A model that loads can still run out of memory once long contexts arrive
  • GiB and GB are mixed up, and the difference reaches several gigabytes
The outcome
  • Weights, scales and KV cache counted in exact bytes
  • The context and number of sequences that still fit
  • Results in GiB or GB, with every assumption stated
Who it is for
  • ML engineers planning inference deployments
  • Teams choosing a quantization format
  • People running open models on their own hardware
03Key Features

Key Features

The most important capabilities, explained in practical terms.

Exact bytes

Weights, scales, zero points and the KV cache counted byte by byte and tested against reference cases.

13 weight formats

From INT2 to FP32, with group sizes and scale widths for group-wise and microscaling formats.

KV cache for real attention

Layers, key and value heads and separate key and value dimensions, in five cache formats.

Memory console

Faders for model, workload and hardware, with one live bar that shows where the memory goes.

Context that fits

The longest context and the number of sequences that still fit in the memory left.

Share link and export

A link that restores the settings and a JSON file with every figure.

04Download

Product access

A clear path from the official source to your first successful workflow.

Choose the right platform

Use one of the official links available for your device or browser.

Install or open

Follow the store instructions or open the web application. No third-party installers.

Configure and begin

Review the options, choose your preferences and start with the core workflow.

05Technology

Technology behind the product

A transparent look at the core technologies used to build and maintain this product.

TypeScript
06Security

Privacy & Security

Privacy first: processed on your device wherever this product allows it, and the network is used only when a feature needs it. No unnecessary data collection.

Calculations run in the browser
No data sent to a server
The share link holds only the settings
No account needed