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

Unable to use the model due to Huggingface updated API #38

Open
LEAGUEDORA opened this issue Oct 9, 2022 · 1 comment
Open

Unable to use the model due to Huggingface updated API #38

LEAGUEDORA opened this issue Oct 9, 2022 · 1 comment

Comments

@LEAGUEDORA
Copy link

Hii.
You might be unable to use the Parrot model due to an error something like this
...is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'...

To solve this I already created a pull request. Till then you can open the Parrot Library source code in your code editor and add these update these lines lines (13, 14 lines most probably)

self.tokenizer = AutoTokenizer.from_pretrained(model_tag, use_auth_token = <your auth token>)
self.model     = AutoModelForSeq2SeqLM.from_pretrained(model_tag, use_auth_token = <your auth token>)
@PrithivirajDamodaran
Copy link
Owner

I added a new demo notebook, and everything works fine. (check for the link in Readme)

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

No branches or pull requests

2 participants