Changed trust_remote_code=True
Browse files
rag.py
CHANGED
@@ -24,7 +24,7 @@ class RAG:
|
|
24 |
# Tokenizer
|
25 |
self.tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path=self.model_id)
|
26 |
# LLM
|
27 |
-
self.llm_model = AutoModelForCausalLM.from_pretrained(pretrained_model_name_or_path=self.model_id).to(self.device)
|
28 |
|
29 |
def get_embeddings(self) -> list:
|
30 |
"""Returns the embeddings from the csv file"""
|
|
|
24 |
# Tokenizer
|
25 |
self.tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path=self.model_id)
|
26 |
# LLM
|
27 |
+
self.llm_model = AutoModelForCausalLM.from_pretrained(pretrained_model_name_or_path=self.model_id,trust_remote_code=True).to(self.device)
|
28 |
|
29 |
def get_embeddings(self) -> list:
|
30 |
"""Returns the embeddings from the csv file"""
|