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

Fix ds-chat CI regression #7015

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

Fix ds-chat CI regression #7015

wants to merge 5 commits into from

Conversation

tjruwase
Copy link
Contributor

@tjruwase tjruwase commented Feb 7, 2025

Fix #7014
Avoid naming collision on partition()

@tjruwase
Copy link
Contributor Author

tjruwase commented Feb 7, 2025

@inkcherry, FYI

@@ -124,7 +124,7 @@ def backward(ctx: Any, grad_output: torch.Tensor) -> Tuple[None, torch.Tensor]:
return None, grad_output


class Replaced_Layer(nn.Module, ABC):
class TensorParallel_Layer(nn.Module, ABC):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@inkcherry, please note this renaming for your tutorial work.

if self.inference_policies[child.__class__][0] == LinearLayer:
self._other_layers.append(self.inference_policies[child.__class__][0](module=child,
mp_group=None,
skip_partition=True))
Copy link
Contributor Author

@tjruwase tjruwase Feb 8, 2025

Choose a reason for hiding this comment

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

@inkcherry, I set mp_group=None here because I was not sure whether autotp_training is tested/compatible with hybrid_engine. Is this okay?

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.

[BUG] Fix ds_chat regression
1 participant