Skip navigation
AirLLM: run a 70B model on a single 4GB graphics card, without quantization, distillation or…
0:00 / 0:45

AirLLM: run a 70B model on a single 4GB graphics card, without quantization, distillation or…

Arti Miller

@viralex.aii18K followers

Visit on TikTok
584 likesDownloadOriginal post

19,000 views #ai #llm #opensource

AirLLM: run a 70B model on a single 4GB graphics card, without quantization, distillation or pruning. Open source (Apache-2.0), made by Gavin Li (lyogavin), not me. #ai #llm #opensource #localai #machinelearning github.com/lyogavin/airllm Install: pip install airllm Minimal example (from the README): from airllm import AutoModel model = AutoModel.from_pretrained("Qwen/Qwen3-32B") tokens = model.tokenizer(["What is the capital of United States?"], return_tensors="pt", return_attention_mask=False) out = model.generate(tokens["input_ids"].to(model.device), max_new_tokens=20, use_cache=True, return_dict_in_generate=True) print(model.tokenizer.decode(out.sequences[0])) How it works: it loads the model one layer at a time, runs it, frees the memory and moves to the next layer. Heads up: - It's slow. Good for experiments, not for a fast chatbot. - First run splits the model into layers on disk: you need a lot of free disk space. - On a Mac only Llama-style models work for now. - 4 GB means video memory on the graphics card. No code words - everything's right here. Follow arti.miller for a free AI tool like this every day.

Comments

Comments from the original post on TikTok

No comments yet