Black Friday: 10% off every GPU you launch, no code needed. Until 30 Nov. Rent a GPU

Arrakis / Blog / Start here

How Much GPU Memory Do I Need? The Plain-English Answer

How much GPU memory do I need? The model decides, not the GPU. Take the model's size in billions of parameters and multiply: 2.4 GB per billion to run it in 16-bit, 1.2 GB in 8-bit, 0.6 GB in 4-bit. Then rent the cheapest GPU with at least that much memory. Everything below is the detail, and the detail is where beginners lose money: on a GPU too small to load the model, or on one twice as big as it needed to be.

The one rule

A model is a pile of numbers called parameters. A "27B" model has 27 billion of them. Each takes space in GPU memory, depending on how precisely it is stored:

  • 16-bit (the usual published form): 2 bytes per parameter.
  • 8-bit: 1 byte per parameter.
  • 4-bit: half a byte per parameter.

Add about 20% for the working memory a model needs while it answers (the KV cache, at moderate context). That gives the rule: 2.4, 1.2 or 0.6 GB per billion parameters.

Three models, worked through. Figures come from our per-model facts and the GPU memory guide:

Model Parameters 16-bit 8-bit 4-bit
An 8B model (Llama 3.1 8B) 8B 19 GB 9.6 GB 4.8 GB
Qwen3.8-27B 27.8B 67 GB 33 GB 17 GB
gpt-oss-120b 116.8B 280 GB 140 GB 70 GB

8-bit and 4-bit versions are compressed copies of the same model. They trade some quality for a much smaller footprint, so test them on your own prompts before you decide the smaller one is good enough. If it passes your tests, it fits a much cheaper GPU.

Then find a GPU that holds it

Every GPU has a fixed amount of memory. Pick the cheapest one whose memory is at least your number:

So Qwen3.8-27B in 4-bit (17 GB) runs on one RTX 4090. In 8-bit (33 GB) it needs one L40S. In 16-bit (67 GB) it needs one A100. gpt-oss-120b in 8-bit (140 GB) fits on one H200.

When one GPU is not enough, several on one machine add up. GLM-5.3 has 753 billion parameters; in 4-bit it needs about 452 GB, which is two B300s.

A worked example in 30 seconds

Say you want your own copy of Gemma 4 31B to chat with. It has 31.3 billion parameters:

  1. 16-bit: 31.3 x 2.4 = about 75 GB. One A100 (80 GB) holds it.
  2. 8-bit: 31.3 x 1.2 = about 38 GB. One L40S (48 GB) holds it.
  3. 4-bit: 31.3 x 0.6 = about 19 GB. One RTX 4090 (24 GB) holds it.

Try the 4-bit version on the RTX 4090 first, at the live price an hour. If the answers are not good enough, step up to 8-bit on an L40S at the live price. You found the right GPU without buying anything, and the most a wrong guess costs is an hour.

Fine-tuning needs more, sometimes much more

Running a model only reads the weights. Training changes them, and that needs extra memory for the changes. Three common ways, with the rule for each:

Method Rough memory What it does
QLoRA 0.7 GB per billion Freezes a 4-bit copy of the model, trains small add-ons
LoRA 2.4 GB per billion Freezes the 16-bit model, trains small add-ons
Full fine-tuning 16 GB per billion Trains every weight, with Adam

For Qwen3.8-27B that is 19 GB with QLoRA (one RTX 4090), 67 GB with LoRA (one A100) and 445 GB for full fine-tuning (two B300s), before activations. That is the gap between one RTX 4090 at the live price an hour and two B300s at the live price each. Start with QLoRA unless you have a reason not to.

Three traps

1. "Active parameters" do not shrink memory. Mixture-of-experts models, often named with an "A" like Qwen3.6-35B-A3B, only use part of their weights for each token they write (3B here; a token is a word or a piece of one). But all 36B must sit in memory: about 86 GB in 16-bit (one RTX PRO 6000) or 22 GB in 4-bit (one RTX 4090). They are cheap to run fast, not cheap to load. See Qwen3.6-35B-A3B.

2. Long context eats the margin. The 20% covers moderate prompts. Qwen3.8-27B accepts 262,144 tokens of context, and filling that, or serving many users at once, needs far more working memory than 20%. Long documents or many users: leave real headroom, or go up a GPU.

3. Paying for memory you do not use. An 80 GB card running a 17 GB model is not "safe", it is waste. The rule exists so you can rent the small card with confidence.

Let the tools do the math

You do not need a spreadsheet. Three ways to get the number for any Hugging Face model:

  • "Can I run it?" on /models covers 120 popular models, with the setups that hold each one.

  • The API, no account needed:

    Shell
    curl "https://arrakis.goodailabs.com/v1/models/fit?model=Qwen/Qwen3.8-27B"

    It answers with the memory in 16, 8 and 4-bit and the cheapest GPU setups that hold it right now.

  • The deploy planner. Name a model on the console's Models page, or ask an agent to call plan_deploy, and you get every machine it fits on now, best value first, before anything is rented.

More beginner reading: rent a cloud GPU in five minutes, and every model in our list that fits on one GPU in open models on a single GPU.

Rent the smallest GPU that fits

Do the multiplication, check it with the tools, and pay for the memory you need, not the memory you might. Find GPUs by memory and price.

New here? Use code FIRST25 for $25 off your first deposit of $50 or more, until 31 December 2026.

Rent the GPUs in this post

New here? Use code FIRST25 for $25 off your first deposit of $50 or more, until 31 December 2026.

Lowest price now, per GPU-hour. Billed per started hour; stop any time.

Questions

How much GPU memory do I need for an 8B model?
About 19 GB to serve it in 16-bit, 9.6 GB in 8-bit and 4.8 GB in 4-bit, so one 24 GB RTX 4090 runs it at any of the three.
Is 24 GB of GPU memory enough?
For many models, yes. It serves an 8B model in 16-bit and models up to about 32B parameters in 4-bit, and it fine-tunes an 8B model with LoRA or QLoRA.
Why does fine-tuning need more memory than running a model?
Full fine-tuning keeps gradients and optimizer states next to the weights, about 16 bytes per parameter with Adam, against about 2.4 to serve in 16-bit. LoRA and QLoRA freeze the base model and need far less.
Do mixture-of-experts models need less GPU memory?
No. Memory follows total parameters, not active ones. Qwen3.6-35B-A3B uses about 3B parameters per token but needs about 86 GB in 16-bit, because all 36B must be loaded.

More from the blog

Every postRSS feed