Update modeling_diva.py
Browse files- 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.
|
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,
|