AirLLM 70B inference with single 4GB GPU
Posted by Anon84 2 hours ago
Comments
Comment by imenani 1 hour ago
IIUC, Kimi K3 on RTX 6000 Ada (48GB) takes 292 s/token
Comment by bensyverson 21 minutes ago
Comment by pizza234 7 minutes ago
Yes and no, depend on your expectations. Some/many like to run local LLMs just for the sake of it, so anything will do.
MoE are useful on PC systems, at the condition of having high enough memory bandwidth (and large amounts of RAM) - that is, Threadripper/Pro.
The advantage of MoE is that only a subset of the model's experts is used for each token, so not all weights need to be present in VRAM at once. The remaining weights can reside in system RAM, although moving and accessing them still carries a substantial performance cost (and that's why high memory bandwidth is needed).
Comment by xnorswap 15 minutes ago
Comment by jackb4040 41 minutes ago
Comment by roger_ 48 minutes ago
Hoping a winner emerges with some real momentum behind it.
Comment by akie 5 minutes ago
Comment by hiramwen 40 minutes ago
Comment by classified 34 minutes ago
Comment by book_mike 10 minutes ago
Comment by ilaksh 40 minutes ago
Comment by speedgoose 39 minutes ago
Comment by cpfohl 1 hour ago
Let’s say I wanted to run a full size open weight model. I have a 128GB m3 max laptop.
Does this basically load layers in and out on demand? So I still have to download the full model to disk, but the RAM requirements go way down? The readme calls out that one still needs to connect HuggingFace, which leads me to believe that maybe you don’t even need to download the full model?
Comment by dofm 52 minutes ago
It reads like it is keeping only the core and the active layer loaded at any one point, and streams layers from disk; there are several other solutions like this and if my understanding is right, this is probably better than an mmap implementation or just streaming experts in.
Comment by pvtmert 34 minutes ago
It also requires extra space because of decomposition of the layers. Normally the file format optimized for compute intense workloads. But here the bottleneck is the memory capacity.
Also guessing that you need to be able to hold at least 3-layers at once in the memory, given M x N = R operation, M is the previous layer, N is next, and R is the result. on the next "layer", the R (result) becomes M, gets computed against the next layer, N, yielding the further result R'. And so on, until all layers are processed.
I assume it's horribly slow, but can be put in a non-intrusive background task...
Comment by cpfohl 24 minutes ago
It seems like this tool saves on both disk space and RAM, then. Classic trade off: speed vs space.
Comment by hna8hjbqzy 1 hour ago