fix webui val size

Former-commit-id: 490c067d4e0828832e0ebdb704a9207dc974b15b
This commit is contained in:
hiyouga
2023-08-10 15:20:44 +08:00
parent 5f0d0d6b9b
commit 69302c4420
3 changed files with 8 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ class Runner:
gradient_accumulation_steps: int,
lr_scheduler_type: str,
max_grad_norm: str,
dev_ratio: float,
val_size: float,
logging_steps: int,
save_steps: int,
warmup_steps: int,
@@ -139,8 +139,8 @@ class Runner:
output_dir=output_dir
)
if dev_ratio > 1e-6:
args["dev_ratio"] = dev_ratio
if val_size > 1e-6:
args["val_size"] = val_size
args["evaluation_strategy"] = "steps"
args["eval_steps"] = save_steps
args["load_best_model_at_end"] = True