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

Indexes mixed-format folders locally into a zero-config, Elasticsearch-compatible search engine offering keyword, semantic, vector and hybrid retrieval. Embeds on ingest, provides per-agent namespaced memory and AST-aware code indexing in a single static binary with no external embedding key.

GitHub

Turns natural-language instructions into end-to-end Android automation that drives real devices and captures Logcat and screenshots. Uses a multimodal “Dynamic‑First, Coordinate‑Fallback” locator and a native MCP server for IDE integration, supporting fast Flash (3–5s/step) and verifiable Pro workflows.

Converts real repositories into verifiable, sandboxed training environments with black-box tests to train coding agents on long-horizon program reproduction. Provides Program-Env for automated environment construction and Program-Agent for a role-isolated development workflow, yielding 1,648 C/C++/Go/Rust tasks and improving benchmark performance.