Skip to content

Commit

Permalink
Update llamacpp.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
xuedinge233 authored Nov 8, 2024
1 parent 4351d40 commit 54a3e4a
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/llamacpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ permissions:

jobs:
unit-tests:
runs-on: [self-hosted, ascend, npu]
container:
image: ascendai/cann
ports:
- 80
volumes:
- /usr/local/dcmi:/usr/local/dcmi
- /usr/local/bin/npu-smi:/usr/local/bin/npu-smi
- /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/
- /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info
- /etc/ascend_install.info:/etc/ascend_install.info
options: --network host
--name llamacpp_build
--device /dev/davinci5
--device /dev/davinci_manager
--device /dev/devmm_svm
--device /dev/hisi_hdc
--entrypoint /bin/bash
runs-on: ascendai/cann
# container:
# image: ascendai/cann
# ports:
# - 80
# volumes:
# - /usr/local/dcmi:/usr/local/dcmi
# - /usr/local/bin/npu-smi:/usr/local/bin/npu-smi
# - /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/
# - /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info
# - /etc/ascend_install.info:/etc/ascend_install.info
# options: --network host
# --name llamacpp_build
# --device /dev/davinci5
# --device /dev/davinci_manager
# --device /dev/devmm_svm
# --device /dev/hisi_hdc
# --entrypoint /bin/bash

steps:
- uses: actions/checkout@v4
Expand All @@ -54,22 +54,21 @@ jobs:
max_attempts: 3
retry_on: error
command: |
npu-smi info
apt-get update
apt-get install cmake make git build-essential -y
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
source /root/.bashrc
gcc --version
git clone https://github.com/ggerganov/llama.cpp.git
- name: Build
run: |
cd llama.cpp
make
# cmake -B build
# cmake --build build --config Release
mdkir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=release
cmake --build . --config Release -j $(nproc)


Expand Down

0 comments on commit 54a3e4a

Please sign in to comment.