NaN or Inf found in input tensor
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.5k
- Forks
- 4.8k
- PR merge metrics
- No merged PRs in 30d
Description
WARNING:root:NaN or Inf found in input tensor.
{'loss': 3.0489, 'learning_rate': 5.9999999999999995e-05, 'epoch': 0.01}
WARNING:root:NaN or Inf found in input tensor.
WARNING:root:NaN or Inf found in input tensor.
WARNING:root:NaN or Inf found in input tensor.
program not stop when warning happens. and this was caused by tensorboardX/x2num.py, how can i fix this bug?

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the training run that emits “NaN or Inf found in input tensor,” then inspect tensorboardX/x2num.py, which the report identifies as the source of the warning. Determine whether FastChat or tensorboardX should stop or otherwise handle the condition, and verify the chosen behavior with a focused reproduction or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100