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

Support Trust Remote Code for Tokenizer as well #1336

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

Shas3011
Copy link
Contributor

@Shas3011 Shas3011 commented Jul 7, 2023

Closes the issue #1334

This fixes an problem, due to which custom tokenizers where not being loaded .
As Trust_remote_code was not being passed into the load_tokenizer call.

Not being able to support models that implement custom tokenizer
Mainly the salesforce xgen and codegen series of models that are quite popular now

Thanks

@yc-wang00
Copy link
Contributor

I found out the same issue. Can we merge this please?😊

@Shas3011
Copy link
Contributor Author

@guillaumekln , have made the requested changes, can we merge it now?

@guillaumekln guillaumekln merged commit 49023d2 into OpenNMT:master Jul 11, 2023
17 checks passed
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