-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
148 additions
and
119 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Submodule ComfyUI
deleted from
c6de09
Submodule SillyTavern-Extras
deleted from
5b35e9
Submodule automatic
deleted from
82973c
Submodule axolotl
deleted from
ff939d
Submodule koboldcpp
deleted from
f3b765
Submodule llama.cpp
deleted from
b06c16
Submodule text-generation-webui
deleted from
7cf140
Submodule vllm
deleted from
f408d0
20 changes: 0 additions & 20 deletions
20
airootfs/root/customize_airootfs/patches/0100-llamacpp-enable-prompt-cache.patch
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
airootfs/root/customize_airootfs/scripts/0000-remove-git-submodule-pointers.sh
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
airootfs/root/customize_airootfs/scripts/0100-axolotl-patches.sh
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
airootfs/root/customize_airootfs/scripts/0100-llamacpp-patches.sh
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
airootfs/root/customize_airootfs/scripts/1000-automatic-dependencies.sh.jinja2
This file was deleted.
Oops, something went wrong.
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
9 changes: 9 additions & 0 deletions
9
airootfs/root/customize_airootfs/scripts/1000-comfyui-dependencies.sh.jinja2
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
8 changes: 7 additions & 1 deletion
8
.../scripts/0100-koboldcpp-patches.sh.jinja2 → ...airootfs/scripts/1000-koboldcpp.sh.jinja2
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
11 changes: 11 additions & 0 deletions
11
airootfs/root/customize_airootfs/scripts/1000-llamacpp.sh.jinja2
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,11 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
# clone repository | ||
git clone "https://github.com/ggerganov/llama.cpp.git" | ||
|
||
# llama.cpp patches | ||
pushd "llama.cpp" | ||
# use specific revision | ||
git checkout cc4a95426d17417d3c83f12bdb514fbe8abe2a88 | ||
popd |
9 changes: 9 additions & 0 deletions
9
airootfs/root/customize_airootfs/scripts/1000-sillytavern-extras-dependencies.sh.jinja2
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
9 changes: 9 additions & 0 deletions
9
airootfs/root/customize_airootfs/scripts/1000-text-generation-webui-dependencies.sh.jinja2
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
57 changes: 57 additions & 0 deletions
57
airootfs/root/customize_airootfs/scripts/1000-vllm.sh.jinja2
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,57 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
{% if platform == "cuda" %} | ||
# clone repository | ||
git clone "https://github.com/vllm-project/vllm.git" | ||
|
||
# vllm patches | ||
pushd "vllm" | ||
# use specific revision | ||
git checkout d036198e23345f3c25438f082396f7487028e8b6 | ||
popd | ||
|
||
# vllm dependencies | ||
pushd "vllm" | ||
# disable package caching | ||
export PIP_NO_CACHE_DIR=0 | ||
|
||
# limit the number of parallel jobs to avoid OOM | ||
export MAX_JOBS=1 | ||
|
||
# define supported architectures | ||
export TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0 8.6 8.9 9.0" | ||
|
||
# cuda home directory | ||
export CUDA_HOME=/opt/cuda | ||
|
||
# use gcc 12 | ||
export CC=gcc-12 | ||
export CXX=g++-12 | ||
|
||
# create venv | ||
python3 -m venv venv | ||
|
||
# activate venv | ||
source venv/bin/activate | ||
# install dependencies | ||
pip3 install -r requirements.txt | ||
pip3 install -r requirements-build.txt | ||
|
||
# build native extension | ||
python3 setup.py build_ext --inplace | ||
deactivate | ||
|
||
# remove venv | ||
rm -fr venv | ||
|
||
# create venv | ||
python3 -m venv venv | ||
|
||
# activate venv | ||
source venv/bin/activate | ||
# install dependencies | ||
pip3 install -r requirements.txt | ||
deactivate | ||
popd | ||
{% endif %} |
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