Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API to get devices of offload states #6586

Merged
merged 36 commits into from
Oct 10, 2024
Merged

Conversation

tohtana
Copy link
Contributor

@tohtana tohtana commented Sep 27, 2024

This PR adds an API deepspeed.runtime.zero.offload_states get_state_devices, which gets devices of offload states as suggested in this comment.

We could lift this up to deepspeed.utils but would need to resolve a circular import: User code -> deepspeed.utils -> deepspeed.utils.offload_states -> deepspeed.runtime.zero -> deepspeed.runtime.zero.partition_parameters -> deepspeed.utils

This will require a significant refactoring as long as we have OffloadStateTypeEnum in deepspeed.runtime.zero.

tohtana and others added 30 commits August 16, 2024 18:17
@tohtana tohtana enabled auto-merge October 10, 2024 01:18
@tohtana tohtana added this pull request to the merge queue Oct 10, 2024
Merged via the queue into master with commit adec991 Oct 10, 2024
14 checks passed
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.

3 participants