AMindToThink commited on
Commit
f334dd1
·
verified ·
1 Parent(s): 62d5e69

Model save

Browse files
Files changed (2) hide show
  1. README.md +65 -0
  2. generation_config.json +5 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: EleutherAI/pythia-160m
3
+ library_name: transformers
4
+ model_name: ppo_push_main_13
5
+ tags:
6
+ - generated_from_trainer
7
+ licence: license
8
+ ---
9
+
10
+ # Model Card for ppo_push_main_13
11
+
12
+ This model is a fine-tuned version of [EleutherAI/pythia-160m](https://huggingface.co/EleutherAI/pythia-160m).
13
+ It has been trained using [TRL](https://github.com/huggingface/trl).
14
+
15
+ ## Quick start
16
+
17
+ ```python
18
+ from transformers import pipeline
19
+
20
+ 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?"
21
+ generator = pipeline("text-generation", model="AMindToThink/ppo_push_main_13", device="cuda")
22
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
23
+ print(output["generated_text"])
24
+ ```
25
+
26
+ ## Training procedure
27
+
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.17.0.dev0
36
+ - Transformers: 4.51.0
37
+ - Pytorch: 2.6.0
38
+ - Datasets: 3.5.0
39
+ - Tokenizers: 0.21.1
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{\'e}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.51.0"
5
+ }