nlp-with-transformers / notebooks

Jupyter notebooks for the Natural Language Processing with Transformers book
https://transformersbook.com/
Apache License 2.0
3.91k stars 1.22k forks source link

Error in Git LFS #93

Open mdabedr opened 1 year ago

mdabedr commented 1 year ago

I am trying to run the code and I am getting the following error when

`from transformers import Trainer

trainer = Trainer(model=model, args=training_args, compute_metrics=compute_metrics, train_dataset=emotions_encoded["train"], eval_dataset=emotions_encoded["validation"], tokenizer=tokenizer) trainer.train();`

Cloning https://huggingface.co/unknownhunter/distilbert-base-uncased-finetuned-emotion into local empty directory. WARNING:huggingface_hub.repository:Cloning https://huggingface.co/unknownhunter/distilbert-base-uncased-finetuned-emotion into local empty directory.

JinYu1998 commented 1 year ago

Hello, did you solve this problem? I have the same problem.

JinYu1998 commented 1 year ago

hello. I've solved the problem. Create a new model in https://huggingface.co/new. Name it distilbert-base-uncased-finetuned-clinc. Then just re-run the cell.

julian-berger commented 1 year ago

Same but @JinYu1998 suggestion did not work for me.

However, creating a new model under the aforementioned link and naming it distilbert-base-uncased-finetuned-emotion solved it