lavis-nlp / spert

PyTorch code for SpERT: Span-based Entity and Relation Transformer
MIT License
685 stars 146 forks source link

[WARNI] NaN or Inf found in input tensor. #71

Closed ShaoZhangHao closed 10 months ago

ShaoZhangHao commented 11 months ago

When I change the training epochs, the model warns that 023-11-12 08:59:28,723 [MainThread ] [WARNI] NaN or Inf found in input tensor. 2023-11-12 08:59:28,723 [MainThread ] [WARNI] NaN or Inf found in input tensor.

What happened and how can I solve it?

ShaoZhangHao commented 11 months ago

In the eval, it also warns "ValueError: {'type': 'None', 'start': 0, 'end': 1} is not in list"