tonytautai home/local-ai/run-local-ai/hardware/pc/vram

./vram --estimate

Weights Plus Context Plus Slack.

You do not need a vram calculator llm tool. The estimate is three terms you can do in your head: the weights, the context, and a margin for the runner and the driver.

Tony Tautai

vram calculator llm: size the card before you buy

Video memory is the one part of a PC you cannot add later, so this estimate is worth a minute before buying a card or a model. It is also the estimate people skip, which is how a downloaded model ends up refusing to load on a card bought the week before. The wider parts discussion is in our notes on pc hardware for local ai.

Term One, The Weights

vram calculator llm: size the card before you buy

The size of the model file on disk is a close proxy for what the weights take on the card. A quantised file, where each weight is stored in fewer bits, is smaller and loads smaller; a full-precision file is larger. The parameter count on the model's page tells you the family; the file size tells you the truth for the version you downloaded. Use the file size.

Term Two, The Context

While the model reads, it keeps a working record for every word in view, for every layer of the network. That record grows with the length of the window you allow. Asking the model to hold a whole scanned tender in view costs far more than asking it to read page by page. If you plan to feed long documents, this term can rival the weights, and runners let you cap the window to control it.

Term Three, Slack

vram calculator llm: size the card before you buy

The runner itself, the driver, the display if the card also drives your monitors. Leave a margin. A card loaded to the brim will work on the first file and fail on the longest one.

When The Sum Does Not Fit

Pick a smaller quantisation, shorten the window, or run on the processor instead, where system memory is cheaper and expandable; the sizing for that path is in more on how much ram for local ai, and the trade in speed is explained in what we wrote about cpu vs gpu for local ai. Small specialised models rarely hit the ceiling at all, which is why the box in best mini pc for local ai in practice has no card. If you are sizing a full tower, what we wrote about pc for local ai puts the card last for exactly this reason.

Do the sum, then test with your longest real document rather than a sample prompt. The longest one is the one that will fail.

vram calculator llm: size the card before you buy

ssh [email protected]

Prove it on your documents.

Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.

Test it on my documents Request a diagnostic