AMindToThink commited on
Commit
32300a0
·
verified ·
1 Parent(s): 3b11991

End of training

Browse files
Files changed (5) hide show
  1. README.md +66 -0
  2. config.json +1 -1
  3. generation_config.json +5 -0
  4. model.safetensors +1 -1
  5. training_args.bin +2 -2
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: EleutherAI/pythia-160m
3
+ datasets: trl-internal-testing/descriptiveness-sentiment-trl-style
4
+ library_name: transformers
5
+ model_name: ppo
6
+ tags:
7
+ - generated_from_trainer
8
+ licence: license
9
+ ---
10
+
11
+ # Model Card for ppo
12
+
13
+ This model is a fine-tuned version of [EleutherAI/pythia-160m](https://huggingface.co/EleutherAI/pythia-160m) 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="AMindToThink/ppo", 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.17.0.dev0
37
+ - Transformers: 4.51.3
38
+ - Pytorch: 2.6.0
39
+ - Datasets: 3.5.0
40
+ - Tokenizers: 0.21.1
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{\'e}dec},
61
+ year = 2020,
62
+ journal = {GitHub repository},
63
+ publisher = {GitHub},
64
+ howpublished = {\url{https://github.com/huggingface/trl}}
65
+ }
66
+ ```
config.json CHANGED
@@ -24,7 +24,7 @@
24
  "rotary_pct": 0.25,
25
  "tie_word_embeddings": false,
26
  "torch_dtype": "float32",
27
- "transformers_version": "4.51.0",
28
  "use_cache": true,
29
  "use_parallel_residual": true,
30
  "vocab_size": 50304
 
24
  "rotary_pct": 0.25,
25
  "tie_word_embeddings": false,
26
  "torch_dtype": "float32",
27
+ "transformers_version": "4.51.3",
28
  "use_cache": true,
29
  "use_parallel_residual": true,
30
  "vocab_size": 50304
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "transformers_version": "4.51.3"
5
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b8b262ac0ba86d3a3ef9bc0c31362c8569f66cf2c1ac0b9b1030d844b0e655b0
3
  size 649308728
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26cf42976978284eb7e962fc808f25038c242f8a70780e1870876abcd891c35f
3
  size 649308728
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d9c01b79c918572bc6bd707aa83504882309975a467b640980038b79497740ae
3
- size 6136
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6721a4e93544f77901db1c1027779e1eb69e384e0be0a01b27da4e349cc54e3
3
+ size 6200