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 TE distributed tests with fsdp_v2 and ddp_v2 #1690

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kshitij12345
Copy link
Collaborator

@kshitij12345 kshitij12345 commented Jan 24, 2025

TE Distributed tests were failing with only ThunderModules support the FSDP Transform

Tested with thunder/tests/distributed/test_fsdp.py -k transformer -v and thunder/tests/distributed/test_ddp.py -k transformer -v on TE v1.14

Related: #1640

@@ -124,6 +124,7 @@ def transform_module(
cd = get_compile_data(thunder_model)
# TODO: promote use_fsdp and use_ddp to public members of CompileData
cd.use_fsdp = True
cd.process_group_for_ddp = self.process_group
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ddp_v2 also has it -

cd.process_group_for_ddp = process_group

And TE executor needs it

self.pg = get_compile_data().process_group_for_ddp

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.

1 participant