Spaces:
Running
on
Zero
Running
on
Zero
da03
commited on
Commit
•
453baa6
1
Parent(s):
b78d734
app.py
CHANGED
@@ -17,6 +17,7 @@ explicit_cot_model = AutoModelForCausalLM.from_pretrained(explicit_cot_model_nam
|
|
17 |
models = {'implicit': implicit_cot_model, 'no': no_cot_model, 'explicit': explicit_cot_model}
|
18 |
|
19 |
[model.to('cuda' if torch.cuda.is_available() else 'cpu') for model in models.values()]
|
|
|
20 |
|
21 |
# Constants
|
22 |
MAX_PRODUCT_DIGITS_PER_MODEL = {'implicit': 100, 'no': 100, 'explicit': 960}
|
|
|
17 |
models = {'implicit': implicit_cot_model, 'no': no_cot_model, 'explicit': explicit_cot_model}
|
18 |
|
19 |
[model.to('cuda' if torch.cuda.is_available() else 'cpu') for model in models.values()]
|
20 |
+
[model.eval() for model in models.values()]
|
21 |
|
22 |
# Constants
|
23 |
MAX_PRODUCT_DIGITS_PER_MODEL = {'implicit': 100, 'no': 100, 'explicit': 960}
|