Deci
/

Text Generation
Transformers
Safetensors
deci
custom_code
tomer-deci commited on
Commit
c4af0b5
1 Parent(s): a0f5f66

Update tokenization_decicoder.py

Browse files

tokenizer.save_pretrained bug fix

Files changed (1) hide show
  1. tokenization_decicoder.py +1 -1
tokenization_decicoder.py CHANGED
@@ -55,6 +55,6 @@ class DeciCoderTokenizer(CodeGen25Tokenizer):
55
  Removing it from the tokenizer_config.json does not affect from_pretrained().
56
  """
57
  add_special_tokens = self.add_special_tokens
58
- self.add_special_tokens = None
59
  super().save_pretrained(*args, **kwargs)
60
  self.add_special_tokens = add_special_tokens
 
55
  Removing it from the tokenizer_config.json does not affect from_pretrained().
56
  """
57
  add_special_tokens = self.add_special_tokens
58
+ self.add_special_tokens = True
59
  super().save_pretrained(*args, **kwargs)
60
  self.add_special_tokens = add_special_tokens