I am working on Question Answering with Distilbert.
The predict function in the Trainer does not work if output_hidden_states = True. It works fine if the same argument is set to False.
Is this a bug? If not, then how is one to use a model for prediction if one has set the argument output_hidden_states = True while initializing the model ?
@natank To answer your second question, I don’t think so because as seen in the predict function source code, it only returns predictions, label_ids and metrics.
Thanks for you replies. Regarding one it indeed resolved me a problem. Regarding your answer on q2. It seems that Huggingsface offer two working modes, research : use model , and model taining - use predict. Am I right?