Downloads · 30 days
6
0% of all-time downloads
reciprocate/gpt-j_rm_format-oa
gpt-j_rm_format-oa is a text classification model from reciprocate. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
6
0% of all-time downloads
All-time downloads
60K
Public
Repo size
23.6 GB
Likes
0
Public
Click a slice to open those files.
.bin11.8 GB · 100%
From the Hugging Face model README
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|>"
model(**tokenizer(input, return_tensors="pt"))[0].item()
Output:
-4.877448558807373