muellerzr HF staff commited on
Commit
392f741
1 Parent(s): 4f92044
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def calculate_memory(model_name:str, library:str, options:list, access_token:str
81
  for dtype in options:
82
  dtype_total_size = total_size
83
  dtype_largest_layer = largest_layer[0]
84
- if dtype == "float16":
85
  dtype_total_size /= 2
86
  dtype_largest_layer /= 2
87
  elif dtype == "int8":
 
81
  for dtype in options:
82
  dtype_total_size = total_size
83
  dtype_largest_layer = largest_layer[0]
84
+ if dtype in ("float16", "fp16"):
85
  dtype_total_size /= 2
86
  dtype_largest_layer /= 2
87
  elif dtype == "int8":