czczup commited on
Commit
02e3b79
1 Parent(s): 48a8a83

fix compatibility issue for transformers 4.46+

Browse files
Files changed (1) hide show
  1. configuration_internvl_chat.py +1 -1
configuration_internvl_chat.py CHANGED
@@ -52,7 +52,7 @@ class InternVLChatConfig(PretrainedConfig):
52
  elif llm_config.get('architectures')[0] == 'InternLM2ForCausalLM':
53
  self.llm_config = InternLM2Config(**llm_config)
54
  else:
55
- raise ValueError('Unsupported architecture: {}'.format(llm_config.get(['architectures'])[0]))
56
  self.use_backbone_lora = use_backbone_lora
57
  self.use_llm_lora = use_llm_lora
58
  self.select_layer = select_layer
 
52
  elif llm_config.get('architectures')[0] == 'InternLM2ForCausalLM':
53
  self.llm_config = InternLM2Config(**llm_config)
54
  else:
55
+ raise ValueError('Unsupported architecture: {}'.format(llm_config.get('architectures')[0]))
56
  self.use_backbone_lora = use_backbone_lora
57
  self.use_llm_lora = use_llm_lora
58
  self.select_layer = select_layer