treasure4l commited on
Commit
942c373
·
verified ·
1 Parent(s): 4cf8198

End of training

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/mistral-7b-v0.3-bnb-4bit
3
+ library_name: transformers
4
+ model_name: Mistral_7B-DPO
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - dpo
9
+ - unsloth
10
+ licence: license
11
+ ---
12
+
13
+ # Model Card for Mistral_7B-DPO
14
+
15
+ This model is a fine-tuned version of [unsloth/mistral-7b-v0.3-bnb-4bit](https://huggingface.co/unsloth/mistral-7b-v0.3-bnb-4bit).
16
+ It has been trained using [TRL](https://github.com/huggingface/trl).
17
+
18
+ ## Quick start
19
+
20
+ ```python
21
+ from transformers import pipeline
22
+
23
+ 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?"
24
+ generator = pipeline("text-generation", model="treasure4l/Mistral_7B-DPO", device="cuda")
25
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
26
+ print(output["generated_text"])
27
+ ```
28
+
29
+ ## Training procedure
30
+
31
+
32
+
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.13.0
39
+ - Transformers: 4.49.0.dev0
40
+ - Pytorch: 2.1.0+cu118
41
+ - Datasets: 3.2.0
42
+ - Tokenizers: 0.21.0
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_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "unsloth/mistral-7b-v0.3-bnb-4bit",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": false,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": null,
21
+ "peft_type": "LORA",
22
+ "r": 16,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "v_proj",
27
+ "q_proj",
28
+ "k_proj",
29
+ "gate_proj",
30
+ "o_proj",
31
+ "up_proj",
32
+ "down_proj"
33
+ ],
34
+ "task_type": "CAUSAL_LM",
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3216c79cc3f3dcb792e9483861df1582229f938e12a6c3057a49f7a377e49037
3
+ size 167832240
requirements.txt ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ accelerate==1.2.1
2
+ aiohappyeyeballs==2.4.4
3
+ aiohttp==3.11.11
4
+ aiosignal==1.3.2
5
+ anyio==4.0.0
6
+ argon2-cffi==23.1.0
7
+ argon2-cffi-bindings==21.2.0
8
+ arrow==1.3.0
9
+ asttokens==2.4.1
10
+ async-lru==2.0.4
11
+ async-timeout==5.0.1
12
+ attrs==23.1.0
13
+ Babel==2.13.1
14
+ beautifulsoup4==4.12.2
15
+ bleach==6.1.0
16
+ blinker==1.4
17
+ certifi==2022.12.7
18
+ cffi==1.16.0
19
+ charset-normalizer==2.1.1
20
+ comm==0.2.0
21
+ cryptography==3.4.8
22
+ datasets==3.2.0
23
+ dbus-python==1.2.18
24
+ debugpy==1.8.0
25
+ decorator==5.1.1
26
+ defusedxml==0.7.1
27
+ dill==0.3.8
28
+ distro==1.7.0
29
+ einops==0.8.0
30
+ entrypoints==0.4
31
+ exceptiongroup==1.1.3
32
+ executing==2.0.1
33
+ fastjsonschema==2.18.1
34
+ filelock==3.9.0
35
+ fqdn==1.5.1
36
+ frozenlist==1.5.0
37
+ fsspec==2024.9.0
38
+ httplib2==0.20.2
39
+ huggingface-hub==0.27.0
40
+ idna==3.4
41
+ importlib-metadata==4.6.4
42
+ ipykernel==6.26.0
43
+ ipython==8.17.2
44
+ ipython-genutils==0.2.0
45
+ ipywidgets==8.1.1
46
+ isoduration==20.11.0
47
+ jedi==0.19.1
48
+ jeepney==0.7.1
49
+ Jinja2==3.1.2
50
+ json5==0.9.14
51
+ jsonpointer==2.4
52
+ jsonschema==4.19.2
53
+ jsonschema-specifications==2023.7.1
54
+ jupyter-archive==3.4.0
55
+ jupyter-contrib-core==0.4.2
56
+ jupyter-contrib-nbextensions==0.7.0
57
+ jupyter-events==0.9.0
58
+ jupyter-highlight-selected-word==0.2.0
59
+ jupyter-http-over-ws==0.0.8
60
+ jupyter-lsp==2.2.0
61
+ jupyter-nbextensions-configurator==0.6.3
62
+ jupyter_client==7.4.9
63
+ jupyter_core==5.5.0
64
+ jupyter_server==2.10.0
65
+ jupyter_server_terminals==0.4.4
66
+ jupyterlab==4.0.8
67
+ jupyterlab-pygments==0.2.2
68
+ jupyterlab-widgets==3.0.9
69
+ jupyterlab_server==2.25.0
70
+ keyring==23.5.0
71
+ launchpadlib==1.10.16
72
+ lazr.restfulclient==0.14.4
73
+ lazr.uri==1.0.6
74
+ lxml==4.9.3
75
+ markdown-it-py==3.0.0
76
+ MarkupSafe==2.1.2
77
+ matplotlib-inline==0.1.6
78
+ mdurl==0.1.2
79
+ mistune==3.0.2
80
+ more-itertools==8.10.0
81
+ mpmath==1.3.0
82
+ multidict==6.1.0
83
+ multiprocess==0.70.16
84
+ nbclassic==1.0.0
85
+ nbclient==0.9.0
86
+ nbconvert==7.11.0
87
+ nbformat==5.9.2
88
+ nest-asyncio==1.5.8
89
+ networkx==3.0
90
+ notebook==6.5.5
91
+ notebook_shim==0.2.3
92
+ numpy==1.24.1
93
+ oauthlib==3.2.0
94
+ overrides==7.4.0
95
+ packaging==23.2
96
+ pandas==2.2.3
97
+ pandocfilters==1.5.0
98
+ parso==0.8.3
99
+ pexpect==4.8.0
100
+ Pillow==9.3.0
101
+ platformdirs==3.11.0
102
+ prometheus-client==0.18.0
103
+ prompt-toolkit==3.0.39
104
+ propcache==0.2.1
105
+ psutil==5.9.6
106
+ ptyprocess==0.7.0
107
+ pure-eval==0.2.2
108
+ pyarrow==18.1.0
109
+ pycparser==2.21
110
+ Pygments==2.16.1
111
+ PyGObject==3.42.1
112
+ PyJWT==2.3.0
113
+ pyparsing==2.4.7
114
+ python-apt==2.4.0+ubuntu2
115
+ python-dateutil==2.8.2
116
+ python-json-logger==2.0.7
117
+ pytz==2024.2
118
+ PyYAML==6.0.1
119
+ pyzmq==24.0.1
120
+ referencing==0.30.2
121
+ regex==2024.11.6
122
+ requests==2.32.3
123
+ rfc3339-validator==0.1.4
124
+ rfc3986-validator==0.1.1
125
+ rich==13.9.4
126
+ rpds-py==0.12.0
127
+ safetensors==0.4.5
128
+ SecretStorage==3.3.1
129
+ Send2Trash==1.8.2
130
+ six==1.16.0
131
+ sniffio==1.3.0
132
+ soupsieve==2.5
133
+ stack-data==0.6.3
134
+ sympy==1.12
135
+ terminado==0.17.1
136
+ tinycss2==1.2.1
137
+ tokenizers==0.21.0
138
+ tomli==2.0.1
139
+ torch==2.1.0+cu118
140
+ torchaudio==2.1.0+cu118
141
+ torchvision==0.16.0+cu118
142
+ tornado==6.3.3
143
+ tqdm==4.67.1
144
+ traitlets==5.13.0
145
+ transformers==4.47.1
146
+ triton==2.1.0
147
+ trl==0.13.0
148
+ types-python-dateutil==2.8.19.14
149
+ typing_extensions==4.4.0
150
+ tzdata==2024.2
151
+ uri-template==1.3.0
152
+ urllib3==1.26.13
153
+ wadllib==1.3.6
154
+ wcwidth==0.2.9
155
+ webcolors==1.13
156
+ webencodings==0.5.1
157
+ websocket-client==1.6.4
158
+ widgetsnbextension==4.0.9
159
+ xxhash==3.5.0
160
+ yarl==1.18.3
161
+ zipp==1.0.0
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
3
+ size 587404
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0700e29a23833f5033edc6cd73e17db0f62f06c4f2f3fa08d131bde0b889b66
3
+ size 6200