-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: remove pympler dependency and add better way to calculate size of tokenizer cache #3580
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dosubot
bot
added
the
size:M
This PR changes 30-99 lines, ignoring generated files.
label
Jan 30, 2025
jacopo-chevallard
changed the title
feature: remove pympler dependency and add better way to calculate size of tokenizer cache
feat: remove pympler dependency and add better way to calculate size of tokenizer cache
Jan 30, 2025
AmineDiro
reviewed
Jan 30, 2025
core/quivr_core/llm/llm_endpoint.py
Outdated
if not hasattr(self.tokenizer, "vocab_files_names") or not hasattr( | ||
self.tokenizer, "init_kwargs" | ||
): | ||
return 5 * 1024 * 1024 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
AmineDiro
approved these changes
Jan 30, 2025
StanGirard
added a commit
that referenced
this pull request
Jan 30, 2025
🤖 I have created a release *beep* *boop* --- ## [0.0.31](core-0.0.30...core-0.0.31) (2025-01-30) ### Features * cache tokenizers ([#3558](#3558)) ([699dc2e](699dc2e)) * limit tokenizers cache size ([#3577](#3577)) ([e2a3bcb](e2a3bcb)) * remove pympler dependency and add better way to calculate size of tokenizer cache ([#3580](#3580)) ([2fbd5d4](2fbd5d4)) * remove tokenizer load ([#3576](#3576)) ([05e212a](05e212a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We now compute the size of the tokenizer cache using the disk file size of the different tokenizer files