How Fast Will a Local LLM Run? A Simple Formula Tested Against 178 Real Benchmarks
“How fast will this model run on my GPU?” is a question every local model user asks. The usual answers are a guess or a single number from someone with a different card.
I wanted something I could check. So I took a simple formula, ran it against real benchmark results, and wrote down where it works and where it does not.
The short version is encouraging, with one clear exception. Most cards land inside the range the formula gives. The newest NVIDIA cards do not, and I do not know why.
A word on what I did. I did not run models on these cards myself. The speeds are other people’s measurements from the open LocalScore benchmark. My work was checking the inputs, fitting two constants, and testing the formula against results it had not seen.
This article builds on my guide Run LLMs Locally. It comes with a free tool, the Local LLM Speed Estimator, that uses everything below.
Table of Contents
- The Short Answer
- Why Memory Bandwidth Sets the Speed
- The Data
- Checking the Inputs
- Two Rounds of the Formula
- Where It Breaks
- Apple Silicon
- What the Ranges Really Tell You
- Use the Formula Yourself
- Measure Your Own Machine
- FAQ
- What I Did Not Test
1. The Short Answer
Generation speed is roughly the memory bandwidth of your card divided by the size of the model, with two corrections. About 70 percent of the bandwidth is usable, and every token carries a fixed cost of about 2.75 milliseconds.
I tested that against results from three models at Q4_K_M: Llama 3.1 8B, Qwen2.5 14B, and Llama 3.2 1B. Here is how it did.
| Hardware | Results | Inside the range shown | Median error, one card held out |
|---|---|---|---|
| NVIDIA, before the RTX 50-series | 101 | 87 percent | 10 percent |
| NVIDIA RTX 50-series | 30 | 57 percent | Not computed |
| Apple Silicon | 47 | 89 percent | 17 percent |
The range for most NVIDIA cards runs from 0.5 times to 1.2 times the formula. For Apple chips it runs from 0.7 times to 1.4 times, after scaling by 0.74. For the RTX 50-series I widened the low end to 0.35 times, which covered 97 percent of those results.
Four caveats come with these numbers.
- Optimistic ranges: I measured the ranges on the same data I used to fit the constants. The real hit rate on new results is probably lower.
- One runtime: LocalScore runs llamafile, while Ollama and LM Studio use other builds, so your speeds can differ.
- Three models: I tested one quantization and three models. Other sizes and mixture-of-experts models are untested.
- Generation only: Prompt processing is a separate and compute-bound problem that I did not model.
2. Why Memory Bandwidth Sets the Speed
To generate one token, the GPU reads every weight of the model once. The model sits in memory, so the time to read it sets a floor on the time per token.
That gives a ceiling. Divide the memory bandwidth by the model size, and you get the most tokens per second the card could ever produce.
Take an RTX 4090 and Llama 3.1 8B at Q4_K_M. The model file is 4.92 GB, and the card has 1,008 GB/s of bandwidth. The ceiling is about 205 tokens per second.
LocalScore lists two measurements for that card and model. They are 119.6 and 90.5 tokens per second. That is 58 and 44 percent of the ceiling.
So the ceiling is real but you never reach it. The two corrections in the formula exist to describe the gap.
Mixture-of-experts models change the model size in the formula. Only the active experts are read for each token, so Qwen3 30B-A3B behaves more like a 3B model for speed while still needing 30B worth of memory.
3. The Data
LocalScore is an open benchmark from Mozilla Builders. People run a small test on their own machine, and the results go into a public database. The test measures prompt processing speed, generation speed, and time to first token.
LocalScore uses llamafile under the hood. That matters, because it is not the runtime most people use for daily work.
I used the leaderboard pages for three models, all at Q4_K_M. The pages embed their results as data, so I could read them directly on December 4, 2026.
| Model | GPU entries | Q4_K_M file size |
|---|---|---|
| Llama 3.1 8B | 192 | 4.9 GB |
| Qwen2.5 14B | 177 | 9.0 GB |
| Llama 3.2 1B | 241 | 0.8 GB |
Most entries were not usable for this test. I kept an entry only if I could check three things.
- Known bandwidth: I needed a bandwidth figure I had verified for that exact GPU.
- A real retail memory size: Entries whose memory size did not match the retail card were dropped, which can mean modified or multi-GPU setups.
- The model fit: The card needed room for the model plus about 2 GB.
That left 131 NVIDIA results and 47 Apple results. I dropped AMD cards, laptop GPUs, and CPU-only runs, because I had no verified bandwidth for them.
I used the results to test the formula and I do not republish them. If you want to reuse the data, check LocalScore’s own terms first.
4. Checking the Inputs
A formula is only as good as its inputs. I checked two of them before trusting any result.
Model file sizes
I read the real file sizes from Hugging Face instead of estimating them from the parameter count.
| Model | Q4_K_M file size | Bits per weight |
|---|---|---|
| Llama 3.1 8B | 4,920,739,232 B | 4.90 |
| Qwen2.5 14B | 8,988,110,496 B | 4.87 |
| Llama 3.2 1B | 807,694,464 B | Not computed |
The 8B and 14B models agree within 0.04 bits. I did not compute the 1B figure, because LocalScore and Hugging Face disagree on how many parameters that model has.
This check also exposed a mistake in my own memory calculator. It used 4.5 bits for Q4_K, which is the pure type. The Q4_K_M file you actually download is closer to 4.9 bits, so the calculator understated the weights by about 8 percent. I fixed it the same day.
Memory bandwidth
I had recalled the bandwidth figures from spec sheets. Recall is not a source, so I compared them with Wikipedia’s GPU tables.
For 35 GPUs I could compare, 34 matched within 1 percent. The exception was the RTX 3060 12GB, where my figure was 360 GB/s and Wikipedia’s was 336. NVIDIA’s own page did not state the memory speed, so I left that card out.
For Apple chips I read Apple’s own pages. The M5 Max is 614 GB/s with a 40-core GPU and 460 with 32 cores. The M4 Max is 546, the M2 Ultra and M1 Ultra are 800, and the M2 Max is 400. The M3 Ultra figure of 819 is derived, because Apple says the M5 Ultra’s 1.2 TB/s is 50 percent more than the M3 Ultra.
5. Two Rounds of the Formula
Round 1: one correction
My first formula was the ceiling times one efficiency factor. I fitted the factor on the 8B model only and tested it on the others.
On the 8B model it worked. The median error was 14 percent.
On the 1B model it failed badly. The median error was 99 percent. The efficiency was only 0.27 on the 1B model, against 0.54 on the 8B.
The reason is a fixed cost. A small model reads so little memory that something else takes most of each token’s time. The same RTX 4090 that reaches 58 percent of its ceiling on the 8B model reaches about 30 percent on the 1B.
I do not know what that fixed cost is. Kernel launches, sampling, and CPU work are plausible, but I did not investigate.
Round 2: add a fixed cost
The second formula adds a constant time per token. Fitted on the 8B model only, it cut the 1B median error from 99 percent to 18 percent.
Then I fitted both constants on all the results. They came out at about 0.70 for efficiency and 2.75 milliseconds for the fixed cost. Refitting on only the results where the model fit gave 0.68 and 2.5, which changes little.
The final formula is:
time per token (ms) = model size (GB) / (bandwidth (GB/s) x 0.70) x 1000 + 2.75
tokens per second = 1000 / time per token
6. Where It Breaks
Models that do not fit
If the model does not fit in video memory, part of it runs on the CPU. The formula has no way to describe that.
Four 8 GB cards ran the 9 GB Qwen2.5 14B model at 4.5 to 7.5 tokens per second. The formula predicted 32 to 35. That is 4.3 to 7.8 times too fast. A 10 GB RTX 3080 was only 1.4 times too fast, probably because few layers spilled over.
So the tool does not guess. When a model does not fit, it shows “No estimate”.
The RTX 50-series
This was the surprise. Excluding these cards, 87 percent of results sat inside the range. For the 30 results from RTX 50-series cards, only 57 percent did, and the median was about 58 percent of the formula.
Here are the 8B results.
| Card | Formula | Measured (LocalScore) |
|---|---|---|
| RTX 5090 | 150 | 66 |
| RTX 5080 | 99 | 45 and 48 |
| RTX 5070 Ti | 94 | 35 and 66 |
| RTX 5070 | 76 | 56 |
| RTX 5060 Ti | 54 | 51 to 59 |
The 8B results for all Blackwell cards sat between 35 and 86 tokens per second, whatever the bandwidth. That looks like a ceiling set by something other than memory.
I do not know the cause. Early software support for the new architecture is one possibility, and LocalScore’s runtime is another. I could not check either. These numbers may also be out of date by the time you read this.
I did not bake a correction into the formula. A correction could be wrong if the cause is a runtime issue that you will not have. The tool instead widens the low end of the range to 0.35 times and labels these cards a rough guess.
Small models can be faster than the range
For the 1B model, 24 percent of results ran faster than the range. The fixed cost is not the same on every card, and the formula treats it as one number.
The source is noisy
The same card was often measured by different people with different drivers and settings. For the 8B model, one RTX 4090 entry says 119.6 and another says 90.5. That is a 32 percent gap on identical hardware.
Across 19 cases with more than one entry for the same card and model, the median spread was about 70 percent. The largest was 214 percent. No formula can beat noise like that.
7. Apple Silicon
Apple chips behave differently. The formula, fitted on NVIDIA cards, predicts about 35 percent too much speed for them. The measured results reach about 74 percent of the prediction.
I used 47 results across seven chip families. After scaling by 0.744, I held out one family at a time and fitted the scale on the rest. The median error was 17 percent. Of the held-out results, 77 percent were within 25 percent and all were within 50 percent.
The range of 0.7 to 1.4 times covered 89 percent of the results.
| Chip | Scaled formula | Measured (LocalScore) |
|---|---|---|
| M4 Max, 40-core GPU | 48 | 48 to 55, across memory sizes |
| M3 Ultra | 66 | 63 |
Three details are worth knowing.
- A dropped result: One M1 Ultra entry measured 15 tokens per second. It was a run without the GPU, so I excluded it.
- A thin family: The M5 Ultra had a single result, so its figure rests on Apple’s bandwidth number alone.
- An assumption about memory: For Macs I assume the GPU can use about 65 percent of unified memory. That share is my assumption, not an Apple figure.
8. What the Ranges Really Tell You
The ranges are wide. For the 4090 with the 8B model, the tool says 51 to 125 tokens per second. Measured results were 90 and 120, both inside it.
That range answers one question well. It tells you the card is fast enough for comfortable chat. It does not tell you whether you will get 80 or 110.
I think that is the honest limit of a formula like this. It rules models in or out. For decisions that depend on a 20 percent difference, you need a measurement of your own setup.
9. Use the Formula Yourself
You do not need the tool to use the formula. This function reproduces it.
def tokens_per_second(model_gb, bandwidth_gbs, apple=False):
ms_per_token = model_gb / (bandwidth_gbs * 0.70) * 1000 + 2.75
t = 1000 / ms_per_token
return t * 0.744 if apple else t
print(tokens_per_second(4.92, 1008)) # RTX 4090, 8B at Q4_K_M: about 103
print(tokens_per_second(4.92, 546, apple=True)) # M4 Max, 8B at Q4_K_M: about 48
Find your model’s file size on its Hugging Face page. Find your card’s bandwidth on the vendor’s spec page. Then multiply the result by 0.5 and 1.2 for the range, or by 0.7 and 1.4 for an Apple chip.
Check that the model fits first. The memory calculator does that, including the context cache.
10. Measure Your Own Machine
The best number is your own. Ollama prints its speed when you run a model with the verbose flag.
ollama run <model> --verbose
After each reply it prints several timings. The line to read is eval rate, which is your generation speed in tokens per second. The prompt eval rate line is the separate prompt processing speed.
You can also run the LocalScore benchmark and submit the result. That helps the next person who looks up your card.
11. FAQ
How fast is an 8B model on an RTX 4090?
LocalScore has two entries for that card, at 119.6 and 90.5 tokens per second, using Llama 3.1 8B at Q4_K_M. The formula gives about 103. The tool shows a range of 51 to 125.
Is memory bandwidth or compute more important?
For generating text, bandwidth. Every token reads the whole model once. Prompt processing is different and leans on compute, and this article does not cover it.
Why does a faster card not always give more speed?
Two reasons showed up in the data. A fixed cost per token puts a ceiling on small models. On the 8B model, the RTX 50-series results also cluster between 35 and 86 tokens per second whatever the bandwidth, and I do not know why.
Does this work for AMD GPUs or CPUs?
I did not validate them. LocalScore lists only 34 AMD and Intel GPUs, mostly one to three results per card, and some of those were clearly not GPU runs. That is too little to check a formula against. The tool covers NVIDIA GPUs and Apple Silicon only. For CPU-only machines I have no verified data.
Where can I try it?
The Local LLM Speed Estimator runs in your browser. Pick your card, and it shows which models fit and a range for each.
12. What I Did Not Test
- Other runtimes: LocalScore uses llamafile, and I did not compare Ollama, LM Studio, or a current llama.cpp build.
- Other quantizations and models: Everything here is Q4_K_M with three models. The tool lets you pick another quantization and reuses the same formula with a different file size. It marks those results as a rough guess. Mixture-of-experts speed is a rough guess too.
- Newer models: The tool lists Qwen3.8, Gemma 4, gpt-oss, and other 2026 models. LocalScore has no results for them, so every speed for them is a rough guess. Several use hybrid or sliding-window attention, which I did not test.
- Prompt processing: In the 8B results, prompt processing ran a median of 28 times faster per token than generation. The middle 80 percent ranged from 9 to 63 times. I did not model it.
- Long contexts: The results use short prompts. Long contexts slow generation down, and the formula ignores that.
- Causes: I do not know why the fixed cost exists or why the 50-series runs slow in these results.
- Fresh data: The results were read on one day. New drivers and software can change them.
If you have a measured result that contradicts the tool, I want to see it. That is the fastest way to make the next version better.