Skip to content

Commit cfaece8

Browse files
authored
chore(ci): migrate runner configuration in GitHub workflows (#1978)
Signed-off-by: Adrien <adrien@huggingface.co>
1 parent f8f9707 commit cfaece8

6 files changed

+13
-7
lines changed

.github/workflows/doctests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ on:
99
jobs:
1010
do-the-job:
1111
name: Start self-hosted EC2 runner
12-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
12+
runs-on:
13+
group: aws-g6-4xlarge-plus
1314
env:
1415
AWS_REGION: us-east-1
1516
steps:

.github/workflows/test_bettertransformer_gpu.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
jobs:
99
do-the-job:
1010
name: Start self-hosted EC2 runner
11-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
11+
runs-on:
12+
group: aws-g6-4xlarge-plus
1213
env:
1314
AWS_REGION: us-east-1
1415
steps:

.github/workflows/test_exporters_gpu.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
do-the-job:
1616
if: ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') || contains( github.event.pull_request.labels.*.name, 'gpu-test') }}
1717
name: Start self-hosted EC2 runner
18-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
18+
runs-on:
19+
group: aws-g6-4xlarge-plus
1920
env:
2021
AWS_REGION: us-east-1
2122
steps:

.github/workflows/test_gptq.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ on:
2020

2121
jobs:
2222
test_gptq:
23-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
23+
runs-on:
24+
group: aws-g6-4xlarge-plus
2425

2526
steps:
2627
- name: Checkout code

.github/workflows/test_onnxruntime_gpu.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
do-the-job:
1616
if: ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') || contains( github.event.pull_request.labels.*.name, 'gpu-test') }}
1717
name: Start self-hosted EC2 runner
18-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
18+
runs-on:
19+
group: aws-g6-4xlarge-plus
1920
env:
2021
AWS_REGION: us-east-1
2122
steps:

.github/workflows/test_onnxruntime_train.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
do-the-job:
1212
if: ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') || contains( github.event.pull_request.labels.*.name, 'training')}}
1313
name: Run ORTTrainer test
14-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
14+
runs-on:
15+
group: aws-g6-4xlarge-plus
1516
env:
1617
AWS_REGION: us-east-1
1718
steps:
@@ -22,4 +23,4 @@ jobs:
2223
docker build -f tests/onnxruntime/docker/Dockerfile_onnxruntime_trainer -t onnxruntime/train .
2324
- name: Run test within docker container
2425
run: |
25-
docker run --rm --gpus all -v /mnt/cache/.cache/huggingface:/root/.cache/huggingface --workdir=/workspace/optimum/tests onnxruntime/train:latest
26+
docker run --rm --gpus all -v /mnt/cache/.cache/huggingface:/root/.cache/huggingface --workdir=/workspace/optimum/tests onnxruntime/train:latest

0 commit comments

Comments
 (0)