Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,9 @@ import torch
|
|
6 |
"""Override Chatbot.postprocess"""
|
7 |
|
8 |
|
9 |
-
|
10 |
-
model_path = 'TheBloke/zephyr-7B-beta-GPTQ'
|
11 |
|
12 |
-
device = '
|
13 |
|
14 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, add_prefix_space=True)
|
15 |
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True).to(device)
|
|
|
6 |
"""Override Chatbot.postprocess"""
|
7 |
|
8 |
|
9 |
+
model_path = 'THUDM/BPO'
|
|
|
10 |
|
11 |
+
device = 'cuda'
|
12 |
|
13 |
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True, add_prefix_space=True)
|
14 |
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True).to(device)
|