We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
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.
The text was updated successfully, but these errors were encountered: