no wandb when debugging

This commit is contained in:
Sotirios Anagnostidis
2023-02-11 10:30:57 +01:00
parent 540a96fb0e
commit 631ba14b34
2 changed files with 4 additions and 2 deletions
@@ -47,6 +47,7 @@ defaults:
seq2seqmodel: false
poly_eps: 1.0
fuse_gelu: true
log_wandb: true
galactica-125m:
learning_rate: 5e-5
@@ -87,3 +88,4 @@ debug:
per_device_train_batch_size: 1
per_device_eval_batch_size: 1
quantization: false
log_wandb: false
+2 -2
View File
@@ -231,11 +231,11 @@ if __name__ == "__main__":
eval_steps=training_conf.eval_steps,
save_steps=training_conf.save_steps,
eval_accumulation_steps=training_conf.eval_accumulation_steps,
report_to="wandb",
report_to="wandb" if training_conf.log_wandb else None,
)
assert len(evals) > 0
if not training_conf.deepspeed or training_conf.local_rank == 0:
if training_conf.log_wandb and not training_conf.deepspeed or training_conf.local_rank == 0:
import wandb
wandb.init(