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