fc91
/

Transformers
Safetensors
fc91 commited on
Commit
a48f42e
·
verified ·
1 Parent(s): aec66d6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -123,9 +123,9 @@ model = PeftModel.from_pretrained(base_model, peft_model_id)
123
  tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
124
 
125
  messages = [
126
- {"role": "system", "content": "You are a helpful AI assistant that grounds all of its replies in ethical theories."},
127
- {"role": "user", "content": """I am driving a car, and I have to make a choice. A kid suddenly appeared in the middle of the road chasing a ball. To save the kid, I
128
- can only swerve to the right, but this would entail crashing the car against two pedestrians on the sidewalk. What should I do?"""},
129
  ]
130
 
131
  pipe = pipeline(
 
123
  tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
124
 
125
  messages = [
126
+ {"role": "system", "content": "You are a helpful AI assistant sensitive to ethical concerns. Carefully read interpret the user prompt under a [SPECIFY ETHICAL THEORY] perspective. Does it represent an 'ethical' or an 'unethical' [SPECIFY ETHICAL THEORY] reply? Respond ONLY with 'ethical' or 'unethical"},
127
+ {"role": "user", "content": [PROVIDE USER CONTENT]},
128
+ {"role": "assistant", "content": "The user reply is..."},
129
  ]
130
 
131
  pipe = pipeline(