What Is AirLLM? (2026): 70B on a 4GB GPU, at Seconds per Token
AirLLM is an open-source Python library that runs very large models on a small GPU. It keeps only one layer on the GPU at a time and reads the next layer from disk. The README says a 70B model needs about 4GB of VRAM and DeepSeek-V3 (671B) needs about 12GB. The cost is speed: users report 13 to 29 seconds per token. AirLLM is a good tool for a one-off batch job. It is the wrong tool for chat or for an agent.
Jump to 11 sections
Bottom Line
AirLLM lets a 4GB to 12GB GPU run a 70B to 671B model that a normal runtime cannot fit on that card. It pays for that with speed: seconds per token, not tokens per second.
| Question | Short answer |
|---|---|
| What is it? | A Python library that loads a model one layer at a time from disk |
| VRAM for a 70B model | About 4GB (README) |
| VRAM for DeepSeek-V3 671B | About 12GB (README) |
| Speed | 13-29 seconds per token in user reports |
| Good for | One-off batch jobs, tests, “can this model answer X at all” |
| Bad for | Chat, coding assistants, OpenClaw agent loops |
| Better pick for most people | llama.cpp with offload, or a smaller quant that fits |
Version 4.0.1 is the current release (GitHub, 2026-11-23). The repo has about 43,600 stars and an Apache-2.0 license.
What AirLLM Does
A normal runtime puts all model weights in VRAM, or splits them between VRAM and system RAM. AirLLM does something different.
- On the first run, it splits the model into one file per layer and saves the files to disk.
- For each token, it loads one layer onto the GPU, runs it, and drops it.
- It then loads the next layer, until all layers have run.
The README states the rule: “AirLLM only ever keeps one layer on the GPU at a time, so the VRAM you need depends on the model’s layer size, not its total size.”
The README also says this works “without quantization, distillation, or pruning.” The model runs at its original precision. Quality does not drop. Only the speed drops.
Install and run it with one call:
pip install airllm
from airllm import AutoModel
model = AutoModel.from_pretrained("Qwen/Qwen3-32B")
AutoModel takes a Hugging Face repo ID or a local path. It detects the model type.
The VRAM Table From the README
These are the AirLLM README numbers. They are VRAM only. They do not include system RAM or disk.
| Model | Size | GPU VRAM (README) |
|---|---|---|
| Qwen3 / Mistral / Phi | about 8B | about 1-2GB |
| Qwen3-30B / Mixtral (MoE) | 30-47B | about 1-3GB |
| Qwen3.8-27B (dense VL) | 27B | 3.33GB |
| Llama 3.x 70B (full precision) | 70B | about 4GB |
| Qwen3-235B (MoE) | 235B | about 3GB |
| Llama 3.1 405B | 405B | about 8GB |
| DeepSeek-V3 | 671B | about 12GB |
Compare this with a normal 24GB card. A 70B model does not fit cleanly at a useful quant on 24GB (full answer). AirLLM fits it in 4GB because it never holds more than one layer.
The Speed Cost
The README gives no tokens-per-second number. It does say this about chat output: “every new token streams all layers from disk, so a reply can take a while.”
The AirLLM GitHub issues have measured numbers from users:
| Report | Hardware | Model | Measured speed |
|---|---|---|---|
| Issue #330 | NVIDIA GB10 | Qwen2.5-32B, no compression | 13.3 s per token |
| Issue #364 | RTX 5060 Ti 16GB, NVMe SSD, AirLLM 4.0.0 | Qwen2.5-3B | 28.6 s per token (4 tokens in 114.5 s) |
| Issue #374 | RTX 3090 | gpt-oss-20b (bf16) | about 30 minutes for about 120 tokens |
| Issue #186 | RTX 3090 | Qwen2.5 7B | about 40 minutes for one 128-token answer |
These are user reports, not lab benchmarks. The pattern is still clear. A short answer takes minutes. A long answer takes most of an hour.
Small models are slow too. Issue #364 ran a 3B model on a 16GB card and got 28.6 seconds per token. That model fits on that card in any normal runtime.
The compression setting
The README says 4-bit or 8-bit compression gives “up to 3x” faster inference with almost no accuracy loss:
model = AutoModel.from_pretrained("garage-bAInd/Platypus2-70B-instruct", compression='4bit')
A user benchmark in issue #330 measured the opposite on Qwen2.5-32B. 8-bit was 3.8x slower (50.5 s per token). 4-bit was 8.0x slower (106.7 s per token). The issue author thinks the 3x number comes from 2023-era disks. On a fast NVMe disk, the time to convert each layer back to fp16 costs more than the disk time it saves. The issue is still open. Test both settings on your own machine before you trust either number.
Disk Space Is the Hidden Requirement
AirLLM needs a lot of disk. On the first run it writes a split copy of the model next to the original download.
- The README says to make sure “there is sufficient disk space in the huggingface cache directory.”
- The
delete_original=Truesetting deletes the original download after the split. The README says this saves “half of the disk space.” - The README FAQ says the
MetadataIncompleteBuffererror usually means you ran out of disk during the split. - For Qwen3.8-Flash-Next (125B), the README lists about 360GB of checkpoint disk.
A fast NVMe SSD matters. Every token reads every layer, so the disk is the speed limit.
Which Models AirLLM Runs
The README lists these families through AutoModel:
- Llama 2, 3, 3.1, 3.3 and 4
- Qwen 1 to 3.8, including MoE, Flash-Next, FP8 and vision models
- DeepSeek V2, V3 and R1
- Mistral and Mixtral, Phi, Gemma, ChatGLM, Baichuan, InternLM, Yi
- Kimi K3 (2.8T), which the README says runs in 3.72GB of VRAM on one RTX 6000 Ada
Some new models need extra packages. The README says Kimi K3 needs compressed-tensors, flash-attn, a CUDA 12 build of torch and transformers 4.56.x. Qwen3.8-Flash-Next needs a transformers build from source.
Mac: AirLLM runs on Apple Silicon only, through mlx. The README says only Llama-style models (LlamaForCausalLM, MistralForCausalLM) work on macOS for now. Other architectures give an error before the download starts.
Training: since September 2026, AirLLM can also train LoRA adapters this way. The README says Qwen3.8-27B trains in about 2GB of VRAM at sequence length 512.
When to Use Something Else
AirLLM answers the question “can my GPU run this model at all?” For most people the better question is “which model runs well on my GPU?” Use this table:
| Your goal | Better pick | Why |
|---|---|---|
| Chat or a coding assistant on 6-8GB | A 9B model at 3-4 bits (6GB, 8GB) | Fits in VRAM, so it runs at normal speed |
| A 30-35B MoE model on 12-16GB | llama.cpp with --n-cpu-moe (how it works) | Community reports show about 51-53 tok/s for a 35B MoE on a 12GB RTX 3060 |
| A big model with lots of system RAM | llama.cpp with partial offload (128GB RAM, no GPU) | Weights stay in RAM; AirLLM reads every layer from disk for each token |
| Smaller files at small quality loss | A GGUF quant (quant names explained) | 4 bits per weight instead of 16, so the file can fit in VRAM |
| A model that fits nowhere else, run once | AirLLM | It needs only one layer of VRAM |
The speed gap is very large. The 51-53 tok/s llama.cpp report and the 13.3 s per token AirLLM report differ by about 700 times. Both are community numbers, on different models and hardware, so use them as an order of magnitude only.
OpenClaw users: do not point an OpenClaw agent at AirLLM. An agent loop makes many model calls per task. At minutes per answer, one task can take hours. Use the OpenClaw model calculator to find a model that fits your VRAM.
When AirLLM Is Worth It
AirLLM is a good fit when all of these are true:
- The model does not fit in your RAM plus VRAM at any quant you trust.
- You need full-precision output, for example to compare a quant against the original.
- You can wait. The job runs overnight or in a batch, and nobody watches the output.
- You have a fast NVMe SSD with enough free space for two copies of the model.
If one of these is false, a smaller model or a quant on llama.cpp gives you a better result per hour.
FAQ
What is AirLLM? An Apache-2.0 Python library that runs a model one layer at a time from disk. The VRAM need depends on one layer, not the full model.
How fast is AirLLM? User reports on GitHub show 13.3 to 28.6 seconds per token. One 120-token answer took about 30 minutes on an RTX 3090.
Can AirLLM run 70B on 4GB? Yes, the README says about 4GB of VRAM for Llama 3.x 70B at full precision. It is slow.
Is AirLLM better than llama.cpp? Not for interactive use. llama.cpp offload keeps weights in RAM and VRAM. AirLLM reads every layer from disk for each token.
Does compression help? The README claims up to 3x. A user benchmark in issue #330 measured 3.8x to 8.0x slower. Test it yourself.
Does it work on a Mac? Apple Silicon only, and only Llama-style models for now.
Sources
- AirLLM README (lyogavin/airllm, main branch), read 2026-11-28
- AirLLM on PyPI: version 4.0.1, uploaded 2026-11-23, read 2026-11-28
- GitHub issues read 2026-11-28: #330 (compression benchmark), #364 (3B speed), #374 (gpt-oss-20b speed), #186 (Qwen2.5 7B speed)
- llama.cpp offload speed: community reports collected in llama.cpp —n-cpu-moe explained
See Also
- Can 24GB VRAM run a 70B local LLM?: the normal-runtime answer for 70B
- llama.cpp MoE offload flags explained: the faster way to run a model bigger than your VRAM
- Best local LLM for 6GB VRAM and 8GB VRAM: models that run at full speed on small cards
- Can you run a 160B MoE on 8GB VRAM?: how far RAM offload stretches
- Quantization in plain English: why a smaller quant is usually the better trade
- Best local LLM by GPU: picks for every card