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

[torch_xla2] Basic DDP example in a notebook #8042

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

will-cromar
Copy link
Collaborator

Very basic example of torch_xla2 training that highlights the sharding, replication, and JIT utilities.

I intended this to be a dead-simple example that a user could run without burning through their Colab quota, but I ran out of Colab quota myself while developing this. I ended up finishing the work and generating the output on a v4-8. We should adapt this to Colab in the future to make it more accessible, though.

Minor change: return a Tensor from shard_input instead of an Array 🤦

@will-cromar will-cromar marked this pull request as ready for review September 19, 2024 17:20
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.

1 participant