Local AI Math

For your own GPU or Mac

Free calculators for running AI models on your own hardware

Two calculators for people who run models on their own machine. Both are estimates from published formulas and the figures you enter, not benchmarks.

  • Free, no account
  • Your numbers and files are not uploaded
  • Formulas shown next to every result

Memory map, 24 GB cardGB

Memory estimate
Weights Qwen2.5 32B at Q4_K_M19.70 GB
Context cache 8,192 tokens, 16-bit2.15 GB
Runtime buffers allowance1.00 GB
Left over1.15 GB
Total estimate22.85 of 24 GB
Estimate from the worked example below. Real use varies by runtime and leaves nothing here for a display on the same card.

1Which tool do I need?

2The two tools

3Sizing a model to the memory you have

For running a language model at home, memory decides what you can load and speed decides whether you will enjoy using it. Work out memory first: a model that does not fit in VRAM either fails to load or spills into system memory and slows down sharply.

Memory has three parts. The weights take the parameter count times the bits per weight, divided by eight. The context cache grows with every token of context you allow. The runtime needs a buffer on top, and everything else on the machine, the desktop included, needs some too.

On a Mac with Apple silicon, the graphics share unified memory with the rest of the system, so not all of it is free for the model. Enter the total and let the calculator hold back an allowance for macOS and your other apps.

Worked example: will a 32B model fit a 24 GB card?

  1. In LocalLLMBench, choose Qwen2.5 32B (32.5 billion parameters) at Q4_K_M, which averages about 4.85 bits per weight. The weights come to about 19.7 GB.
  2. Set the context to 8k. This model has 64 layers and 8 key/value heads of size 128, so a 16-bit cache takes about 0.26 GB per 1,000 tokens: about 2.1 GB for 8,192 tokens. Add 1 GB of runtime buffers and the total is about 22.9 GB.
  3. That fits a 24 GB card with little to spare. A longer context, or a monitor plugged into the same card, can push it over; Q3_K_M or a shorter context gives room back.
  4. In SiliconPerDollar, add the cards you are considering at the prices you have actually been quoted. A card drawing 350 W for 8 hours a day over 3 years uses about 3,070 kWh; at $0.30 per kWh that is about $920 of electricity, which can close the gap between a cheaper used card and a newer, more efficient one.
  5. Once you own the card, log your real tokens per second in the benchmark table. Your own runs beat any estimate, including ours.

When to ask someone qualified

  • A multi-GPU machine can draw more than a household circuit should carry for hours. In the US a 15 A, 120 V circuit is rated 1,800 W, and continuous loads are normally kept to 80% of that. Ask an electrician before adding a circuit.
  • If the model will handle customer, patient or employee data, running it locally does not settle compliance by itself. Ask whoever is responsible for data protection where you work.
  • For hardware bought for a business, an accountant can tell you whether it is depreciated or expensed.

4How these tools work

They run on your device

Each tool does its work in your browser. What you type or load is not uploaded to us. Anything a tool saves for next time stays in your browser, and each tool's privacy page shows how to delete it.

Why they are free

There are no servers doing the work, so the tools cost very little to run. Ads on the tool pages pay for the domain. There is no paid version and nothing to sign up for.

How to trust the numbers

Every result has a "how this is calculated" section, and each tool has a guide with the formulas and their sources. Results are estimates, not professional advice. If you find a mistake, tell us.