lm-sys / lm-sys/FastChat

NaN or Inf found in input tensor

Open
#2,378 0 comments 0 reactions 0 assignees View on GitHub

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?
![image](https://github.com/lm-sys/FastChat/assets/50818159/0c88ea85-b49b-46ff-87d6-7a8f948d8017)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.