-
Notifications
You must be signed in to change notification settings - Fork 480
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
[SPMD] auto-sharding PoC #6719
[SPMD] auto-sharding PoC #6719
Conversation
126ceee
to
4d568ef
Compare
6ca8f97
to
d6dc442
Compare
303b239
to
d3c1d70
Compare
…patch * Ungroup resharding ops * Replace device data after resharding
Delete quantization openxla patch Debugging probes
* Disable parameter wrapping with auto-sharding
…t fully support it, yet
* Linter fix
968bca4
to
eadcae6
Compare
@@ -226,6 +226,8 @@ function run_xla_op_tests3 { | |||
run_test "$CDIR/spmd/test_xla_distributed_checkpoint.py" | |||
run_test "$CDIR/spmd/test_xla_spmd_python_api_interaction.py" | |||
run_test "$CDIR/spmd/test_dtensor_integration.py" | |||
run_test "$CDIR/spmd/test_dtensor_integration2.py" |
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.
do we need this on TPU CI as well or it is ok to leave out?
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.
Ohhh i think it's ok to leave out. Want to run this sanity check on TPU!
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.
Feel free to adjust remaining comments in a follow up [r
This implemented a PoC prototype on XLA:TPU, as described in #6322
PyTorch/XLA auto-sharding can be enabled by one of the following:
XLA_SPMD_AUTO=1
pytorch.distributed._tensor.distribute_module
withauto-policy
andxla
:Some notable limitations that we will address in follow-ups:
cc @baoleai