LibreAI / Local LLM / airllm
// local-llm · lyogavin/airllm

airllm

Run a 70B LLM on a single 4GB GPU — layer-by-layer inference with almost no memory tricks skipped

★ 35.5k stars⑂ 3.8k forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

airllm is an open-source local llm project by lyogavin (lyogavin/airllm on GitHub). It has 35,511 GitHub stars and 3,753 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 8 October 2026.

Repository
lyogavin/airllm
GitHub stars
35,511
Forks
3,753
License
Apache-2.0
Last updated on GitHub
8 October 2026
Category
Local LLM
Listing
Full install guide
// how it works

How it works

  1. Clarify your goal

    Decide what you want to achieve with airllm and check the README on GitHub for requirements before installing.

  2. Get the code

    Clone the repository from GitHub (or take the packaged install route in step 3 if the README offers one).

  3. Install and configure

    Follow the project's documented install commands — the Run section below lists the exact ones — and add any required API keys or models.

  4. Run your first task

    Work through the README's quickstart example end to end, then adapt it to your own project or data.

// features

Why people love it

70B on 4GB VRAM

Layer-by-layer loading lets models far larger than your VRAM still run, trading speed for reach.

One-line model loading

Pass a Hugging Face repo id (or a local path) and AirLLM handles the rest — the quickstart is a few lines of Python.

Optional compression

Model compression via bitsandbytes can speed inference up to 3x, per the README.

Broad model support

Works with popular open model families listed in the README, including Llama and other Hugging Face models.

Training support

Includes a training path with dataset preparation and a Python API, not just inference.

macOS support

Documents running on Apple hardware as well as CUDA GPUs.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the AirLLM source, examples and notebooks.

    git clone https://github.com/lyogavin/airllm.git
    cd airllm
  2. Install the package

    Install AirLLM (and bitsandbytes if you want compression) from PyPI.

    pip install airllm
    pip install -U bitsandbytes
  3. Run a first model

    Load a Hugging Face model id through AirLLM's Python API as shown in the README quickstart.

    # from airllm import AutoModel
    # model = AutoModel.from_pretrained('meta-llama/Llama-2-70b-hf')  # see README quickstart
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains airllm?

airllm is maintained by the lyogavin organization/account on GitHub, together with open-source contributors, in the public repository lyogavin/airllm.

Is airllm free to use?

Yes — the code is open source under the Apache-2.0 license. You can use, modify and redistribute it under that license's terms.

Does airllm need a paid API key?

No API key and no paid service — models download from Hugging Face (some are gated and need a free Hugging Face account/token and license acceptance).

How does airllm compare to llama.cpp / Ollama?

Those quantize models to fit memory and are much faster; AirLLM instead runs full-precision huge models layer-by-layer — slower, but it can run models that would not fit even quantized.

How do I get started with airllm?

Clone the repository from GitHub, follow the install commands in the Run section (taken from the project's README), and complete the documented quickstart example before adapting it to your own use case.

// keep exploring

Similar tools

Local LLM

can-i-finetune-this

Check if your GPU can fine-tune an LLM — memory estimates and LoRA recipes.

★ 792 starsMIT
View guide →
Local LLM

ChatGLM2-6B

Open bilingual (Chinese-English) 6B chat LLM with 32K-context variant and low-memory INT4 inference.

★ 15.5k starsApache-2.0
View guide →
Local LLM

shimmy

⚡ Pure-Rust WebGPU inference engine — OpenAI-API compatible, GGUF native, runs on any GPU. No Python. No llama.cpp. Single binary.

★ 5.9k starsApache-2.0
View guide →
Local LLM

llamafile

Distribute and run LLMs with a single file.

★ 26.2k starsUnknown
View guide →
Local LLM

mlc-llm

Compile and run LLMs anywhere - phones, laptops, browsers and GPUs - with one engine

★ 23.2k starsApache-2.0
View guide →
Local LLM

TokenSpeed

TokenSpeed — a speed-of-light LLM inference engine designed for agentic workloads, with TensorRT-LLM-level performance and vLLM-level usability

★ 2.5k starsMIT
View guide →
// alternatives

Alternatives in Local LLM

The most-starred other Local LLM projects in the LibreAI catalogue — the realistic shortlist if airllm is not the right fit.

Get airllm

Free and open — grab the source, star the repo, and start creating.