Ask anyone how to run a large language model at home and you get the same first rule: the model has to fit in your GPU memory (VRAM). A 70B model in 16-bit precision is about 140GB. A gaming card has 8 to 16GB. So you shrink the model, or you pick a smaller one.

AirLLM breaks that rule. Its README says a 70B model runs on a single 4GB card, with no quantization, distillation or pruning. It goes further: Kimi K3, a 2.8 trillion parameter model, in 3.72GB of VRAM. The project just shipped v4.0.1 on November 23, 2026, and it has more than 43,000 stars on GitHub.

The claims are true. But the README talks about memory, not speed. The speed story is in the project's own release notes and issue tracker, and it changes who should use this tool.

First, how a model makes one token

Two ideas make AirLLM easy to understand.

A model is a stack of layers. Llama 3 70B has 80 of them. Text goes into layer 1, its output goes into layer 2, and so on to the end. Layer 40 only needs the output of layer 39. It does not care where layer 39 lives.

Every new token runs through the whole stack. A model writes one token at a time. To write the next word, it pushes data through all 80 layers again.

Normal tools keep all layers in VRAM because reading VRAM is very fast. AirLLM asks: what if we load only the layer we need right now?

How AirLLM works

Think of a cook in a tiny kitchen with a huge recipe book. The counter only fits one page. So the cook brings one page from the shelf, follows it, puts it back, and brings the next one.

That is AirLLM. The steps:

  1. Split. On first run, it downloads the model from Hugging Face and saves each layer as a separate file on disk.
  2. Stream. During generation, it loads layer 1 into the GPU, runs it, frees it, then loads layer 2.
  3. Prefetch. A background thread reads the next layer from disk while the current one runs. The code in airllm_base.py does this by default.

So the VRAM you need depends on the size of one layer, not the whole model. For a 70B model, that is a few gigabytes.

For Mixture of Experts (MoE) models, it goes one step further. An MoE layer has many small "expert" networks, and each token uses only a few. The v3.1.0 release notes explain the Kimi K3 number: each layer has 896 experts, and a token routes to 16. All experts in one layer are about 55GB. The 16 a token needs are about 1GB. AirLLM loads only those.

The cost: the whole model moves for every token

Here is the catch. The cook does not keep the pages. For the next dish, the cook walks to the shelf again for every page.

AirLLM frees each layer after using it. So for every token, it reads the whole model from disk again. One open issue (#364) puts it plainly: use_cache=True saves attention state, not weights.

You can do the math yourself:

seconds per token (best case) = model size on disk / disk read speed 

For a 70B model at 16 bits (about 140GB) on a fast Gen4 NVMe SSD (about 7GB/s), that is about 20 seconds per token. That is before any compute. On a SATA SSD (about 0.5GB/s), it is over four minutes. These are rough estimates, not measurements.

Now the measured numbers from the project itself:

  • Kimi K3 (2.8T), v3.1.0 release notes: 3.72GB peak VRAM on an RTX 6000 Ada. One-time setup took 900 seconds. Generation was 292 seconds per token, which the notes call "disk-bound". A 100-token answer would take about 8 hours.
  • Qwen2.5-3B, issue #364: On Windows with an RTX 5060 Ti and an NVMe SSD, 4 tokens took 114.5 seconds, or 28.6 seconds per token. GPU use was about 6%. The reporter first thought it had frozen.
  • GPT-OSS 20B, issue #374: About 30 minutes for one answer of around 120 tokens on an RTX 3090.

The maintainer deserves credit for publishing the 292 seconds per token number. It is just not in the headline.

The "3x faster" compression claim is disputed

The README still says 4-bit or 8-bit block-wise compression gives "up to 3x" faster inference. The idea makes sense: smaller files mean less disk reading.

Issue #330, still open, reports the opposite. The test used Qwen2.5-32B on a GB10 machine, 10 tokens, same prompt:

  • No compression: 13.3 seconds per token
  • 8-bit: 50.5 seconds per token (3.8x slower)
  • 4-bit: 106.7 seconds per token (8x slower)

All three gave correct output. The reporter's explanation: the whole split model fit in the machine's RAM cache, so disk reading was not the slow part. The slow part was turning every compressed layer back into 16-bit weights, for every token.

A second commenter pointed to another cause in the code. When compression is on, AirLLM turns prefetching off. You can see it in airllm_base.py: it prints "prefetching is not supported together with compression for now" and disables it. So loading and compute can no longer overlap.

This is one user's test on one machine, so treat it as a strong data point, not the final word. Compression may still help on a slow disk with little RAM. But do not assume it is faster. Measure it on your own machine.

What changed in v4.0.1

The new release is a patch, not a feature drop. The notes list:

  • A fix for the free disk space check with 4-bit compression. It used to ask for about 3.5 times the checkpoint size by mistake.
  • Compression now applies only to weight matrices. Small tensors like norm weights and biases stay full precision.
  • A new option, clean_memory_per_layer=False, to skip the memory cleanup that runs after every layer. The default stays True.

The bigger recent change was v4.0.0 in September: training. AirLLM can now fine-tune with LoRA (small trainable add-on weights) while the frozen base model streams from disk. The README says Qwen3.8-Flash-Next (125B) trains under 6GB on an RTX 3060 Ti. Speed numbers for training are not published.

How to try it

Install from PyPI:

pip install airllm 

This is the README's quick start, shortened:

from airllm import AutoModel model = AutoModel.from_pretrained("Qwen/Qwen3-32B") tokens = model.tokenizer(['What is the capital of United States?'], return_tensors="pt", return_attention_mask=False, truncation=True, max_length=128, padding=False) out = model.generate(tokens['input_ids'].to(model.device), max_new_tokens=20, use_cache=True, return_dict_in_generate=True) print(model.tokenizer.decode(out.sequences[0])) 

Three things to check before you run it:

  • Disk space. The first run splits the model into layer files, so you need room for both copies. delete_original=True removes the original download after the split. The README's first FAQ item, MetadataIncompleteBuffer, usually means the disk is full.
  • A fast SSD. Your disk speed sets your token speed. A hard drive is not practical.
  • macOS limits. Apple Silicon is supported through MLX, but only Llama-style models (LlamaForCausalLM, MistralForCausalLM) for now.

When AirLLM makes sense

AirLLM does not make a huge model fast on a small GPU. It makes it possible. That is useful when:

  • You want to check how a big model answers a few prompts before you pay for cloud GPUs.
  • You run offline batch jobs where waiting hours is fine.
  • You study or teach how large models behave, and a slow answer is better than no answer.

It is the wrong tool for chat, coding help, or anything a person waits on. For that, a quantized model in llama.cpp or Ollama on the same hardware, or a hosted API, will answer in seconds instead of minutes.

The takeaway

AirLLM is a clean idea done well: keep only one layer on the GPU and stream the rest. Its VRAM numbers hold up, and its release notes are honest about speed. The price is that every token reads the whole model from disk, so your SSD matters more than your GPU. And the README's compression speedup now has a public, unanswered test against it.

If your task can wait, it opens models you could never load. If it cannot wait, pick a smaller model.

Would you trade hours of waiting for a full-precision answer from a model too big for your GPU?

Sources: