ValueError: Target size (torch.Size([8])) must be the same as input size (torch.Size([8, 3]))

I am trying to do multi label classification
I am getting this error :

any help?
I am using this model =AutoModelForSequenceClassification.from_pretrained(checkpoint,problem_type=‘multi_label_classification’,num_labels=3).to(device)