mirror of
https://github.com/OpenBMB/MiniCPM-V.git
synced 2026-02-05 18:29:18 +08:00
tiny fix
This commit is contained in:
@@ -246,7 +246,7 @@ class CPMTrainer(Trainer):
|
|||||||
if self.tokenizer is not None:
|
if self.tokenizer is not None:
|
||||||
self.tokenizer.save_pretrained(output_dir)
|
self.tokenizer.save_pretrained(output_dir)
|
||||||
|
|
||||||
if getattr(self.model, "processor") is not None:
|
if self.model.processor is not None:
|
||||||
self.model.processor.save_pretrained(output_dir)
|
self.model.processor.save_pretrained(output_dir)
|
||||||
|
|
||||||
# Good practice: save your training arguments together with the trained model
|
# Good practice: save your training arguments together with the trained model
|
||||||
|
|||||||
Reference in New Issue
Block a user