AIAny
AI Infra2023
Icon for item

AirLLM

Runs 70B-class LLM inference on a single 4GB GPU without quantization and supports Llama3.1 405B on 8GB VRAM. Uses layer-splitting and block-wise model compression (4/8-bit) to reduce disk load and can speed up inference loading by up to ~3x; integrates with Hugging Face models.

Introduction

Running multi‑billion-parameter LLMs typically demands high-VRAM hardware or heavy quantization. AirLLM flips that assumption: by reworking model storage and loading (layer-wise splitting, prefetching, and optional block-wise weight compression), it enables inference of 70B models on a single 4GB GPU and even running Llama3.1 405B on 8GB VRAM in constrained environments.

What Sets It Apart
  • Memory-first decomposition: the repo splits models layer-wise so inference can stream layers instead of holding the full model in VRAM, lowering peak memory requirements. This is the key enabler for running 70B on 4GB.
  • Load-size compression: optional block-wise 4/8-bit compression focuses on reducing disk/network load rather than quantizing activations, which preserves accuracy while cutting model loading time (reported up to ~3x speed improvement for loading/inference pipelines).
  • Broad model compatibility and ergonomics: AutoModel can auto-detect model types (Llama-family, Qwen, Baichuan, Mistral, ChatGLM, etc.), supports safetensors, Hugging Face gated models (via hf_token), prefetching to overlap load and compute, and has MacOS/CPU support improvements.
  • Practical tooling features: options to delete original downloads to save disk, layer_shards_saving_path for alternate storage, and example notebooks/Colabs to reproduce large-model runs on modest hardware.
Who It's For and Tradeoffs

Great fit if you want to experiment with or prototype very large LLMs on low-end hardware (single 4GB–8GB GPUs), need to run open models locally without aggressive activation quantization, or want a tooling approach that emphasizes reduced disk/load overhead. Look elsewhere if you require strict production-grade latency/throughput guarantees, minimal disk usage during model preparation (splitting can be disk-intensive), or if you need certified accuracy/throughput benchmarks for regulated deployments. Note: the model-splitting process requires substantial temporary disk space and can be I/O bound; some workflows also recommend additional tooling (bitsandbytes) for compression-enabled speedups.

Information

  • Websitegithub.com
  • AuthorsGavin Li (lyogavin)
  • Published date2023/06/12

Categories

More Items

GitHub
AI Infra2026

Adds keyless model channels to DeepSeek Harness and brings multiple providers into one model picker and local compatible gateway. Availability is checked dynamically; free quotas, regional access, and data handling remain controlled by upstream services.

GitHub
AI Infra2026

Connects coding agents to one local model gateway, making providers and subscriptions available across agents and routing requests to another account or model when quotas run out.

GitHub
AI Agent2026

Lets AI agents read and operate real phones through a shared set of controls for tapping, typing, scrolling, and screenshots. Supports personal iPhones, Android devices, and hosted cloud phones, with different connection and screen-reading methods for each.