Update README.md
Browse files
README.md
CHANGED
|
@@ -20,10 +20,10 @@ This is a reward model based on Bert Uncased.
|
|
| 20 |
model_name = "entfane/BERT_human_like_RM"
|
| 21 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 22 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 23 |
-
messages = ["How are you doing? Great
|
| 24 |
-
"How are you doing?
|
| 25 |
]
|
| 26 |
input = tokenizer(messages, return_tensors="pt", padding="max_length").to(model.device)
|
| 27 |
-
output = model(**
|
| 28 |
print(output)
|
| 29 |
```
|
|
|
|
| 20 |
model_name = "entfane/BERT_human_like_RM"
|
| 21 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 22 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 23 |
+
messages = ["How are you doing? Great",
|
| 24 |
+
"How are you doing? Greetings! I am doing just fine, may I ask you, how are you doing?"
|
| 25 |
]
|
| 26 |
input = tokenizer(messages, return_tensors="pt", padding="max_length").to(model.device)
|
| 27 |
+
output = model(**input)
|
| 28 |
print(output)
|
| 29 |
```
|