How do I fix “ValueError: The model did not return a loss from the inputs”?
I am writing a program in Python. What it does is to train a question-answering model, and it uses a custom-made dataset from a JSON file that I created. However, I ran into the error from the full traceback below: