Update README.md
Browse files
README.md
CHANGED
@@ -4,9 +4,9 @@ datasets:
|
|
4 |
- Anthropic/hh-rlhf
|
5 |
---
|
6 |
```python
|
7 |
-
from transformers import AutoTokenizer,
|
8 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialogRPT-updown")
|
9 |
-
model = GPT2ForSequenceClassification.from_pretrained("sugam11/gpt2-rlhf-
|
10 |
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
|
11 |
with torch.no_grad():
|
12 |
logits = model(**inputs).logits
|
|
|
4 |
- Anthropic/hh-rlhf
|
5 |
---
|
6 |
```python
|
7 |
+
from transformers import AutoTokenizer, GPT2ForSequenceClassification
|
8 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/DialogRPT-updown")
|
9 |
+
model = GPT2ForSequenceClassification.from_pretrained("sugam11/gpt2-rlhf-reward")
|
10 |
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
|
11 |
with torch.no_grad():
|
12 |
logits = model(**inputs).logits
|