-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Misc transformer fixes #14103
Misc transformer fixes #14103
Conversation
// TODO(hasesh/wy): Support re-using logits buffer for the sampling case. | ||
// Currently, we cannot re-use the logits because the sampling logic expects | ||
// `next_token_scores` to be populated. | ||
auto is_reuse_logits_buffer = !do_sampling && (input_length == 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC: @wangyems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
SkipLayerNormalization has a new output (Support (Bias)SkipLayerNormalization fusion in GPT2 #13988) and the symbolic shape inference script needs corresponding updates
The greedy sampling op (Sampling op #13426) shouldn't re-use the logits buffer as its corresponding kernel doesn't seem to support it yet.
Motivation and Context
Fix some transformer issues