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

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

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
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