Skip to content

Commit d0e5cea

Browse files
committed
try
1 parent 8f16ac0 commit d0e5cea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/model_jobs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
type: string
1818
runner_map:
1919
required: false
20-
default: '{"models/vit": ["aws-g4dn-4xlarge-cache", "aws-g4dn-12xlarge-cache"], "models/clip": ["aws-g5-4xlarge-cache", "aws-g5-12xlarge-cache"]}'
20+
default: '{"models/vit": {"single-gpu": "aws-g4dn-4xlarge-cache", "multi-gpu": "aws-g4dn-12xlarge-cache"}, "models/clip": {"single-gpu": "aws-g5-4xlarge-cache", "multi-gpu": "aws-g5-12xlarge-cache"}}'
2121
type: string
2222
docker:
2323
required: true
@@ -47,10 +47,9 @@ jobs:
4747
max-parallel: 8
4848
fail-fast: false
4949
matrix:
50-
machine_type: ${{ fromJson(inputs.runner_map)[matrix.folders] }}
5150
folders: ${{ fromJson(inputs.folder_slices)[inputs.slice_id] }}
5251
runs-on:
53-
group: '${{ inputs.machine_type }}'
52+
group: ${{ fromJson(inputs.runner_map)[matrix.folders][inputs.machine_type] }}
5453
container:
5554
image: ${{ inputs.docker }}
5655
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/

.github/workflows/self-scheduled.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@ jobs:
111111
strategy:
112112
fail-fast: false
113113
matrix:
114+
machine_type: [single-gpu, multi-gpu]
114115
slice_id: ${{ fromJSON(needs.setup.outputs.slice_ids) }}
115116
uses: ./.github/workflows/model_jobs.yml
116117
with:
117118
folder_slices: ${{ needs.setup.outputs.folder_slices }}
118-
machine_type: ''
119+
machine_type: ${{ matrix.machine_type }}
119120
slice_id: ${{ matrix.slice_id }}
120121
runner: ${{ inputs.runner }}
121122
docker: ${{ inputs.docker }}

0 commit comments

Comments
 (0)