Run this model with HF Jobs

Run hadifar/eventclassifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/hadifar/eventclassifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/hadifar/eventclassifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

RuntimeError: Error(s) in loading state_dict for RobertaForSequenceClassification

#3
by liuyao307 - opened

As a beginner, I have encountered some issues while using your model. When using AutoModelForSequenceClassific.from_pretrained, or even RobertaForSequenceClassific.from_pretrained, I encountered an error as shown in the following :
RuntimeError: Error (s) in loading state_dict for RobertaForSequenceClassification:
Size mismatch for classifier. out proj. weight: copying a param with shape torch Size ([16, 768]) from checkpoint, the shape in current model is torch Size ([36, 768])
Size mismatch for classifier. out proj. bias: copying a param with shape torch Size ([16]) from checkpoint, the shape in current model is torch Size ([36])
You may consider adding ignore_mismatched_sizes=True in the model free_pretrained method.
How can I resolve this issue? thanks

Sign up or log in to comment