Update configuration_internvl_chat.py
Browse files
configuration_internvl_chat.py
CHANGED
@@ -49,7 +49,7 @@ class InternVLChatConfig(PretrainedConfig):
|
|
49 |
self.vision_config = InternVisionConfig(**vision_config)
|
50 |
if llm_config.get('architectures')[0] == 'LlamaForCausalLM':
|
51 |
self.llm_config = LlamaConfig(**llm_config)
|
52 |
-
elif llm_config.get
|
53 |
self.llm_config = Phi3Config(**llm_config)
|
54 |
else:
|
55 |
raise ValueError('Unsupported architecture: {}'.format(llm_config.get(['architectures'])[0]))
|
|
|
49 |
self.vision_config = InternVisionConfig(**vision_config)
|
50 |
if llm_config.get('architectures')[0] == 'LlamaForCausalLM':
|
51 |
self.llm_config = LlamaConfig(**llm_config)
|
52 |
+
elif llm_config.get('architectures')0] == 'Phi3ForCausalLM':
|
53 |
self.llm_config = Phi3Config(**llm_config)
|
54 |
else:
|
55 |
raise ValueError('Unsupported architecture: {}'.format(llm_config.get(['architectures'])[0]))
|