Skip to main content
Find my setup
Language: English

How much GPU memory an LLM needs, model by model

A large language model (LLM) needs about 2 GB of GPU memory (VRAM) for every billion parameters to hold its weights at 16-bit precision. At 4-bit it needs a little over 0.5 GB per billion, and the conversation needs room on top.

Llama 3.3 70B, for example, needs about 141 GB for its weights at 16-bit: too much for one 80 GB card. At 4-bit the weights take about 40 GB. A conversation of 32K tokens (words and parts of words) adds about 11 GB. The total of about 50 GB fits on one 80 GB card.

The answer changes with each model's design and with the length of the conversation. We worked it out for 11 current open models from the files and settings their makers publish, checked on 25 October 2026. The tables show what each model needs, and the price boxes show which of the GPU plans we list can run it.

Close-up of a GeForce RTX graphics card inside a computer
A graphics card carries its own memory, the VRAM, next to the GPU. The model and its conversations must fit there. Photo: Matheus Bertelli, Pexels.

Who this is for

  • you plan to run an open model on a rented GPU and need to choose how much GPU memory to rent
  • you are choosing between the 16-bit, 8-bit and 4-bit versions of a model
  • you want to know how much extra memory long conversations or several users need

Not for you if you would rather use a model through an API than run it yourself: start with the finder on our homepage. Image and video models are not covered here.

Key numbers

  • 2 GB of GPU memory per billion parameters for the weights at 16-bit Our calculation,
  • 0.56 GB per billion parameters at 4-bit, scaling factors included Our calculation,
  • 10.7 GB Llama 3.3 70B's KV cache for one 32K-token conversation at 16-bit Our calculation,
  • 65 GB the files of gpt-oss-120b as released; its model card says it runs on one 80 GB GPU Official page,

The rule of thumb: about 2 GB per billion parameters at 16-bit

A model's parameters are the numbers it learned in training, and its weights are those numbers stored in files. Each parameter takes a fixed amount of memory, set by the precision at which it is stored. At 16-bit precision a parameter takes 2 bytes, so the weights need about 2 GB of GPU memory for every billion parameters.

Storing the weights at lower precision is called quantisation. At 8-bit the weights need about 1 GB per billion parameters. At 4-bit they need a little over 0.5 GB per billion. A 4-bit copy can answer a little differently from the full model; how much that matters depends on the model and the task.

Two things come on top of the weights. The key-value (KV) cache holds the conversation so far: for every token the model reads or writes, its layers store a key and a value. The software that serves the model also needs working space of its own. Our rule: the weights and the KV cache together should use no more than 90% of the card's memory.

At 4-bit, Llama 3.3 70B leaves room for two more conversations on an 80 GB card Calculated 25 Oct 2026, in GB, for 32K-token conversations
The numbers in this chart
ItemNumber
Model weights at 4-bit39.7 GB
KV cache of one 32K-token conversation10.7 GB
Working space we keep free (10% of the card)8 GB
Room left for more conversations21.6 GB

The four parts add up to the card's 80 GB. The weights stay the same size; each extra conversation adds another 10.7 GB of KV cache.

The formula: weights plus KV cache, within 90% of the card

GPU memory needed = weights + KV cache + working space. Work out each part in turn.

  1. Weights: multiply the number of parameters by the number of bytes each one takes. That is 2 bytes at 16-bit, 1 byte at 8-bit and 0.5625 bytes (4.5 bits) at 4-bit.
  2. KV cache per token: take 2 (a key and a value) and multiply by the number of full-attention layers, which keep the full conversation. Then multiply by the number of key-value heads, by the head size and by 2 bytes for a 16-bit cache.
  3. KV cache in total: multiply the cache per token by the length of the conversation in tokens. Then multiply by the number of users served at once.
  4. Fit: the weights and the KV cache should come to no more than 90% of the card's memory. The last 10% is the working space.

The formula

memory needed = weights + KV cache + working space
weights       = parameters × bytes per parameter (2, 1 or 0.5625)
KV cache      = 2 × full-attention layers × KV heads × head size × 2 bytes × tokens × users
working space = 10% of the card, so weights + KV cache ≤ 90% of the card

