Spaces:
Running
on
Zero
Running
on
Zero
Fix wandb logging (#42)
Browse filesCo-authored-by: Srini Iyer <sviyer@meta.com>
- 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=
|
72 |
-
**
|
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]):
|