Huggingface TFBertForSequenceClassification is overfiting
The results of my model always predicts that accuracy is 1.0000 and I don’t know why. Below is my entire code for fine-tuning in the hopes that someone can point out to me where I am going wrong.
ValueError: Model Not Returning Loss from Inputs in Trainer.train()
I am encountering a ValueError while training my model using the Hugging Face Transformers library. The error message states that the model did not return a loss from the inputs, only the following keys: start_logits, end_logits. However, the inputs it received are input_ids, token_type_ids, attention_mask.