Hugging Face Forums
The model did not return a loss from the inputs, only the following keys: logits. For reference, the inputs it received are input_values
Intermediate
Saugatkafley
January 30, 2024, 4:12pm
13
Keeping the columns as
text
and
label
solved the issue.
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
ValueError: The model did not return a loss from the inputs, only the following keys: logits. For reference, the inputs it received are input_ids,attention_mask
🤗Transformers
1
1197
August 25, 2023
Multi_class_classification errors when fine-tuning via TrainerAPI
Beginners
0
375
February 20, 2023
Error in fine-tuning BERT
Beginners
8
6275
February 21, 2022
Fine Tuning IMDb tutorial - Unable to reproduce and adapt
Beginners
19
8606
August 21, 2020
AttributeError: 'TrainOutput' object has no attribute 'metrics' when finetune custom dataset
🤗Transformers
3
2524
January 4, 2021