A layer is one of the stacked steps that every token passes through. Each layer splits its keys and values into several key-value heads, and the head size is how many numbers each head's key or value holds. These numbers are in each model's configuration file (config.json) on its Hugging Face page.

For 4-bit weights we count 4.5 bits, not 4. Common 4-bit formats store a scaling factor for each small block of weights, and files often keep some parts at higher precision. OpenAI's gpt-oss-120b, released in a 4-bit format called MXFP4, does both. Its files take 65.2 GB for 116.8 billion parameters, about 4.5 bits each.

The 90% rule is ours. It is close to the default in vLLM, software for serving models. By default, vLLM uses 92% of a card's memory (vLLM's engine settings, checked 25 October 2026).

RAM modules lying on a computer motherboard
These are RAM sticks, the computer's main memory. They add no GPU memory: whatever does not fit in VRAM must run from slower system memory. Photo: Sergei Starostin, Pexels.

Memory each model needs at 16-bit, 8-bit and 4-bit

At 4-bit, five of the six models with up to 36 billion parameters fit on one 24 GB card, with room for a 32K-token conversation. The sixth, Gemma 4 31B, needs a 32 GB card in Google's own 4-bit version for vLLM. Llama 3.3 70B and gpt-oss-120b need an 80 GB card, and Mistral Medium 3.5 needs a 94 GB card. DeepSeek-V4.1-Flash needs eight 80 GB cards for its files alone, and Kimi K3 needs more than that.

This table shows how much GPU memory 11 open language models need. It gives each model's released file size, its weights at 16-bit, 8-bit and 4-bit, and its KV cache at three conversation lengths. AI Hosting Index calculated the figures from the files and configuration each maker publishes, read on 25 October 2026.

