]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : check if there is enough VRAM (#3596)
authorGeorgi Gerganov <redacted>
Thu, 12 Oct 2023 10:44:56 +0000 (13:44 +0300)
committerGitHub <redacted>
Thu, 12 Oct 2023 10:44:56 +0000 (13:44 +0300)
ggml-ci

ci/run.sh

index 942b2e00cec4b76befe28909174565fa8b69c941..34c9129c1154c791bdc77f184f19e2265f652a31 100755 (executable)
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -496,10 +496,12 @@ test $ret -eq 0 && gg_run ctest_debug
 test $ret -eq 0 && gg_run ctest_release
 
 if [ -z ${GG_BUILD_LOW_PERF} ]; then
-    if [ -z ${GG_BUILD_CUDA} ]; then
-        test $ret -eq 0 && gg_run open_llama_3b_v2
-    else
-        test $ret -eq 0 && gg_run open_llama_7b_v2
+    if [ -z ${GG_BUILD_VRAM_GB} ] || [ ${GG_BUILD_VRAM_GB} -ge 8 ]; then
+        if [ -z ${GG_BUILD_CUDA} ]; then
+            test $ret -eq 0 && gg_run open_llama_3b_v2
+        else
+            test $ret -eq 0 && gg_run open_llama_7b_v2
+        fi
     fi
 fi