lm-sys / lm-sys/FastChat

AssertionError: No inf checks were recorded for this optimizer.

Open
#522 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

While tuning I am getting the following error.
AssertionError: No inf checks were recorded for this optimizer.

Can anyone help me with this?
Here are my training arguments:
per_device_train_batch_size=2,
warmup_steps=100,
num_train_epochs=3,
fp16=True,
logging_steps=1,
output_dir='llama_output/',
gradient_accumulation_steps = 2,
evaluation_strategy = "no",
save_strategy = "no",
save_steps = 1200,
learning_rate = 2e-5,
weight_decay = 0.,
warmup_ratio = 0.03,
lr_scheduler_type = "cosine",
tf32 = False,
gradient_checkpointing = False

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

No source file, test, or entry point is identified. Start by reproducing the training run with the listed arguments, especially fp16=True and gradient_accumulation_steps=2, then trace the optimizer setup and inf-check registration; done when the assertion is resolved and training proceeds successfully.

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.