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.
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
1250
August 25, 2023
Multi_class_classification errors when fine-tuning via TrainerAPI
Beginners
0
400
February 20, 2023
Fine Tuning IMDb tutorial - Unable to reproduce and adapt
Beginners
19
8734
August 21, 2020
Chapter 3 questions
Course
160
11852
March 7, 2026
I tired and can't solve this error , 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
Models
1
1192
March 29, 2023