← Blog

Which LLM fits which Tesla: a VRAM table from 7B to 70B (and where OOM hits)

Agile Store · 4 November 2026 · 14 min read

  • Buying guide
  • Language models (LLM)
  • Tesla P40 24 GB
  • Tesla P100 16 GB
  • Tesla V100 16 GB
  • Tesla V100 32 GB
  • A2 16 GB
  • 0
  • 0

Short answer: "how much VRAM does 70B need" is the wrong question: the whole internet knows the answer (Q4 is ~41 GB) and it does you no good. The right question is: will THIS model fit on THIS used card with a usable context length? And here there are three traps that guides do not show: a "16 GB" card does not give you 16 GB to use, the context can exceed the VRAM budget after the weights have already loaded, and a second card increases the total memory budget available in a multi-⁠GPU configuration, without a speed-⁠up in our rig. Below is a map based on what we actually measured: which models fit on the P100, A2, V100-⁠16, V100-⁠32 and P40, and for which models each of them runs out of memory (OOM).

I am writing this for people choosing a used Tesla for a specific model, not for those collecting benchmarks for sport. If you know you want to run a 14B, 32B or 70B model locally and you are asking "which card can handle it", this post is for you. Instead of a calculator formula, you get our measured footprints and OOM limits from the same bench, the same models and the same command.

One scenario to guide the whole post

Let us take a concrete case that I will keep coming back to: you want to run a 32B-⁠class model (Qwen2.5-32B in Q4_K_M, a solid general model). It is a good test case, because it sits exactly on the boundary where used cards diverge: for some it is too much, for others just right, and for a pair of older cards only possible together.

Before I say which card will handle it, I need to show what "VRAM usage" is actually made of, because that decides everything.

What the number you see in nvidia-⁠smi is made of

Memory usage is not just the size of the GGUF file. It is three things at once:

  1. The model weights: the file on disk. A 32B Q4_K_M is ~19–⁠20 GB of weights alone.
  2. The KV cache (context): memory for "what the model has already read". It grows with the length of the context and with longer windows it can exceed the weights. This is the component most often left out of calculators; I will come back to it.
  3. The driver reserve and buffers: a few hundred MB to ~1 GB that are not visible in the file, and that the card takes for itself.

That is why the footprint we measured is always larger than the GGUF file. All the figures below are peak VRAM usage in a llama-bench run with a prompt of up to 8192 tokens (nvidia-smi read every second, whole card): real, but not fixed: change the context or the backend and they will move by a few hundred MB. Treat them as a map, not as a guarantee down to the megabyte.

Here are our measured footprints (Q4_K_M unless stated otherwise), roughly by model size:

Model Quant Peak VRAM (our measurement, prompt up to 8192 tokens)
Mistral-⁠7B Q4_K_M ~5.5 GB
Llama-⁠3.1-8B Q4_K_M ~6.0 GB
Bielik-⁠11B Q4_K_M ~8.4 GB
PLLuM-⁠12B Q4_K_M ~8.7 GB
gemma-⁠2-⁠9B Q4_K_M ~8.4 GB
Qwen2.5-14B Q4_K_M ~10.2 GB
Qwen2.5-14B Q8_0 16.2 GB
Mistral-⁠24B Q4_K_M ~15.2 GB
gemma-⁠2-⁠27B Q4_K_M ~18.9 GB
Qwen2.5-32B Q4_K_M ~21 GB
Llama-⁠3.3-70B Q4_K_M ~42–⁠43 GB (two cards)

The footprints come from runs with the same prompt (up to 8192 tokens). nvidia-smi reports MiB, and the table gives the value as MiB/1000 (for example 16,249 MiB = 16.2 GB), so these are not GiB; the Qwen2.5-14B Q8_0 weights are 15.7 GB (the file size in bytes divided by 10^9). For models ≤16 GB the reference is the V100-⁠16 sweep, for larger ones the P40/V100-32. The same figure can differ by ~1–⁠1.5 GB between cards (the driver reserve): more on that in a separate section shortly.

Remember three thresholds: 32B Q4 ≈ 21 GB, 27B Q4 ≈ 19 GB, 70B Q4 ≈ 42 GB. All hardware decisions hinge on these thresholds. So let us go back to our 32B and walk through the cards.

The capacity ceiling, card by card: our measured map

This is the most important table in this post: the largest model that actually fitted on a single card in our tests, and the first one that did not.

