模型:
reciprocate/gpt-j_rm_format-oa
GPT-J用于首选建模
使用方式:
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()
输出:
-4.877448558807373