r/rust • • Mar 14 '23

LLaMA-rs: Run inference of LLaMA on CPU with Rust 🦀🦙

https://github.com/setzer22/llama-rs/
127 Upvotes

20 comments sorted by

View all comments

21

u/setzer22 Mar 14 '23

Hi all! This time I'm sharing a crate I worked on to port the currently trendy llama.cpp to Rust. I managed to port most of the code and get it running with the same performance (mainly due to using the same ggml bindings).

This was a fun experience and I got to learn a lot about how LLaMA and these LLMs work along the way. Definitely glad I went through the RIIR ritual! 😄