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 Infra2025

Measures generative AI inference performance with token-level metrics (TTFT, inter-token latency), latency, and throughput under realistic traffic patterns. Provides a multiprocess engine, real-time TUI dashboard, extensible plugins, and integrations for telemetry and result uploads, aimed at inference benchmarking and capacity planning.

GitHub
AI Train2019

Train and experiment with multi-billion to trillion-parameter transformer models on large GPU clusters using GPU-optimized building blocks and reference training scripts; offers advanced parallelism and mixed-precision support for research teams and ML engineers.

GitHub

Indexes full text of visited web pages and local files on a self‑hosted server so you can search your personal knowledge from a web UI, terminal, CLI, or an AI assistant. Runs without mandatory telemetry, offers a browser extension for automatic capture, and supports optional semantic search via a configurable embeddings endpoint.