Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Add trust_remote_code to tokenizer construction#1176

Merged
mgoin merged 2 commits intomainfrom
tokenizer-remote-code
Aug 9, 2023
Merged

Add trust_remote_code to tokenizer construction#1176
mgoin merged 2 commits intomainfrom
tokenizer-remote-code

Conversation

@mgoin
Copy link
Copy Markdown
Member

@mgoin mgoin commented Aug 9, 2023

This is needed for models with custom tokenizers, such as replit-code-v1-3b

Without this, you will see

ValueError: Tokenizer class ReplitLMTokenizer does not exist or is not currently imported.

@mgoin mgoin requested review from bfineran and dbogunowicz August 9, 2023 13:25
@dbogunowicz
Copy link
Copy Markdown
Contributor

@mgoin please fix quality, otherwise LGTM

dbogunowicz
dbogunowicz previously approved these changes Aug 9, 2023
@mgoin mgoin merged commit de4fb43 into main Aug 9, 2023
@mgoin mgoin deleted the tokenizer-remote-code branch August 9, 2023 15:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants