Skip to content

Commit 6b594c3

Browse files
committed
Optimize ci pipeline for on demand restarts
1 parent 3e46363 commit 6b594c3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ prepare:
66
then echo 'Install for gpu'
77
&& GPU_CHOICE=A LAUNCH_AFTER_INSTALL=False ./start_linux.sh;
88
else echo 'Install for cpu'
9-
&& GPU_CHOICE=N LAUNCH_AFTER_INSTALL=False ./start_linux.sh;
9+
&& INSTALL_EXTENSIONS=False GPU_CHOICE=N LAUNCH_AFTER_INSTALL=False ./start_linux.sh;
1010
fi"
1111
- name: "Download model"
1212
command: "wget -P /home/user/app/models https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v0.3-GGUF/resolve/main/tinyllama-1.1b-chat-v0.3.Q6_K.gguf"
@@ -21,4 +21,9 @@ run:
2121
# Put your commands here.
2222
steps:
2323
- name: "Run"
24-
command: "./start_linux.sh --model tinyllama-1.1b-chat-v0.3.Q6_K.gguf"
24+
command: "if [ -v NV_LIBCUBLAS_VERSION ];
25+
then echo 'Run for gpu'
26+
&& GPU_CHOICE=A ./start_linux.sh --model tinyllama-1.1b-chat-v0.3.Q6_K.gguf;
27+
else echo 'Run for cpu'
28+
&& INSTALL_EXTENSIONS=False GPU_CHOICE=N ./start_linux.sh --model tinyllama-1.1b-chat-v0.3.Q6_K.gguf;
29+
fi"

0 commit comments

Comments
 (0)