feat(merge): save tokenizer on merge (#362)
Browse files- 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:
|