Skip to content

AirLLM 2.8T LLM inference with single 4GB GPU

Update README: highlight FP8/latest-model support and add Supported Models section

Yu Li87e8035ab574
diff --git a/README.md b/README.md
index b54bac7..dc72468 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
[**Example notebooks**](#example-python-notebook) |
[**FAQ**](#faq)
-**AirLLM** optimizes inference memory usage, allowing 70B large language models to run inference on a single 4GB GPU card without quantization, distillation and pruning. And you can run **405B Llama3.1** on **8GB vram** now.
+**AirLLM** dramatically reduces inference memory usage, letting 70B large language models run on a single 4GB GPU card — without quantization, distillation, or pruning. You can even run **405B Llama 3.1** on **8GB**, and **DeepSeek-V3 (671B)** on **~12GB**.
<a href="https://github.com/lyogavin/airllm/stargazers">![GitHub Repo stars](https://img.shields.io/github/stars/lyogavin/airllm?style=social)</a>
[![Downloads](https://static.pepy.tech/personalized-badge/airllm?period=total&units=international_system&left_color=grey&right_color=blue&left_text=downloads)](https://pepy.tech/project/airllm)
@@ -31,6 +31,8 @@
* [Bloome — build & run AI agent teams in the cloud, zero setup](https://bloome.im/login?ref=G6BYnov0)
## Updates
+[2026/06] **v3.0**: FP8 model support + the latest models. Run **DeepSeek-V3 (671B) on ~12GB** and **Qwen3-235B on ~3GB**, plus Qwen3, Llama 3.x/4, DeepSeek V2/V3, Phi-4, Gemma and more — all through a single `AutoModel`.
+
[2024/08/20] v2.11.0: Support Qwen2.5
[2024/08/18] v2.10.1 Support CPU inference. Support non sharded models. Thanks @NavodPeiris for the great work!
@@ -90,11 +92,15 @@ Then, initialize AirLLMLlama2, pass in the huggingface repo ID of the model bein
from airllm import AutoModel
MAX_LENGTH = 128
-# could use hugging face model repo id:
-model = AutoModel.from_pretrained("garage-bAInd/Platypus2-70B-instruct")
+# just pass a hugging face repo id — works with almost any popular model:
+model = AutoModel.from_pretrained("Qwen/Qwen3-32B")
+
+# go bigger with the exact same one line:
+#model = AutoModel.from_pretrained("Qwen/Qwen3-235B-A22B") # 235B, runs in ~3GB
+#model = AutoModel.from_pretrained("deepseek-ai/DeepSeek-V3") # 671B, runs in ~12GB
-# or use model's local path...
-#model = AutoModel.from_pretrained("/home/ubuntu/.cache/huggingface/hub/models--garage-bAInd--Platypus2-70B-instruct/snapshots/b585e74bcaae02e52665d9ac6d23f4d0dbc81a0f")
+# or use a model's local path...
+#model = AutoModel.from_pretrained("/home/ubuntu/.cache/huggingface/hub/models--Qwen--Qwen3-32B/snapshots/...")
input_text = [
'What is the capital of United States?',
@@ -255,6 +261,27 @@ model.tokenizer.decode(generation_output.sequences[0])
+## Supported Models
+
+AirLLM works out of the box with **virtually every popular open LLM** — just pass its Hugging Face ID to `AutoModel.from_pretrained(...)`. That covers all the major families:
+
+**Llama** (2 / 3 / 3.1 / 3.3 / 4) · **Qwen** (1 / 2 / 2.5 / 3, including MoE and FP8) · **DeepSeek** (V2 / V3 / R1) · **Mistral & Mixtral** · **Phi** · **Gemma** · **ChatGLM** · **Baichuan** · **InternLM** · **Yi** — and most new models the day they're released.
+
+### Tiny GPU, huge models
+
+The trick: 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. That's how a 671B model fits on a hobbyist card:
+
+| Model | Size | GPU VRAM |
+|---|---|---|
+| Qwen3 / Mistral / Phi (≈8B) | 8B | **~1–2 GB** |
+| Qwen3-30B / Mixtral (MoE) | 30–47B | **~1–3 GB** |
+| Qwen3-235B (MoE) | 235B | **~3 GB** |
+| Llama 3.x 70B (full precision) | 70B | **~4 GB** |
+| Llama 3.1 405B | 405B | **~8 GB** |
+| DeepSeek-V3 | **671B** | **~12 GB** |
+
+Same one line of code for all of them — no special setup.
+
## Acknowledgement
A lot of the code are based on SimJeg's great work in the Kaggle exam competition. Big shoutout to SimJeg: