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

feat: Inference speed(tokens/s) profiling #91

Merged
merged 4 commits into from
Jul 15, 2024

Conversation

yirongjie
Copy link
Collaborator

What's new

Introduced the module.profiling() function.
An example can be found on line 58 of example/demo_tinyllama.cpp, and the resulting output is shown below:

===========================================
  Load time: 0.461832 s
  Prefilling speed: 5.78816 tokens/s
  Decoding speed: 5.23941 tokens/s
===========================================

@yirongjie yirongjie merged commit ec3360d into UbiquitousLearning:main Jul 15, 2024
1 check passed
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.

2 participants