Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
t0-0
commited on
Commit
•
69825da
1
Parent(s):
0bc63dd
Remove unused code
Browse files- src/submission/submit.py +1 -3
src/submission/submit.py
CHANGED
@@ -35,9 +35,7 @@ def add_new_eval(
|
|
35 |
return styled_error(f'Model "{model_id}" {error}')
|
36 |
if precision == "auto":
|
37 |
dtype = ""
|
38 |
-
if hasattr(config, "
|
39 |
-
dtype = config.dtype
|
40 |
-
elif hasattr(config, "torch_dtype"):
|
41 |
dtype = config.torch_dtype
|
42 |
if dtype == torch.float16:
|
43 |
precision = "float16"
|
|
|
35 |
return styled_error(f'Model "{model_id}" {error}')
|
36 |
if precision == "auto":
|
37 |
dtype = ""
|
38 |
+
if hasattr(config, "torch_dtype"):
|
|
|
|
|
39 |
dtype = config.torch_dtype
|
40 |
if dtype == torch.float16:
|
41 |
precision = "float16"
|