Skip to content

Commit

Permalink
Use tokenizer.save_pretrained api in base_blockwise_sparsification.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-tong authored Jan 11, 2025
1 parent 51a26eb commit 371fbab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ def deploy(self, deploy_format):

@torch.no_grad()
def copy_tokenizer(self, path):
for substring in self.config.save.get('tokenizer_file_substring', ['token']):
copy_files(self.config.model.path, path, substring)
self.model.tokenizer.save_pretrained(path)
logger.info('copy tokenizer done --')

@torch.no_grad()
Expand Down

0 comments on commit 371fbab

Please sign in to comment.