Skip to content

Commit 11de590

Browse files
authored
Update llamacpp.yaml
1 parent eda54bd commit 11de590

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/llamacpp.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,31 @@ jobs:
7070
cd llama.cpp
7171
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
7272
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)

0 commit comments

Comments
 (0)