Home / Guide / Download
Download

AirLLM Download: The Safe, Complete Way to Get It Running

A complete AirLLM download guide: where to get the official source, how to choose between the ZIP and pip, how to verify files and how to finish setup without surprises.

AirLLM Download: The Safe, Complete Way to Get It Running

Searching for an AirLLM download usually means one thing: you have read that AirLLM can run a 70-billion-parameter language model on a graphics card with only 4 GB of memory, and you want to see it for yourself. That claim is real, but getting there smoothly depends on choosing the right package, preparing your disk and avoiding a handful of mistakes that trip up first-time users. This guide walks through the entire process, from picking a source to generating your first sentence.

What exactly are you downloading?

AirLLM is a compact Python library maintained on GitHub by its original author under the repository lyogavin/airllm. It is not a desktop application with an installer, and it does not ship with model weights. What you receive is the inference engine: code that splits a large model into individual transformer layers, saves those layers as separate shards on disk and then streams them through your GPU one at a time. Because only one layer occupies video memory at any moment, the memory ceiling drops from the size of the whole model to the size of its largest layer.

That design is why the AirLLM download itself is tiny. The engine is measured in kilobytes, while the models it runs are measured in tens or hundreds of gigabytes. Keep that distinction in mind when you plan disk space.

Two official routes: ZIP archive or pip package

There are two legitimate ways to obtain AirLLM, and both come from the same project.

Route 1: the source ZIP

The source archive of the main branch is available directly from GitHub. Our download section links to exactly that file. The ZIP contains the air_llm package folder, the setup script, example notebooks and the project README. It is the right choice when you want to inspect the code, run the bundled notebooks, install on an offline machine or keep a fixed copy for reproducible experiments.

Route 2: pip from PyPI

The package is also published on the Python Package Index under the name airllm. Installing it is a single command, and pip resolves dependencies such as PyTorch, Transformers, Accelerate and Safetensors for you. For most people who only want to run models, this is the faster path.

NeedBest route
Run a model quicklypip install AirLLM
Read or modify the sourceZIP archive
Offline or air-gapped PCZIP plus pre-downloaded wheels
Pin an exact versionpip install AirLLM==<version>

Before you download: prepare the machine

A little preparation saves hours later. Check these four points first.

  • Python 3.9 or newer. Python 3.10 or 3.11 is the most trouble-free choice because PyTorch wheels are widely available for both.
  • A CUDA-capable NVIDIA GPU for the classic workflow, ideally with 4 GB of VRAM or more. Apple silicon Macs are supported through a separate backend, and CPU inference is possible but slow.
  • Fast storage. AirLLM reads every layer from disk for every generated token. An NVMe SSD makes an enormous difference compared with a hard drive.
  • Free disk space of roughly twice the model size during the first run, because the original weights and the generated layer shards briefly coexist.

Step-by-step: installing from the ZIP

  1. Download the archive from the download section and save it to a working folder.
  2. Extract it. You will see a folder named airllm-main.
  3. Create and activate a virtual environment so AirLLM's dependencies stay separate from other projects.
  4. Install PyTorch with the CUDA build that matches your driver.
  5. Move into the package directory and install it in editable mode.
python -m venv .venv
source .venv/bin/activate          # Windows: .venv\Scripts\activate
pip install torch --index-url https://download.pytorch.org/whl/cu124
cd airllm-main/air_llm
pip install -e .

Editable mode means any change you make to the source takes effect immediately, which is ideal for experimentation.

Step-by-step: installing with pip

python -m venv .venv
source .venv/bin/activate
pip install -U airllm
pip install -U bitsandbytes        # only needed for 4-bit or 8-bit compression

Confirm the installation with a one-line import test: python -c "import airllm". No output means success.

Verifying what you downloaded

Because AirLLM runs code on your machine and later downloads large files, it is sensible to verify your sources. Download only from the official GitHub repository or from PyPI, and avoid re-uploaded archives on file-sharing sites. If you keep a ZIP for offline machines, record its SHA-256 checksum the first time and compare it before each reuse. The project is open source under Apache-2.0, so you can also read through the air_llm/airllm folder yourself; the code is short enough to review in an afternoon.

Model weights deserve the same care. Prefer repositories from the original publishers on Hugging Face, and favour the safetensors format, which cannot execute arbitrary code when loaded.

Your first run after the AirLLM download

With the package in place, the smallest useful script looks like this:

