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

Export files required by OPT to load the tokenizer #1571

Merged
merged 5 commits into from
May 22, 2023

Conversation

dbogunowicz
Copy link
Contributor

OPT does not contain a "tokenizer.json", but instead requires the following files:
"special_tokens_map.json"
"vocab.json"
"merges.txt"
to create the tokenizer from pretrained.

I.e if those three files are present in the deployment model this line of code will execute:

model_path = "deployment"
tokenizer = AutoTokenizer.from_pretrained(
            model_path,
        )

@dbogunowicz dbogunowicz requested review from bfineran, natuan, a team and rahul-tuli and removed request for a team May 19, 2023 15:59
src/sparseml/transformers/export.py Outdated Show resolved Hide resolved
@dbogunowicz dbogunowicz requested a review from natuan May 22, 2023 08:31
@natuan natuan merged commit 3dd1f8d into main May 22, 2023
12 checks passed
@natuan natuan deleted the feature/damian/tokenizer_files branch May 22, 2023 15:32
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

4 participants