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

fix: revert #144 #218

Closed
wants to merge 1 commit into from
Closed

fix: revert #144 #218

wants to merge 1 commit into from

Conversation

yzh119
Copy link
Collaborator

@yzh119 yzh119 commented Apr 26, 2024

#144 multiplies q by sm_scale, which may cause numerical issues when q is a fp8 data type.
This PR reverts the change and multiply logits by sm_scale at the end of aggregation.

@yzh119
Copy link
Collaborator Author

yzh119 commented Apr 26, 2024

Okay I think I made a mistake here, in decode kernels, we first cast q to fp16 then multiply it by sm_scale, so it's not a issue.

@yzh119 yzh119 closed this Apr 26, 2024
@yzh119 yzh119 deleted the revert-144 branch June 20, 2024 17:16
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.

1 participant