File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 70
70
cd llama.cpp
71
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
72
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 && cmake --build build -j $(nproc)
73
+
74
+ unit-tests :
75
+ runs-on : ubuntu-latest
76
+ strategy :
77
+ matrix :
78
+ cann : ['python3.10-cann8.0.rc2.beta1']
79
+ build : ['Release']
80
+ container :
81
+ image : ascendai/cann:openeuler-${{ matrix.cann }}
82
+ steps :
83
+ - uses : actions/checkout@v4
84
+ - name : Install llamacpp
85
+ uses : nick-fields/retry@v3
86
+ with :
87
+ timeout_minutes : 30
88
+ max_attempts : 3
89
+ retry_on : error
90
+ command : |
91
+ yum update -y
92
+ yum install git cmake gcc gcc-c++ make -y
93
+ git clone https://github.com/ggerganov/llama.cpp.git
94
+ - name : Build
95
+ run : |
96
+ cd llama.cpp
97
+ mkdir build
98
+ cd build
99
+ export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
100
+ cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DSOC_TYPE=ascend910b3 -DCMAKE_OSX_ARCHITECTURES=arm64 && cmake --build . -j $(nproc)
You can’t perform that action at this time.
0 commit comments