End of training
Browse files- README.md +65 -0
- generation_config.json +5 -0
README.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: EleutherAI/pythia-70m-deduped
|
3 |
+
datasets: trl-internal-testing/descriptiveness-sentiment-trl-style
|
4 |
+
library_name: transformers
|
5 |
+
model_name: FedPPO-Isolated-Pythia-70M-a0
|
6 |
+
tags:
|
7 |
+
- generated_from_trainer
|
8 |
+
licence: license
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Card for FedPPO-Isolated-Pythia-70M-a0
|
12 |
+
|
13 |
+
This model is a fine-tuned version of [EleutherAI/pythia-70m-deduped](https://huggingface.co/EleutherAI/pythia-70m-deduped) on the [trl-internal-testing/descriptiveness-sentiment-trl-style](https://huggingface.co/datasets/trl-internal-testing/descriptiveness-sentiment-trl-style) dataset.
|
14 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
15 |
+
|
16 |
+
## Quick start
|
17 |
+
|
18 |
+
```python
|
19 |
+
from transformers import pipeline
|
20 |
+
|
21 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
22 |
+
generator = pipeline("text-generation", model="RLHF-And-Friends/FedPPO-Isolated-Pythia-70M-a0", device="cuda")
|
23 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
24 |
+
print(output["generated_text"])
|
25 |
+
```
|
26 |
+
|
27 |
+
## Training procedure
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
This model was trained with PPO, a method introduced in [Fine-Tuning Language Models from Human Preferences](https://huggingface.co/papers/1909.08593).
|
32 |
+
|
33 |
+
### Framework versions
|
34 |
+
|
35 |
+
- TRL: 0.12.2
|
36 |
+
- Transformers: 4.46.3
|
37 |
+
- Pytorch: 2.5.1
|
38 |
+
- Datasets: 3.2.0
|
39 |
+
- Tokenizers: 0.20.3
|
40 |
+
|
41 |
+
## Citations
|
42 |
+
|
43 |
+
Cite PPO as:
|
44 |
+
|
45 |
+
```bibtex
|
46 |
+
@article{mziegler2019fine-tuning,
|
47 |
+
title = {{Fine-Tuning Language Models from Human Preferences}},
|
48 |
+
author = {Daniel M. Ziegler and Nisan Stiennon and Jeffrey Wu and Tom B. Brown and Alec Radford and Dario Amodei and Paul F. Christiano and Geoffrey Irving},
|
49 |
+
year = 2019,
|
50 |
+
eprint = {arXiv:1909.08593}
|
51 |
+
}
|
52 |
+
```
|
53 |
+
|
54 |
+
Cite TRL as:
|
55 |
+
|
56 |
+
```bibtex
|
57 |
+
@misc{vonwerra2022trl,
|
58 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
59 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
|
60 |
+
year = 2020,
|
61 |
+
journal = {GitHub repository},
|
62 |
+
publisher = {GitHub},
|
63 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
64 |
+
}
|
65 |
+
```
|
generation_config.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"transformers_version": "4.46.3"
|
5 |
+
}
|