Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ model_id = "openbmb/MiniCPM-2B-dpo-bf16"
|
|
| 16 |
device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 17 |
dtype = torch.bfloat16
|
| 18 |
|
| 19 |
-
tokenizer = AutoTokenizer.from_pretrained(model_id,
|
| 20 |
|
| 21 |
print(model_id,device,dtype)
|
| 22 |
histories = []
|
|
|
|
| 16 |
device = "auto" # torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 17 |
dtype = torch.bfloat16
|
| 18 |
|
| 19 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id,trust_remote_code=True)
|
| 20 |
|
| 21 |
print(model_id,device,dtype)
|
| 22 |
histories = []
|