All articles

GPU for local LLM: how much memory do you need?

In short. A GPU for a local LLM is chosen by memory, not by name: the model weights must fit in it with headroom. The size of the weights is simple to work out: parameters × bits per weight ÷ 8. A 14 billion parameter model in Q4_K takes about 7.9 GB, a 32 billion one about 18 GB and a 70 billion one about 39 GB. The NVIDIA cards in the table below have from 12 to 32 GB. Our check of your computer starts from 390 € plus hardware.

A desk in Nice: a computer graphics card with brass fans, a tape measure beside it, a notebook with neat rows of empty cells, a pencil and a cup of coffee, morning light from the window
First work out how much memory the model needs, and only then choose the card.

The question usually sounds like this: which graphics card should we buy so that our own AI model runs here. The answer starts not with the card model but with the size of the model and the amount of memory it needs. This guide explains how to work out the weight of a model, how much memory NVIDIA cards have according to the manufacturer’s pages, which card fits which model, what else to consider and when buying is not needed at all.

Why is memory the main thing when choosing a card?

A language model is a large file of numbers, and for fast work those numbers must fit in the memory of the graphics card. If they do not fit, work slows down or becomes impossible. That is why the model size is worked out first.

The size depends on the number of parameters and on the precision with which each number is stored. Quantization lowers the precision and the size. The Hugging Face documentation on the GGUF format gives the bits per weight for each type: 4.5 for Q4_K, 6.5625 for Q6_K and 16 for F16. The file size is the number of parameters multiplied by the bits per weight and divided by 8. This is our calculation from those figures, not a measurement.

How much does a model of each size take?

Model Q4_K Q6_K F16
7 billion parameters about 3.9 GB about 5.7 GB about 14 GB
14 billion parameters about 7.9 GB about 11.5 GB about 28 GB
32 billion parameters about 18 GB about 26.3 GB about 64 GB
70 billion parameters about 39.4 GB about 57.4 GB about 140 GB

Check one calculation: 14 × 4.5 ÷ 8 = 7.875, so about 7.9 GB. These are only the weights. The memory actually used is higher: it also depends on the context length, the software and the settings. Quality also drops as quantization gets heavier, by an amount that depends on the model and the task. So the figures are for ruling out impossible cases, not for sizing a purchase to the gigabyte.

How much memory do NVIDIA cards have?

According to the manufacturer’s pages, the GeForce RTX 5090 has 32 GB of GDDR7 memory and the GeForce RTX 4090 has 24 GB of GDDR6X. The RTX 5070 family is listed with 16 and 12 GB of GDDR7. For the RTX 5080 the manufacturer gives 16 GB of GDDR7.

Now let us match them up. We keep about a quarter of the memory free for the context and the software. This is our rule for a first estimate, not a measurement.

Card Memory What fits by our rule
RTX 5070 12 GB 14 billion in Q4_K (7.9 GB); 32 billion no
RTX 5070 Ti, RTX 5080 16 GB 14 billion in Q6_K (11.5 GB); 32 billion in Q4_K no
RTX 4090 24 GB 32 billion in Q4_K (18 GB) at the limit
RTX 5090 32 GB 32 billion in Q4_K (18 GB) with headroom; in Q6_K (26.3 GB) no

A 70 billion parameter model in Q4_K (about 39.4 GB) fits none of the cards in the table. It needs a different build, and we quote such builds in writing.

What else should you consider besides memory?

The size of the model for your task matters more than the biggest model. Many tasks are fine with a model of 7 or 14 billion parameters, and then an expensive card is not needed. For work that involves speech, such as meeting transcription, the model needs its own memory: what exactly is needed is shown in our guide to meeting transcription without the cloud. Also check cooling, power and space in the case on the card’s own page and in the computer maker’s description: we do not give figures here that we have not measured.

A wooden table in Nice: four small stacks of brass plates of different heights in a row, a ruler, a pencil and an empty notebook beside them, daylight from the window
Model size grows in steps, and you choose the card for the step you need.

How do you work out your own card in three steps?

Step one: choose the model size and precision for your task. Step two: find the weight in the table above. Step three: divide the weight by 0.75 to leave headroom and compare with the card’s memory. Here are two examples with our headroom rule, not a measurement.

