-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor installation into bash script and use uv instead of pip
- Loading branch information
1 parent
931e863
commit c9aaa39
Showing
2 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
# Install uv | ||
RUN curl -LsSf https://astral.sh/uv/install.sh | sh | ||
|
||
# Install torch | ||
source ~/.bashrc | ||
uv venv -p 3.10 /venv | ||
source /venv/bin/activate | ||
uv pip 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 | ||
cd /text-generation-webui | ||
git checkout ${OOBABOOGA_COMMIT} | ||
|
||
# Install the dependencies for Text Generation Web UI | ||
# Including all extensions | ||
uv pip install -r requirements.txt | ||
bash -c 'for req in extensions/*/requirements.txt ; do pip3 install -r "$req" ; done' | ||
# mkdir -p repositories | ||
# cd repositories | ||
# git clone https://github.com/turboderp/exllamav2 | ||
# cd exllamav2 | ||
# pip3 install -r requirements.txt | ||
# pip3 install . | ||
|
||
# Fix safetensors module broken by above exllama repository installation | ||
uv pip install -U safetensors>=0.4.1 |