reciprocate
commited on
Commit
•
314cd9d
1
Parent(s):
3829385
Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,7 @@ language:
|
|
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 |
|
@@ -18,5 +18,10 @@ tokenizer = AutoTokenizer.from_pretrained("reciprocate/gpt-j_rm_format-oa", revi
|
|
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 |
-
|
22 |
```
|
|
|
|
|
|
|
|
|
|
|
|
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?workspace=user-sorry
|
11 |
|
12 |
Usage:
|
13 |
|
|
|
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 |
+
model(**tokenizer(input, return_tensors="pt"))[0].item()
|
22 |
```
|
23 |
+
|
24 |
+
Output:
|
25 |
+
```python
|
26 |
+
-4.877448558807373
|
27 |
+
```
|