aleegis commited on
Commit
5961e47
·
verified ·
1 Parent(s): 31c8e35

End of training

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/gemma-2-9b-it
3
+ library_name: transformers
4
+ model_name: 0bf60b3c-0a0d-49c2-872d-6beb95da9104
5
+ tags:
6
+ - generated_from_trainer
7
+ - axolotl
8
+ - dpo
9
+ - trl
10
+ - unsloth
11
+ licence: license
12
+ ---
13
+
14
+ # Model Card for 0bf60b3c-0a0d-49c2-872d-6beb95da9104
15
+
16
+ This model is a fine-tuned version of [unsloth/gemma-2-9b-it](https://huggingface.co/unsloth/gemma-2-9b-it).
17
+ It has been trained using [TRL](https://github.com/huggingface/trl).
18
+
19
+ ## Quick start
20
+
21
+ ```python
22
+ from transformers import pipeline
23
+
24
+ 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?"
25
+ generator = pipeline("text-generation", model="aleegis/0bf60b3c-0a0d-49c2-872d-6beb95da9104", device="cuda")
26
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
27
+ print(output["generated_text"])
28
+ ```
29
+
30
+ ## Training procedure
31
+
32
+ [<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/onta-tux-doge-moon/Gradients-On-Demand/runs/7z7zepcm)
33
+
34
+ This model was trained with DPO, a method introduced in [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://huggingface.co/papers/2305.18290).
35
+
36
+ ### Framework versions
37
+
38
+ - TRL: 0.12.0.dev0
39
+ - Transformers: 4.46.0
40
+ - Pytorch: 2.5.0+cu124
41
+ - Datasets: 3.0.1
42
+ - Tokenizers: 0.20.1
43
+
44
+ ## Citations
45
+
46
+ Cite DPO as:
47
+
48
+ ```bibtex
49
+ @inproceedings{rafailov2023direct,
50
+ title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
51
+ author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
52
+ year = 2023,
53
+ booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
54
+ url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
55
+ editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
56
+ }
57
+ ```
58
+
59
+ Cite TRL as:
60
+
61
+ ```bibtex
62
+ @misc{vonwerra2022trl,
63
+ title = {{TRL: Transformer Reinforcement Learning}},
64
+ 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},
65
+ year = 2020,
66
+ journal = {GitHub repository},
67
+ publisher = {GitHub},
68
+ howpublished = {\url{https://github.com/huggingface/trl}}
69
+ }
70
+ ```
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:275394b57a4d193e5f749d11d3dccb44155ee1851c87dff51defd629a6958f68
3
+ size 432357050
config.json CHANGED
@@ -1,5 +1,4 @@
1
  {
2
- "_attn_implementation_autoset": true,
3
  "_name_or_path": "unsloth/gemma-2-9b-it",
4
  "architectures": [
5
  "Gemma2ForCausalLM"
 
1
  {
 
2
  "_name_or_path": "unsloth/gemma-2-9b-it",
3
  "architectures": [
4
  "Gemma2ForCausalLM"
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "cache_implementation": "hybrid",
5
+ "do_sample": true,
6
+ "eos_token_id": 1,
7
+ "max_length": 8192,
8
+ "pad_token_id": 0,
9
+ "transformers_version": "4.46.0"
10
+ }
pytorch_model-00001-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1beb4676f23f60ffd3e3d406b52b7aefa609fe8ced59a59abc70daa1164cb606
3
+ size 4983432928
pytorch_model-00002-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:250854d6cb4dee53a8d705ffdd162a91631bdd3a8d68be0cb612965babb84c1a
3
+ size 4985350147
pytorch_model-00003-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf4ea275e4fd437305e1adde9b224d40ea14ad7ba2e4148662bd8a95ac249097
3
+ size 4971757486
pytorch_model-00004-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:176dfc3d4ffb328d3d5e55c97491f5e104d277a156ffe1d1ea0487614a49222d
3
+ size 3975401731
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff