Spaces:
Sleeping
Sleeping
float16
Browse files
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
|
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":
|