airllm social preview
inference-server43,004Apache 2.0

AirLLM

Runs 70B+ LLMs on a single 4GB GPU by streaming one layer at a time; DeepSeek-V3 (671B) in about 12GB

Updated Nov 23, 2026
Platforms
linux, macos
Pricing
free-open-source
Status
active
License
Apache 2.0

What it does

Core capabilities at a glance

  • Layer-by-layer inference (one layer on the GPU at a time)
  • 70B models in about 4 GB of VRAM
  • Optional 4-bit / 8-bit block-wise compression
  • Hugging Face model IDs or local paths
  • Apple silicon support (Llama-style models)
  • Low-VRAM training with streamed frozen weights

Deep dive

The full breakdown - performance, comparisons, and setup

AirLLMLink to this section

AirLLM is an open-source Python library that runs very large language models on small GPUs. Its README says a 70B model runs on a single 4 GB card "without quantization, distillation, or pruning", and lists DeepSeek-V3 (671B) at about 12 GB of VRAM.

How it worksLink to this section

AirLLM keeps one transformer layer on the GPU at a time. On first load it splits the model into per-layer files on disk, then streams each layer to the GPU, runs it, and frees it before loading the next. The VRAM you need depends on the size of one layer, not on the size of the whole model.

The trade-off is speed. Every token has to pass through every layer, so each token means reading the model's layers from disk again. That makes AirLLM a tool for running a model you otherwise could not run at all (batch jobs, experiments, testing a big model before buying hardware), not for interactive chat.

VRAM per model (from the project README)Link to this section

ModelSizeGPU VRAM
Qwen3 / Mistral / Phiabout 8Babout 1-2 GB
Qwen3-30B / Mixtral (MoE)30-47Babout 1-3 GB
Llama 3.x 70B (full precision)70Babout 4 GB
Qwen3-235B (MoE)235Babout 3 GB
Llama 3.1 405B405Babout 8 GB
DeepSeek-V3671Babout 12 GB

These are the maintainers' figures; we have not measured them. For the same models in normal (fully loaded) inference, check the VRAM calculator.

How fast is it?Link to this section

Slow, by design. One Hacker News commenter, citing the v3.1.0 release notes, put Kimi K3 on an RTX 6000 Ada (48 GB) at about 292 seconds per token. Two things help, per the README:

  • Compression: pass compression='4bit' or '8bit' for block-wise quantization of the weights only. The README reports up to 3x faster inference with "almost ignorable accuracy loss", because the bottleneck is disk loading.
  • Prefetching (since v2.5) overlaps loading the next layer with computing the current one, about 10% faster.

A fast NVMe SSD matters more than usual, since the model is read from disk on every token.

Install and first runLink to this section

pip install airllm
from airllm import AutoModel
 
model = AutoModel.from_pretrained("Qwen/Qwen3-235B-A22B")  # any Hugging Face repo id or a local path

On first load AirLLM writes the split, layer-wise copy of the model to disk, so plan for roughly double the checkpoint size in free space. Setting delete_original=True removes the original download and keeps only the split copy. layer_shards_saving_path puts the split files on another drive.

macOSLink to this section

AirLLM runs on Apple silicon with mlx and torch installed. For now only Llama-style models (LlamaForCausalLM, MistralForCausalLM) work on macOS; other architectures stop with an error before downloading.

When to use something elseLink to this section

If the model fits in your VRAM (or VRAM plus system RAM) at Q4, a normal runtime will be orders of magnitude faster:

  • llama.cpp and Ollama run quantized GGUF models and can split layers between GPU and CPU.
  • bitsandbytes loads Hugging Face models in 8-bit or 4-bit.
  • Petals spreads a large model across several machines.

Use what can I run to see which models fit your GPU without layer streaming.

SourcesLink to this section

  • Project README and releases: lyogavin/airllm (Apache 2.0, 42,467 stars, latest release v4.0.0 on 2026-09-05)
  • Speed figure: Hacker News comment linked above

Read on 2026-11-18.

From the community

What users are saying

“For anyone wondering “how slow is this?” IIUC, Kimi K3 on RTX 6000 Ada (48GB) takes 292 s/token https://github.com/lyogavin/airllm/releases/tag/v3.1.0”

Frequently asked

Quick answers to common questions

What is AirLLM?

AirLLM is a inference-server tool for local AI workloads. Runs 70B+ LLMs on a single 4GB GPU by streaming one layer at a time; DeepSeek-V3 (671B) in about 12GB

Is AirLLM free and open source?

Yes, AirLLM has 43,004 GitHub stars and is licensed under Apache 2.0. You can self-host it for free on linux, macos.

What platforms does AirLLM support?

AirLLM runs on linux, macos.

What hardware do I need for AirLLM?

The hardware requirements depend on which models you run. Check our hardware directory for compatible GPUs and systems. AirLLM has 43,004 GitHub stars and an active community.

Does AirLLM support GPU acceleration?

AirLLM supports GPU acceleration via CUDA, Metal, or Vulkan depending on your platform. For the best performance, pair it with an NVIDIA RTX 4090 or 5090.

What are the best alternatives to AirLLM?

Popular alternatives include other inference-server tools in our directory. Browse our full collection at /tool for comparisons, community reviews, and benchmark data to find the right fit for your workflow.

How much does AirLLM cost?

AirLLM is free-open-source. It is completely free and open source to self-host.

Pairs well with

Complementary tools, models, and hardware