# Will it fit? Video memory for a language model, in plain words

*A graphics card has to hold three things to run a language model: the weights, the working notes on the conversation, and the engine's own overhead. This guide shows how to size each from numbers anyone can look up, does the sum once by hand for one model on one 24 GB card, and checks it against what that card's own counter read. Then it says what happens when the sum comes out too big, and why that is slow.*

*Published 2026-11-18 (UTC) · A small (human) team and a fleet of AI agents.*

**the short version:** A card must hold a model's weights, its notes on the conversation (the KV cache) and about a gigabyte of overhead. The weights are the file you download, near enough. The notes grow with the window you ask for, at a price per token set by the model's design, not its size: 85 KiB a token for Mistral Small 3.2 with the notes stored at 8 bits, by our arithmetic from its maker's own file. Our estimate put a 15 GB file past the end of a 24 GB card at a 131,072-token window, and that card refused it there, where a model with more parameters and cheaper notes went on whole. When a model does not fit, part of it goes to the computer's ordinary memory and every token waits on the slower half: on two 10 GB cards of ours, a quarter of a model left off the cards halved its speed.

2,268 words · about 10 minutes (at 220 words/min) · 2 tables · data kit: no

https://research.strata2signal.com/will-it-fit-video-memory-in-plain-words/

---

*If you're new here: [strata→signal](https://strata2signal.com) is a small workshop that runs its own machines and writes up what it finds. Nothing was measured for this page: every number comes from a page of ours, a maker's own file or documentation, or our own arithmetic, marked as ours. Every outside source was read on 2026-11-13 (UTC).*

## The bigger model fit {#the-bigger-model-fit}

On 2026-09-18 (UTC) we asked one 24 GB card to hold two models in turn, each with room for the same long conversation. The bigger model fit. The smaller one did not.

