Skip to content

Commit

Permalink
rm print(self.model) in trainer.py for reranker
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhainebula committed Nov 15, 2024
1 parent a08f352 commit 6c448d7
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def _save(self, output_dir: Optional[str] = None, state_dict=None):
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)
Expand Down

0 comments on commit 6c448d7

Please sign in to comment.