joaoluislins commited on
Commit
822735f
·
verified ·
1 Parent(s): 45f1ce6

Model save

Browse files
Files changed (1) hide show
  1. README.md +64 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ model_name: trained_ppo_model
4
+ tags:
5
+ - generated_from_trainer
6
+ licence: license
7
+ ---
8
+
9
+ # Model Card for trained_ppo_model
10
+
11
+ This model is a fine-tuned version of [None](https://huggingface.co/None).
12
+ It has been trained using [TRL](https://github.com/huggingface/trl).
13
+
14
+ ## Quick start
15
+
16
+ ```python
17
+ from transformers import pipeline
18
+
19
+ 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?"
20
+ generator = pipeline("text-generation", model="joaoluislins/trained_ppo_model", device="cuda")
21
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
22
+ print(output["generated_text"])
23
+ ```
24
+
25
+ ## Training procedure
26
+
27
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/stevens_ml/huggingface/runs/o7ck84zq)
28
+
29
+
30
+ This model was trained with PPO, a method introduced in [Fine-Tuning Language Models from Human Preferences](https://huggingface.co/papers/1909.08593).
31
+
32
+ ### Framework versions
33
+
34
+ - TRL: 0.13.0
35
+ - Transformers: 4.46.2
36
+ - Pytorch: 2.5.1
37
+ - Datasets: 3.2.0
38
+ - Tokenizers: 0.20.3
39
+
40
+ ## Citations
41
+
42
+ Cite PPO as:
43
+
44
+ ```bibtex
45
+ @article{mziegler2019fine-tuning,
46
+ title = {{Fine-Tuning Language Models from Human Preferences}},
47
+ 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},
48
+ year = 2019,
49
+ eprint = {arXiv:1909.08593}
50
+ }
51
+ ```
52
+
53
+ Cite TRL as:
54
+
55
+ ```bibtex
56
+ @misc{vonwerra2022trl,
57
+ title = {{TRL: Transformer Reinforcement Learning}},
58
+ 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},
59
+ year = 2020,
60
+ journal = {GitHub repository},
61
+ publisher = {GitHub},
62
+ howpublished = {\url{https://github.com/huggingface/trl}}
63
+ }
64
+ ```