Skip to content

Commit

Permalink
[projects][llamacpp] Install dependencies for model conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored May 27, 2024
1 parent 0e05224 commit 7b33a87
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions airootfs/root/customize_airootfs/scripts/1000-llamacpp.sh.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ pushd "llama.cpp"
git commit -m "Apply patches"
{% endif %}
popd

# llama.cpp dependencies
pushd "llama.cpp"
# create venv
python3 -m venv venv

# activate venv
source venv/bin/activate
# use pytorch for cpu
export PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu"

# install dependencies
pip3 install -r requirements.txt
deactivate
popd

0 comments on commit 7b33a87

Please sign in to comment.