sugam11 commited on
Commit
6f9026c
1 Parent(s): 5c9837f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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="p
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
  ```