Blog · · 3 min to read

We tested AirLLM: a 27B model on 4 GB of card memory

AirLLM runs AI models far bigger than a graphics card by streaming them through it one layer at a time. We asked whether it could help with model-maker's weakest spots, then ran a small test on 10 animal pictures. It worked better than we predicted, and it still changes nothing for us. Here is why.

AirLLM is an open-source library that runs AI models much bigger than your graphics card. It doesn't load the whole model onto the card. It keeps the model on disk and streams it through the card one layer at a time, so a model of 50 GB can run on a card with a few GB of memory. The price is speed: every word of an answer reads the whole model from disk again.

We were asked a fair question: could AirLLM, or a changed version of it, help model-maker where it is weakest? Those weak spots are animal heads that come out turned to one side, pictures of the wrong animal, toes and fingers, and the seams where the paint of an object meets.

What we expected

Before running anything, we went through each weak spot. None of them looked like a problem of model size.

Our picture judges fail on heads in the same way at 9B and at 30B, so a bigger judge isn't likely to fix that. The wrong-animal check already catches 94 % of wrong animals; its trouble is refusing too many right ones. Toes fail because the shape model sees them as 1 to 3 pixels wide. The paint seam happens when the paint is baked onto the model. And our usual tool for running judges, llama.cpp, can already split a big model between the card and the computer's main memory.

So we decided not to change AirLLM, and to run one small test instead, with its limits written down first:

We predicted the second one would fail.

The test

We asked Qwen3.8 27B (Apache-2.0, about 52 GB in full precision) our head question, "Is the animal's head turned to one side?", about 10 animal pictures. AirLLM ran it on a graphics card with 12 GB of memory. For the comparison, llama.cpp ran a 4-bit copy of the same model on the same card, with part of it in main memory.

Seconds a picture for the 10 pictures: AirLLM took 23 to 28 seconds each, llama.cpp under 3 seconds each
Seconds a picture, AirLLM against llama.cpp on the same model, the same 10 pictures and question

All three limits held. AirLLM read the pictures. It took 23.6 seconds for a typical picture and 28.3 for the slowest, and used at most 3.9 GB of card memory. Its yes-or-no answer was the same word as llama.cpp's on all 10 pictures. We were wrong about the speed.

Two details. AirLLM needed one more library (torchvision) before it could read pictures. And the library under it ran slower fallback code for two parts of this model, because two optional speed-up packages weren't installed. With them it would probably be faster.

What it means for us

Nothing changes in model-maker. llama.cpp gave the same 10 answers about nine times faster, using a 4-bit copy with 40 of its 64 layers on the card. And this test didn't touch the real question for our weak spots, which is whether a bigger model judges better. Ten pictures can't tell us that, and we didn't score these answers against the right ones.

The two tools' scores differed, but our two scripts didn't count them the same way, so we read nothing into that.

AirLLM is a good tool for one job: running a big model in full precision on a small card, when you can wait half a minute for each word of the answer. If we ever find that a much bigger judge sees something ours can't, this is how we'd run it. Until then it stays a tested option, not part of model-maker.

AirLLM is made by its own authors and published under the Apache-2.0 licence at github.com/lyogavin/airllm. We are not connected to the project.