[t5 tokenizer] add info logs (#9897)
* save fast tokenizer + add info logs * fix tests * remove the saving of fast tokenizer
This commit is contained in:
@@ -295,5 +295,6 @@ class T5Tokenizer(PreTrainedTokenizer):
|
||||
|
||||
if os.path.abspath(self.vocab_file) != os.path.abspath(out_vocab_file):
|
||||
copyfile(self.vocab_file, out_vocab_file)
|
||||
logger.info(f"Copy vocab file to {out_vocab_file}")
|
||||
|
||||
return (out_vocab_file,)
|
||||
|
||||
@@ -160,6 +160,7 @@ class T5TokenizerFast(PreTrainedTokenizerFast):
|
||||
|
||||
if os.path.abspath(self.vocab_file) != os.path.abspath(out_vocab_file):
|
||||
copyfile(self.vocab_file, out_vocab_file)
|
||||
logger.info(f"Copy vocab file to {out_vocab_file}")
|
||||
|
||||
return (out_vocab_file,)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user