kortina.nyc / notes / devlog
18 Mar 2023 | by kortina

Run alpaca-lora 13b on a MacBook with alpaca.cpp

# clone the alpaca.cpp repo
gh repo clone https://github.com/antimatter15/alpaca.cpp

# set it up
cd alpaca.cpp
make chat

# download the weights
# 13b
open "magnet:?xt=urn:btih:053b3d54d2e77ff020ebddf51dad681f2a651071&dn=ggml-alpaca-13b-q4.bin&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&tr=udp%3A%2F%2F9.rarbg.com%3A2810%2Fannounce"
# 7b if you want those
open "magnet:?xt=urn:btih:5aaceaec63b03e51a98f04fd5c42320b2a033010&dn=ggml-alpaca-7b-q4.bin&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce"

# move the weights to alpaca.cpp dir:
mv $HOME/Downloads/ggml.* ./

# run the chat interface with the 13b model
./chat -m ggml-alpaca-13b-q4.bin

Here is what it looks like:

alpaca 13b


Tweet Like andrew.kortina@gmail.com