mirror of
https://github.com/FlagOpen/FlagEmbedding.git
synced 2026-01-06 12:11:45 +00:00
rm print(self.model) in trainer.py for reranker
This commit is contained in:
parent
a08f3524c5
commit
6c448d7065
@ -29,7 +29,6 @@ class EncoderOnlyRerankerTrainer(AbsRerankerTrainer):
|
||||
if not hasattr(self.model, 'save_pretrained'):
|
||||
raise NotImplementedError(f'MODEL {self.model.__class__.__name__} ' f'does not support save_pretrained interface')
|
||||
else:
|
||||
print(self.model)
|
||||
self.model.save_pretrained(output_dir)
|
||||
if self.tokenizer is not None and self.is_world_process_zero():
|
||||
self.tokenizer.save_pretrained(output_dir)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user