Skip to content

Commit d188e72

Browse files
committed
quickfix, bad PR happened
1 parent b2e0cda commit d188e72

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616
"watchdog>=3.0.0",
1717
"xdg>=6.0.0",
1818
"accelerate>=0.21.0",
19-
"transformers>=4.18.0",
19+
"transformers>=4.32.1",
2020
"flask>=2.3.2",
2121
"flask_cors>=4.0.0",
2222
"llama-index>=0.7.7",

src/llm_vm/onsite_llm.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
BertTokenizer,
1111
OPTForCausalLM,
1212
BloomForCausalLM,
13-
Llama2Tokenizer,
14-
Llama2ForCausalLM,
1513
GPTNeoForCausalLM,
1614
GPTNeoXForCausalLM,
1715
GPT2Tokenizer,
@@ -300,9 +298,9 @@ class Small_Local_LLama(Base_Onsite_LLM):
300298
model_uri="meta-llama/Llama-2-7b"
301299

302300
def model_loader(self):
303-
return Llama2ForCausalLM.from_pretrained(self.model_uri)
301+
return LlamaForCausalLM.from_pretrained(self.model_uri)
304302
def tokenizer_loader(self):
305-
return Llama2Tokenizer.from_pretrained(self.model_uri)
303+
return AutoTokenizer.from_pretrained(self.model_uri)
306304

307305
@RegisterModelClass("flan")# our yummiest model based on similarity to food
308306
class Small_Local_Flan_T5(Base_Onsite_LLM):

0 commit comments

Comments
 (0)