from airllm import AutoModel

model = AutoModel.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
ids = model.tokenizer(["Write one sentence about the sea."], return_tensors="pt")
out = model.generate(ids["input_ids"].cuda(), max_new_tokens=30,
                     use_cache=True, return_dict_in_generate=True)
print(model.tokenizer.decode(out.sequences[0]))

Start with a 7B model rather than a 70B one. The first run downloads the weights and splits them into layer shards, which takes time; a smaller model lets you confirm the whole pipeline works before you commit 140 GB of disk space and an hour of preprocessing.

Common download problems and quick fixes

  • pip cannot find a matching distribution: upgrade pip with python -m pip install -U pip and confirm your Python version is supported.
  • Torch installs without CUDA: reinstall PyTorch from the official index URL that matches your CUDA version, then check torch.cuda.is_available().
  • Gated model error from Hugging Face: accept the licence on the model page and pass your token with the hf_token argument.
  • Disk fills up during splitting: set layer_shards_saving_path to a larger drive and consider delete_original=True once you are comfortable with the process.

Keeping AirLLM up to date

The project moves quickly. Recent releases added FP8 model support, a unified AutoModel interface for families such as DeepSeek, Qwen3, Llama 4 and Gemma, and support for very large mixture-of-experts models. To upgrade a pip installation, run pip install -U airllm. For a ZIP installation, download a fresh archive, extract it beside the old one and reinstall in editable mode. Read the release notes first, because new versions occasionally change default arguments.

Planning storage before the first model

Many first attempts fail not because of the download itself but because the first model fills the disk halfway through preparation. A simple plan avoids that. Decide in advance which drive will hold the Hugging Face cache and which will hold AirLLM's layer shards; ideally both live on the same fast NVMe drive. Check the model's total file size on its Hugging Face page, double it to allow for the original files and the shards, then add a margin of at least 20 percent so the drive never runs completely full. SSDs slow down noticeably when nearly full, and AirLLM is extremely sensitive to read speed.

If you work with several models, give each its own shard folder named after the model and its compression setting, for example shards/llama70b-4bit. Clear naming makes it easy to delete what you no longer need without disturbing anything else.

Offline and air-gapped installations

Some organisations run sensitive work on machines that never touch the internet. AirLLM suits that environment well because, once a model is prepared, inference needs no network at all. The preparation, however, must happen elsewhere. On a connected machine with the same operating system and Python version, download the AirLLM ZIP, then use pip download to collect wheel files for AirLLM's dependencies into a folder. Download the model repository as well. Transfer everything with approved media, install the wheels with pip install --no-index --find-links, and load the model from its local folder path. Set HF_HUB_OFFLINE=1 so the libraries never attempt to reach the network.

Choosing a version deliberately

For experiments, the newest release is usually best because it includes the latest model support and fixes. For long-running projects, research papers or production batch jobs, pin a specific version in a requirements.txt file so results stay reproducible when new releases appear. Record the AirLLM version, the PyTorch version and the exact model revision alongside your outputs. That small habit makes it possible to reproduce a result months later or explain why outputs changed after an upgrade.

Finally, keep the virtual environment dedicated to airllm. Mixing it with unrelated projects invites dependency conflicts, particularly around PyTorch and Transformers versions.

Frequently asked questions

Yes. AirLLM is open-source software released under the Apache-2.0 licence, so the source archive and the pip package cost nothing. The only costs you might face are for hardware, electricity and storage for model weights.

Use pip if you simply want to run models. Choose the ZIP when you want to read the code, study the example notebooks, apply a patch or work offline on a machine that cannot reach PyPI.

The source archive itself is only a few megabytes. The real space requirement comes from the model you load afterwards: a 70B model can need well over 100 GB of free disk space for the original weights and the layer shards AirLLM creates.

No. AirLLM is the inference engine only. Models are fetched separately from Hugging Face the first time you call AutoModel.from_pretrained with a repository name, or loaded from a local folder you point it to.

Conclusion

The AirLLM download is the smallest part of the journey: a few megabytes of carefully designed Python that unlocks models many times larger than your graphics card. Choose pip for convenience or the ZIP for transparency and offline use, prepare a fast SSD with generous free space, verify your sources and begin with a modest model. Once that first sentence appears, scaling up to 70B and beyond is simply a matter of patience and storage. For the next step, read our guide on how to use AirLLM.