Card Nominal VRAM Largest measured single-⁠card First OOM
A2 16 GB Mistral-⁠24B Q4 only up to ~4K context Mistral-⁠24B @ 8K, everything ≥27B
P100 16 GB Mistral-⁠24B Q4 (15.5 GB, full 8K) Qwen14B Q8, gemma-⁠27B, 32B
V100-⁠16 16 GB Mistral-⁠24B Q4 (15.2 GB, full 8K) Qwen14B Q8, gemma-⁠27B, 32B
P40 24 GB Qwen32B Q4 (21 GB): also fits gemma-⁠27B, Qwen14B Q8 Llama-⁠70B Q4 (two cards)
V100-⁠32 32 GB Qwen32B Q4 (21 GB): the whole 7–⁠32B range with headroom Llama-⁠70B Q4 (~42 GB)

So our example 32B (21 GB peak) gets a clear answer: it will not fit on any 16 GB card, but it fits on the P40 24 GB (tightly, with little headroom for context) and comfortably on the V100-⁠32. This is not obvious from "32B needs 20 GB": the 16 GB cards drop out because the peak with KV @8192 = 21 GB exceeds their capacity; the P40 with 24 GB fits 32B with a small margin, and the V100-⁠32 with headroom for a long context. Paper capacity misleads: what counts is the measured peak.

One observation I repeat to customers most often: the 24 GB P40 is the cheapest single card for models all the way up to 32B. gemma-⁠27B Q4, Qwen14B Q8 and Qwen32B Q4 (21 GB, tight) fit on the P40 at a fraction of the price of a V100-⁠32, but run out of memory on every 16 GB card. The difference is in the headroom: with 32B the V100-⁠32 gives a real margin for a long context, while the P40 fits 32B with no slack. If you want 32B with a long context, the V100-⁠32; if it simply has to fit as cheaply as possible, the P40.

The "16 GB" trap: because not every 16 GB is 16 GB

Here is something you will not find in VRAM calculators. We took three cards with a nominal 16 GB (A2, P100 and V100-⁠16) and the same model behaved differently on them.

Mistral-⁠24B Q4 (15.2 GB at peak) on the V100-⁠16 ran with the full 8192 context; on the P100 too (15.5 GB at peak). On the A2, also 16 GB, the same model failed at 8192 and worked only up to ~4K context. The reason lies in the memory actually available: the A2 gives ~14,962 MiB "usable" (2× in a pair = ~30 GB), about 1 GB less than the V100-⁠16 at the same nominal size. The most likely cause is ECC: on cards with GDDR memory (the A2, and the P40 too) ECC is on by default and takes 6.25% of the memory for check bits, while the HBM2 of the P100 and V100 has dedicated ECC at no capacity cost. ECC can be switched off (sudo nvidia-smi -e 0 and a reboot), which returns about 1 GB at the price of memory-⁠error protection; we did not repeat the Mistral-⁠24B test at 8K with ECC off. What counts is the effect: the same nominal size, a different real capacity.

This is not an academic footnote. If you are buying a "16 GB card for a 24B model with a long context", in this profile the A2 does not fit the full 8K where the V100-⁠16 and P100 run correctly, even though the specification shows the same number. That is why in the table above the A2 has the note "only up to ~4K": the same 16, a different truth.

The practical conclusion: with models brushing against the card's ceiling, the nominal size is not enough: ask for the measured footprint at your context. We have these figures; most listings give only the paper GB.

When one card is not enough: a second card increases the memory budget, in our rig not the speed

Our 32B fitted on the P40 24 GB and the V100-⁠32. But what about 70B (~42–⁠43 GB)? None of the single cards we tested (max. 32 GB) can fit it: only a pair can. And here is the second trap, which we measured directly.

In our rig (PCIe Gen3, without NVLink/P2P) layer split unlocked capacity, but did not speed up the model tested. Llama-⁠70B Q4 on 2× V100-⁠32 (64 GB, 21.8 GB/card) ran, but two cards working on one model did not add up in performance. We checked this directly on a model that fits on a single card: Mistral-⁠24B on 2× V100-⁠16 gave 1055 tok/s of prefill, and on a single V100-⁠16, 1074. The pair was no faster than the single card (a 2% difference, which may be measurement noise). In this configuration the second card unlocked a larger model; it did not speed up a smaller one. With layer split, the GPUs process a single token's successive layers sequentially, so adding a GPU or NVLink does not itself guarantee faster generation for one sequence. Prefill can benefit from pipelining microbatches across GPUs, depending on settings and hardware, rather than prompt length alone. We did not observe that benefit in our 512-⁠token test.

