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
Summary:
Pull Request resolved: #3315
`_maybe_compute_stride_kjt` returns `stride = 0` when `len(keys) == 0` or when `stride_per_key_per_rank` has invalid values.
Adding a guard condition `if stride > 0:` before the problematic `lengths.view(-1, stride)` operation in the `dist_init` method. When `stride` is 0 (e.g. indicating empty keys), skip the permutation.
Reviewed By: nipung90
Differential Revision: D80948346
fbshipit-source-id: c881ad4571dbc295ab7517bc9e351872bba3970e
0 commit comments