gpt-j_rm_format-oa / README.md
reciprocate's picture
Create README.md
3829385
|
raw
history blame
680 Bytes
metadata
license: apache-2.0
language:
  - en

GPT-J for preference modeling

Usage:

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("reciprocate/gpt-j_rm_format-oa", revision="501f895")
model = AutoModelForSequenceClassification.from_pretrained("reciprocate/gpt-j_rm_format-oa", revision="501f895")

input = "<|prompter|>Are you lying right now?</s><|assistant|>I am :)</s><|endoftext|>"
score = model(**tokenizer(input, return_tensors="pt"))[0]