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

Minor problem in the model card of huggingface #8

Open
hitchhicker opened this issue Jan 19, 2021 · 0 comments
Open

Minor problem in the model card of huggingface #8

hitchhicker opened this issue Jan 19, 2021 · 0 comments

Comments

@hitchhicker
Copy link

Hi,

I have a problem when I use your sample code in https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment#example-of-classification.

The problem is that the code will fail the second time it runs due to some missing configuration files related to the tokenizer.

I would suggest adding one line as follows to save the metadata of tokenizer.

model = AutoModelForSequenceClassification.from_pretrained(MODEL)
model.save_pretrained(MODEL)
tokenizer.save_pretrained(MODEL)  # adding this line

Note that this change should be applied to all your model cards of huggingface.

I hope the description is clear enough for you. Please feel free to contact me for further clarification.

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

1 participant