All tools
Speed · free, no sign-up

How slow is it if part of the model spills to system RAM?

Offloading a few layers to system RAM sounds like a small compromise. It is not — the slow side of the split dominates, and a fifth of the layers can cost half the speed.

5 inputs4 questions answeredUpdated for 2026 hardware
RAM Offload Speed Calculator — How slow is it if part of the model spills to system RAM?
Answer first

The short answer

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

Effective speed179.2 tok/s

Everything fits on RTX 4090 — no offload, about 179 tok/s.

The calculator

RAM Offload Speed Calculator

The real cost of running a model that does not quite fit.

Your setup
8,192

Dual-channel DDR5 is roughly 60–90 GB/s; DDR4 nearer 40.

Effective speed179.2 tok/s

Everything fits on RTX 4090 — no offload, about 179 tok/s.

Layers on GPU100%
Fully on GPU179 tok/s
Speed retained100%
Weights4.50 GB
On GPUSpeedRetained
100%179.2 tok/s100% of full
90%61.5 tok/s34% of full
75%30.9 tok/s17% of full
50%16.9 tok/s9% of full
25%11.7 tok/s7% of full
0%8.9 tok/s5% of full
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
Your hardwareRTX 4090 · 24 GBThe machine the model runs on. Usable memory decides what fits and memory bandwidth decides how fast it runs, so this moves every figure below.
Model size8B6 options, from 3B to 405B.
QuantisationQ4_K_M — 4.5 bits/weight5 options, from Q8_0 — 8.5 bits/weight to Q3_K_M — 3.5 bits/weight.
Context length8192 tokensAnywhere from 1,024 to 65,536 tokens.
System RAM bandwidth50 GB/sDual-channel DDR5 is roughly 60–90 GB/s; DDR4 nearer 40.
Worked examples

Real answers across model size

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.

Model sizeEffective speedLayers on GPUFully on GPUSpeed retained
3B477.9 tok/s100%478 tok/s100%
8B179.2 tok/s100%179 tok/s100%
14B102.4 tok/s100%102 tok/s100%
32B44.8 tok/s100%45 tok/s100%
70B1.7 tok/s43%20 tok/s8%

Everything fits on RTX 4090 — no offload, about 478 tok/s.

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.

When a model does not fit, llama.cpp keeps some layers on the GPU and runs the rest on the CPU. Every token passes through all layers, so effective speed is a weighted harmonic mean of the two bandwidths — and the slow side dominates it.

That is why offload feels worse than the fraction suggests. Moving 20% of the layers to RAM does not cost 20%; on a fast card it can cost more than half the throughput.

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

Model nearly fits

See the real speed before committing to offload.

Use case 02

Deciding

Compare offloading against a lower quantisation.

Use case 03

Diagnosing slowness

Confirm offload is why it crawls.

Walkthrough

How to use this calculator

Four steps, no account, nothing leaves your browser.

  1. Set your hardware

    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

    4 further settings: model size, quantisation, context length, system ram bandwidth. 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 slow is it if part of the model spills to system RAM: common questions

The questions people ask about this, answered without hedging.

How much slower is CPU offload?

Far more than the fraction suggests. Every token passes through every layer, so the effective rate is a harmonic mean of the two bandwidths and the slow one dominates.

Is it better to offload or use a lower quant?

Almost always the lower quant. A model that fits entirely on the card at Q4 will beat the same model at Q5 with a fifth of its layers in system RAM, and by a wide margin.

Does faster RAM help?

Yes, roughly proportionally to the offloaded share — DDR5 over DDR4 is a real gain. It does not close the gap to VRAM, which is an order of magnitude faster.

Why is prompt processing still fast when generation is slow?

Prompt processing is compute bound and batches across tokens; generation is memory bound and reads all weights per token. Offload hurts the second far more.

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.

cpu offload speed llmhow slow is partial gpu offloadram vs vram inference speedllama.cpp offload performancemodel does not fit gpu speedddr5 llm inferenceoffload layers slowhow slow is it if part of the model spills to system ramram offload speed calculatorram offload speed calculator onlinefree ram offload speed calculator
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.