Feature Extraction
Transformers
Safetensors
diva
custom_code
WillHeld commited on
Commit
1310f5e
1 Parent(s): a7ff5b3

Update modeling_diva.py

Browse files
Files changed (1) hide show
  1. modeling_diva.py +3 -1
modeling_diva.py CHANGED
@@ -284,7 +284,9 @@ class DiVAModel(PreTrainedModel):
284
  while greedy != 128009 and len(outs) < max_new_tokens:
285
  past_key_values = outputs.past_key_values if outputs else None
286
  outputs = self.llama_decoder(
287
- inputs_embeds=inputs_embeds,
 
 
288
  return_dict=True,
289
  output_hidden_states=True,
290
  past_key_values=past_key_values,
 
284
  while greedy != 128009 and len(outs) < max_new_tokens:
285
  past_key_values = outputs.past_key_values if outputs else None
286
  outputs = self.llama_decoder(
287
+ inputs_embeds=.to(
288
+ self.llama_decoder.model.embed_tokens.weight.device
289
+ ).half(),
290
  return_dict=True,
291
  output_hidden_states=True,
292
  past_key_values=past_key_values,