Spaces:
Runtime error
Runtime error
Update rag.py
Browse files
rag.py
CHANGED
@@ -55,8 +55,11 @@ class ChatPDF:
|
|
55 |
# Intended Uses
|
56 |
# Given the nature of the training data, the Phi-2 model is best suited for prompts using the
|
57 |
# QA format, the chat format, and the code format.
|
58 |
-
tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2", trust_remote_code=True)
|
59 |
-
model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2", trust_remote_code=True)
|
|
|
|
|
|
|
60 |
|
61 |
|
62 |
|
|
|
55 |
# Intended Uses
|
56 |
# Given the nature of the training data, the Phi-2 model is best suited for prompts using the
|
57 |
# QA format, the chat format, and the code format.
|
58 |
+
# tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2", trust_remote_code=True)
|
59 |
+
# model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2", trust_remote_code=True)
|
60 |
+
# https://huggingface.co/meta-llama/Llama-2-7b-chat-hf?library=true
|
61 |
+
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
|
62 |
+
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
|
63 |
|
64 |
|
65 |
|