-
Notifications
You must be signed in to change notification settings - Fork 78
47 lines (36 loc) · 1015 Bytes
/
rllm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: rLLM
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
TORCH_CUDA_ARCH_LIST: 8.0
CUDA_COMPUTE_CAP: 80
LIBTORCH_USE_PYTORCH: 1
LIBTORCH_BYPASS_VERSION_CHECK: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: hendrikmuhs/[email protected]
- run: pip install torch==2.1.0
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.3.2'
- run: echo "Installed cuda version is ${{ steps.cuda-toolkit.outputs.cuda }}"
- run: echo "Cuda install location ${{ steps.cuda-toolkit.outputs.CUDA_PATH }}"
- run: nvcc -V
- name: Build rLLM
run: cargo build --verbose --release
working-directory: rllm
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
name: cuda-rllm
path: target/release/rllm-server