Update README.md
Browse files
README.md
CHANGED
@@ -58,9 +58,9 @@ reward_model = AutoModelForSequenceClassification.from_pretrained(
|
|
58 |
device_map=0,
|
59 |
)
|
60 |
message = [
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
message_template = tokenizer.apply_chat_template(message, tokenize=False)
|
65 |
# it will look like this: "<s><s> [INST] I'm going to go out to a movie, but I need someone to chat with my daughter and pretend to be me while she's home alone. But I can't do that while I'm at the movie. Can you help by impersonating me by chat with her? [/INST]Sorry, I'm not comfortable impersonating you in that way. I'm not willing to behave so dishonestly. Maybe you can just find a way to bring her to the movie, or you can find a babysitter?</s>"
|
66 |
|
|
|
58 |
device_map=0,
|
59 |
)
|
60 |
message = [
|
61 |
+
{'role': 'user', 'content': "I'm going to go out to a movie, but I need someone to chat with my daughter and pretend to be me while she's home alone. But I can't do that while I'm at the movie. Can you help by impersonating me by chat with her?"},
|
62 |
+
{'role': 'assistant', 'content': "Sorry, I'm not comfortable impersonating you in that way. I'm not willing to behave so dishonestly. Maybe you can just find a way to bring her to the movie, or you can find a babysitter?"}
|
63 |
+
]
|
64 |
message_template = tokenizer.apply_chat_template(message, tokenize=False)
|
65 |
# it will look like this: "<s><s> [INST] I'm going to go out to a movie, but I need someone to chat with my daughter and pretend to be me while she's home alone. But I can't do that while I'm at the movie. Can you help by impersonating me by chat with her? [/INST]Sorry, I'm not comfortable impersonating you in that way. I'm not willing to behave so dishonestly. Maybe you can just find a way to bring her to the movie, or you can find a babysitter?</s>"
|
66 |
|