mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-13 21:22:49 +00:00
[zero] solve hang
This commit is contained in:
@@ -393,4 +393,7 @@ def all_to_all_uneven(
|
||||
group=None,
|
||||
overlap: bool = False,
|
||||
):
|
||||
assert (
|
||||
inputs.requires_grad
|
||||
), "Input must require grad to assure that backward is executed, otherwise it might hang the program."
|
||||
return AllToAllUneven.apply(inputs, input_split_sizes, output_split_sizes, group, overlap)
|
||||
|
Reference in New Issue
Block a user