Mindket

LLM VRAM Calculator

Newversion 1 · updated

Overview

Estimates how much GPU memory a Hugging Face model needs at any quantization and context length, split into weights, KV cache and overhead, and shows which GPU sizes fit. It suits anyone planning to run a local LLM.

LLM VRAM Calculator is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • A web browser with internet access, so the page can read the model's configuration from the Hub
  • No token is needed for public models
  • Python and pip, only for the download step
Runs in
  • A web browser, through the Space's page on Hugging Face
  • Any browser on Windows, macOS or Linux, opening a downloaded copy of index.html
Start with
pip install -U huggingface_hub
hf download donaldJJ/llm-vram-calculator --repo-type space --local-dir llm-vram-calculator
cd llm-vram-calculator

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This is a static web page that estimates the GPU memory a language model needs. You enter a Hugging Face model id, and the page reads the model's configuration and parameter count in your browser. It then shows memory use for the quantization and context length you choose.

Who it suits

It suits people who run language models on their own GPUs and want to know before downloading whether a model will fit.

IndustryWho uses itHow they use itExample
Local AIHobbyists with one GPUCheck whether a model fits at a chosen quantizationA hobbyist tests a 27B model on a 24 GB card.
ML engineeringEngineers planning deploymentsEstimate memory for weights, cache and overheadAn engineer compares context lengths before sizing a server.
Model publishingModel authorsAdd a VRAM badge to a model cardAn author links the badge to their own model.
ResearchStudentsLearn how KV cache grows with contextA student changes the context length and watches the cache figure.

If you need an exact measured peak, skip it, because the page gives planning estimates.

Where to use it

  • A web browser, through the Space's page on Hugging Face
  • Any browser on Windows, macOS or Linux, opening a downloaded copy of index.html
Use caseWhoWhat they get back
Size a GPU purchaseLocal AI usersThe GPU sizes that fit, from 8 GB up to 96 GB
Plan context lengthEngineersThe longest context each GPU size can hold, up to the model's limit
Badge a model cardModel authorsA VRAM badge snippet the page builds for the model you load

How to set it up

  • A web browser with internet access, so the page can read the model's configuration from the Hub
  • No token is needed for public models
  • Python and pip, only for the download step
  1. Install the huggingface_hub package.
  2. Download the Space into a local folder named llm-vram-calculator.
  3. Move into that folder.
  4. Open index.html in your web browser.
pip install -U huggingface_hub
hf download donaldJJ/llm-vram-calculator --repo-type space --local-dir llm-vram-calculator
cd llm-vram-calculator

How to use it

Open the page, enter a model id such as Qwen/Qwen3.8-27B and press Load. Then pick a quantization and a context length. The page can also open with a model already loaded when the page link ends in ?model= followed by a repository id.

ToolWhat it does
WeightsParameter count times bits per weight, divided by 8
KV cacheCounts only layers that keep a cache, in FP16, Q8_0 or Q4_0
OverheadAdds 0.5 GiB plus 10 percent of weights and cache
GPU fitCompares the total with GPU sizes and leaves 0.5 GiB free

Example

You enter Qwen/Qwen3.8-27B and press Load. At Q4_K_M with 8K context, the page shows 18.3 GiB, because only 16 of its 64 layers keep a KV cache. It says a 24 GB GPU holds up to 83K context.

For newcomers and experts

If you are new, VRAM is the memory on your graphics card, and a model must fit in it to run well. Enter a model id and read the GPU sizes that fit.

If you know the field, the KV cache counts full-attention layers, windowed layers with the window plus 512 tokens, and the compressed latent of MLA. Linear-attention and state-space layers add nothing. Every MoE expert is counted, with no CPU offload.

  1. Enter a Hugging Face model id
  2. The page reads the config in your browser
  3. Weights, cache and overhead are added
  4. GPU sizes that fit are listed
Bits per weight used for the weights estimate
Q4_K_M4.84 bits
Q8_08.5 bits
FP1616 bits

Good to know

  • Treat the results as rough guides, since serving software, CUDA graphs and image encoders can push real use higher
  • Weights are sized from an assumed bit count per weight, so they differ from a real quantized file on disk
  • Models behind an access request cannot be read by the page, so enter their numbers yourself
  • License: mit
  • Cost to run: none named
  • Data it reaches: the Hugging Face Hub, to read a model's config and parameter count

README and files

README

LLM VRAM Calculator

