reciprocate
commited on
Commit
•
3829385
1
Parent(s):
501f895
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
---
|
6 |
+
|
7 |
+
GPT-J for preference modeling
|
8 |
+
|
9 |
+
- Dataset: https://huggingface.co/datasets/reciprocate/oasst_hh_shp_hellaswag_webgpt_rm_dataset
|
10 |
+
- Logs: https://wandb.ai/sorry/autocrit/runs/y9des5kz
|
11 |
+
|
12 |
+
Usage:
|
13 |
+
|
14 |
+
```python
|
15 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
16 |
+
|
17 |
+
tokenizer = AutoTokenizer.from_pretrained("reciprocate/gpt-j_rm_format-oa", revision="501f895")
|
18 |
+
model = AutoModelForSequenceClassification.from_pretrained("reciprocate/gpt-j_rm_format-oa", revision="501f895")
|
19 |
+
|
20 |
+
input = "<|prompter|>Are you lying right now?</s><|assistant|>I am :)</s><|endoftext|>"
|
21 |
+
score = model(**tokenizer(input, return_tensors="pt"))[0]
|
22 |
+
```
|