JBHF commited on
Commit
3c11bf7
1 Parent(s): a8c5260

Update rag.py

Browse files
Files changed (1) hide show
  1. rag.py +5 -2
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