GPU memory needed by 11 open models at 16-bit, 8-bit and 4-bit
ModelDesign (MoE: mixture of experts)Parameters (billions)Files as released (GB)16-bit weights (GB)8-bit weights (GB)4-bit weights (GB)KV cache, 8K tokens (GB)KV cache, 32K tokens (GB)KV cache, 128K tokens (GB)Smallest GPU memory that fits (4-bit, 32K tokens)Hugging Face repository
Qwen3.5-9BDense9.719.3 (BF16, 16-bit)19.39.75.40.31.14.324 GBQwen/Qwen3.5-9B
Gemma 4 12BDense12.023.9 (BF16, 16-bit)23.912.010.3 (Google's 4-bit release)0.50.92.524 GBgoogle/gemma-4-12B-it
gpt-oss-20bMoE, 3.6B active20.913.8 (MXFP4, 4-bit)41.820.913.80.20.83.224 GBopenai/gpt-oss-20b
Qwen3.8-27BDense27.855.6 (BF16, 16-bit)55.630.9 (Qwen's FP8 release)15.60.52.18.624 GBQwen/Qwen3.8-27B
Gemma 4 31BDense31.362.5 (BF16, 16-bit)62.531.323.3 (Google's 4-bit release)1.53.511.632 GBgoogle/gemma-4-31B-it
Qwen3.6-35B-A3BMoE, 3B active36.071.9 (BF16, 16-bit)71.937.5 (Qwen's FP8 release)20.20.20.72.724 GBQwen/Qwen3.6-35B-A3B
Llama 3.3 70BDense70.6141.1 (BF16, 16-bit)141.170.639.72.710.742.980 GBmeta-llama/Llama-3.3-70B-Instruct
gpt-oss-120bMoE, 5.1B active116.865.2 (MXFP4, 4-bit)233.7116.865.20.31.24.880 GBopenai/gpt-oss-120b
Mistral Medium 3.5 128BDense127.7133.6 (FP8, 8-bit)255.4133.671.83.011.847.294 GBmistralai/Mistral-Medium-3.5-128B
DeepSeek-V4.1-FlashMoE, 8B or 16B active763.2510.3 (mixed precision)not calculatednot calculatednot calculatednot calculatednot calculatednot calculated8 × 80 GB (files as released, weights only)deepseek-ai/DeepSeek-V4.1-Flash-1017
Kimi K3MoE, 104B active2,779.91,560.9 (MXFP4, 4-bit)5,559.92,779.91,560.9not calculatednot calculatednot calculatedmore than 8 × 80 GB (weights only)moonshotai/Kimi-K3

Download this table as CSV (2 KB)

Licence: all rights reserved.

How to cite this table: AI Hosting Index, GPU memory needed by 11 open models at 16-bit, 8-bit and 4-bit, https://aihostingindex.com/guides/llm-vram-requirements/, last updated 26 October 2026.

Sources: each model's page and configuration file on Hugging Face, read 25 Oct 2026; Llama 3.3 70B's layer settings from Meta's llama-models code. The method is under "How we calculated these figures" below.

Every figure in this table comes from the published files and our own sums.

How to read the table

  • For the three Qwen models and Gemma 4 31B, the parameter count on Hugging Face includes the vision encoder, which reads images. The Qwen files also hold an extra layer that predicts several tokens ahead. That is why these counts are slightly above the number in the model's name.
  • A dense model uses all its parameters for every token. BF16 is a 16-bit format and FP8 an 8-bit one.
  • Where a maker releases its own 4-bit or 8-bit version, the table shows the size of those files instead of our estimate. For Gemma 4, we list Google's 4-bit files for vLLM.
  • DeepSeek gives 552 billion parameters for the backbone of DeepSeek-V4.1-Flash. The 763.2 billion that Hugging Face lists covers all its files, which also hold a vision encoder and extra prediction layers. We therefore size this model by its files as released.

The KV cache: longer conversations and more users need more memory

The KV cache grows with every token the model reads or writes. A long document, a long chat or several users at once can need as much memory as the model itself. Llama 3.3 70B stores about 0.33 MB per token at 16-bit. A 128K-token conversation therefore takes about 43 GB of cache, more than the model's 4-bit weights.

Each user needs a cache of their own. Eight people using Llama 3.3 70B at once, each in a 32K-token conversation, need about 86 GB of cache: eight times 10.7 GB.

Newer designs cut this cost sharply. Qwen3.8-27B keeps the full conversation in only 16 of its 64 layers. The other 48 use linear attention, which holds a small state of fixed size instead. Gemma 4 12B and 31B keep only the last 1,024 tokens in five of every six layers, called sliding-window layers. In gpt-oss, every other layer is a sliding-window layer that keeps only the last 128 tokens.

For one 262,144-token conversation, the longest both support without extra settings, Mistral Medium 3.5 needs about 94.5 GB of cache and Qwen3.6-35B-A3B about 5.4 GB.

KV cache for one conversation at 16-bit, per 1,000 tokens and at each model's longest length without extra settings; calculated 25 Oct 2026
ModelFull-attention layersCache per 1,000 tokens (MB)Longest conversation without extra settings (tokens)Cache at that length (GB)
Qwen3.5-9B8 of 3232.8262,1448.6
Gemma 4 12B8 of 4816.4262,1444.6
gpt-oss-20b12 of 2424.6131,0723.2
Qwen3.8-27B16 of 6465.5262,14417.2
Gemma 4 31B10 of 6081.9262,14422.3
Qwen3.6-35B-A3B10 of 4020.5262,1445.4
Llama 3.3 70B80 of 80327.7131,07242.9
gpt-oss-120b18 of 3636.9131,0724.8
Mistral Medium 3.5 128B88 of 88360.4262,14494.5

Gemma 4 and gpt-oss also need a small, fixed amount for their sliding-window layers; the last column includes it. The three Qwen models can be stretched to about one million tokens with settings their model cards describe. Their cache then grows to 20.7 GB (Qwen3.6-35B-A3B), 33.1 GB (Qwen3.5-9B) and 65.5 GB (Qwen3.8-27B). Serving software can store the cache at 8-bit, which halves it; vLLM, for example, has an fp8 option for its cache.

Mixture-of-experts models must fit whole

A mixture-of-experts model splits much of its network into many smaller sub-networks, called experts, and uses only a few of them for each token. For example, gpt-oss-120b has 116.8 billion parameters but uses about 5.1 billion for each token, according to its model card. That cuts the work per token, not the memory.

Any expert can be called on for the next token, so all of them have to be in GPU memory. Size the GPU for the total parameter count, never the active count.

Kimi K3 uses 104 billion parameters for each token, yet all 2.8 trillion have to be loaded: about 1,561 GB of files.

Mixture-of-experts models in our table: total and active parameters, checked 25 Oct 2026
ModelTotal parameters (billions)Active for each token (billions)Weights to load at 4-bit, or as released (GB)
gpt-oss-20b20.93.613.8
Qwen3.6-35B-A3B36.0320.2
gpt-oss-120b116.85.165.2
DeepSeek-V4.1-Flash763.28 while reading the prompt, 16 while writing510.3 (files as released)
Kimi K32,779.91041,560.9

Running Kimi K3 or DeepSeek-V4.1-Flash yourself is a far bigger project, since their files alone need eight 80 GB cards or more.

Which GPU sizes fit each model

The GPU plans we list have one card of 24, 32, 48, 80, 94 or 141 GB, or several cards in one machine. The table gives the smallest size that holds each model with a 32K-token conversation, at each precision. Where no single card is enough, we try machines of 2 × 80, 4 × 48, 4 × 80 and 8 × 80 GB.

Going from 16-bit to 4-bit moves Llama 3.3 70B from four 48 GB cards to one 80 GB card.

Smallest GPU memory that holds each model with a 32K-token conversation, under our 90% rule; calculated 25 Oct 2026
Model16-bit: needs (GB)16-bit: fits on8-bit: needs (GB)8-bit: fits on4-bit: needs (GB)4-bit: fits on
Qwen3.5-9B20.424 GB10.724 GB6.524 GB
Gemma 4 12B24.832 GB12.824 GB11.124 GB
gpt-oss-20b42.648 GB21.732 GB14.624 GB
Qwen3.8-27B57.780 GB33.048 GB17.824 GB
Gemma 4 31B66.180 GB34.848 GB26.832 GB
Qwen3.6-35B-A3B72.694 GB38.148 GB20.924 GB
Llama 3.3 70B151.84 × 48 GB81.394 GB50.480 GB
gpt-oss-120b234.94 × 80 GB118.0141 GB66.580 GB
Mistral Medium 3.5 128B267.24 × 80 GB145.44 × 48 GB83.694 GB
DeepSeek-V4.1-Flash (weights only)not calculatednot calculatednot calculatednot calculated510.3 (files as released)8 × 80 GB
Kimi K3 (weights only)5,559.9more than 8 × 80 GB2,779.9more than 8 × 80 GB1,560.9more than 8 × 80 GB
At 4-bit, five of the six smallest models fit on one 24 GB card In GB: weights plus 32K-token KV cache, 25 Oct 2026
The numbers in this chart
ItemNumber
Qwen3.5-9B, 16-bit20.4 GB
Qwen3.5-9B, 4-bit6.5 GB
Gemma 4 12B, 16-bit24.8 GB
Gemma 4 12B, 4-bit11.1 GB
gpt-oss-20b, 16-bit42.6 GB
gpt-oss-20b, 4-bit14.6 GB
Qwen3.8-27B, 16-bit57.7 GB
Qwen3.8-27B, 4-bit17.8 GB
Gemma 4 31B, 16-bit66.1 GB
Gemma 4 31B, 4-bit26.8 GB
Qwen3.6-35B-A3B, 16-bit72.6 GB
Qwen3.6-35B-A3B, 4-bit20.9 GB
Llama 3.3 70B, 16-bit151.8 GB
Llama 3.3 70B, 4-bit50.4 GB
gpt-oss-120b, 16-bit234.9 GB
gpt-oss-120b, 4-bit66.5 GB
Mistral Medium 3.5 128B, 16-bit267.2 GB
Mistral Medium 3.5 128B, 4-bit83.6 GB
24 GB (reference line)21.6 GB
80 GB (reference line)72 GB
141 GB (reference line)126.9 GB

Our calculation. Each model has two bars, for 16-bit and 4-bit. The dashed lines mark the 90% limit of a 24 GB, an 80 GB and a 141 GB card: 21.6, 72 and 126.9 GB. DeepSeek-V4.1-Flash and Kimi K3 are left out: their files alone take over 500 GB.

A model can also be split across several GPUs in one machine; vLLM and similar software do this with tensor parallelism. Each card then holds a share of the weights and the cache. Base your sums on the combined memory of all the cards, less 10% of each.

NVIDIA's pages, checked 25 October 2026, give 24 GB for the L4 and GeForce RTX 4090, and 32 GB for the GeForce RTX 5090. They give 48 GB for the L40S and RTX A6000, and 80 GB for the H100 SXM and A100 80GB. The H100 NVL has 94 GB and the H200 141 GB. GPU Mart's own pages give 80 GB for its H100 and 40 GB for each A100 in its four-card plan.

The GPU plans we list, by size

The boxes below show the GPU plans we list at each size. To compare an hourly plan with a monthly one, multiply the hourly price by the hours you need; a full month is about 730 hours. UpCloud and Unihost show their prices without VAT. DigitalOcean, GPU Mart and Liquid Web do not make clear on the pages we read whether VAT is added.

Plans with one 24 GB GPU, enough for five of the six models up to 36 billion parameters at 4-bit. Prices checked on 25 Oct 2026.
PlanPriceNew-customer offerLink
UpCloud GPU Server, 1 x NVIDIA L4, 8 cores, 64 GB 24 GB GPU €0.58/hour (about €390/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; monthly cost capped at 28 days of use checked 25 Oct 2026 No offer Visit
Liquid Web GPU server, NVIDIA L4 24GB 24 GB GPU $584.25/month monthly; 25% off the first month, then $779 · VAT not stated checked 25 Oct 2026 No offer Visit
GPU Mart Enterprise Dedicated GPU Server - RTX 4090 24 GB GPU $409/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 Visit
Unihost AZM-04, NVIDIA RTX 4090 24 GB GPU €359.90/month monthly, paid in advance; minimum one month checked 25 Oct 2026 No offer Visit
Unihost AND-G5, Nvidia RTX 4090 24 GB GPU €459.90/month monthly, paid in advance; minimum one month checked 25 Oct 2026 No offer Visit

Monthly costs for hourly prices assume the server runs all month (730 hours), or less where a provider caps the monthly bill.

A plan with one 32 GB GPU, enough for each model up to 36 billion parameters at 4-bit. Prices checked on 25 Oct 2026.
PlanPriceNew-customer offerLink
GPU Mart Enterprise Dedicated GPU Server - RTX 5090 32 GB GPU $479/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 Visit
Plans with one 48 GB GPU, enough for each model up to 36 billion parameters at 8-bit. Prices checked on 25 Oct 2026.
PlanPriceNew-customer offerLink
DigitalOcean GPU Droplet, 1 x NVIDIA L40S 48 GB GPU $1.57/hour (about $1,146/month) on demand, billed per second · VAT not stated checked 25 Oct 2026 New accounts get a $5 credit that lasts 90 days and covers every product except SaaS add-ons checked 29 Oct 2026 Visit
UpCloud GPU Server, 1 x NVIDIA L40S, 8 cores, 64 GB 48 GB GPU €1.11/hour (about €746/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; monthly cost capped at 28 days of use checked 25 Oct 2026 No offer Visit
Liquid Web GPU server, NVIDIA L40S 48GB 48 GB GPU $1,049.25/month monthly; 25% off the first month, then $1,399 · VAT not stated checked 25 Oct 2026 No offer Visit
Plans with one 80 GB GPU, enough for Llama 3.3 70B and gpt-oss-120b at 4-bit. Prices checked on 25 Oct 2026.
PlanPriceNew-customer offerLink
DigitalOcean GPU Droplet, 1 x NVIDIA H100 80 GB GPU $4.41/hour (about $3,219/month) on demand, billed per second · VAT not stated checked 25 Oct 2026 New accounts get a $5 credit that lasts 90 days and covers every product except SaaS add-ons checked 29 Oct 2026 Visit
UpCloud GPU Server, 1 x NVIDIA H100, 12 cores, 240 GB 80 GB GPU €2.17/hour (about €1,458/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; monthly cost capped at 28 days of use checked 25 Oct 2026 No offer Visit
GPU Mart Enterprise Dedicated GPU Server - A100(80GB) 80 GB GPU $1,559/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 Visit
GPU Mart Enterprise Dedicated GPU Server - H100 80 GB GPU $2,099/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 Visit
Plans with one 94 GB or 141 GB GPU, enough for Mistral Medium 3.5 at 4-bit and Llama 3.3 70B at 8-bit. Prices checked on 25 Oct 2026.
PlanPriceNew-customer offerLink
Liquid Web GPU server, NVIDIA H100 NVL 94GB 94 GB GPU $2,174.25/month monthly; 25% off the first month, then $2,899 · VAT not stated checked 25 Oct 2026 No offer Visit
Unihost AZM-10, NVIDIA H200 141 GB GPU €2,999.90/month monthly, paid in advance; minimum one month checked 25 Oct 2026 No offer Visit
Plans with several GPUs in one machine, from 64 GB to 640 GB of GPU memory in total. Prices checked on 25 Oct 2026.
PlanPriceNew-customer offerLink
GPU Mart Enterprise Multi-GPU Dedicated Server - 2xRTX 5090 2× 32 GB GPUs $859/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 Visit
UpCloud GPU Server, 2 x NVIDIA H100, 24 cores, 480 GB 2× 80 GB GPUs €4.34/hour (about €2,916/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; price for the whole 2-GPU server checked 25 Oct 2026 No offer Visit
GPU Mart Enterprise Multi-GPU Dedicated Server - 4xA100 4× 40 GB GPUs $1,899/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 Visit
GPU Mart Enterprise Multi-GPU Dedicated Server - 4xRTX A6000 4× 48 GB GPUs $1,199/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 Visit
DigitalOcean GPU Droplet, 8 x NVIDIA H100 8× 80 GB GPUs $35.28/hour (about $25,754/month) on demand, billed per second; price for the whole 8-GPU machine · VAT not stated checked 25 Oct 2026 New accounts get a $5 credit that lasts 90 days and covers every product except SaaS add-ons checked 29 Oct 2026 Visit
UpCloud GPU Server, 8 x NVIDIA H100, 96 cores, 1920 GB 8× 80 GB GPUs €17.36/hour (about €11,666/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; price for the whole 8-GPU server checked 25 Oct 2026 No offer Visit

The comparison table on our homepage lists more plans: choose GPU servers, then filter by GPU memory, billing and location.

Three worked examples

Qwen3.8-27B on one 24 GB card

Hugging Face lists 27.8 billion parameters for Qwen3.8-27B, a figure that includes its vision encoder. At 4-bit, the weights take 27.8 × 0.5625 = 15.6 GB. Its configuration lists 16 full-attention layers, four key-value heads and a head size of 256. Each token therefore needs 2 × 16 × 4 × 256 × 2 = 65,536 bytes of cache.

A 32K-token conversation (32,768 tokens) adds 2.1 GB, for a total of 17.8 GB. That is under 21.6 GB, the 90% of a 24 GB card our rule allows. At 16-bit the weights alone take 55.6 GB, so the same model needs an 80 GB card. Running Qwen3.8-27B on one 24 GB or 32 GB GPU comes down to two choices: the file's precision and the conversation length.

Llama 3.3 70B at 4-bit, 8-bit and 16-bit

Llama 3.3 70B has 70.6 billion parameters. Meta's own llama-models code lists its settings: 80 layers, eight key-value heads and 64 attention heads across a model width of 8,192. The head size is therefore 8,192 ÷ 64 = 128. Each token needs 2 × 80 × 8 × 128 × 2 = 327,680 bytes of cache.

At 4-bit, the weights take 39.7 GB. An 8K-token conversation (8,192 tokens) adds 2.7 GB. The total of 42.4 GB only just fits within the 43.2 GB our rule allows on a 48 GB card. A 32K-token conversation adds 10.7 GB instead, and the total of 50.4 GB needs an 80 GB card.

At 8-bit, the weights take 70.6 GB. With a 32K-token conversation the total is 81.3 GB, within the 84.6 GB our rule allows on a 94 GB card. At 16-bit, the 141.1 GB of weights need several cards. Two 80 GB cards hold them only with an 8K-token conversation: 143.8 GB, against 144 GB allowed.

On a single card, its memory sets how long the conversation can be:

  • an 80 GB card holds the 4-bit weights with up to 98,000 tokens of conversation
  • a 94 GB card holds the 8-bit weights with up to 42,000 tokens
  • a 141 GB card holds the 8-bit weights with the full 131,072 tokens

Running Llama 3.3 70B on one GPU is therefore a trade between precision and conversation length.

gpt-oss-120b on one 80 GB card

OpenAI's gpt-oss-120b is a mixture-of-experts model released in 4-bit form: its files on Hugging Face take 65.2 GB. Half of its 36 layers keep only the last 128 tokens, so it has only 18 full-attention layers. With eight key-value heads of size 64, these need 2 × 18 × 8 × 64 × 2 = 36,864 bytes per token.

Even its longest supported conversation, 131,072 tokens, adds only 4.8 GB. The total of about 70 GB stays under the 72 GB our rule allows on an 80 GB card. That matches the model card, which says it runs on a single 80 GB GPU. Choosing where to run gpt-oss-120b then comes down to the 80 GB plans on offer and their prices.

Mistakes to avoid

  • Sizing a mixture-of-experts model by its active parameters

    Instead: Plan for the total parameter count, because every expert has to be in memory.

  • Counting the weights and forgetting the conversation

    Instead: Add the KV cache of the longest conversation, once for each user served at the same time.

  • Filling the card to the last gigabyte

    Instead: Keep 10% free; if that is tight, cut the conversation length or use an 8-bit cache.

  • Assuming every 4-bit version of a model is the same size

    Instead: Check the file sizes on the model's page, because formats differ. Google's two 4-bit versions of Gemma 4 31B take 23.3 GB and 18.9 GB.

  • Using memory figures for an older version of a model

    Instead: Check the exact version, because DeepSeek-V4-Flash's files take 159.6 GB and V4.1-Flash's 510.3 GB.

Other questions

Can I run a 70B model on a 24 GB card?

Not at the precisions this page covers: even at 4-bit, the weights of Llama 3.3 70B take about 40 GB. Some serving software can keep part of the model in the server's main memory (RAM) instead; that is slower. At 4-bit, a 70B model on one rented GPU needs a 48 GB card for short conversations and an 80 GB card for long ones.

How much RAM do I need to run a local LLM without a GPU?

The same sums apply to RAM when a model runs on the processor, whether on your own computer or on a server without a GPU. You need room for the weights, the KV cache and the operating system. A 4-bit Qwen3.5-9B with a 32K-token conversation, for example, needs about 6.5 GB on top of what the system uses.

How we calculated these figures

We read each model's page on Hugging Face on 25 October 2026. The parameter count is the exact total Hugging Face lists for the model's weight files, and the file size is the total of those files. Where a repository holds two copies of the weights, we counted one. For DeepSeek-V4.1-Flash we read its 1017 release, which DeepSeek calls a minor update.

Layer, head and head-size numbers come from each model's config.json. Llama 3.3 70B's come from Meta's llama-models code: on Hugging Face, its configuration file opens only to users who agree to share their account details. A gigabyte (GB) here is 1,000,000,000 bytes and a megabyte (MB) 1,000,000 bytes; 8K, 32K and 128K tokens mean 8,192, 32,768 and 131,072 tokens.

The KV cache is counted at 16-bit for one conversation. Sliding-window layers, which keep only recent tokens, are counted at their fixed size. Gemma 4's full-attention layers use one set of numbers for both keys and values. We still count keys and values separately, so serving software that stores them once may need less cache than we show.

We did not calculate the KV cache of DeepSeek-V4.1-Flash and Kimi K3. Both use new attention designs whose cache size we could not work out reliably from their configuration files, so the table shows their weights only.

Sources and test notes

Every memory figure on this page is calculated from the makers' published files and settings. Configuration values come from the config.json file in each model's Files tab on Hugging Face, except Llama 3.3 70B's, which come from Meta's llama-models code. Prices in the boxes come from our price records, each with the date it was checked; how we check prices explains the method.

Back to Where to run an open model