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

Cache PyString only when the surface is registered in dictionary #1

Merged
merged 3 commits into from
Dec 14, 2022

Conversation

vbkaisetsu
Copy link
Member

The current implementation caches all Python strings into the memory.
However, if the tokenizer receives a large amount of text that generates unknown words, all of them will be cached and runs out of memory.

This branch changes to not cache unknown words.

@vbkaisetsu vbkaisetsu enabled auto-merge (squash) December 14, 2022 04:46
@vbkaisetsu vbkaisetsu mentioned this pull request Dec 14, 2022
@vbkaisetsu vbkaisetsu merged commit 726c019 into main Dec 14, 2022
@vbkaisetsu vbkaisetsu deleted the cache-only-registered branch December 15, 2022 04:14
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.

None yet

2 participants