The card was an [EVGA GeForce RTX 3090 XC3 Ultra](https://research.strata2signal.com/hardware/rtx-3090/). The room was a **window** of 131,072 **tokens**, a few hundred pages held at once (a token is a word or a piece of one). [`gemma4:26b`](https://ollama.com/library/gemma4), with 26 billion parameters, went on whole and took 20,129 MiB of the card's 24,576. [`mistral-small3.2:24b`](https://ollama.com/library/mistral-small3.2), with 24 billion, was told to go on whole and refused to load: "the allocator's own out-of-memory error", in the words of [the page that ran both](https://research.strata2signal.com/one-3090-against-one-3090-ti/#what-fits-and-what-the-cache-costs).

So a model's size alone cannot say whether it fits. Three things share a card's memory (its video memory, or VRAM):

- **the weights**, the billions of numbers that are the model;
- **the notes**, the model's working memory of the conversation, which the trade calls the **KV cache**;
- **the overhead**: the engine's own buffers, and whatever was on the card before you began.

Those two models differed in the second.

## The weights: read the file size {#the-weights-read-the-file-size}

A model file is its weights, written at some number of bits each. So its size is parameters × bits a weight ÷ 8. **Quantization** is the choice of how many bits, and the tag on a download names it ([The compressed photograph](https://research.strata2signal.com/the-compressed-photograph/) opens the tags). Take 24 billion weights at 4.88 bits each, the figure [The quantization ladder](https://research.strata2signal.com/the-quantization-ladder/#the-five-files) found in its `Q4_K_M` file: 24 × 4.88 ÷ 8 is 14.6 billion bytes, by our arithmetic. [Ollama](https://ollama.com)'s library lists that build of Mistral Small 3.2 at 15 GB, its 8-bit build at 26 GB and its 16-bit build at 48 GB ([the tags page](https://ollama.com/library/mistral-small3.2/tags)). Only the first leaves a 24 GB card room for a conversation.

On the card, the file is the bill, near enough. The ladder loaded five builds of [Mistral NeMo](https://ollama.com/library/mistral-nemo), files from 5,801 to 12,419 MiB, on one NVIDIA GeForce RTX 3090 (24 GB) with a short 4,096-token window. Each took its file plus 376 to 782 MiB of the card.

Mind one trap in the units. A download page counts in GB, a billion bytes. A card counts in GiB, 1,024 × 1,024 × 1,024 bytes, though its label says GB. So a 24 GB card holds 25.8 GB of files as a download page counts them (24 × 1.074, our arithmetic). The mismatch runs in your favour.

## The notes: a price for every token {#the-notes-a-price-for-every-token}

As a model reads, it keeps what it worked out about every token, so it never re-reads the conversation. [Reading is fast, writing is slow](https://research.strata2signal.com/reading-is-fast/#the-notes-in-the-margin) calls these the notes. They sit on the card beside the weights, and room for the whole window is reserved up front, whether you fill it or not.

The price per token comes from the model's design, and its maker publishes the parts. Every layer keeps two sets of numbers for each token, the keys and the values (the K and the V). Each set is the layer's count of key-value heads times the size of a head; that is how [llama.cpp's source](https://github.com/ggml-org/llama.cpp/blob/5676dfbe01e7ebe0387913680eee0ed39bf4a363/src/llama-kv-cache.cpp) sizes them. [Mistral's own file](https://huggingface.co/mistralai/Mistral-Small-3.2-24B-Instruct-2506/blob/95a6d26c4bfb886c58daf9d3f7332c857cb27b43/params.json) for Mistral Small 3.2 gives 40 layers, 8 such heads and a head size of 128. By our arithmetic:

```
2 × 40 × 8 × 128 = 81,920 numbers a token
at 16 bits each:     163,840 bytes, or 160 KiB a token
in the 8-bit format:  87,040 bytes, or  85 KiB a token
```

The 8-bit format spends 34 bytes on every 32 numbers, as [Inside a GGUF file](https://research.strata2signal.com/inside-a-gguf-file/#the-tensor-table) prints. So at 8 bits the notes cost 83 MiB for every thousand tokens of window. How compactly they are stored is a setting: Ollama's [FAQ](https://github.com/ollama/ollama/blob/5632619189ab493c70bd3f9435214b8788cc1c80/docs/faq.mdx) gives `f16` as the default and says `q8_0` "uses approximately 1/2 the memory of `f16` with a very small loss in precision"; it allows the smaller formats "when Flash Attention is enabled". The rows in the next section ran at 8 bits.

Here the opening's two models part. Mistral keeps full notes in all 40 layers. [Google's file](https://huggingface.co/google/gemma-4-26B-A4B-it/blob/4d7ae4984b7db7de8f8457170b3f1a419ee76d52/config.json) for Gemma 4's 26-billion model marks 25 of its 30 layers as `sliding_attention` with a window of 1,024. Those layers look back only that far, so their notes need not grow with the conversation; [llama.cpp](https://github.com/ggml-org/llama.cpp/blob/5676dfbe01e7ebe0387913680eee0ed39bf4a363/src/llama-kv-cache-iswa.cpp) sizes such layers' notes to that window plus one batch. That is our reading of why the bigger model fit; no bench of ours tested it.

## The sum, done once by hand {#the-sum-done-once-by-hand}

Now the whole estimate, for Mistral Small 3.2 at `Q4_K_M` on that 24 GB card. Our [short history of Mistral](https://research.strata2signal.com/a-short-history-of-mistral/#what-does-it-do-on-our-own-machines) gives its weights as 14.14 GiB, which is 14,479 MiB. Add 83 MiB of notes for every thousand tokens.

| Window, tokens | Notes at 8 bits, MiB | Weights + notes, MiB | What the card read |
|---:|---:|---:|---|
| 65,536 | 5,440 | 19,919 | 20,589 MiB, whole |
| 98,304 | 8,160 | 22,639 | 23,469 MiB, whole |
| 131,072 | 10,880 | 25,359 | Refused: out of memory |

*An estimate: the two middle columns are our arithmetic. The last is the card's own reading on one EVGA GeForce RTX 3090 XC3 Ultra (24,576 MiB) under Ollama 0.32.13, measured 2026-09-18 (UTC), the last two rows with every layer told onto the card, from [RTX 3090 vs RTX 3090 Ti](https://research.strata2signal.com/one-3090-against-one-3090-ti/#what-fits-and-what-the-cache-costs).*

The estimate says the last window needs 25,359 MiB of a card that has 24,576, and the card refused it. On the two that fit, the card read 670 and 830 MiB more than the sum. Most of that gap is the third thing, the overhead: 298 MiB of it was an image service already on the card, and the rest the engine's own. But the gap grew by 160 MiB between the two rows, so a little of it grows with the window, and our sum misses that part (our arithmetic).

So the rule of thumb is **file, plus notes for the window, plus about a gigabyte**. Then leave a margin. At 98,304 the model fit with 1,107 MiB to spare, but only because we told the engine to put every layer on the card. Left to plan for itself, it held the model whole only up to 65,536. On a [ZOTAC GeForce RTX 5080 Solid CORE OC](https://research.strata2signal.com/hardware/rtx-5080/) (16 GB), the same planner left 759 to 1,775 MiB empty while it spilled three models ([RTX 5080 vs RTX 3080 Ti](https://research.strata2signal.com/rtx-5080-vs-rtx-3080-ti/#what-16-gb-holds)).

## When it does not fit {#when-it-does-not-fit}

One of three things happens. The engine may refuse, as above. It may split the model: some layers on the card, the rest in the computer's ordinary memory, worked by the processor. Ollama's FAQ says how to tell: "`48%/52% CPU/GPU` means the model was loaded partially onto both the GPU and into system memory". Or, on Windows, the driver may borrow system memory by itself. NVIDIA's support article "[System Memory Fallback for Stable Diffusion](https://web.archive.org/web/20261014100820/https://nvidia.custhelp.com/app/answers/detail/a_id/5490)" says that since driver 536.40, applications that once crashed "continue to run, albeit at lower speeds".

Slower is the common thread. A model writes one token per trip through its layers, one after another. So a trip takes the card's time plus the processor's, and the slow part takes most of it. An NVIDIA GeForce RTX 3090 streams its own memory at 936 GB a second on paper ([RTX 3090 vs RTX 3090 Ti](https://research.strata2signal.com/one-3090-against-one-3090-ti/#the-question)). The system memory of three computers of ours measured 21.4 to 98.2 GB a second ([Speeds from RAM alone](https://research.strata2signal.com/speeds-from-ram-alone/#memory-speed-and-the-rule-this-bench-registered)): a tenth to a forty-fourth of that, roughly, by our arithmetic.

Our cleanest case is [two 10 GB cards](https://research.strata2signal.com/two-used-3080s-priced/#how-much-can-each-one-hold), a Gigabyte GeForce RTX 3080 and an EVGA GeForce RTX 3080 FTW3 Ultra. Left to itself at a 4,096-token window, the server put 75.6 per cent of `gemma4:26b` on them and wrote 59.5 tokens a second. "Naming the layer count put the same model entirely on the cards and doubled the rate", to about 115 at a 131,072-token window. The dense Mistral shows the whole slope:

| Where the model sat | Tokens a second | The card or processor, and its page |
|---|---:|---|
| All of it on the card | 33.3 at 250 W, 47.8 at 300 W | EVGA GeForce RTX 3090 XC3 Ultra (24 GB): [Two 3080s against one 3090](https://research.strata2signal.com/two-used-3080s-priced/#how-fast-does-each-one-write) |
| 83.3 % on the card | 17.537 | [ZOTAC GeForce RTX 5080 Solid CORE OC](https://research.strata2signal.com/hardware/rtx-5080/) (16 GB): [RTX 5080 vs RTX 3080 Ti](https://research.strata2signal.com/rtx-5080-vs-rtx-3080-ti/#spilled-printed-alone-the-runtimes-own-placement-300-w) |
| Half on the card | 5.13 | An [NVIDIA GeForce RTX 3080](https://research.strata2signal.com/hardware/rtx-3080/) (10 GB), the board not named: [A short history of Mistral](https://research.strata2signal.com/a-short-history-of-mistral/#what-does-it-do-on-our-own-machines) |
| None: every card hidden from the run | 2.57 | [AMD Ryzen 7 3700X](https://research.strata2signal.com/hardware/amd-ryzen-7-3700x/) with 32 GB of DDR4: [Speeds from RAM alone](https://research.strata2signal.com/speeds-from-ram-alone/#the-two-channel-desktop-amd-ryzen-7-3700x-32-gb-of-ddr4) |

*`mistral-small3.2:24b` at `Q4_K_M` in every row. Four benches, at different windows and power caps, measured between 2026-09-10 and 2026-11-04 (UTC): not like for like, so no ratio is drawn between rows. The third row's bench has no page of its own.*

Not fitting is not always the end. [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) is a [mixture of experts](https://research.strata2signal.com/mixture-of-experts-in-plain-words/), which uses only a few of its parts for each token: 54.8 GB of files plus a 28.8 GB lookup table. [llama.cpp](https://github.com/ggml-org/llama.cpp) ran it on each of two 24 GB cards of ours with the experts of 34 of its 48 layers in system memory: 24.4 tokens a second on an [NVIDIA GeForce RTX 5090 Laptop GPU](https://research.strata2signal.com/hardware/rtx-5090-laptop/), 22.490 on an [EVGA GeForce RTX 3090 Ti FTW3 Ultra](https://research.strata2signal.com/hardware/rtx-3090-ti/). [That page](https://research.strata2signal.com/flash-next-on-three-cards/#writing-the-answer) draws no ratio between cards, and neither do we.

## What this cannot say {#what-this-cannot-say}

- **Whether a model fits your card.** The sum is an estimate, checked against one dense model on one card under one engine. It came out 6 per cent under what that card's own two rows imply for everything that grows with the window (83 against 87.9 MiB per thousand tokens, our arithmetic). The formula follows llama.cpp's source, and we did not read Ollama's. Only loading the model and reading the card says.
- **The notes of every model.** The formula prices a model that keeps full notes in every layer. We print no figure for Gemma 4's, because our rows cannot isolate one.
- **Other loads.** Several people at once ("Four slots reserve four windows' worth of cache", says [the two-card page](https://research.strata2signal.com/two-used-3080s-priced/#the-slot-trap-if-you-serve-other-people)), a model's vision part, image models and other engines are outside this page.

## What to take with you {#what-to-take-with-you}

- **The sum:** file, plus notes for the window you will really use, plus about a gigabyte. Count the card in GiB, and subtract what it already holds.
- **The margin:** if the sum lands within a gigabyte or two of the card, treat it as not fitting. The engine's planner will.
- **What to shrink, in order:** the window first; then the notes, to 8 bits; then the bits a weight, as far as `Q4_K_M`. On our ladder the step below that was slower and lost answers.
- **The check:** after loading, ask the engine where the model went (`ollama ps`, in Ollama). Anything short of all of it on the card is the slow row.

## Who ran this, and thanks {#who-ran-this-and-thanks}

Thanks to Mistral AI and Google for publishing their models' parts, to Georgi Gerganov and the llama.cpp authors, to the Ollama project, to NVIDIA and to the Internet Archive, whose copy of NVIDIA's page this one links; none of them owed us anything. A small human team asked for this page; a fleet of AI agents read the sources, did the arithmetic and drafted it.

## Sources {#sources}

Every outside source was read on 2026-11-13 (UTC); our own pages were read the same day.

- **Our own pages:** [RTX 3090 vs RTX 3090 Ti](https://research.strata2signal.com/one-3090-against-one-3090-ti/) (the window rows, 936 GB a second, the image service's 298 MiB); [Two 3080s against one 3090](https://research.strata2signal.com/two-used-3080s-priced/) (the split pair, the slot trap, 33.3 and 47.8); [A short history of Mistral](https://research.strata2signal.com/a-short-history-of-mistral/) (14.14 GiB, 5.13); [RTX 5080 vs RTX 3080 Ti](https://research.strata2signal.com/rtx-5080-vs-rtx-3080-ti/) (17.537, the memory left empty); [Speeds from RAM alone](https://research.strata2signal.com/speeds-from-ram-alone/) (2.57, the three memory speeds); [The quantization ladder](https://research.strata2signal.com/the-quantization-ladder/) (4.88 bits, five files on one card, the step below `Q4_K_M`); [Qwen3.8-Flash-Next on three cards](https://research.strata2signal.com/flash-next-on-three-cards/); [Reading is fast, writing is slow](https://research.strata2signal.com/reading-is-fast/); [Inside a GGUF file](https://research.strata2signal.com/inside-a-gguf-file/); [Mixture of experts, in plain words](https://research.strata2signal.com/mixture-of-experts-in-plain-words/) (GB and GiB); and the cards' own pages on [the hardware roster](https://research.strata2signal.com/hardware/), which is in beta.
- **Mistral AI**, `params.json` of Mistral-Small-3.2-24B-Instruct-2506 (Apache 2.0), at revision `95a6d26c`, read 2026-11-13 (UTC): https://huggingface.co/mistralai/Mistral-Small-3.2-24B-Instruct-2506/blob/95a6d26c4bfb886c58daf9d3f7332c857cb27b43/params.json
- **Google**, `config.json` of gemma-4-26B-A4B-it (Apache 2.0), at revision `4d7ae498`, read 2026-11-13 (UTC): https://huggingface.co/google/gemma-4-26B-A4B-it/blob/4d7ae4984b7db7de8f8457170b3f1a419ee76d52/config.json
- **Ollama** (MIT), `docs/faq.mdx` at commit `56326191` (committed 2026-11-12, UTC), read 2026-11-13 (UTC): https://github.com/ollama/ollama/blob/5632619189ab493c70bd3f9435214b8788cc1c80/docs/faq.mdx · the library's tags page for `mistral-small3.2`, read 2026-11-13 (UTC): https://ollama.com/library/mistral-small3.2/tags
- **llama.cpp** (MIT), `src/llama-kv-cache.cpp`, `src/llama-hparams.cpp` and `src/llama-kv-cache-iswa.cpp` at commit `5676dfbe` (committed 2026-11-12, UTC), read 2026-11-13 (UTC): https://github.com/ggml-org/llama.cpp/blob/5676dfbe01e7ebe0387913680eee0ed39bf4a363/src/llama-kv-cache.cpp
- **NVIDIA**, "System Memory Fallback for Stable Diffusion", answer 5490, updated 10/31/2023 on the page, with no zone given; read 2026-11-13 (UTC) at nvidia.custhelp.com/app/answers/detail/a_id/5490 and in the Internet Archive's copy of 2026-10-14 (UTC), which carries the same words: https://web.archive.org/web/20261014100820/https://nvidia.custhelp.com/app/answers/detail/a_id/5490

*Every figure on this page was printed first on a page of ours or in a maker's own file or documentation, or is our own arithmetic on those, marked as ours; nothing was measured for it. A guide, not a bench. Corrections and later readings will be added below, each dated (UTC), saying in plain words what they show.*

<!-- derived 2026-11-24 (UTC) by tools/derive_md.py from the pour source.
     source html sha256: b1e98c197eef9ab0dbe230a6969659be3c87ebfb2de06635e65f6cb5f3606723
     derivation sha256:  394297cad71abf4110674947649f420846b1033daa9f5e0ec8f09a96257432c9
     the {#id} on each heading is the anchor that heading carries on the page. -->
