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

[fx]add split module pass and unit test from pipeline passes #1242

Merged
merged 29 commits into from
Jul 12, 2022

Conversation

YuliangLiu0306
Copy link
Contributor

No description provided.

@YuliangLiu0306
Copy link
Contributor Author

image

else:
if len(output_part0) > len(sig.parameters):
output_part0 = output_part0[:len(sig.parameters)]
output_part1 = model_part1(*output_part0)
Copy link
Contributor

Choose a reason for hiding this comment

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

HF output may contain multiple values, will output_part1 contain the same number of values?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it has same number of elements and numerically equal to HF output, but the output_part1 is type of Tuple[torch.Tensor], not HF output class.

@FrankLeeeee FrankLeeeee merged commit 30b4fc0 into hpcaitech:main Jul 12, 2022
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.

None yet

2 participants