mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
fix: only on first process, not once on every node
This commit is contained in:
parent
d0402288bd
commit
97d4499d79
2
train.py
2
train.py
@ -137,7 +137,7 @@ def train(accelerator, config):
|
|||||||
|
|
||||||
|
|
||||||
# log gradients
|
# log gradients
|
||||||
if accelerator.is_local_main_process and config["wandb"]:
|
if accelerator.is_main_process and config["wandb"]:
|
||||||
wandb.watch(model, log_freq=config["log_grads_every"])
|
wandb.watch(model, log_freq=config["log_grads_every"])
|
||||||
|
|
||||||
for epoch in range(config["num_epochs"]):
|
for epoch in range(config["num_epochs"]):
|
||||||
|
Loading…
Reference in New Issue
Block a user