All tools
Memory · free, no sign-up

How much VRAM does a model of this size need?

Parameters are not gigabytes until you pick a precision. The conversion is one line of arithmetic, and it is the line that decides whether a model is downloadable.

2 inputs4 questions answeredUpdated for 2026 hardware
Model Size to RAM/VRAM Converter — How much VRAM does a model of this size need?
Answer first

The short answer

Computed from this tool’s default settings — parameters and the rest as most people start. Change them below for your own case.

Needed at Q4_K_M6.89 GB

A 8.0B model needs about 6.89 GB at Q4_K_M with 8,192 tokens of context. A bigger model at Q4 generally beats a smaller one at Q8, so spend spare memory on parameters before precision.

The calculator

Model Size to RAM/VRAM Converter

Convert a parameter count into real memory at every quantisation.

Your setup

Any value — this is not limited to catalogued models.

8,192

The KV cache grows linearly with this. It is the biggest lever you have.

Needed at Q4_K_M6.89 GB

A 8.0B model needs about 6.89 GB at Q4_K_M with 8,192 tokens of context. A bigger model at Q4 generally beats a smaller one at Q8, so spend spare memory on parameters before precision.

Weights at Q4_K_M4.50 GB
KV cache1.39 GB
Overhead1.00 GB
Cheapest cardRaspberry Pi 5about $120
QuantisationWeightsTotalTrade-off
Q8_08.50 GB10.9 GBNear-lossless. Use when memory is free.
Q6_K6.60 GB8.99 GBVery close to FP16; the safe default if it fits.
Q5_K_M5.70 GB8.09 GBMild loss, noticeably smaller.
Q4_K_M4.50 GB6.89 GBThe sweet spot most people run.
Q3_K_M3.50 GB5.89 GBVisible degradation. Fallback only.
Inputs

What each setting changes

Every input moves the result for a reason. This is what each one does and where to find the value for your own machine.

SettingDefaultWhat it changes
Parameters8 billionsAny value — this is not limited to catalogued models.
Context length8192 tokensThe KV cache grows linearly with this. It is the biggest lever you have.
Worked examples

Real answers across context length

The same calculation run at a range of settings, with everything else left at its default. These are computed by the tool itself, not written by hand.

Context lengthNeeded at Q4_K_MWeights at Q4_K_MKV cacheOverhead
1,0245.67 GB4.50 GB0.17 GB1.00 GB
33,53611.2 GB4.50 GB5.69 GB1.00 GB
66,04816.7 GB4.50 GB11.2 GB1.00 GB
98,56022.2 GB4.50 GB16.7 GB1.00 GB
131,07227.7 GB4.50 GB22.2 GB1.00 GB

A 8.0B model needs about 5.67 GB at Q4_K_M with 1,024 tokens of context. A bigger model at Q4 generally beats a smaller one at Q8, so spend spare memory on parameters before precision.

Method

How this is calculated

No lookup tables and no invented constants. Here is the arithmetic, so you can check it against your own numbers.

Memory for a model is three things added together: the weights, which are parameters × bits-per-weight ÷ 8; the KV cache, which grows linearly with context length; and about a gigabyte of runtime overhead for the CUDA context, activations and framework.

Capacity follows a model’s total parameter count even for mixture-of-experts designs, because the router may select any expert on the next token and all of them must stay resident. Only throughput follows the active count.

These are well-founded engineering estimates, not benchmark results. Your quantisation, runtime and context length all move the real number, and usable memory is an assumption rather than a specification. See the full methodology for every assumption behind these figures.

Use cases

Who this is for

The three situations that bring people to this calculation.

Use case 01

Reading a model card

Turn "70B" into a number your hardware understands.

Use case 02

Comparing quants

See the file size at every rung at once.

Use case 03

Disk planning

Work out storage before pulling a family of models.

Walkthrough

How to use this calculator

Four steps, no account, nothing leaves your browser.

  1. Set parameters

    Start at the top of the panel. Every figure recalculates as you change it — there is no submit button, because watching the number move is the point.

  2. Adjust the rest to match your setup

    1 further setting: context length. Defaults are the common case, so change only what differs for you.

  3. Read the headline, then the table

    The large figure answers the question. The table underneath shows how the answer changes across nearby settings, which is usually where the decision actually gets made.

  4. Check it against the method

    The arithmetic is written out above. If a number looks wrong for your hardware, the assumptions are the first place to look — usable memory and quantisation are the two that vary most.

Questions

How much VRAM does a model of this size need: common questions

The questions people ask about this, answered without hedging.

How do I convert parameters to GB?

Multiply parameters by bits-per-weight and divide by eight. A 7B model at 4.5 bits is 7 × 4.5 ÷ 8 ≈ 3.9 GB of weights. Add the KV cache and about a gigabyte of overhead for the memory it actually occupies while running.

Why is Q4_K_M 4.5 bits and not 4?

K-quants mix precisions inside each block and keep some tensors at higher precision, so the effective rate lands above the nominal one. 4.5 bits per weight is the figure that matches real file sizes.

Is RAM the same as VRAM here?

The arithmetic is identical; the bandwidth is not. A model in system RAM runs at perhaps 50 GB/s against a card’s 500–1800 GB/s, so it fits but runs far slower.

Do I need extra space for the download?

Usually yes — some tools write a temporary file before moving it into place, so keep roughly double the final size free while pulling.

The rest of the set

All 50 run on the same arithmetic, so answers across them agree.

Coverage

Searches this page answers

Different ways of asking the same question, all resolved above.

parameters to gb calculatormodel size in gbllm file size calculatorhow big is a 70b modelgguf size calculatorbillion parameters to gigabytesmodel weights sizehow much vram does a model of this size needmodel size to ram/vram convertermodel size to ram/vram converter onlinefree model size to ram/vram converter
Next step

Now find the models that fit

Sizing is only half the problem. Model Radar takes your hardware and shows which models actually run on it, ranked by what they are good at — the same arithmetic as this page, applied to every model worth running.