Update src/submission/check_validity.py

#509
Files changed (1) hide show
  1. src/submission/check_validity.py +1 -1
src/submission/check_validity.py CHANGED
@@ -65,7 +65,7 @@ def is_model_on_hub(model_name: str, revision: str, token: str = None, trust_rem
65
 
66
 
67
  def get_model_size(model_info: ModelInfo, precision: str):
68
- size_pattern = size_pattern = re.compile(r"(\d\.)?\d+(b|m)")
69
  try:
70
  model_size = round(model_info.safetensors["total"] / 1e9, 3)
71
  except (AttributeError, TypeError ):
 
65
 
66
 
67
  def get_model_size(model_info: ModelInfo, precision: str):
68
+ size_pattern = size_pattern = re.compile(r"(\d+\.)?\d+(b|m)")
69
  try:
70
  model_size = round(model_info.safetensors["total"] / 1e9, 3)
71
  except (AttributeError, TypeError ):