End of training
Browse files- README.md +66 -0
- generation_config.json +5 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-Collaborative-Pythia-70M-test-a1
|
6 |
+
tags:
|
7 |
+
- generated_from_trainer
|
8 |
+
licence: license
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Card for FedPPO-Collaborative-Pythia-70M-test-a1
|
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-Collaborative-Pythia-70M-test-a1", 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 |
+
|
32 |
+
This model was trained with PPO, a method introduced in [Fine-Tuning Language Models from Human Preferences](https://huggingface.co/papers/1909.08593).
|
33 |
+
|
34 |
+
### Framework versions
|
35 |
+
|
36 |
+
- TRL: 0.13.0
|
37 |
+
- Transformers: 4.47.1
|
38 |
+
- Pytorch: 2.5.1
|
39 |
+
- Datasets: 3.2.0
|
40 |
+
- Tokenizers: 0.21.0
|
41 |
+
|
42 |
+
## Citations
|
43 |
+
|
44 |
+
Cite PPO as:
|
45 |
+
|
46 |
+
```bibtex
|
47 |
+
@article{mziegler2019fine-tuning,
|
48 |
+
title = {{Fine-Tuning Language Models from Human Preferences}},
|
49 |
+
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},
|
50 |
+
year = 2019,
|
51 |
+
eprint = {arXiv:1909.08593}
|
52 |
+
}
|
53 |
+
```
|
54 |
+
|
55 |
+
Cite TRL as:
|
56 |
+
|
57 |
+
```bibtex
|
58 |
+
@misc{vonwerra2022trl,
|
59 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
60 |
+
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},
|
61 |
+
year = 2020,
|
62 |
+
journal = {GitHub repository},
|
63 |
+
publisher = {GitHub},
|
64 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
65 |
+
}
|
66 |
+
```
|
generation_config.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"transformers_version": "4.47.1"
|
5 |
+
}
|