Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ from modeling_llama import LlamaForCausalLM
|
|
53 |
# model_id
|
54 |
# )
|
55 |
model = LlamaForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, trust_remote_code=True, low_cpu_mem_usage=True, device_map="auto")
|
56 |
-
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
57 |
tokenizer.use_default_system_prompt = False
|
58 |
|
59 |
import PyPDF2
|
|
|
53 |
# model_id
|
54 |
# )
|
55 |
model = LlamaForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, trust_remote_code=True, low_cpu_mem_usage=True, device_map="auto")
|
56 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True, use_fast=False)
|
57 |
tokenizer.use_default_system_prompt = False
|
58 |
|
59 |
import PyPDF2
|