Skip to content
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

Distributed support cifar #1301

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

angeloskath
Copy link
Member

I am not sure if it ended up being a bit verbose and out of scope. Perhaps it makes sense to have more dedicated DDP training examples.

It also only works on master as I am using mx.distributed.all_sum(scalar)

Comment on lines +57 to +60
mx.eval(stats, count)
count = count.item()

return [s / count for s in stats.tolist()]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mx.eval(stats, count)
count = count.item()
return [s / count for s in stats.tolist()]
return (stats / count).tolist()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha I don't know what I was thinking 🤦‍♂️

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants