Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import mdtex2html
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
tokenizer = AutoTokenizer.from_pretrained("batmanmodel", trust_remote_code=True)
|
| 8 |
-
model = AutoModel.from_pretrained("batmanmodel", trust_remote_code=True).half().cuda()
|
| 9 |
model = model.eval()
|
| 10 |
|
| 11 |
"""Override Chatbot.postprocess"""
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
tokenizer = AutoTokenizer.from_pretrained("batmanmodel", trust_remote_code=True)
|
| 8 |
+
model = AutoModel.from_pretrained("batmanmodel", trust_remote_code=True).quantize(4).half().cuda()
|
| 9 |
model = model.eval()
|
| 10 |
|
| 11 |
"""Override Chatbot.postprocess"""
|