Task Model Weight With headroom (weight ÷ 0.75) Suitable memory
Answers from documents for two people 14 billion, Q6_K 11.5 GB about 15.3 GB a 16 GB card
Assistant for a small team 32 billion, Q4_K 18 GB 24 GB a 24 GB card at the limit, better 32 GB

Check the sums: 11.5 ÷ 0.75 = 15.3 and 18 ÷ 0.75 = 24. If the model also needs a long context, the headroom has to grow, and here it is better to test on a sample task first and buy afterwards.

What if the model does not fit?

There are four ways out, from cheap to expensive. Take a smaller model: often a 14 billion model does the job for which you would have bought a card for 32 billion. Take a lighter format, for example Q4_K instead of Q6_K: the weight drops by almost a third, but quality, as we said, depends on the model and the task, so check it on your own examples. Shorten the context length you set in the software, because it also takes memory. And only then buy a bigger card or a different build, which we agree in writing.

To keep the choice calm, first write down three things: which task the model must solve, which of your own examples you will use to check quality and how many people will use it at the same time. These three answers decide whether you need a 12 GB card or a 24 GB one, not the name in the shop.

What should you ask the seller?

Bring a short list to the meeting or the shop:

  • How much memory the card itself has, not only what it is called.
  • Which model, in which format, must run on it, and whether there is headroom for it.
  • Whether the power supply and cooling in your case are enough.
  • Whether the part can be returned if the model does not fit.
  • Whether installing the software is included in the price or you get only hardware.

A good answer to these questions is needed before the purchase, not after. If the seller names the card model but says nothing about the size of your model, that is a reason to ask again.

Do you need to buy a new card at all?

Not always. Start by checking what you already have: a 7 billion parameter model in Q4_K takes about 3.9 GB, and such models sometimes run on an ordinary computer. Try on it first, as our guide to a local LLM for small business advises. If you are thinking about data privacy, first read about what private AI for business means.

How does preparing a computer work with us?

We start with an honest assessment: what your computer can run now and whether it is worth upgrading. If it is, we choose parts with transparent prices, you buy them directly and we install a working set of software and give a short handover. If your computer is enough, we will say so and not offer extras: the honest assessment is part of the check. This saves money for those who need a small model and protects against buying a card that will sit idle. The check and preparation of a computer for local AI start from 390 € plus hardware.

Tell us which task you want to solve and which computer you have. We reply in writing within 48 hours.

Questions

How much video memory do you need for a local LLM?

Enough for the model weights plus headroom for the context and the software. The size of the weights is the number of parameters multiplied by the bits per weight and divided by 8. For a 14 billion parameter model in Q4_K that is about 7.9 GB, for a 32 billion parameter model about 18 GB.

Can you run a model without a graphics card?

You can test on an ordinary computer: for small models it is sometimes enough, and we assess what you already have first. But speed and model size are limited, and for steady use by a team you usually need a graphics card with enough memory.

Is one card enough for a 70 billion parameter model?

By our calculation the weights of such a model in Q4_K take about 39 GB. That is more than the memory of any card in the table below, even the largest, at 32 GB. Such a model needs a different build, which we quote separately in writing.

What does preparing a computer cost with you?

The check and setup start from 390 € plus hardware. We first assess honestly whether your computer is enough, choose parts with transparent prices and you buy them directly. The scope and conditions are in the catalogue.

Contact

One person reads this inbox — the same person who builds what you order.

Describe your task

Tell us what you have and what result you need — even a single small task. No brief required: within 48 hours you get a plan and a price in writing, a question, or an honest “not a fit”.

Include the situation, files or links, deadline, language, privacy limits and budget boundary if you have one.

File (optional)
No file chosen

A brief, a photo, a spreadsheet — whatever explains the task faster than words. Up to 8 MB, stored with our hosting provider. Please don't send sensitive personal or medical documents through the site.

Sending creates no order and no payment. We reply within 48 hours. Prefer email? contact@castel.studio

Talk to us

Prefer a call or a messenger? Write or call — the studio's founder answers.

Connect on LinkedIn

Prefer a freelance platform?

Order the same work there, with the platform's secure payment.

A one-person AI studio in Nice. Whoever answers your message is the one who does the work — no account managers in between. Files are processed on our own machine, not in someone else's cloud.

Nice 06100, France · Open in maps →

SIREN 103 115 705

Describe your task