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
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
1120
March 29, 2023
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
1114
August 25, 2023
ValueError: The model did not return a loss from the inputs
Beginners
1
3995
December 21, 2023
Input type Runtime Error in fine-tuning hf blog tutorial
Beginners
2
675
March 8, 2024
Wer is 1 when using wav2vec2pretrained model
Models
0
222
October 4, 2023