What do you want to do?
3 use cases
-
Run a 70B-class model on a single 4GB GPU
Install AirLLM, pass a Hugging Face repo ID to AutoModel and generate text on a small card.
View prompt
Install lyogavin/airllm and write a script that loads <Hugging Face model ID> with AutoModel, answers <prompt>, and prints tokens per second. Warn me first if the model's split shards need more free disk than I have.
-
Speed up large-model inference with 4-bit block compression
Load a model with compression set to 4bit or 8bit for faster runs on the same small GPU.
- REPO
lyogavin/airllm - Claude Code
- Codex
- Software and DevOps
- Intermediate
View prompt
Using lyogavin/airllm, load <model> twice, once normally and once with compression='4bit', run the same three prompts on both, and give me a table of time per answer and any quality differences.
- REPO
-
Run large Llama-style models on a Mac with AirLLM
Install mlx and torch and run AirLLM on Apple Silicon for supported model architectures.
- REPO
lyogavin/airllm - Claude Code
- Codex
- Software and DevOps
- Intermediate
View prompt
Set up lyogavin/airllm on my Mac with mlx and torch, choose a Llama-style model that is supported on macOS, run the macOS example with <prompt>, and report memory use and time per token.
- REPO
Quick start with Airllm
- Check you have what it needs: Python and pip; A CUDA GPU (a few GB of VRAM) or a Mac with mlx and torch for Llama-style models; Lots of disk for split layer shards; some models need specific transformers versions.
- Open lyogavin/airllm on GitHub and read the README and license.
- Run
pip install airllm - In Python,
from airllm import AutoModeland load a model withAutoModel.from_pretrained("Qwen/Qwen3-32B")or another repo ID - Tokenize your prompt with model.tokenizer as in the Quickstart
- Call model.generate with max_new_tokens and decode the output
These steps come from our top use case, Run a 70B-class model on a single 4GB GPU, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for lyogavin/airllm
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers and researchers with a modest GPU who want to experiment with very large open models without renting big cloud machines.
- Why it is hot41k stars, picked up by one AI source we track
- LanguageJupyter Notebook
- Sourcegithub.com/lyogavin/airllm · Back to Hot repos
Requirements
- Python and pip
- A CUDA GPU (a few GB of VRAM) or a Mac with mlx and torch for Llama-style models
- Lots of disk for split layer shards; some models need specific transformers versions
- Optional: bitsandbytes for compression
Add this badge to your README
Maintain Airllm? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/lyogavin-airllm/?utm_source=github&utm_medium=badge&utm_campaign=lyogavin-airllm)
HTML
<a href="https://dedupedai.com/use-cases/lyogavin-airllm/?utm_source=github&utm_medium=badge&utm_campaign=lyogavin-airllm"><img src="https://dedupedai.com/badge/lyogavin/airllm.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Airllm
What is Airllm?
AirLLM cuts inference memory so very large language models run on a single small GPU without quantization, distillation or pruning, by streaming model layers instead of loading the whole model. The README reports 70B models on a 4GB card, DeepSeek-V3 (671B) on about 12GB and Kimi K3 on under 4GB, all through one AutoModel API, plus optional 4-bit or 8-bit compression for speed and new training support for huge models on small VRAM. It is an open-source project on GitHub: https://github.com/lyogavin/airllm.
How do I use Airllm?
Run pip install airllm; then in Python, from airllm import AutoModel and load a model with AutoModel.from_pretrained("Qwen/Qwen3-32B") or another repo ID; Tokenize your prompt with model.tokenizer as in the Quickstart. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Airllm for?
Developers and researchers with a modest GPU who want to experiment with very large open models without renting big cloud machines.
What can I do with Airllm?
3 use cases so far, for example: Run a 70B-class model on a single 4GB GPU; Speed up large-model inference with 4-bit block compression; Run large Llama-style models on a Mac with AirLLM. Each has steps and a copy-paste agent prompt.
What do I need to run Airllm?
Python and pip; A CUDA GPU (a few GB of VRAM) or a Mac with mlx and torch for Llama-style models; Lots of disk for split layer shards; some models need specific transformers versions; Optional: bitsandbytes for compression.
What are alternatives to Airllm?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is Airllm safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.