Alphatao commited on
Commit
0d3ab68
·
verified ·
1 Parent(s): 9d347f1

End of training

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/gemma-2-9b
3
+ library_name: transformers
4
+ model_name: d59901cd-6f60-4a21-b281-b810f614ff0f
5
+ tags:
6
+ - generated_from_trainer
7
+ - axolotl
8
+ - dpo
9
+ - trl
10
+ - unsloth
11
+ licence: license
12
+ ---
13
+
14
+ # Model Card for d59901cd-6f60-4a21-b281-b810f614ff0f
15
+
16
+ This model is a fine-tuned version of [unsloth/gemma-2-9b](https://huggingface.co/unsloth/gemma-2-9b).
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="Alphatao/d59901cd-6f60-4a21-b281-b810f614ff0f", 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/alphatao-alphatao/Gradients-On-Demand/runs/6sdzxy7a)
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:7e890a8be24f63d01f07a95ce2288d061b0892f53d8cfc1a8a3e2ca78d5cf4b4
3
+ size 864501434
config.json CHANGED
@@ -1,5 +1,4 @@
1
  {
2
- "_attn_implementation_autoset": true,
3
  "_name_or_path": "unsloth/gemma-2-9b",
4
  "architectures": [
5
  "Gemma2ForCausalLM"
 
1
  {
 
2
  "_name_or_path": "unsloth/gemma-2-9b",
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:f68c53596c758343267fc03368bb7aa73aab499b5f310a2fc523cbe2a81b5bdd
3
+ size 4956103335
pytorch_model-00002-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d69212943fe93678961d15ecdb4d93bbdd3aea01e95a0e88960af859b1b61bac
3
+ size 5000064303
pytorch_model-00003-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f33b7081595299e9ce8e00b38fa580917f0c6f6938d1d875596b15247ab4f2af
3
+ size 4900055984
pytorch_model-00004-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e5224b2ba39a7f38a80475dae1acb676de9e1fddf57667dbe084af7900a4931
3
+ size 4491863522
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff