forked from mila-iqia/milabench
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.16 KB
/
docker-run.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
48
49
50
# Run Milabench using nightly docker images
name: docker-run
on:
# Only works on manual runs
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_PATH: ghcr.io/mila-iqia/okiok:cuda-nightly
jobs:
build-image:
strategy:
matrix:
- arch: [cuda, rocm]
runs-on: [self-hosted, "${{ matrix.arch }}"]
permissions:
contents: read
env:
IMAGE_NAME: "ghcr.io/mila-iqia/okiok:${{ matrix.arch }}-nightly"
steps:
- name: pull
run: |
docker pull $IMAGE_NAME
- name: run
run: |
OUTPUT="$(pwd)/../results"
mkdir -p $OUTPUT
docker run --rm --shm-size=256M \
--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all \
-v $OUTPUT:/milabench/envs/runs \
$IMAGE_NAME milabench run
- name: Check out the repo
uses: actions/checkout@v3
- name: summary
run: |
python -m pip install -U pip
python -m pip install -U poetry
poetry lock --no-update
poetry install
milabench summary $OUTPUT