Skip to content

Commit

Permalink
Revert uv back to standard pip because it can't handle the requiremen…
Browse files Browse the repository at this point in the history
…ts.txt file
  • Loading branch information
ashleykleynhans committed May 9, 2024
1 parent 2ec696f commit f6372bb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions build/install.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
#!/usr/bin/env bash
set -e
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.cargo/env

# Install torch
uv venv -p 3.10 /venv
pip3 -m venv --system-site-packages /venv
source /venv/bin/activate
uv pip install torch==${TORCH_VERSION} --index-url ${INDEX_URL}
pip3 install torch==${TORCH_VERSION} --index-url ${INDEX_URL}

# Clone the git repo of Text Generation Web UI and set version
git clone https://github.com/oobabooga/text-generation-webui
Expand All @@ -16,7 +13,7 @@ git checkout ${OOBABOOGA_COMMIT}

# Install the dependencies for Text Generation Web UI
# Including all extensions
uv pip install -r requirements.txt
pip3 install -r requirements.txt
bash -c 'for req in extensions/*/requirements.txt ; do pip3 install -r "$req" ; done'
# mkdir -p repositories
# cd repositories
Expand All @@ -26,4 +23,4 @@ bash -c 'for req in extensions/*/requirements.txt ; do pip3 install -r "$req" ;
# pip3 install .

# Fix safetensors module broken by above exllama repository installation
uv pip install -U safetensors>=0.4.1
pip3 install -U safetensors>=0.4.1

0 comments on commit f6372bb

Please sign in to comment.