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

Move import to when needed to avoid circular dependency error (#19579) #35

Merged
merged 1 commit into from
May 9, 2024

Conversation

rraminen
Copy link

@rraminen rraminen commented May 7, 2024

Description

Move import to when needed to avoid circular dependency error

Motivation and Context

Fixes DeepSpeed dependency error:

AttributeError: partially initialized module 'deepspeed.comm' has no attribute 'ProcessGroup' (most likely due to a circular import)

…oft#19579)

### Description
Move import to when needed to avoid circular dependency error


### Motivation and Context
Fixes dependency error described here:
microsoft/DeepSpeed#5140

---------

Co-authored-by: Thiago Crepaldi <[email protected]>
@amathews-amd amathews-amd requested a review from lcskrishna May 7, 2024 21:05
Copy link

@lcskrishna lcskrishna left a comment

Choose a reason for hiding this comment

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

LGTM.

@groenenboomj
Copy link

LGTM

@rraminen , please also push to upstream master and the ROCm:rocm6.2_internal_testing.

@groenenboomj groenenboomj merged commit 1caf382 into ROCm:rocm6.1_internal_testing May 9, 2024
7 of 17 checks passed
@rraminen
Copy link
Author

rraminen commented May 9, 2024

LGTM

@rraminen , please also push to upstream master and the ROCm:rocm6.2_internal_testing.

@groenenboomj, this change is already in upstream master and ROCm:rocm6.2_internal_testing.

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.

4 participants