update readme
Browse files
README.md
CHANGED
@@ -37,7 +37,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
37 |
from peft import PeftModel, PeftConfig
|
38 |
config = PeftConfig.from_pretrained("mainlp/MCQ-Classifier-MMLU-EFG")
|
39 |
base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
|
40 |
-
model = PeftModel.from_pretrained(base_model, "mainlp/MCQ-Classifier-EFG")
|
41 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
|
42 |
to_classify = f"""<s>[INST] Classify the response.{inputs} [/INST]"""
|
43 |
model_input = tokenizer(to_classify, return_tensors="pt")
|
|
|
37 |
from peft import PeftModel, PeftConfig
|
38 |
config = PeftConfig.from_pretrained("mainlp/MCQ-Classifier-MMLU-EFG")
|
39 |
base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
|
40 |
+
model = PeftModel.from_pretrained(base_model, "mainlp/MCQ-Classifier--MMLU-EFG")
|
41 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1")
|
42 |
to_classify = f"""<s>[INST] Classify the response.{inputs} [/INST]"""
|
43 |
model_input = tokenizer(to_classify, return_tensors="pt")
|