Skip to content

Conversation

@RezaYazdaniAminabadi
Copy link
Contributor

This fixes #1751

# move all the parameters to cpu to free up GPU space for creating flat buffer
move_to_cpu(self.bit16_groups[i])
see_memory_usage(f"After moving param group {i} to CPU", force=False)
see_memory_usage(f"After moving param group {i} to CPU", force=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please revert this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@jeffra jeffra merged commit 5ca2627 into master Feb 15, 2022
@jeffra jeffra deleted the fix-cpu-offload branch February 15, 2022 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cpu_offload error![BUG]

4 participants