-
Notifications
You must be signed in to change notification settings - Fork 48
52 lines (46 loc) · 1.21 KB
/
test_cli_cuda_tensorrt_llm.yaml
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
48
49
50
51
52
name: CLI CUDA TensorRT-LLM Tests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- .github/workflows/test_cli_cuda_tensorrt_llm.yaml
- "optimum_benchmark/**"
- "docker/**"
- "tests/**"
- "setup.py"
pull_request:
branches:
- main
paths:
- .github/workflows/test_cli_cuda_tensorrt_llm.yaml
- "optimum_benchmark/**"
- "docker/**"
- "tests/**"
- "setup.py"
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
env:
IMAGE: huggingface/optimum-nvidia:latest
jobs:
cli_cuda_tensorrt_llm_tests:
runs-on: [single-gpu, nvidia-gpu, a10, ci]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run tests
uses: addnab/docker-run-action@v3
with:
image: ${{ env.IMAGE }}
options: |
--rm
--gpus all
--shm-size 64G
--env MKL_THREADING_LAYER=GNU
--volume ${{ github.workspace }}:/workspace
--workdir /workspace
run: |
pip install -e .[testing]
pytest -x -s -k "cli and cuda and tensorrt_llm"