-
Notifications
You must be signed in to change notification settings - Fork 228
MXNet distributed training #122
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
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hi @vandanavk. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| @@ -0,0 +1,27 @@ | |||
| FROM horovod/horovod:0.16.2-tf1.12.0-torch1.1.0-mxnet1.4.1-py3.5 AS build | |||
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.
You don't need the AS build part.
| @@ -0,0 +1,27 @@ | |||
| FROM horovod/horovod:0.16.2-tf1.12.0-torch1.1.0-mxnet1.4.1-py3.5 AS build | |||
|
|
|||
| # Create a wrapper for OpenMPI to allow running as root by default | |||
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.
These lines seem to have been removed in horovod's Dockerfile in favor of horovodrun. Have you tried to use it?
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.
I haven't tried horovodrun. Should this example be using horovodrun?
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.
I guess it's up to you. We can certainly do it at a later time.
| @@ -0,0 +1,50 @@ | |||
| apiVersion: kubeflow.org/v1alpha1 | |||
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.
Could you add this example for v1alpha2 version?
gaocegege
left a comment
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.
Thanks for your contribution! 🎉 👍
Can you add a README to illustrate how to use the example?
|
Thank you @vandanavk! |
| train_acc, name, val_acc) | ||
|
|
||
| if hvd.rank() == 0 and epoch == args.epochs - 1: | ||
| assert val_acc > 0.96, "Achieved accuracy (%f) is lower than expected\ |
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.
Avoid using '\'
examples/mxnet/mxnet-mnist.yaml
Outdated
| @@ -0,0 +1,50 @@ | |||
| apiVersion: kubeflow.org/v1alpha2 | |||
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.
Have you verified that this is working? The spec still looks like v1alpha1.
Newline related comments
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
This reverts commit 163aed7.
|
/ok-to-test |
Adding an example of distributed training using Apache MXNet.
This change is