Argument was ignored by`Longformer` model, stsb task

Dear Community, I am wondering if someone could help me with the ‘warnings’ that I encountered while using the run_glue.py. My model is “allenai/longformer-base-4096”, and the task name is “stsb”, and it said :

“The following columns in the test set don’t have a corresponding argument in LongformerForSequenceClassification.forward and have been ignored: idx, sentence1, sentence2. If idx, sentence1, sentence2 are not expected by LongformerForSequenceClassification.forward, you can safely ignore this message.”

My training dataset are json files that has idx, sentence1, sentence2 and a label(converted to float and treated as float). If those field were not used, then why are my model is running? Any insights or suggesions is greatly appreciated! Thank you.

1 Like

When the software is working properly, the warnings are only displayed to give users and developers a clue as to the cause of errors or undesired results.
If it works fine, ignore it.
If not, the software stops with an error. Of course, there are cases where broken data can be obtained, but these are rare nowadays.

In this case, I think it is safe to ignore it. There was a similar case in a past post.