Skip to content

Commit 7620a5a

Browse files
committed
TMP - bench workflow
1 parent ddf6568 commit 7620a5a

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/bench.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Benchmark
2+
name: Benchmark
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
gpu-series:
8+
description: 'Azure GPU series to run with'
9+
required: true
10+
type: choice
11+
options:
12+
- Standard_NC4as_T4_v3
13+
- Standard_NC64as_T4_v3
14+
- Standard_NC24ads_A100_v4
15+
- Standard_NC48ads_A100_v4
16+
- Standard_ND96asr_A100_v4
17+
- Standard_NC40ads_H100_v5
18+
- Standard_NC80adis_H100_v5
19+
push:
20+
branches:
21+
- master
22+
paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
23+
pull_request:
24+
types: [opened, synchronize, reopened]
25+
paths: ['.github/workflows/server.yml', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', 'examples/server/tests/**.*']
26+
schedule:
27+
- cron: '0 0 * * *'
28+
29+
jobs:
30+
server-baseline:
31+
runs-on:
32+
group: azure-ubuntu-runners
33+
labels:
34+
- Standard_NC4as_T4_v3
35+
if: ${{ github.event.schedule || github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' || github.event.pull_request }}
36+
steps:
37+
- name: Clone
38+
id: checkout
39+
uses: actions/checkout@v3
40+
with:
41+
fetch-depth: 0
42+
43+
- name: Dependencies
44+
id: depends
45+
run: |
46+
apt-get update
47+
apt-get -y install \
48+
build-essential \
49+
git \
50+
cmake \
51+
python3-pip \
52+
wget \
53+
language-pack-en \
54+
libcurl4-openssl-dev
55+
56+
- name: Build
57+
id: cmake_build
58+
run: |
59+
mkdir build
60+
cd build
61+
cmake .. \
62+
-DLLAMA_NATIVE=OFF \
63+
-DLLAMA_BUILD_SERVER=ON \
64+
-DLLAMA_CURL=ON \
65+
-DLLAMA_CUBLAS=ON \
66+
-DCMAKE_CUDA_ARCHITECTURES=native \
67+
-DLLAMA_FATAL_WARNINGS=OFF \
68+
-DLLAMA_ALL_WARNINGS=OFF \
69+
-DCMAKE_BUILD_TYPE=Release;
70+
cmake --build . --config Release -j $(nproc) --target server

0 commit comments

Comments
 (0)