samuel-vitorino/lm.rs
View on GitHub ↗ ★ 1,032 Rust
Minimal LLM inference in Rust
3 mentions on Hacker News by 2 people: 1 story, 2 comments · first 2024-10-11 · latest 2024-10-11
20082026
-
…speedy and used 1000% of CPU across 13 threads (according to Activity Monitor). cd /tmp git clone https://github.com/samuel-vitorino/lm.rs cd lm.rs RUSTFLAGS="-C target-cpu=native" cargo build --release --bin chat curl -LO…
comment by simonw · 2024-10-11 · in Lm.rs: Minimal CPU LLM inference in Rust with no dependency -
…even PyTorch as dependency there's a straightforward CPU implementation of llama/gemma in Rust: https://github.com/samuel-vitorino/lm.rs/ It's impressive to realize how little code is needed to run these models at all.
comment by littlestymaar · 2024-10-11 · in Run Llama locally with only PyTorch on CPU