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

legacy to init the slow tokenizer when converting from slow was wrong #30972

Merged
merged 1 commit into from
May 22, 2024

Conversation

ArthurZucker
Copy link
Collaborator

What does this PR do?

A small nit but the arg was not passed. cc @itazap one fix already 😉

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

@@ -151,9 +151,6 @@ def __init__(
self.legacy = legacy

if add_prefix_space is not None:
logger.warning_once(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not helpful and conversion time is fast, and if we save (serialize it) then you have the warning while you shuld not!

@ArthurZucker ArthurZucker merged commit 1d568df into main May 22, 2024
19 checks passed
@ArthurZucker ArthurZucker deleted the patch-llama-tokenizer branch May 22, 2024 16:06
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

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

3 participants