fix compatibility issue for transformers 4.46+
Browse files
configuration_internvl_chat.py
CHANGED
@@ -51,7 +51,7 @@ class InternVLChatConfig(PretrainedConfig):
|
|
51 |
elif llm_config.get('architectures')[0] == 'Qwen2ForCausalLM':
|
52 |
self.llm_config = Qwen2Config(**llm_config)
|
53 |
else:
|
54 |
-
raise ValueError('Unsupported architecture: {}'.format(llm_config.get(
|
55 |
self.use_backbone_lora = use_backbone_lora
|
56 |
self.use_llm_lora = use_llm_lora
|
57 |
self.select_layer = select_layer
|
|
|
51 |
elif llm_config.get('architectures')[0] == 'Qwen2ForCausalLM':
|
52 |
self.llm_config = Qwen2Config(**llm_config)
|
53 |
else:
|
54 |
+
raise ValueError('Unsupported architecture: {}'.format(llm_config.get('architectures')[0]))
|
55 |
self.use_backbone_lora = use_backbone_lora
|
56 |
self.use_llm_lora = use_llm_lora
|
57 |
self.select_layer = select_layer
|