esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

Does a 70B Model Fit on One 80GB GPU?

Why a 70 billion parameter model needs about 140GB at 16-bit, how shrinking it makes it fit, and what else uses memory, for your AI interview.

In short

Not at 16-bit. A 70B model's weights need about 140GB in 16-bit, which is over an 80GB card. Shrunk to 8-bit or 4-bit they can fit, but each user's cache also needs memory, so the number of users depends on the setup.

10 min readAdvancedOccasional · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

It depends on the number format. A 70 billion parameter model at 16-bit needs about 140 GB for its weights, so it won't fit on one 80 GB card. Shrink it to 8-bit and it fits with little room left. At 4-bit it fits with room for the cache, which grows with each user. So I'd quantise it, measure the quality drop on our own data, and count the users before promising anything.

What does fitting on one GPU mean, in plain words?

A model is a huge list of numbers called weights. To run it, the whole list has to sit in the memory of the graphics chip, the GPU. That memory is often called VRAM. Fitting on one GPU means the weights, plus everything else the model needs while it runs, fit in that card's memory.

Think of a warehouse with room for 80 pallets. The stock is the weights. The packing area the work needs, the cache we meet below, takes floor space too. A warehouse full of stock with no packing area still stops working.

Here is the real case. A mid-size insurer wants a 70B model to read claim files and draft summaries for its handlers. Its IT team asks two things: can one 80 GB GPU run it, and how many handlers can use it at the same time?

Key words

GPU memory (VRAM)
The fast memory on the graphics chip. Here, 80 GB.
Parameter
One learned number in the model. A 70B model has 70 billion.
Precision
How many bits store each number. More bits, more accuracy, more memory.
Quantisation
Storing the numbers in fewer bits to save memory, with some loss of accuracy.
KV cache
Saved notes from earlier tokens, kept per user so the model doesn't redo work.

How much memory do the weights need?

The first estimate is simple. Hugging Face's guide says that for short inputs (under 1,024 tokens) the weights dominate the memory, so for now it assumes the memory for inference equals the memory to load the model. Our 8k-token case goes past that shortcut, so the cache has to be counted too. Each weight takes as many bytes as its precision uses. The guide gives the numbers for a 70B model at 16-bit:

  • “Llama-2-70b requires 2 * 70 GB = 140 GB VRAM”

    Hugging Face guide

  • “cut the memory needed for inference by half while retaining full precision performance”

    LLM.int8() paper

So the insurer's 70B model at 16-bit needs about 140 GB for its weights. That's over 80 GB, so it can't load on one card as it is. Shrinking the weights to 8-bit halves them, as the LLM.int8() paper shows, and 4-bit halves them again.

  • 16-bit

    About 140 GB

    Two bytes per weight. Too big for one 80 GB card.

  • 8-bit

    About 70 GB

    Loads, but leaves little room for the cache.

  • 4-bit

    About 35 GB

    Fits with room for many users' caches.

One 70B model, three weight sizes, one 80 GB GPU

70B model

70 billion weights

16-bit weights

2 bytes each: 140 GB

8-bit weights

1 byte each: 70 GB

4-bit weights

half a byte each: 35 GB

On one 80 GB GPU

Does not fit

140 GB is over 80 GB

Tight

about 1 user at 8k tokens

Fits with room

about 13 to 14 users at 8k tokens

  1. 1Store the weights with 16-bit numbers, two bytes each.
  2. 2Shrink the weights to 8-bit, one byte each.
  3. 3Shrink the weights to 4-bit, half a byte each.
  4. 4The weights alone are too big for the card.
  5. 570 GB leaves room for about one user's cache.
  6. 635 GB leaves 40 GB after a 5 GB margin.
The same 70B model stored at three precisions on one 80 GB GPU: 16-bit does not fit, 8-bit fits with little room, 4-bit leaves room for many users. The user counts use an assumed 70B-class shape, so treat them as a sketch.

The insurer picks 4-bit weights, about 35 GB, and then checks quality on 500 past claim files before anyone relies on the summaries. Fewer bits cost some accuracy, so a short test on real files is the way to check the trade is safe for that job.

What else uses the 80 GB besides the weights?

The weights are only the start. While the model answers, it keeps a KV cache for each user. The cache stores the work already done on earlier tokens, so the model doesn't redo it. Hugging Face's guide says the cache can take a large share of memory, which becomes a bottleneck for long-context generation.

