AirLLM is an open-source Python library by Gavin Li that optimizes large language model inference memory usage, enabling 70B models on a single 4GB GPU and Llama 3.1 405B on 8GB VRAM without quantization, distillation, or pruning.
from airllm import AutoModel auto-detects model architecture (Llama, Qwen, ChatGLM, Mistral, Baichuan, InternLM, and more) from Hugging Face repo IDs or local paths.pip install airllm and run generation similar to a standard Transformers workflow with model.generate().