Installation of CLI on macOS
twardoch opened this issue · comments
Feel free to add this somewhere:
Installation on macOS
- Install Rust from the official website
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Navigate to a folder of your choice and clone the
llm
repo:
git clone --recurse-submodules https://github.com/rustformers/llm
cd llm
- If you already have rust installed and the
llm
repo cloned, then update everything:
git pull && git submodule update --remote --merge && rustup update && cargo update
- Finally, build and install the binaries:
cargo build --release --features=metal && cargo install --bins --path=./binaries/llm-cli/
That should install the llm
CLI tool into ~/.cargo/bin/llm
.
- Use it in Terminal with just
llm
or~/.cargo/bin/llm
Thank you for writing this up, but I suspect cargo install --git https://github.com/rustformers/llm.git --features metal llm-cli
should behave identically without requiring the intermediate steps 😅
Can you check if that works for you?
I've updated the README to indicate that you should use cargo install --git
- hope that resolves this!