Srinivasan Iyer sviyer commited on
Commit
7cf8fab
·
unverified ·
1 Parent(s): c79b1fd

Fix wandb logging (#42)

Browse files

Co-authored-by: Srini Iyer <sviyer@meta.com>

Files changed (1) hide show
  1. bytelatent/metrics.py +2 -3
bytelatent/metrics.py CHANGED
@@ -4,7 +4,6 @@
4
  import json
5
  import logging
6
  from collections import namedtuple
7
- from dataclasses import asdict
8
  from datetime import datetime, timezone
9
  from pathlib import Path
10
  from typing import Any, Union
@@ -68,8 +67,8 @@ class MetricLogger:
68
  and get_is_master()
69
  ):
70
  run = wandb.init(
71
- config=asdict(self.args),
72
- **asdict(self.args.logging.wandb),
73
  )
74
 
75
  def log(self, metrics: dict[str, Any]):
 
4
  import json
5
  import logging
6
  from collections import namedtuple
 
7
  from datetime import datetime, timezone
8
  from pathlib import Path
9
  from typing import Any, Union
 
67
  and get_is_master()
68
  ):
69
  run = wandb.init(
70
+ config=self.args.model_dump(),
71
+ **self.args.logging.wandb.model_dump(),
72
  )
73
 
74
  def log(self, metrics: dict[str, Any]):