Akjava commited on
Commit
fd91f3c
·
1 Parent(s): 04e5516
Files changed (1) hide show
  1. app.py +1 -1
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, token=huggingface_token)
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 = []