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

Update rag.py

Browse files
Files changed (1) hide show
  1. rag.py +7 -3
rag.py CHANGED
@@ -58,9 +58,13 @@ class ChatPDF:
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
 
66
  self.text_splitter = RecursiveCharacterTextSplitter(chunk_size=1024, chunk_overlap=100)
 
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
+ #
62
+ # tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
63
+ # model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
64
+ #
65
+ # https://huggingface.co/stabilityai/stablelm-3b-4e1t?library=true
66
+ tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-3b-4e1t")
67
+ model = AutoModelForCausalLM.from_pretrained("stabilityai/stablelm-3b-4e1t")
68
 
69
 
70
  self.text_splitter = RecursiveCharacterTextSplitter(chunk_size=1024, chunk_overlap=100)