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

Add simple benchmark for Transpose ops, extract rten-bench crate #59

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

robertknight
Copy link
Owner

@robertknight robertknight commented Mar 18, 2024

Following some performance investigations in #42 (comment):

  • Add a simple benchmark for Transpose operations
  • Extract the existing run_bench utility into an unpublished rten-bench crate, so it can be reused by different crates.

This simplifies the use of `format!` etc. to generate a description.
This is useful if a benchmark wants to compare results from different tests.
This includes a couple of transpose operations seen in the Whisper decoder (base
model), which were showing up as bottlenecks in benchmarks, as well as simple
tests on square matrices.
This allows reusing the same implementation across all the various `rten-*`
crates.
@robertknight robertknight merged commit ff8d22d into main Mar 18, 2024
2 checks passed
@robertknight robertknight deleted the transpose-bench branch March 18, 2024 07:19
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