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 barrier to prevent TP nccl kernel waiting. #2607

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

grimoire
Copy link
Collaborator

No description provided.

@@ -438,6 +440,7 @@ def _tp_model_loop(
world_size=world_size)

while True:
barrier.wait()
Copy link
Collaborator

@CyCle1024 CyCle1024 Oct 16, 2024

Choose a reason for hiding this comment

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

The barrier here would cause hang if we still using old _exit_by_sending_exit_flag function on ascend.
I would add commits to remove the old exit machenism.

CyCle1024 and others added 2 commits October 18, 2024 16:40
* fix exit problem on ascend platform

* remove exit_flag in tp exit
Copy link
Collaborator

@RunningLeon RunningLeon left a comment

Choose a reason for hiding this comment

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

LGTM

@lvhan028 lvhan028 merged commit c918669 into InternLM:main Oct 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants