train finetune

This commit is contained in:
游雁 2024-02-20 19:36:18 +08:00
parent 96e4ff1870
commit c0011994f0
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ train_set=train
valid_set=dev
test_sets="dev test"
config=paraformer_conformer_12e_6d_2048_256.yaml
config=transformer_12e_6d_2048_256.yaml
model_dir="baseline_$(basename "${config}" .yaml)_${lang}_${token_type}_${tag}"

View File

@ -276,7 +276,7 @@ class Trainer:
description = (
f"rank: {self.local_rank}, "
f"epoch: {epoch}/{self.max_epoch}, "
f"step: {batch_idx}/{len(self.dataloader_train)}, total: {self.batch_total}, "
f"step: {batch_idx+1}/{len(self.dataloader_train)}, total: {self.batch_total}, "
f"(loss: {loss.detach().cpu().item():.3f}), "
f"{[(k, round(v.cpu().item(), 3)) for k, v in stats.items()]}, "
f"{speed_stats}, "
@ -341,7 +341,7 @@ class Trainer:
description = (
f"rank: {self.local_rank}, "
f"validation epoch: {epoch}/{self.max_epoch}, "
f"step: {batch_idx}/{len(self.dataloader_val)}, "
f"step: {batch_idx+1}/{len(self.dataloader_val)}, "
f"(loss: {loss.detach().cpu().item():.3f}), "
f"{[(k, round(v.cpu().item(), 3)) for k, v in stats.items()]}, "
f"{speed_stats}, "