Text Generation
PEFT
English
hate speech
conversational
palomapiot commited on
Commit
a6bede0
1 Parent(s): 2c6e48b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -35,7 +35,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, Conversation, pipe
35
 
36
  # Load the model
37
  config = PeftConfig.from_pretrained("irlab-udc/Mistral-7b-Stop-Hate")
38
- base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
39
  model = PeftModel.from_pretrained(base_model, "irlab-udc/Mistral-7b-Stop-Hate")
40
  tokenizer = AutoTokenizer.from_pretrained("irlab-udc/Mistral-7b-Stop-Hate")
41
 
 
35
 
36
  # Load the model
37
  config = PeftConfig.from_pretrained("irlab-udc/Mistral-7b-Stop-Hate")
38
+ base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2", config=config)
39
  model = PeftModel.from_pretrained(base_model, "irlab-udc/Mistral-7b-Stop-Hate")
40
  tokenizer = AutoTokenizer.from_pretrained("irlab-udc/Mistral-7b-Stop-Hate")
41