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

Enables RL post-training with million-token prompts under a fixed GPU budget by evaluating shared prompt state without autograd, retaining only minimal model state, and replaying short response branches; instantiated as GRPO and demonstrated on Qwen3.6-27B and GLM-5.2 up to multi-million token execution.

GitHub
AI Infra2026

Defines OpenTelemetry semantic conventions for generative AI telemetry — spans, metrics, and events for GenAI clients, the Model Context Protocol (MCP), and provider-specific integrations. Includes YAML models, human-readable docs, and reference implementations to standardize observability across GenAI deployments.

GitHub
AI Infra2024

Provides a lightweight build platform for HIP and ROCm that supports building ROCm, PyTorch, and JAX from source, multi-architecture nightly releases, and integrated CI/CD and developer tooling for Linux and Windows.