File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 43
43
cd llama.cpp
44
44
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
45
45
cmake --build build
46
+
47
+ ubuntu-unit-tests :
48
+
49
+ runs-on : ubuntu-latest
50
+
51
+ container :
52
+ image : ascendai/cann
53
+
54
+ steps :
55
+ - uses : actions/checkout@v4
56
+
57
+ - name : Install llamacpp
58
+ uses : nick-fields/retry@v3
59
+ with :
60
+ timeout_minutes : 30
61
+ max_attempts : 3
62
+ retry_on : error
63
+ command : |
64
+ uname -a
65
+ apt-get update -y
66
+ apt-get install git cmake build-essential make -y
67
+ git clone https://github.com/ggerganov/llama.cpp.git
68
+ - name : Build
69
+ run : |
70
+ cd llama.cpp
71
+ export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
72
+ cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 && cmake --build build -j $(nproc)
You can’t perform that action at this time.
0 commit comments