Row split (-sm row), the mode meant to add speed, did not start at all, and that is not down to our rig. Neither on the P40 nor on the V100: llama.cpp returns "does not support split buffers", because it removed row split from its CUDA backend in July 2026, so the build we used fails this way on every NVIDIA setup, NVLink or not. The replacement mode, -sm tensor, is still experimental and requires Flash Attention. Automatic memory fitting is unsupported in this build, so manual context sizing may be necessary; we have not measured it on these cards.

What this means for choosing a pair for 70B:

Pair Total VRAM Llama-⁠70B Q4 (~42–⁠43 GB)?
2× A2 ~30 GB usable ❌ OOM: even Q3_K_M (34 GB) does not fit
2× V100-⁠16 32 GB ❌ OOM (~42 > 32); runs 24–⁠32B Q4
2× P100 32 GB ❌ OOM (Q3_K_M 34 GB and Q4 42 GB > 32); runs 24–⁠32B Q4
2× P40 48 GB ✅ 21.2 GB/card; pp512 101 / tg128 4.9 tok/s
2× V100-⁠32 64 GB ✅ with headroom; pp512 317 / tg128 16.0 tok/s

Our A2-⁠pair measurements do not establish a general limit for every 70B quantisation. ~30 GB usable does not fit even 70B Q3_K_M. The smaller IQ3_XXS and IQ3_XS variants have files of 27.47 and 29.31 GB respectively, before adding the KV cache and runtime buffers. This does not rule out running 70B with a smaller quantisation and shorter context; our measurements establish the 24–⁠32B Q4 range on the A2 pair. If 70B is the goal, the realistic minimum is 2× P40 (48 GB, the cheapest) or 2× V100-⁠32 (64 GB). On the same Llama-⁠3.3-70B Q4, the V100-⁠32 pair measured 317 tok/s of prefill and 16.0 tok/s of generation against 101 / 4.9 on the P40 pair: in this one test, roughly 3× more. 64 GB of total VRAM opens up models larger than 70B, but without a benchmark we do not give a parameter limit.

On the context that knocks the model over after loading: a preview

You will have noticed a recurring pattern in the tables: "the weights fit, but an 8192 context pushes the KV beyond capacity". Qwen14B Q8 (weights ~15.7 GB, peak with KV 16.2 GB) runs out of memory on the V100-⁠16 not because the weights do not fit (they do), but because the KV cache at 8K pushes total usage above 16 GB. This is a separate, underrated enemy of capacity, and I will cover it in a separate post. For now, remember: with a model close to the card's ceiling, it is the context length, not the size of the weights, that decides whether you can start.

What follows: a cheat sheet for choosing by model

Let us reduce the three tables to one decision, "I have a model → I take a card":

  • 7–⁠12B (Mistral-⁠7B, Llama-⁠8B, Bielik, PLLuM, gemma-⁠9B): the 16 GB cards we tested fit this class of models with a typical margin in the configuration described. The A2 if low power draw (60 W) and a low-⁠profile, single-⁠slot card matter, the P100/V100-16 if generation speed does (HBM2). The cheapest sensible choice for this class.
  • 14B: 16 GB is enough in Q4; if you want Q8 (16.2 GB), you need a P40 24 GB or a V100-⁠32, because on a 16 GB card the KV @8K will push it into OOM.
  • 24–⁠27B: Mistral-⁠24B Q4 (15.2 GB) still runs on the V100-⁠16 and P100 with the full 8K context (on the A2 only up to ~4K), with almost no headroom; gemma-⁠27B Q4 (18.9 GB) needs the P40 24 GB, the cheapest single card that fits it.
  • 32B: fits on a single P40 24 GB (21 GB peak: just about, with little headroom for context) or comfortably on a V100-⁠32 (a margin for a long context). An alternative: a pair of 16 GB cards (2× V100-⁠16 / 2× P100), which in our tests ran 24–⁠32B Q4. Cheapest "as long as it fits" = P40; 32B with a long context = V100-⁠32.
  • 70B: only a pair: 2× P40 (48 GB) on a budget, 2× V100-⁠32 (64 GB) for speed. A pair of A2s and 2× V100-⁠16 cannot carry it.

