-
Notifications
You must be signed in to change notification settings - Fork 19
110 lines (102 loc) · 3.06 KB
/
dummy.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Dummy
on:
push:
branches:
- dummy_branch
env:
HF_HOME: /mnt/cache
# For gated repositories, we still need to agree to share information on the Hub repo. page in order to get access.
# This token is created under the bot `hf-transformers-bot`.
HF_HUB_READ_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}
jobs:
# echo:
# name: show host
# runs-on: [single-gpu, nvidia-gpu, a10, ci]
# steps:
# - name: NVIDIA-SMI
# run: |
# echo "Hello A10"
# nvidia-smi
#
# - name: show directory
# run: |
# ls -l /mnt/cache/.cache/huggingface
#
# container:
# name: load docker image
# runs-on: [single-gpu, nvidia-gpu, a10, ci]
# container:
# # TODO: make this $ {{ inputs.image }}
# image: huggingface/transformers-all-latest-gpu
# options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
# steps:
# - name: NVIDIA-SMI
# run: |
# echo "Hello A10"
# nvidia-smi
#
# - name: show directory
# run: |
# ls -l /mnt/cache/
# check_gcp_access:
# name: load docker image
# runs-on: [single-gpu, nvidia-gpu, a10, ci]
# # Add "id-token" with the intended permissions.
# permissions:
# contents: 'read'
# id-token: 'read'
# steps:
# - name: NVIDIA-SMI
# run: |
# echo "Hello A10"
# nvidia-smi
#
# - name: show directory
# run: |
# ls -l ./
# container_gcp:
# name: load docker image
# runs-on: [single-gpu, nvidia-gpu, a10, ci]
# container:
# # TODO: make this $ {{ inputs.image }}
# image: us-docker.pkg.dev/deeplearning-platform-release/gcr.io/base-cu113.py310
# # options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
# steps:
## - name: NVIDIA-SMI
## run: |
## echo "Hello A10"
## nvidia-smi
#
# - name: show directory
# run: |
# ls -l ./
#
github_repo:
name: github repo
runs-on: [single-gpu, nvidia-gpu, a10, ci]
container:
# TODO: make this $ {{ inputs.image }}
image: huggingface/transformers-all-latest-gpu
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check repository
# Need `git config --global --add safe.directory ...` line otherwise error
# `fatal: detected dubious ownership in repository at '/__w/Google-Cloud-Containers/Google-Cloud-Containers'`
run: |
pwd
ls -la
git config --global --add safe.directory /__w/Google-Cloud-Containers/Google-Cloud-Containers
git status
git log -n 3
# Only for `image: huggingface/transformers-all-latest-gpu`
- name: Check transformers repository
run: |
ls -l /transformers
cd /transformers
git status
git log -n 3
- name: run tests
run: |
python3 -m pytest -v tests/models