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

#0: Provide an example of hybrid TP/DP using all-gather with line topology #17882

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

Conversation

cfjchu
Copy link
Collaborator

@cfjchu cfjchu commented Feb 14, 2025

Ticket

Link to Github Issue

Problem description

There aren't any good examples of hybrid tensor and data-parallel implemented via line all-gather. Providing this as a reference for the training team.

What's changed

Added an example for this. Follows similar format to tests/ttnn/distributed/test_data_parallel_example.py and tests/ttnn/distributed/test_tensor_parallel_example.py

Checklist

@cfjchu cfjchu changed the title #0: Provide an example of hybrid TP/DP using line-all-gather #0: Provide an example of hybrid TP/DP using all-gather with line topology Feb 14, 2025
@cfjchu cfjchu force-pushed the jchu/tp-dp-example-for-distributed-training branch from 47c8723 to 7955e16 Compare February 14, 2025 08:56
@cfjchu cfjchu force-pushed the jchu/tp-dp-example-for-distributed-training branch from 7955e16 to c3ed58e Compare February 14, 2025 08:58
# [A0, A0, A0, A0]
# [A1, A1, A1, A1]
hidden_states, parameters = None, None
mesh_shape = tuple(mesh_device.shape)
Copy link
Contributor

Choose a reason for hiding this comment

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

Yikes that we need to do this. I'll fix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🙏

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.

2 participants