Airllm
FreeAirLLM 70B inference with single 4GB GPU
About Airllm
AirLLM is an open-source library that dramatically reduces inference memory usage, enabling large language models (LLMs) with 70B parameters to run on a single 4GB GPU without quantization, distillation, or pruning. It supports even larger models like Llama 3.1 405B on 8GB and DeepSeek-V3 (671B) on approximately 12GB. AirLLM provides an easy-to-use AutoModel API that automatically detects model type, and it is compatible with a wide range of popular models including Qwen3, Llama 3.x/4, DeepSeek V2/V3, Phi-4, Gemma, ChatGLM, QWen, Baichuan, Mistral, and InternLM. Additional features include model compression for up to 3x speedup, prefetching for 10% speed improvement, support for safetensors, CPU inference, and 8-bit/4-bit quantization options. The library runs on Python via pip and is designed for local inference on resource-constrained hardware.
Key Features
Pros & Cons
- Dramatically reduces memory requirements, enabling large models on small GPUs
- No need for quantization, distillation, or pruning to achieve memory savings
- Wide model support through a unified AutoModel interface
- Actively maintained with frequent updates and new model support
- Free and open source with permissive Apache-2.0 license
- Inference speed is slower than full GPU inference due to layer-by-layer loading
- Still requires a minimum of 4GB GPU memory for 70B models; larger models need more
- Not optimized for real-time or high-throughput production scenarios