Commit
·
41f353d
1
Parent(s):
a91f060
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
OpenLLama-13B for reward modeling
|
| 8 |
+
|
| 9 |
+
- Dataset: https://huggingface.co/datasets/pvduy/rm_oa_hh
|
| 10 |
+
- Logs: https://wandb.ai/sorry/autocrit/runs/j05t4e97?workspace=user-sorry
|
| 11 |
+
- Code: https://github.com/CarperAI/autocrit/blob/main/train_reward_model.py
|
| 12 |
+
|
| 13 |
+
Usage:
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 17 |
+
|
| 18 |
+
ckpt = "reciprocate/openllama-13b_rm_oasst-hh"
|
| 19 |
+
model = AutoModelForSequenceClassification.from_pretrained(ckpt, load_in_4bit=True)
|
| 20 |
+
tokenizer = AutoTokenizer.from_pretrained(ckpt)
|
| 21 |
+
|
| 22 |
+
model(**tokenizer("ASSISTANT: This sentence is a lie.", return_tensors="pt"))[0].item()
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Output:
|
| 26 |
+
```python
|
| 27 |
+
-1.626953125
|
| 28 |
+
```
|