czczup commited on
Commit
e426377
1 Parent(s): 9ed07ff

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
@@ -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(['architectures'])[0]))
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