Skip to content

kanade-k-1228/llama.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llama.rs

Very simple rust implimentation of LLaMA

English | 日本語

git-lfs
$ sudo apt update
$ sudo apt install git-lfs
$ git lfs install

$ git clone [email protected]:kanade-k-1228/llama.rs.git
$ cd llama.rs
$ cargo build --release
$ ./target/release/llama -p "Hello my name is"

Run on Raspberry Pi

Install cross compiler for aarch64.

$ sudo apt update
$ sudo apt install gcc-aarch64-linux-gnu

Build binary for aarch64.

$ cargo build --release --target aarch64-unknown-linux-gnu

Send binary & model file to device.

$ scp ./target/aarch64-unknown-linux-gnu/release/llama pi@?.?.?.?:/home/pi
$ scp -r model pi@?.?.?.?:/home/pi

Run on RaspberryPi.

$ ssh pi@?.?.?.?
$ ./llama

TODO

  • Quantization
  • use all CPU (4 core)
  • use GPU (Broadcom VideoCore)

About

Very simple rust implimentation of LLaMA

Topics

Resources

Stars

Watchers

Forks

Languages