mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
fix: num training steps for lr decay
This commit is contained in:
parent
195f8a7d4e
commit
9dfd8e1a7c
2
train.py
2
train.py
@ -100,7 +100,7 @@ def train(accelerator, config):
|
||||
name="cosine",
|
||||
optimizer=optimizer,
|
||||
num_warmup_steps=config["warmup_steps"] * accelerator.num_processes,
|
||||
num_training_steps=total_num_steps * accelerator.num_processes,
|
||||
num_training_steps=total_num_steps,
|
||||
)
|
||||
else:
|
||||
scheduler = DummyScheduler(
|
||||
|
Loading…
Reference in New Issue
Block a user