AirLLM
Framework · Text & code
Runs large language models on a computer with little memory by loading one layer at a time from disk, on a GPU or CPU.
Runs huge models on small machines, but at seconds to minutes per token
Latest · Nov 28Version 4.0.1 (23 Nov) adds a clean-memory-per-layer option, on by default; a Qwen3.5 0.8B 4-bit run on an RTX 2070 Max-Q took 123.3 s with it and 7.8 s without, 32 tokens
Who says what
Opinion has settledAirLLM's README, as quoted by Jorge Marfil
It claims compression makes inference up to 3x faster and that 4.0.0 can LoRA-tune a 125B model in under 6 GB on an RTX 3060 Ti. It gives no timings for Llama 405B and no training times.
Jorge Marfil and GitHub users, who ran it, plus Tech-Practice
Marfil measured 292 s per token on Kimi K3 and found llama.cpp or Ollama faster whenever the model fits in RAM. One GitHub user went from over 2 minutes per token on a hard disk to 13 s on a RAM disk. Another found compression made Qwen2.5 32B slower (13.3 s/token uncompressed, 106.7 at 4-bit). Tech-Practice noted it falls back to the CPU on a PS5.
Tech-Practice's early-November note and the late-November tests all describe a tool that works but is held back by disk speed.
What would settle it. Published timings for the large models it headlines, and a test of the unmerged pull request that loads small models straight into VRAM.
Seen running on
| Machine | Speed | How | Seen by |
|---|---|---|---|
| 1 run, memory not given | |||
| 32B | |||
Evidence
- Nov 28Free, Apache 2.0, 43,391 GitHub stars on 25 Nov 2026; installs with pip and keeps all data on your machineHands-on test
Jorge Marfil - Nov 28Splits the model into one file per layer, loads each layer to GPU just before it runs and frees it after, prefetching the next in a threadHands-on test
Jorge Marfil - Nov 28Speed is disk-bound: seconds per token is roughly model size in GB divided by disk read GB/s, a best-case floor; fits-in-RAM cases are fasterHands-on test
Jorge Marfil - Nov 28A GitHub user on an RTX 3050 with 32 GB RAM went from over 2 minutes per token (hard disk) to 13 s/token (RAM disk) with a 17.6 GB compressed Qwen2.5 Coder 32BCommunity reportGitHub usersvia
Jorge Marfil - Nov 28When the model fits in RAM, llama.cpp or Ollama are usually faster than AirLLM, which still moves every layer over PCIe per tokenHands-on test
Jorge Marfil
Show all 16
- Nov 28An open, unmerged pull request loads the whole model to VRAM when it fits; on an RTX 4060 8 GB with a 1.5B model it went from 0.1 to 32.2 tokens/sCommunity reportGitHub usersvia
Jorge Marfil - Nov 28On an NVIDIA Grace Blackwell with Qwen2.5 32B, compression made AirLLM slower: 13.3 s/token uncompressed, 50.5 at 8-bit, 106.7 at 4-bit, against the README's up-to-3x faster claimCommunity reportGitHub usersvia
Jorge Marfil - Nov 28For Kimi K3 (93 layers, 896 experts, 16 active) AirLLM loads only the needed experts, about 1 GB per layer instead of about 55 GBReported
Jorge Marfil - Nov 28The 'unquantized' headline is narrowly true: AirLLM adds no quantization, but Kimi K3 ships in MXFP4 (about 4.46 bits per parameter) and DeepSeek V3 mostly in FP8Hands-on test
Jorge Marfil - Nov 28Neither the README nor release notes publish any timing for Llama 405B; the 64 GB RAM figure repeated for Kimi K3 comes from another model's notesHands-on test
Jorge Marfil - Nov 28Keeps the original download by default, so Llama 405B needs about 1.62 TB; delete_original=true keeps only the layersHands-on test
Jorge Marfil - Nov 28Batching helps: in a fork, a 34B model on a 16 GB MacBook Pro went from 35 s/token with one prompt to 5.3 s/token with 50 promptsCommunity reportGitHub usersvia
Jorge Marfil - Nov 28Version 4.0.0 added streaming LoRA training; README claims a 125B model tuned in under 6 GB on an RTX 3060 Ti and a 27B in about 2 GB at 512 tokens, with no training times givenReported
Jorge Marfil - Nov 28On Mac it only supports Apple Silicon and Llama- or Mistral-style models; Kimi K3 additionally needs compressed-tensors, Flash-Attn, PyTorch for CUDA 12 and Transformers 4.56; no OpenAI-compatible serverHands-on test
Jorge Marfil - Nov 28At 292 s/token an agent writing 50 tokens per step takes about 4 hours a step, so it is unusable for coding agentsHands-on test
Jorge Marfil - Nov 2Would run on the CPU, streaming layers from disk, so it cannot use the PS5 GPUHands-on test
Tech-Practice