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
When the input sample does not contain non-ignore labels, a division-by-zero error will be raised.
[rank1]: File "/data/conda3/lib/python3.11/site-packages/liger_kernel/ops/fused_linear_cross_entropy.py", line 114, in forward
[rank1]: n_non_ignore / total_n_non_ignore
[rank1]: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
[rank1]: ZeroDivisionError: division by zero
Reproduce
No response
Versions
latest
The text was updated successfully, but these errors were encountered:
🐛 Describe the bug
When the input sample does not contain non-ignore labels, a division-by-zero error will be raised.
[rank1]: File "/data/conda3/lib/python3.11/site-packages/liger_kernel/ops/fused_linear_cross_entropy.py", line 114, in forward
[rank1]: n_non_ignore / total_n_non_ignore
[rank1]: ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
[rank1]: ZeroDivisionError: division by zero
Reproduce
No response
Versions
latest
The text was updated successfully, but these errors were encountered: