fix: 测试日志写入临时目录避免冗余文件

This commit is contained in:
2026-05-24 20:54:59 +08:00
parent 3ab4f237e5
commit 7fa69572c0
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -27,6 +27,7 @@ def test_early_stopping_simulation(base_test_env, early_stopping_dataset):
model=base_test_env["model"],
dataset=early_stopping_dataset,
ckpt_dir=base_test_env["test_dir"],
log_dir=os.path.join(base_test_env["test_dir"], "logs"),
n_epoch=2,
batch_per_device=2,
ckpt_interval=1,