Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,10 +76,10 @@ def generate_prompt(instruction, input=None):
|
|
76 |
|
77 |
### Response:"""
|
78 |
|
79 |
-
|
80 |
model.eval()
|
81 |
-
if torch.__version__ >= "2":
|
82 |
-
model = torch.compile(model)
|
83 |
|
84 |
|
85 |
def evaluate(
|
|
|
76 |
|
77 |
### Response:"""
|
78 |
|
79 |
+
model.half()
|
80 |
model.eval()
|
81 |
+
#if torch.__version__ >= "2":
|
82 |
+
# model = torch.compile(model)
|
83 |
|
84 |
|
85 |
def evaluate(
|