Feature Extraction
Transformers
Safetensors
diva
custom_code
WillHeld commited on
Commit
6e761b1
1 Parent(s): fd6bf89

Update modeling_diva.py

Browse files
Files changed (1) hide show
  1. modeling_diva.py +1 -1
modeling_diva.py CHANGED
@@ -92,7 +92,7 @@ class DiVAModel(PreTrainedModel):
92
  if self.tokenizer.pad_token_id == None:
93
  override_token = list(self.tokenizer.added_tokens_decoder.items())[-1]
94
  self.tokenizer.pad_token_id = override_token[0]
95
- self.tokenizer.pad_tokn = str(override_token[1])
96
  prefix, suffix = self.tokenizer.apply_chat_template(
97
  [{"role": "user", "content": "PLACEHOLDER"}],
98
  tokenize=False,
 
92
  if self.tokenizer.pad_token_id == None:
93
  override_token = list(self.tokenizer.added_tokens_decoder.items())[-1]
94
  self.tokenizer.pad_token_id = override_token[0]
95
+ self.tokenizer.pad_token = str(override_token[1])
96
  prefix, suffix = self.tokenizer.apply_chat_template(
97
  [{"role": "user", "content": "PLACEHOLDER"}],
98
  tokenize=False,