katuni4ka commited on
Commit
4accabb
·
verified ·
1 Parent(s): e3ef4b5

Update configuration_internvl_chat.py

Browse files
Files changed (1) hide show
  1. configuration_internvl_chat.py +1 -1
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['architectures'][0] == 'Phi3ForCausalLM':
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]))