-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update TP examples to align with tutorials (#1243)
as titled
- Loading branch information
Showing
6 changed files
with
685 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Run Distributed Examples | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
# Every day at 3:00am | ||
- cron: '0 3 * * *' | ||
|
||
|
||
jobs: | ||
test: | ||
|
||
runs-on: 4-core-ubuntu-gpu-t4 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install PyTorch | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cu118/torch_nightly.html | ||
- name: Run Tests | ||
run: | | ||
./run_distributed_examples.sh "run_all,clean" | ||
- name: Open issue on failure | ||
if: ${{ failure() && github.event_name == 'schedule' }} | ||
uses: rishabhgupta/git-action-issue@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: Daily CI failed | ||
body: Commit ${{ github.sha }} daily scheduled [CI run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed, please check why | ||
assignees: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.