flâneur

How is LLaMa.cpp possible? - by Finbarr Timbers

finbarrtimbers.substack.com · 1,453 words · saved by 1 readers

An exercise in applied inference arithmetic

Note: Substack doesn’t have great support for LaTeX, so you might want to read this article on my blog instead. Recently, a project rewrote the LLaMa inference code in raw C++. With some optimizations and by quantizing the weights, the project allows running LLaMa locally on a wild variety of hardware: On a Pixel5, you can run the 7B parameter model at 1 tokens/s. On a M2 Macbook Pro, you can get ~16 tokens/s with the 7B parameter model You can even run the 7B model on a 4GB RAM Raspberry Pi, albeit at 0.1 tokens/s. If you are like me, you saw this and thought: What? How is this…

related reading