-
Notifications
You must be signed in to change notification settings - Fork 84
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
Parallelize neuron training processes for each neuron core #566
base: main
Are you sure you want to change the base?
Conversation
dd5d885
to
b4d5fbc
Compare
874c16d
to
57d3591
Compare
Will publish test results in a bit |
Ran the test on 2 nodes locally with
There's some issue collecting the throughput info. This run showed 56 ranks, others show some other random number. I thought this was a RegEx issue, which I've fixed, but we still see the problem. Might work on this separately though, the ranks parsed from are probably representative of the group, and afaict nvidia training currently only parses from the master proc. |
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: training | ||
labels: | ||
app: training | ||
spec: | ||
clusterIP: None | ||
selector: | ||
job-name: bert-training |
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.
Is explicit service creation required for torchrun
?
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.
yeah this service is required so we can dynamically determine the master node's IP with bert-training-0.training
in the job spec
@mselim00 This is slightly concerning. Are you able to confirm expected number of processes is running even if metrics seem off? |
Yep, I manually checked that we have logs from all 64 ranks, that all of them print those metrics, and that all of them print the |
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.
LGTM. Approving since CI check failure is unrelated. Merge once fixed.
Enables full multi-processing across all neuron cores, and corrects an earlier issue where world size wasn't being correctly determined (i.e., each process was in its own process group). Changes from mpirun to torchrun.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.