Skip to content

Commit b650b84

Browse files
committed
Update easy_KCPP-ROCm_install.sh
1 parent 8573a67 commit b650b84

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

easy_KCPP-ROCm_install.sh

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# #!/bin/bash
2-
3-
# git clone https://github.com/YellowRoseCx/koboldcpp-rocm.git -b main --depth 1 && \
4-
# cd koboldcpp-rocm && \
5-
# make LLAMA_HIPBLAS=1 -j4 && \
6-
# ./koboldcpp.py
7-
81
#!/bin/bash
2+
function countdown {
3+
local num=$1
4+
while [ $num -gt 0 ]; do
5+
printf "\rAbout to build KoboldCPP-ROCm in %s seconds..." $num
6+
sleep 1
7+
num=$((num - 1))
8+
done
9+
printf "\Building KoboldCPP... \n"
10+
}
911

1012
if [ "$(basename "$PWD")" = "koboldcpp-rocm" ]; then
1113
echo "Already inside 'koboldcpp-rocm' directory."
@@ -14,6 +16,9 @@ else
1416
cd "koboldcpp-rocm" || exit 1
1517
fi
1618

19+
echo "Build will start shortly."
20+
countdown 5
1721

18-
make LLAMA_HIPBLAS=1 -j4 && \
22+
make clean && \
23+
make LLAMA_HIPBLAS=1 LLAMA_OPENBLAS=1 LLAMA_CLBLAST=1 -j4 && \
1924
./koboldcpp.py

0 commit comments

Comments
 (0)