Nanobit commited on
Commit
289d5c4
1 Parent(s): 35c8b90

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

Browse files
Files changed (1) hide show
  1. scripts/finetune.py +1 -0
scripts/finetune.py CHANGED
@@ -265,6 +265,7 @@ def train(
265
  if cfg.local_rank == 0:
266
  LOG.info("saving merged model")
267
  model.save_pretrained(str(Path(cfg.output_dir) / "merged"))
 
268
  return
269
 
270
  if cfg.inference:
 
265
  if cfg.local_rank == 0:
266
  LOG.info("saving merged model")
267
  model.save_pretrained(str(Path(cfg.output_dir) / "merged"))
268
+ tokenizer.save_pretrained(str(Path(cfg.output_dir) / "merged"))
269
  return
270
 
271
  if cfg.inference: