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 larger benchmark for tokenize_batch #27

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

michael-p
Copy link
Contributor

We had a benchmark for tokenize_batch already, but this one is more realistic in size (real image captions as inputs and batch size is 50 which is the maximum batch size for our model version).

I wanted to try out whether parallelizing tokenize_batch with Rayon might be useful (Huggingfaces' tokenizer does this) but looks like it doesn't help at all. On this benchmark we're still 11x faster than HF's CLIPTokenizerFast.

@michael-p michael-p requested a review from djc December 9, 2023 07:49
@michael-p michael-p merged commit c1d3453 into main Dec 11, 2023
@michael-p michael-p deleted the bench-large-batch branch December 11, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants