Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Feb 7, 2024
1 parent 35951a6 commit fcad198
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/dummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,52 +59,52 @@ jobs:
# 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
# container_gcp:
# 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/
# 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: Checkout repository
# uses: actions/checkout@v3
## - name: NVIDIA-SMI
## run: |
## echo "Hello A10"
## nvidia-smi
#
# - 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
# - name: show directory
# run: |
# ls -l /transformers
# cd /transformers
# git status
# git log -n 3
# ls -l ./
#
# - name: run tests
# run: |
# python3 -m pytest -v tests/models
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

0 comments on commit fcad198

Please sign in to comment.