Skip to content

Commit 5054cd9

Browse files
committed
changed workflow
1 parent 3b4e332 commit 5054cd9

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
unit_test:
13+
core_unit_test:
1414
name: Core Unit Tests
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 20
@@ -39,7 +39,7 @@ jobs:
3939
- uses: actions/checkout@v4
4040
- name: Format
4141
run: cargo fmt --all --check
42-
gpu_test:
42+
cuda_unit_test:
4343
name: Cuda Unit Tests
4444
runs-on: cuda_t4_runner
4545
timeout-minutes: 30
@@ -63,3 +63,31 @@ jobs:
6363
run: rustup update
6464
- name: Run CUDA crate tests
6565
run: cargo test -p luminal_cuda --verbose
66+
cuda_llama:
67+
name: Cuda Llama
68+
runs-on: cuda_t4_runner
69+
timeout-minutes: 30
70+
env:
71+
CUDA_HOME: /usr/local/cuda-12.8
72+
LD_LIBRARY_PATH: /usr/local/cuda-12.8/lib64
73+
74+
steps:
75+
- uses: actions/checkout@v4
76+
- name: Install system deps
77+
run: |
78+
sudo apt-get update
79+
sudo apt-get install -y --no-install-recommends \
80+
protobuf-compiler \
81+
cuda-nvrtc-12-8
82+
- name: Install Rust
83+
run: |
84+
curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
85+
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
86+
- name: Update Rust
87+
run: rustup update
88+
- name: Download Llama
89+
working-directory: examples/llama
90+
run: uv run --script setup/setup.py
91+
- name: Run Llama
92+
working-directory: examples/llama
93+
run: SEARCH=1 cargo test -p luminal_cuda --verbose

0 commit comments

Comments
 (0)