The cache grows with the length of the conversation and with the number of users at once. Each user adds more. A claim file that runs to many pages costs far more cache than a short question.

Here is a rough sketch in plain Python, with an assumed 70B-class shape. It counts the spare room after the weights and a 5 GB safety margin, then divides by the cache for one user at 8k tokens.

Python
# Rough fit check for a 70-billion-parameter model on one 80 GB GPU.
PARAMS = 70e9        # weights in the model
GPU_GB = 80          # the card's memory
MARGIN_GB = 5        # kept free for the runtime (our rule of thumb)
CONTEXT = 8192       # tokens per user, about 8k
LAYERS, KV_HEADS, HEAD_DIM = 80, 8, 128  # assumed 70B-class shape, not measured from any model
CACHE_BYTES = 2      # the cache is kept in 16-bit

# Keys and values, for every layer, head and token of one user.
per_user_gb = 2 * LAYERS * KV_HEADS * HEAD_DIM * CACHE_BYTES * CONTEXT / 1e9
print(f"Cache per user at 8k tokens: {per_user_gb:.1f} GB")

# 4-bit is half a byte per weight; real 4-bit formats add a little more.
for name, bytes_per_weight in [("16-bit", 2), ("8-bit", 1), ("4-bit", 0.5)]:
    weights_gb = PARAMS * bytes_per_weight / 1e9
    spare = GPU_GB - MARGIN_GB - weights_gb
    if spare < 0:
        print(f"{name}: weights {weights_gb:.0f} GB, does not fit on one GPU")
    else:
        users = int(spare // per_user_gb)
        print(f"{name}: weights {weights_gb:.0f} GB, concurrent users at 8k tokens: {users}")

Output

Cache per user at 8k tokens: 2.7 GB
16-bit: weights 140 GB, does not fit on one GPU
8-bit: weights 70 GB, concurrent users at 8k tokens: 1
4-bit: weights 35 GB, concurrent users at 8k tokens: 14

With these assumed numbers, 8-bit leaves room for one user at 8k tokens, and 4-bit leaves room for about 13 to 14. The point is the method: count the weights, then count the cache for the users you plan to serve. vLLM's guide makes the same point: limit the context and the batch to reduce memory use.

  1. 1

    Count the weights

    Parameters times bytes per weight. 70B at 16-bit is about 140 GB.

  2. 2

    Add the cache

    Per user, per token of context, times the users you serve at once.

  3. 3

    Keep a margin

    Leave room for the runtime and for spikes. Our sketch used 5 GB.

  4. 4

    Quantise or split

    Use 8-bit or 4-bit weights, shorten the context, or split the model across GPUs with tensor parallelism.

Tip

Asked whether it fits? Start with the weights, then say what the cache adds for your users. Name the precision you'd use, and say you'd test quality after quantising.

What does the interviewer want to hear?

A strong answer covers

  • A quick sum: parameters times bytes per weight, so 70B at 16-bit is about 140 GB.
  • That 140 GB is over an 80 GB card, so the model needs quantising or splitting.
  • Quantising saves memory, and it costs some accuracy that you measure.
  • The KV cache grows with users and context, and it needs room too.
  • Leave a margin, then count how many users one card can serve.
  • Test under real load, not only in a quick demo.

Common traps

  • Trap"A 70B model is 70 GB, so it fits on an 80GB card."

    BetterThat counts one byte per weight. At 16-bit it's 140 GB, and the cache needs room too.

  • Trap"Quantising is free, so always do it."

    BetterIt saves memory at some cost in accuracy. Test the quality on your own data.

  • Trap"If the weights fit, we are done."

    BetterThe cache grows with each user and each token. Count it before you promise a number of users.

Can you spot the mistake?

Spot the mistake

A colleague wrote this sizing note for the insurer. Which line is wrong?

Quick check

The insurer runs a 70B model at 8-bit on one 80 GB card, leaving about 5 GB free after the weights and the safety margin. Before promising 20 handlers, what must you work out?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 5

What will they ask next?

  1. Q311What is quantization?10 min
  2. Q055What is the KV cache, and why does it speed up generation?12 min
  3. Q327GPU basics: why does memory bandwidth limit decoding?11 min
  4. Q329Tensor vs pipeline parallelism?11 min
  5. Q323Small vs large model: how do you choose?11 min

Last updated on 27 November 2026

Planning to run a large model on your own hardware?

Venkat designs and builds AI products and agents, the interface and the system behind it. Book a short call and say what you need.