Run 400B+ LLM Models on Your 4GB Laptop AirLLM
About this video
AirLLM really runs a 405B model in about 8 GB of VRAM and Kimi K3 (2.8T) in 3.72 GB, and its own release notes time Kimi K3 at 292 seconds per token: on a 4GB laptop, your RAM and SSD set the speed, not your GPU. AirLLM is a free, open-source Python library (Apache 2.0, 42,000+ GitHub stars) that runs large language models layer by layer, so only …
Show full description
AirLLM really runs a 405B model in about 8 GB of VRAM and Kimi K3 (2.8T) in 3.72 GB, and its own release notes time Kimi K3 at 292 seconds per token: on a 4GB laptop, your RAM and SSD set the speed, not your GPU. AirLLM is a free, open-source Python library (Apache 2.0, 42,000+ GitHub stars) that runs large language models layer by layer, so only one layer sits in GPU memory at a time. That's how to run 70B on a 4GB GPU and Llama 3.1 405B on 8GB. But every token streams the whole model again. Llama 3.1 405B is 811 GB over 126 layers, so seconds per token is roughly model size divided by your drive's read speed: about 55 s on a PCIe 5.0 Samsung 9100 PRO (14.7 GB/s), 109 s on a PCIe 4.0 990 PRO (7.45 GB/s) and 232 s on a PCIe 3.0 970 EVO Plus. A 500-token answer takes 15 to 32 hours. This AirLLM explained breakdown checks the code and GitHub issues behind the viral "run 400B AI on a 4GB laptop" claim: - RAM decides whether the SSD is in the loop at all. AirLLM reads layers with a normal file read, so a model that fits in free RAM gets served from the OS page cache. One RTX 3050 user went from 2+ minutes per token on a hard drive to 13 seconds on a RAM disk. - PCIe 4.0 x8 on an RTX 3050 Laptop GPU (15.75 GB/s) is about 5.7x narrower than dual-channel DDR5-5600 (89.6 GB/s), so a model that fits in RAM runs better in llama.cpp or Ollama. - A per-layer memory cleanup made one RTX 2070 Max-Q laptop 16x slower (123.3 s vs 7.8 s for 32 tokens). - The "up to 3x faster" 4-bit/8-bit compression measured 3.8x and 8x slower on an NVIDIA GB10 (DGX Spark). - "No quantization" means AirLLM adds none: DeepSeek V3 ships in FP8 and Kimi K3 in MXFP4. - Expert-only loading is switched on for Kimi K3 alone. DeepSeek V3 (671B) streams whole 11.3 GB layers, about 689 GB per token. - Same model, other engines: Deltafin runs Kimi K3 at 3.4 s per token on an M1 Max laptop, about 85x faster than AirLLM. Also covered: AirLLM vs Ollama and llama.cpp, Mac support (Llama and Mistral models only), AMD on Windows, SSD wear (reads don't count against TBW), agents and coding tools (no OpenAI-compatible server), and who should still use AirLLM: overnight batch jobs, offline RAG and document work, and small-VRAM LoRA fine-tuning. CHAPTERS 0:00 The 450,000-view claim 2:13 Why AirLLM looks like the answer 3:55 The wrong comparison: VRAM 4:37 One layer at a time 6:11 Every word reads the whole model 7:08 The division: drive speed = seconds per token 9:10 Your RAM decides if the SSD is in the loop 11:32 When it fits, PCIe is the bottleneck 13:12 One cleanup after every layer 14:48 "3x faster" compression, measured 8x slower 16:35 What "no quantization" really means 18:13 Kimi K3: the expert trick works on one model 20:22 Same model, other engines: Deltafin and Colibri 22:02 40 hours vs three quarters of a cent 23:19 Will it wear out your SSD? 23:56 Where it stops: Mac, AMD, agents 25:48 Who should install AirLLM anyway 28:18 The 4-question check before you download 30:12 The bill comes in hours SOURCES AirLLM: https://github.com/lyogavin/airllm AirLLM v3.1.0 (Kimi K3, 3.72 GB, 292 s/token): https://github.com/lyogavin/airllm/releases/tag/v3.1.0 AirLLM v3.3.0 (Qwen3.8-Flash-Next, 64 GB RAM): https://github.com/lyogavin/airllm/releases/tag/v3.3.0 Issue #186 (HDD vs RAM disk): https://github.com/lyogavin/airllm/issues/186 Issue #330 (compression timings): https://github.com/lyogavin/airllm/issues/330 PR #411 (per-layer cleanup): https://github.com/lyogavin/airllm/issues/411 PR #324 (full-load bypass): https://github.com/lyogavin/airllm/issues/324 Issue #295 (405B notebook): https://github.com/lyogavin/airllm/issues/295 Author write-up (Nov 2023): https://huggingface.co/blog/lyogavin/airllm Llama 3.1 405B: https://huggingface.co/meta-llama/Llama-3.1-405B-Instruct DeepSeek V3: https://huggingface.co/deepseek-ai/DeepSeek-V3 Kimi K3: https://huggingface.co/moonshotai/Kimi-K3 Samsung 9100 PRO datasheet: https://download.semiconductor.samsung.com/resources/data-sheet/Samsung_NVMe_SSD_9100_PRO_Datasheet_Rev.2.0.pdf RTX 3050 Laptop GPU specs: https://www.techpowerup.com/gpu-specs/geforce-rtx-3050-mobile.c3788 Deltafin: https://github.com/gavamedia/deltafin Colibri: https://github.com/JustVugg/colibri Evan Ovadia, layer-wise inference + batching: https://verdagon.dev/blog/llm-throughput-not-ram-limited #airllm #localllm #localai
Views were recorded when the feed was last updated. Playback and availability depend on YouTube.