Upload app.py
Browse files
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 |
|