feat(merge): save tokenizer on merge (#362)

This commit is contained in:
NanoCode012
2023-08-13 00:18:10 +09:00
committed by GitHub
parent 35c8b90306
commit 289d5c403d

View File

@@ -265,6 +265,7 @@ def train(
if cfg.local_rank == 0:
LOG.info("saving merged model")
model.save_pretrained(str(Path(cfg.output_dir) / "merged"))
tokenizer.save_pretrained(str(Path(cfg.output_dir) / "merged"))
return
if cfg.inference: