-
Notifications
You must be signed in to change notification settings - Fork 530
Test torchprime from PyTorch/XLA #9152
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
base: master
Are you sure you want to change the base?
Conversation
3dad488
to
9be6f35
Compare
8c05962
to
96c6541
Compare
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.
Awesome!
@@ -0,0 +1,23 @@ | |||
# syntax=docker/dockerfile:1.4 |
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.
Document the purpose of this dockerfile (e.g. make it clear this is just for torchprime testing, not used by torchprime itself in its normal usage)?
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.
Consider renaming this to torchprime_e2e_test.Dockerfile
to make the purpose clear?
FROM python:${python_version}-${debian_version} AS release | ||
|
||
WORKDIR /tmp/wheels | ||
COPY ./*.whl ./ |
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.
Document what these wheels are?
@@ -0,0 +1,63 @@ | |||
#!/bin/bash |
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.
Consider renaming to publish_torchprime_e2e_test_docker.sh
for clarity?
sudo usermod -aG docker $USER | ||
newgrp docker | ||
shell: bash | ||
# Googlers: if this fails, follow http://shortn/_61iSj31q1b to debug. |
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.
Nit: use a go/ link?
DOCKER_IMAGE_TAG: ${{ steps.random_tag.outputs.uuid }} | ||
DOCKER_PROJECT: tpu-pytorch | ||
# Trigger torchprime E2E test workflow | ||
- uses: convictional/[email protected] |
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.
Can we document how to debug this workflow and get help if needed?
DOCKER_IMAGE_TAG: ${{ steps.random_tag.outputs.uuid }} | ||
DOCKER_PROJECT: tpu-pytorch | ||
# Trigger torchprime E2E test workflow | ||
- uses: convictional/[email protected] |
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.
Who provisions for this workflow? Does it have enough capacity for our needs?
This PR fixes AI-Hypercomputer/torchprime#161. See issue description for motivation and details. While don't quite have HBM usage check and loss curve checks yet, those could be added later.
This PR adds a new workflow that will be run during pre- and post-submits:
This will let us see if PyTorch/XLA PRs break model training in torchprime. I intend to first run this check as FYI-only for a while, and then later we could promote it to "required" to gate landing of PRs if it's very stable.