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

Update modeling_diva.py

Browse files
Files changed (1) hide show
  1. modeling_diva.py +1 -1
modeling_diva.py CHANGED
@@ -88,7 +88,7 @@ class DiVAModel(PreTrainedModel):
88
  torch_dtype=torch.float16,
89
  )
90
  self.processor = AutoProcessor.from_pretrained(config_dict["reference_encoder"])
91
- self.tokenizer = AutoTokenizer.from_pretrained(config_dict["reference_decoder"])
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]
 
88
  torch_dtype=torch.float16,
89
  )
90
  self.processor = AutoProcessor.from_pretrained(config_dict["reference_encoder"])
91
+ self.tokenizer = AutoTokenizer.from_pretrained(config_dict["reference_decoder"], use_fast=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]