Skip to content

Commit

Permalink
[Fix] Fix dict update in minigpt4. (open-mmlab#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyixiao18 authored Jul 28, 2023
1 parent 0b96dca commit 1f99279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmpretrain/models/multimodal/minigpt4/minigpt4.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def __init__(self,
top_p=0.9,
repetition_penalty=1.0,
length_penalty=1.0,
temperature=1.0,
**generation_cfg)
temperature=1.0)
self.generation_cfg.update(**generation_cfg)

if hasattr(self, 'register_load_state_dict_post_hook'):
self.register_load_state_dict_post_hook(self._load_llama_proj_hook)
Expand Down

0 comments on commit 1f99279

Please sign in to comment.