Skip to content

Commit 8017135

Browse files
authored
Update llamacpp.yaml
1 parent 67e8672 commit 8017135

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

.github/workflows/llamacpp.yaml

+32-29
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,37 @@ jobs:
4444
# cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
4545
# cmake --build build
4646

47+
unit-tests:
48+
runs-on: ubuntu-24.04-arm
49+
strategy:
50+
matrix:
51+
cann:
52+
- 'openeuler-python3.10-cann8.0.rc3.beta1'
53+
build:
54+
- 'Release'
55+
device:
56+
- 'ascend910b3'
57+
container:
58+
image: ascendai/cann:${{ matrix.cann }}
59+
steps:
60+
- name: Dependencies
61+
yum update -y
62+
yum install git cmake gcc gcc-c++ make -y
63+
64+
- name: Checkout llama.cpp
65+
uses: actions/checkout@v4
66+
with:
67+
repository: ggerganov/llama.cpp
68+
path: llama.cpp
69+
70+
- name: Build
71+
run: |
72+
cd llama.cpp
73+
mkdir build
74+
cd build
75+
export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
76+
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DSOC_TYPE=${{ matrix.device }} && cmake --build . -j $(nproc)
77+
4778
ubuntu-unit-tests:
4879
runs-on: ubuntu-latest
4980

@@ -70,32 +101,4 @@ jobs:
70101
export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
71102
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 && cmake --build build -j $(nproc)
72103
73-
unit-tests:
74-
runs-on: ubuntu-24.04-arm
75-
strategy:
76-
matrix:
77-
cann: ['openeuler-python3.10-cann8.0.rc3.beta1']
78-
build: ['Release']
79-
device: ['ascend910b3']
80-
container:
81-
image: ascendai/cann:${{ 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-
95-
- name: Build
96-
run: |
97-
cd llama.cpp
98-
mkdir build
99-
cd build
100-
export LD_LIBRARY_PATH${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
101-
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DSOC_TYPE=${{ matrix.device }} && cmake --build . -j $(nproc)
104+

0 commit comments

Comments
 (0)