Estimates how much GPU memory a Hugging Face model needs at any quantization and context length, split into weights, KV cache and overhead, and shows which GPU sizes fit. It suits anyone planning to run a local LLM.

Made by donaldJJ on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: This is a static web page that estimates the GPU memory a language model needs. You enter a Hugging Face model id, and the page reads the model's configuration and parameter count in your browser. It then shows memory use for the quantization and context length you choose.

Who it suits: It suits people who run language models on their own GPUs and want to know before downloading whether a model will fit.

Industry | Who uses it | How they use it | Example
Local AI | Hobbyists with one GPU | Check whether a model fits at a chosen quantization | A hobbyist tests a 27B model on a 24 GB card.
ML engineering | Engineers planning deployments | Estimate memory for weights, cache and overhead | An engineer compares context lengths before sizing a server.
Model publishing | Model authors | Add a VRAM badge to a model card | An author links the badge to their own model.
Research | Students | Learn how KV cache grows with context | A student changes the context length and watches the cache figure.

If you need an exact measured peak, skip it, because the page gives planning estimates.

Where to use it:

  • A web browser, through the Space's page on Hugging Face
  • Any browser on Windows, macOS or Linux, opening a downloaded copy of index.html
Use case | Who | What they get back
Size a GPU purchase | Local AI users | The GPU sizes that fit, from 8 GB up to 96 GB
Plan context length | Engineers | The longest context each GPU size can hold, up to the model's limit
Badge a model card | Model authors | A VRAM badge snippet the page builds for the model you load

How to set it up:

  • A web browser with internet access, so the page can read the model's configuration from the Hub
  • No token is needed for public models
  • Python and pip, only for the download step
  1. Install the huggingface_hub package.
  2. Download the Space into a local folder named llm-vram-calculator.
  3. Move into that folder.
  4. Open index.html in your web browser.
pip install -U huggingface_hub
hf download donaldJJ/llm-vram-calculator --repo-type space --local-dir llm-vram-calculator
cd llm-vram-calculator

How to use it: Open the page, enter a model id such as Qwen/Qwen3.8-27B and press Load. Then pick a quantization and a context length. The page can also open with a model already loaded when the page link ends in ?model= followed by a repository id.

Tool | What it does
Weights | Parameter count times bits per weight, divided by 8
KV cache | Counts only layers that keep a cache, in FP16, Q8_0 or Q4_0
Overhead | Adds 0.5 GiB plus 10 percent of weights and cache
GPU fit | Compares the total with GPU sizes and leaves 0.5 GiB free

Example: You enter Qwen/Qwen3.8-27B and press Load. At Q4_K_M with 8K context, the page shows 18.3 GiB, because only 16 of its 64 layers keep a KV cache. It says a 24 GB GPU holds up to 83K context.

For newcomers and experts: If you are new, VRAM is the memory on your graphics card, and a model must fit in it to run well. Enter a model id and read the GPU sizes that fit.

If you know the field, the KV cache counts full-attention layers, windowed layers with the window plus 512 tokens, and the compressed latent of MLA. Linear-attention and state-space layers add nothing. Every MoE expert is counted, with no CPU offload.

Enter a Hugging Face model id
The page reads the config in your browser
Weights, cache and overhead are added
GPU sizes that fit are listed
Title: Bits per weight used for the weights estimate
Q4_K_M: 4.84 bits
Q8_0: 8.5 bits
FP16: 16 bits

Good to know:

  • Treat the results as rough guides, since serving software, CUDA graphs and image encoders can push real use higher
  • Weights are sized from an assumed bit count per weight, so they differ from a real quantized file on disk
  • Models behind an access request cannot be read by the page, so enter their numbers yourself
  • License: mit
  • Cost to run: none named
  • Data it reaches: the Hugging Face Hub, to read a model's config and parameter count

On Hugging Face, 13 November 2026

  • Likes: 3
  • Built with: static
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
LLM VRAM Calculator This page3staticmit
VRAM & GPU Cost CalculatorShares calculator · inference · vram39staticmit
infersizeShares kv-cache · vram-calculator · static1staticapache-2.0
GPT-X3-150M ONNXShares quantization5dockerapache-2.0
InferenceSupportShares static764staticafl-3.0
HuggyShares static463staticcc-by-nc-sa-4.0
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Developer

See all in Developer

Lexnet

alpindale · Kit

Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…

New

FLUX.2 Klein LoRA Studio

prithivMLmods · Kit

Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…

New

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New