Add venv to ci/run.sh
This commit is contained in:
parent
9a11611a7d
commit
66510528f7
2 changed files with 11 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -27,7 +27,7 @@
|
||||||
lcov-report/
|
lcov-report/
|
||||||
gcovr-report/
|
gcovr-report/
|
||||||
|
|
||||||
build*/
|
build*
|
||||||
out/
|
out/
|
||||||
tmp/
|
tmp/
|
||||||
|
|
||||||
|
|
16
ci/run.sh
16
ci/run.sh
|
@ -22,9 +22,9 @@ mkdir -p "$2"
|
||||||
OUT=$(realpath "$1")
|
OUT=$(realpath "$1")
|
||||||
MNT=$(realpath "$2")
|
MNT=$(realpath "$2")
|
||||||
|
|
||||||
rm -v $OUT/*.log
|
rm -f $OUT/*.log
|
||||||
rm -v $OUT/*.exit
|
rm -f $OUT/*.exit
|
||||||
rm -v $OUT/*.md
|
rm -f $OUT/*.md
|
||||||
|
|
||||||
sd=`dirname $0`
|
sd=`dirname $0`
|
||||||
cd $sd/../
|
cd $sd/../
|
||||||
|
@ -492,14 +492,18 @@ function gg_sum_open_llama_7b_v2 {
|
||||||
## main
|
## main
|
||||||
|
|
||||||
if [ -z ${GG_BUILD_LOW_PERF} ]; then
|
if [ -z ${GG_BUILD_LOW_PERF} ]; then
|
||||||
|
# Create symlink: ./llama.cpp/models-mnt -> $MNT/models/models-mnt
|
||||||
rm -rf ${SRC}/models-mnt
|
rm -rf ${SRC}/models-mnt
|
||||||
|
|
||||||
mnt_models=${MNT}/models
|
mnt_models=${MNT}/models
|
||||||
mkdir -p ${mnt_models}
|
mkdir -p ${mnt_models}
|
||||||
ln -sfn ${mnt_models} ${SRC}/models-mnt
|
ln -sfn ${mnt_models} ${SRC}/models-mnt
|
||||||
|
|
||||||
python3 -m pip install -r ${SRC}/requirements.txt
|
# Create a fresh python3 venv and enter it
|
||||||
python3 -m pip install --editable gguf-py
|
python3 -m venv "$MNT/venv"
|
||||||
|
source "$MNT/venv/bin/activate"
|
||||||
|
|
||||||
|
pip install -r ${SRC}/requirements.txt --disable-pip-version-check
|
||||||
|
pip install --editable gguf-py --disable-pip-version-check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue