radna commited on
Commit
664bae3
1 Parent(s): 01488b9

Update modeling_internvl_chat.py

Browse files
Files changed (1) hide show
  1. modeling_internvl_chat.py +1 -1
modeling_internvl_chat.py CHANGED
@@ -347,7 +347,7 @@ class InternVLChatModel(PreTrainedModel):
347
  else:
348
  input_embeds = self.language_model.module.get_input_embeddings()(input_ids)
349
 
350
- outputs = self.language_model.generate(
351
  inputs_embeds=input_embeds,
352
  attention_mask=attention_mask,
353
  generation_config=generation_config,
 
347
  else:
348
  input_embeds = self.language_model.module.get_input_embeddings()(input_ids)
349
 
350
+ outputs = self.language_model.module.generate(
351
  inputs_embeds=input_embeds,
352
  attention_mask=attention_mask,
353
  generation_config=generation_config,