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

[CodeLlamaTokenizer] Nit, update __init__ to make sure the AddedTokens are not normalized because they are special #27359

Merged
merged 4 commits into from
Nov 9, 2023

Conversation

ArthurZucker
Copy link
Collaborator

@ArthurZucker ArthurZucker commented Nov 8, 2023

What does this PR do?

Bridges the gap between the slow and fast version follow the updates in #26570 (similar updates were done to Llama)

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 8, 2023

The documentation is not available anymore as the PR was closed or merged.

@ArthurZucker ArthurZucker marked this pull request as ready for review November 9, 2023 08:24
@@ -33,13 +33,17 @@
PRETRAINED_VOCAB_FILES_MAP = {
"vocab_file": {
"hf-internal-testing/llama-code-tokenizer": "https://huggingface.co/hf-internal-testing/llama-tokenizer/resolve/main/tokenizer.model",
"codellama/CodeLlama-34b-Instruct-hf": "https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf/resolve/main/tokenizer.model",
Copy link
Member

Choose a reason for hiding this comment

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

remove these three lines and we can merge :)

(These are just here for backwards-compatibility)

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

great

@ArthurZucker ArthurZucker merged commit 085ea7e into main Nov 9, 2023
3 checks passed
@ArthurZucker ArthurZucker deleted the nit-codellama branch November 9, 2023 09:15
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
…ens are not normalized because they are special (huggingface#27359)

* make sure tokens are properly initialized for codellama slow

* add m ore pretrained models

* style

* test more tokenizers checkpoints
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.

3 participants