How can you check on your own system before you buy? Load the model and look at the peak:

llama-cli -m model-Q4_K_M.gguf -ngl 99 -c 8192 -p "test"
nvidia-smi --query-gpu=memory.used --format=csv -l 1

If memory.used approaches the card's nominal size at your context, you are on the edge of OOM and either reduce the context or take a bigger card. Two minutes of testing save you returning a card that "had 16 GB, but the model did not fit".

If you run models through Ollama, the symptom may differ: when a model exceeds VRAM, Ollama can move some layers to the CPU, potentially slowing inference substantially. For full GPU residency, check that ollama ps shows 100% GPU under PROCESSOR. Default context length depends on detected GPU memory. The documentation describes nominal 24 and 48 GiB tiers, but Ollama 0.40.12 sums detected GPU memory after subtracting configured GPU overhead and uses thresholds of 23 and 47 GiB: 4096 tokens below 23 GiB, 32768 from 23 to below 47 GiB, and 262144 from 47 GiB, subject to the model limit and settings. Set your required context with OLLAMA_CONTEXT_LENGTH or num_ctx before measuring, and verify the allocated context with ollama ps.

One final thought

The paper GB on the box is not the capacity you get. A model is the weights plus the context plus the reserve, and it is the sum of these three, not the size of the file, that decides OOM. That is why the P40 24 GB has more capacity than the V100-⁠16 despite its older architecture, why two A2s do not make a card for 70B, and why the most reliable answer to "will it fit" is the measured footprint at your context, not a number from an advert.

Agile Store sells the used cards mentioned in the article. We carried out the measurements on our own units; where we use manufacturer data or external sources, we say so explicitly.


Sources

  1. Agile Store's own measurements, 10–⁠13 August 2026: llama-⁠bench from llama.cpp (build 6ad4ab0, flash_attn in auto mode, no -fa flag), -ngl 99 -r 3 and -p 512,2048,4096,8192 -n 128,512 in the runs the VRAM peaks come from (average of 3 repeats), GGUF models, the full power limit of each card, driver 580.173.02, CUDA Toolkit 12.0.140 (used to compile), an Intel Xeon E5-⁠2697 v3 bench, PCIe Gen3 cards without NVLink/P2P. VRAM footprints = peak memory.used from a parallel nvidia-smi reading every 1 s. Cards: Tesla P40 24 GB, P100 16 GB, V100 16 GB and 32 GB (PCIe), and NVIDIA A2 16 GB; layer/row-split pairs on the same bench.

FAQ

How much VRAM does a 32B model take in Q4_K_M?
In our measurement Qwen2.5-32B Q4_K_M at an 8192 context took about 21 GB at peak: it does not fit on any 16 GB card, it fits on the P40 24 GB (with a small margin) and comfortably on the V100 32 GB.
Which of the used NVIDIA cards tested will run a 70B model?
No single card tested (max. 32 GB): Llama-⁠3.3-70B Q4 took ~42–⁠43 GB in our configuration, so pairs are needed: 2× P40 (48 GB, 4.9 tok/s of generation) or 2× V100-⁠32 (64 GB, 16.0 tok/s). Neither a pair of A2s nor 2× V100-⁠16 (32 GB) fitted it in our configuration.
Can every 16 GB card accommodate the same models?
No. Mistral-⁠24B Q4 ran with the full 8192 context on the V100-⁠16 and P100, but on the A2 (also 16 GB) it failed above ~4K context: the difference lies in the memory actually available, not in the nominal size.
Does a second card speed up generation?
Not with layer split, the default mode: in our PCIe Gen3 rig it unlocked capacity for 70B but did not speed up the model tested. Row split (-sm row) no longer exists in llama.cpp's CUDA backend (removed in July 2026); its experimental successor, -sm tensor, is the mode designed to add speed, and we have not measured it on these cards.
Which single card tested fits models up to 32B Q4?
The P40 24 GB and the V100 32 GB. In our Qwen2.5-32B Q4 the peak was about 21 GB: the P40 fitted it with a small margin, the V100-⁠32 with a larger one; both also fit gemma-⁠27B Q4 and Qwen14B Q8, which end in OOM on every 16 GB card. Which is cheaper on the day you buy depends on current prices.

Related products