Skip to content

Commit

Permalink
fix Qwen/Qwen2-VL-2B-Instruct
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Sep 20, 2024
1 parent 9ee6abe commit a89ac77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lmdeploy/vl/model/qwen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def build_model(self):
with init_empty_weights():
config = self.hf_config
config.quantization_config = {} # disable vision part quantization
# disable accelerate check_tied_parameters_in_config
# for Qwen2-VL-2B-Instruct
config.tie_word_embeddings = False

from transformers import Qwen2VLForConditionalGeneration
model = Qwen2VLForConditionalGeneration._from_config(config)
Expand Down

0 comments on commit a89ac77

Please sign in to comment.