qingshan777 commited on
Commit
6e5ab57
1 Parent(s): 1bca96c

Update modeling_360vl.py

Browse files
Files changed (1) hide show
  1. modeling_360vl.py +0 -12
modeling_360vl.py CHANGED
@@ -1,5 +1,4 @@
1
  from typing import List, Optional, Tuple, Union
2
- import logger
3
 
4
  import torch
5
  import torch.nn as nn
@@ -181,17 +180,6 @@ class HoneybeeVisualProjectorConfig(PretrainedConfig):
181
  if config_dict.get("model_type") == "QH_360VL":
182
  config_dict = config_dict["visual_projector_config"]
183
 
184
- '''
185
- if (
186
- "model_type" in config_dict
187
- and hasattr(cls, "model_type")
188
- and config_dict["model_type"] != cls.model_type
189
- ):
190
- logger.warning(
191
- f"You are using a model of type {config_dict['model_type']} to instantiate a model of type "
192
- f"{cls.model_type}. This is not supported for all configurations of models and can yield errors."
193
- )
194
- '''
195
 
196
  return cls.from_dict(config_dict, **kwargs)
197
 
 
1
  from typing import List, Optional, Tuple, Union
 
2
 
3
  import torch
4
  import torch.nn as nn
 
180
  if config_dict.get("model_type") == "QH_360VL":
181
  config_dict = config_dict["visual_projector_config"]
182
 
 
 
 
 
 
 
 
 
 
 
 
183
 
184
  return cls.from_dict(config_dict, **kwargs)
185