You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have finetuned ModelBERT model for multi-label task and when performing batched inference I am getting Nan values for logits in a batch except for one sample. So, in each batch except one sample all the remaining logits are Nan
System Info
transformers == 4.48.0.dev0
torch == 2.2.2
Description
I have finetuned ModelBERT model for multi-label task and when performing batched inference I am getting
Nan
values for logits in a batch except for one sample. So, in each batch except one sample all the remaining logits areNan
Who can help?
@tomaarsen @ArthurZucker
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Simply passing model(**batch) is resulting in this - while with bs=1 no issue exists.
Code:
Expected behavior
Expecting some values instead of
Nan
The text was updated successfully, but these errors were encountered: