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

Function to compare batch look-up for vocab #1290

Closed
wants to merge 4 commits into from

Conversation

parmeet
Copy link
Contributor

@parmeet parmeet commented Apr 22, 2021

This PR added a function to plot graph for speed-up w.r.t number of tokens in batch. Here we benchmark experimental vocab against existing one which is based on Python dict.

We do have benchmarking code that compares the performance on real dataset, but this function provides capability to do the benchmarking in controlled settings.

The output looks like below:

speedup

@parmeet
Copy link
Contributor Author

parmeet commented Apr 22, 2021

Discarding due to inclusion of some unnecessary changes

@parmeet parmeet closed this Apr 22, 2021
@parmeet parmeet deleted the batchbenchmark branch April 22, 2021 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants