feat: ProgressBarCallback 支持日志行输出到 stdout

- serialization 和 metric_logger 的 timestamp 统一使用 ISO 8601 格式
- ProgressBarCallback 新增 log_interval/file 参数,默认输出到 sys.stdout
This commit is contained in:
2026-05-19 19:12:38 +08:00
parent 45479b5731
commit 64be81b7b3
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class Checkpoint:
meta = {
"epoch": self.epoch,
"iteration": self.iteration,
"timestamp": time.time(),
"timestamp": time.strftime("%Y-%m-%dT%H:%M:%S"),
}
meta.update(self.meta)
with open(save_path / "meta.json", "w") as f: