Relative Content

Tag Archive for pythonbert-language-modellarge-language-model

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.