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

Further tune vector-matrix product #253

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Further tune vector-matrix product #253

merged 1 commit into from
Jun 27, 2024

Conversation

robertknight
Copy link
Owner

The kernel prefers the K dimension to be small if B has unit column stride or large if it has unit row stride. In the case of unit column stride, reducing the K dimension further helped.

These changes made GPT-2 medium fp32 about 10% faster on an Ice Lake i5.

The kernel prefers the K dimension to be small if B has unit column stride or
large if it has unit row stride. In the case of unit column stride, reducing the
K dimension further helped.

These changes made GPT-2 medium fp32 about 10% faster on an Ice Lake i5.
@robertknight robertknight merged commit 9eea36d into main Jun 27, 2024
2 checks passed
@robertknight robertknight deleted the gemv-tune-2 branch June 27, 2024 21:15
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