-
Notifications
You must be signed in to change notification settings - Fork 310
Add A10g workflow to gain access to A10G GPU #2558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
efc93b8
Test on A10g
xuzhao9 9f79f57
Add a10g workflow
xuzhao9 dd04358
Add script to check SSH
xuzhao9 21ade74
Add linux test a10g
xuzhao9 33129bd
Only run on PR "with-ssh"
xuzhao9 2a3bcaa
Always wait for ssh
xuzhao9 5ba0c78
Fix workflow name
xuzhao9 925b8d5
Run on all prs
xuzhao9 c016849
Fix linux update
xuzhao9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,13 @@ | ||
#!/bin/bash | ||
|
||
# Loop to continuously check the output of `who` | ||
while true; do | ||
# Check if `who` returns non-empty output | ||
if who | grep -q '.'; then | ||
echo "User(s) logged in. Sleeping for 1000 seconds..." | ||
sleep 1000 | ||
else | ||
echo "No users logged in. Exiting..." | ||
exit 0 | ||
fi | ||
done |
This file contains hidden or 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,43 @@ | ||
name: TorchBench PR Test on A10G | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
linux-test-a10g: | ||
# Don't run on forked repos | ||
# Only run on PR labeled 'with-ssh' | ||
if: github.repository_owner == 'pytorch' && contains(github.event.pull_request.labels.*.name, 'with-ssh') | ||
runs-on: linux.g5.4xlarge.nvidia.gpu | ||
timeout-minutes: 240 | ||
environment: docker-s3-upload | ||
env: | ||
CONDA_ENV: "pr-test-cuda" | ||
TEST_CONFIG: "cuda" | ||
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }} | ||
steps: | ||
- name: Checkout TorchBench | ||
uses: actions/checkout@v3 | ||
- name: Setup SSH (Click me for login details) | ||
uses: pytorch/test-infra/.github/actions/setup-ssh@main | ||
with: | ||
github-secret: ${{ secrets.TORCHBENCH_ACCESS_TOKEN }} | ||
- name: Install Conda | ||
run: | | ||
bash ./.ci/torchbench/install-conda.sh | ||
- name: Install TorchBench | ||
run: | | ||
bash ./.ci/torchbench/install.sh | ||
- name: Wait for SSH session to end | ||
if: always() | ||
run: | | ||
bash ./.ci/torchbench/check-ssh.sh | ||
- name: Clean up Conda env | ||
if: always() | ||
run: | | ||
. ${HOME}/miniconda3/etc/profile.d/conda.sh | ||
conda remove -n "${CONDA_ENV}" --all | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }} | ||
cancel-in-progress: true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atalman Do we need to kill SSH sessions that are still active after 2 hours?