-
Notifications
You must be signed in to change notification settings - Fork 451
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
FEAT: Support Phi-1 & Phi-1.5 #506
base: main
Are you sure you want to change the base?
Conversation
Hmm, seems like Phi-1.5 can not directly be added as a Pytorch Model and run, some additional glue code might be needed. Got the following error when trying to run the model on default settings: Full Log
|
Yeah. I've also tried to run this model with |
I found the solution. We were encountering two different issues. Regarding the Regarding the garbled text, a recent update to 4.34.0 (link) in Transformers fixes bugs in tokenizers and addressed the issue. Given the same function name and description, different versions behave drastically different: Example Generations
Transformer Version
Transformer Version
|
Actually, after some more testing with prompts from the Phi-1.5 paper it seems that the tokenizer problem is still not fully solved. I see there is still a PR open in the transformers repo working on it. We might have to wait until another update if we are using the same library. |
Resolve #462