# Can AirLLM Really Run a 405B Model on 8 GB?

> Published 2026-11-27T17:25:51.436Z on https://youblog.app/p/can-airllm-really-run-a-405b-model-on-8-gb/
> Source video: https://www.youtube.com/watch?v=lu2OavvHe4Q

AirLLM solves the wrong bottleneck for most people. It fits 70-billion and even 405-billion-parameter models into a few gigabytes of VRAM, then hands you a token every minute or two, because each token forces a full reread of the model from disk. That trade is worth it for offline batch jobs and useless for chat.

## What AirLLM does and what it costs

AirLLM is an open-source Python library, maintained by lyogavin on [GitHub](https://github.com/lyogavin/airllm), that reduces VRAM for large language model inference by streaming model layers from disk instead of holding the whole model on the GPU. The memory claim holds. The cost is throughput: every generated token rereads every layer from storage.

A language model is a stack of transformer layers that run in strict order, each one's output feeding the next. While layer 40 computes, layer 1 has nothing to do. AirLLM loads the layer it needs, runs it, frees the memory, and fetches the next. Only one layer sits in VRAM at a time, so peak memory tracks the largest single layer rather than the parameter count.

The library's README claims a 70-billion-parameter model on a single 4 GB card without quantization, distillation, or pruning, and 405-billion-parameter Llama 3.1 on 8 GB of VRAM. A [maintainer-curated wiki mirror of the AirLLM documentation](https://github.com/av/harbor/wiki/2.2.11-Backend:-AirLLM) repeats the same figures and adds the caveat that inference should not be expected to be fast.

That caveat is the whole story for most users. AirLLM gives a transformer-like workflow for models much larger than your VRAM. It is not a serving engine, and the project's own documentation does not claim otherwise.

## The VRAM math behind the 4 GB and 8 GB claims

The VRAM figures come from layer size, not model size. Divide total weights by the number of layers and you get the memory ceiling AirLLM needs, plus room for embeddings, the output head, and the KV cache.

For the original 70-billion-parameter Llama 2 class model, each layer holds roughly 1/80th of the weights, about 1.6 GB. On an NVIDIA T4 with 16 GB, the technique ran in under 4 GB.

For Llama 3.1 405B in bfloat16 at 2 bytes per weight, the math is straightforward:

## Llama 3.1 405B: the 810 GB arithmetic

Llama 3.1 405B in bfloat16 needs about 810 GB of storage, and AirLLM's 8 GB VRAM claim depends on that file being split into per-layer shards you can stream. The splitting itself is disk-hungry, and the README warns about it.

## Why speed depends on your SSD, not your GPU

Each token needs a full pass through every layer, and AirLLM as documented fetches those layers from disk on every token. The GPU's arithmetic speed matters much less than storage throughput.

The estimate is one division: bytes each token reads, divided by drive read speed. For a dense model like Llama, that is the whole file, roughly 810 GB.

Samsung rates its 9100 PRO consumer SSD on PCI Express 5 at up to 14.8 GB/s. That gives about 55 seconds per token on paper. The 990 PRO on PCI Express 4 is rated at up to 7.45 GB/s, which gives about 109 seconds.

A [StorageReview](https://www.storagereview.com/) test measured one 990 PRO peaking lower than its rating, at 5.69 GB/s. These numbers are floors built from vendor best-case reads with nothing cached, and no compute time. Real runs only add to them.

## Kimi K3 and the mixture-of-experts anomaly

Kimi K3 from Moonshot, a 2.8-trillion-parameter mixture-of-experts model with a 1.56 TB checkpoint, peaks at 3.72 GB of VRAM under AirLLM, less than the 4 GB the README quotes for a 70-billion model. The explanation is expert routing.

Each of Kimi's 93 layers holds 896 small subnetworks called experts, and a router sends each token to just 16. Of roughly 55 GB of experts in a layer, a token needs about 1 GB. AirLLM reads only those experts, so the memory ceiling drops far below what the parameter count implies.

The project's release notes report a run on a 48 GB RTX 6000 Ada desktop card at 292 seconds per token, labeled disk bound. Dividing bytes by time implies the drive delivered roughly a third of a gigabyte per second, far below either Samsung rating. The notes do not name the drive, so that gap stays open.

## Faster storage, compression and batching

Because disk loading sets the pace, a bigger GPU buys little and faster storage buys the most. A [GitHub issue on the project](https://github.com/lyogavin/airllm/issues/186) shows one user reporting about 40 minutes for a sentence from a 7-billion model, then later in the thread just over 2 minutes per token from a spinning hard drive and 13 seconds from a RAM disk on a 6 GB RTX 3050.

A RAM disk only helps when the model fits in memory, which 810 GB does not. On a laptop or desktop, the practical lever is the fastest NVMe drive you can install.

AirLLM also offers optional 4-bit or 8-bit weight compression. The project claims up to three times faster inference with what it describes as nearly negligible accuracy loss, but publishes no raw timings. Weight compression to 4 bits is quantization, which complicates the headline's promise of skipping quantization entirely.

Batching is the third lever: one read of a layer can serve many prompts. A developer benchmarked this in May 2024 on a fork of AirLLM, running a 68 GB, 34-billion-parameter model on a 16 GB MacBook Pro. Seconds per token fell from about 35 with one prompt to about 5 with 50 prompts, close to 7 times the throughput. The current README describes no batching mode, so treat it as a direction rather than a shipped feature.

## Platform limits and when AirLLM is worth it

AirLLM is worth using for offline batch work where a short answer can wait overnight on a machine with a fast NVMe drive and enough disk for the model plus its split files. It is the wrong tool for a chat assistant, especially on a 4 GB laptop.

On macOS the README supports only Apple Silicon running Llama-style models for now, and the library requires CUDA GPUs by default so it does not run on CPU. The published speed figure the project reports comes from a different model, so the division above remains the best estimate for Llama 3.1 405B.

A simple rule applies before you download anything. Multiply the bytes each token reads by your answer length and divide by your drive's rated speed. If the best case already runs past overnight, stop. If it fits, time a few tokens before queueing the real job.

The memory claim survives scrutiny. The bill arrives as time, and it starts at roughly two minutes per token on a typical PCI Express 4 drive before compute gets a turn. If you read about turning a YouTube explanation of hardware trade-offs like this into a written reference, tools such as [YouBlog](https://youblog.app/) can handle that conversion from transcript to article.

## Frequently asked questions

- **Does AirLLM really run a 405B model on 8 GB of VRAM?**

Yes, in the sense that peak VRAM stays near the size of one layer plus overhead. The README claims Llama 3.1 405B on 8 GB, and the per-layer math of about 6.4 GB is consistent with that figure. Throughput is a separate question and remains slow.

- **How long does AirLLM take per token?**

That depends on storage. On a rated PCIe 4.0 drive at 7.45 GB/s, the floor is about 109 seconds per token for an 810 GB model. On a rated PCIe 5.0 drive at 14.8 GB/s, it is about 55 seconds. Measured runs are slower than the floor.

- **Do I need to quantize to run huge models with AirLLM?**

No. AirLLM's core technique works without quantization, distillation, or pruning, which is why the headline claim is credible. Optional 4-bit and 8-bit weight compression exists to cut bytes read per token, and the project reports up to three times speedup without publishing raw timings.

- **Why does a 2.8-trillion-parameter model use less VRAM than a 70B one?**

Mixture-of-experts routing. Kimi K3 activates only 16 of 896 experts per layer, so a token touches about 1 GB of a roughly 55 GB layer. AirLLM loads only the routed experts, which drops peak memory below the dense 70B case.

- **Can AirLLM replace Ollama or vLLM for local serving?**

Not for interactive serving. AirLLM is a Python library for programmatic inference on oversized models, with no HTTP server, streaming token output, or tool calling. vLLM, Ollama, and Text Generation Inference target production serving, which AirLLM does not.

- **What hardware does AirLLM support?**

CUDA GPUs by default, so it will not run on CPU. On macOS the README documents support only for Apple Silicon running Llama-style models. Check the project README for the current model list before planning a deployment.

- **How much disk space does a 405B model need?**

About 810 GB for the weights in bfloat16, plus extra space for the split per-layer files. A failed split can produce an error named incomplete metadata buffer, which the README ties to running out of disk space. Plan for well over a terabyte.

- **Is batching or compression the better optimization?**

Compression is shipped and cuts bytes per read, with the project claiming up to three times faster inference. Batching makes each read serve many prompts and was measured at nearly seven times throughput on a community fork, but the main README does not document it.

- **Who maintains AirLLM?**

The project is maintained by lyogavin on GitHub under an open-source license, with releases tracked in the repository's release notes. Version history includes the July 29 addition of Kimi K3 support reported in the project notes.

[Source video](https://www.youtube.com/watch?v=lu2OavvHe4Q)
