Skip to content

fix indents in model runner #722

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zhentaocc
Copy link

changed lines should be outside of bypass_model_exec

What this PR does / why we need it?

This PR is intended to fix unexpected changes from #429. These unexpected changes will cause failure of PD disaggregation. Fall back them in this pr.

Does this PR introduce any user-facing change?

No

How was this patch tested?

should be tested with PD disaggregation.

changed lines should be outside of bypass_model_exec
orig_model_forward_time))
return hidden_or_intermediate_states
# TODO: remove the synchronize here
torch.npu.synchronize()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove the synchronize here now? CC @wangxiyuan

@wangxiyuan
Copy link
Collaborator

Thanks for the PR. But it's duplicated with this one: #658 Let's focus on 658, review it together to make it work as expect.

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.

3 participants