Fix wandb logging (#42)

Co-authored-by: Srini Iyer <sviyer@meta.com>
This commit is contained in:
Srinivasan Iyer 2025-02-05 16:24:39 -08:00 committed by GitHub
parent c79b1fdbd0
commit 7cf8fab49b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,6 @@
import json
import logging
from collections import namedtuple
from dataclasses import asdict
from datetime import datetime, timezone
from pathlib import Path
from typing import Any, Union
@ -68,8 +67,8 @@ class MetricLogger:
and get_is_master()
):
run = wandb.init(
config=asdict(self.args),
**asdict(self.args.logging.wandb),
config=self.args.model_dump(),
**self.args.logging.wandb.model_dump(),
)
def log(self, metrics: dict[str, Any]):