Skip to content

Commit bcaf117

Browse files
committed
Add saving in the new format (but no loading yet!)
1 parent 7350035 commit bcaf117

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/transformers/tokenization_utils_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,6 @@ def save_pretrained(
24692469
f.write(template)
24702470
logger.info(f"chat template saved in {template_filepath}")
24712471
saved_raw_chat_template_files.append(template_filepath)
2472-
saved_raw_chat_template = True
24732472
if "chat_template" in tokenizer_config:
24742473
tokenizer_config.pop("chat_template") # To ensure it doesn't somehow end up in the config too
24752474
elif isinstance(self.chat_template, dict):

0 commit comments

Comments
 (0)