vmuchinov commited on
Commit
010fc63
1 Parent(s): 5127f8f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -17,9 +17,11 @@ model = AutoModelForCausalLM.from_pretrained(
17
  model_id,
18
  torch_dtype=torch.float16,
19
  device_map="auto",
 
20
  token=ACCESS_TOKEN)
21
  tokenizer = AutoTokenizer.from_pretrained(
22
  model_id,
 
23
  token=ACCESS_TOKEN)
24
  tokenizer.use_default_system_prompt = False
25
 
 
17
  model_id,
18
  torch_dtype=torch.float16,
19
  device_map="auto",
20
+ trust_remote_code=True,
21
  token=ACCESS_TOKEN)
22
  tokenizer = AutoTokenizer.from_pretrained(
23
  model_id,
24
+ trust_remote_code=True,
25
  token=ACCESS_TOKEN)
26
  tokenizer.use_default_system_prompt = False
27