Commit fd217466 authored by Julien Chaumond's avatar Julien Chaumond
Browse files

[Trainer] W&B: Enable model watch

See https://github.com/huggingface/transformers/pull/3916
parent 79b1c696
...@@ -226,10 +226,14 @@ class Trainer: ...@@ -226,10 +226,14 @@ class Trainer:
return optimizer, scheduler return optimizer, scheduler
def _setup_wandb(self): def _setup_wandb(self):
# Start a wandb run and log config parameters """
Setup the optional Weights & Biases (`wandb`) integration.
One can override this method to customize the setup if needed.
"""
wandb.init(name=self.args.logging_dir, config=vars(self.args)) wandb.init(name=self.args.logging_dir, config=vars(self.args))
# keep track of model topology and gradients # keep track of model topology and gradients
# wandb.watch(self.model) wandb.watch(self.model)
def train(self, model_path: Optional[str] = None): def train(self, model_path: Optional[str] = None):
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment