Skip to content

Commit

Permalink
Fix internvl2-40b awq inference (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan authored Jul 15, 2024
1 parent 9c8e38e commit 9f3e748
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lmdeploy/turbomind/deploy/source_model/internvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ class InternVLAwqReader(LlamaAwqReader):
norm_weight_key = 'language_model.model.norm.weight'
output_weight_key = 'language_model.lm_head.weight'

def __init__(self, new_params: dict, unused_params: dict, last_bin: bool,
model_cfg: dict):
model_cfg = model_cfg.get('llm_config')
super().__init__(new_params, unused_params, last_bin, model_cfg)


class InternVL2AwqReader(InternLM2AwqReader):
"""InternVLReader for InternLM2 model."""
Expand Down

0 comments on commit 9f3e748

Please sign in to comment.