Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def merge_splited_param(
if global_rank == send_rank:
tensor = (
state_dict[key] if padding_start >= padding_end else state_dict[key][: padding_start - begin]
)
).cuda()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

得考虑到reload导致显存剧增,导致oom

dist.stream.send(tensor, dst=recv_rank)
state_dict.pop(key)

Expand Down