Black Friday week: local AI hardware on sale. See the list.
← All guides

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
  1. Bottom Line
  2. What AirLLM Does
  3. The VRAM Table From the README
  4. The Speed Cost
  5. Disk Space Is the Hidden Requirement
  6. Which Models AirLLM Runs
  7. When to Use Something Else
  8. When AirLLM Is Worth It
  9. FAQ
  10. Sources
  11. See Also

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.

QuestionShort answer
What is it?A Python library that loads a model one layer at a time from disk
VRAM for a 70B modelAbout 4GB (README)
VRAM for DeepSeek-V3 671BAbout 12GB (README)
Speed13-29 seconds per token in user reports
Good forOne-off batch jobs, tests, “can this model answer X at all”
Bad forChat, coding assistants, OpenClaw agent loops
Better pick for most peoplellama.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.

  1. On the first run, it splits the model into one file per layer and saves the files to disk.
  2. For each token, it loads one layer onto the GPU, runs it, and drops it.
  3. 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.

ModelSizeGPU VRAM (README)
Qwen3 / Mistral / Phiabout 8Babout 1-2GB
Qwen3-30B / Mixtral (MoE)30-47Babout 1-3GB
Qwen3.8-27B (dense VL)27B3.33GB
Llama 3.x 70B (full precision)70Babout 4GB
Qwen3-235B (MoE)235Babout 3GB
Llama 3.1 405B405Babout 8GB
DeepSeek-V3671Babout 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:

ReportHardwareModelMeasured speed
Issue #330NVIDIA GB10Qwen2.5-32B, no compression13.3 s per token
Issue #364RTX 5060 Ti 16GB, NVMe SSD, AirLLM 4.0.0Qwen2.5-3B28.6 s per token (4 tokens in 114.5 s)
Issue #374RTX 3090gpt-oss-20b (bf16)about 30 minutes for about 120 tokens
Issue #186RTX 3090Qwen2.5 7Babout 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=True setting deletes the original download after the split. The README says this saves “half of the disk space.”
  • The README FAQ says the MetadataIncompleteBuffer error 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 goalBetter pickWhy
Chat or a coding assistant on 6-8GBA 9B model at 3-4 bits (6GB, 8GB)Fits in VRAM, so it runs at normal speed
A 30-35B MoE model on 12-16GBllama.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 RAMllama.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 lossA 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 onceAirLLMIt 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

See Also

Was this guide useful?

Read next

Can I Run Underdog Saluki 27B on 8GB VRAM? (2026): Not Fully
Underdog Saluki 27B is a 7.36 GiB GGUF of Qwen3.8-27B. On an 8GB GPU the weights fit but context does not. Byte-exact sizes, KV math, the -ngl values that work, and what 12GB, 16GB and Mac buyers get.
Can I Run Ripple-65B Locally? (2026): Yes, 38.8 GB Q4
Ripple-65B Preview is a dense 65B. Q4_K_M is 38.8 GB, Q8_0 is 68.8 GB, NVFP4 is 57.2 GB. What fits 24GB, 32GB, 48GB, 64GB and 128GB, the llama.cpp build you need, and the measured tok/s so far.
Bonsai 2 27B on RTX 3060 12GB: Fits, Fork Now Optional (2026)
Ternary Bonsai 2 27B is a 1.72-bit Qwen3.8-27B that fits a 12GB RTX 3060. Its Q2_0 file (7.63 GB) runs on stock llama.cpp b11556 or newer; the two smaller files still need the PrismML fork. File sizes, KV cache math for 12GB, vendor-reported quality, and how it compares to Qwen 3.8 27B on a 3090.
Can I Run Sage-A1.5 Locally? (2026): Yes, on a 24GB GPU
Sage-A1.5 is a 35B Qwen3.6-based MoE with about 3B active. Byte-exact GGUF sizes from 12.34 to 66.19 GiB, the 20 KB/token cache math, and which quant fits 16-32GB GPUs and 32-64GB Macs.