You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In torch_xla.experimental.spmd_fully_sharded_data_parallel, the function "_prepare_spmd_partition_spec" handles
scalar wrongly, instead of returning a tuple it returns a list: this should be:
@giladxw , I'm not on the xla team but from what I see, this already handles that, I think it's correct that it should return a tuple even if length is 0, But is it not unlikely that you will pass a param that has shape of 0?
🐛 Bug
In torch_xla.experimental.spmd_fully_sharded_data_parallel, the function "_prepare_spmd_partition_spec" handles
scalar wrongly, instead of returning a tuple it returns a list:
this should be:
otherwise we get the error:
To Reproduce
test SpmdFullyShardedDataParallel (i.e. FSDPv2) with any model that contains a scalar parameter
Environment
The text was updated successfully, but these errors were encountered: