manishiitg commited on
Commit
8f7b41d
1 Parent(s): 819087c

End of training

Browse files
README.md ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ base_model: manishiitg/open-aditi-hi-v1
9
+ model-index:
10
+ - name: open-aditi-hi-v1-dpo
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ [<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
18
+ <details><summary>See axolotl config</summary>
19
+
20
+ axolotl version: `0.3.0`
21
+ ```yaml
22
+ base_model: manishiitg/open-aditi-hi-v1
23
+ model_type: MistralForCausalLM
24
+ tokenizer_type: LlamaTokenizer
25
+ is_mistral_derived_model: true
26
+
27
+ load_in_8bit: false
28
+ load_in_4bit: true
29
+ strict: false
30
+
31
+ rl: true
32
+ datasets:
33
+ - path: manishiitg/argilla-ultrafeedback-binarized-preferences-cleaned
34
+ split: train
35
+ type: ultra_apply_chatml
36
+ - path: manishiitg/unalignment-toxic-dpo-v0.1
37
+ split: train
38
+ type: apply_chatml
39
+
40
+ dataset_prepared_path: last_run_prepared
41
+ val_set_size: 0.0
42
+ output_dir: /sky-notebook/manishiitg/open-aditi-hi-v1-dpo
43
+
44
+ hub_model_id: manishiitg/open-aditi-hi-v1-dpo
45
+ hf_use_auth_token: true
46
+
47
+ wandb_project: open-aditi-hi-v1-dpo
48
+
49
+ save_safetensors: true
50
+
51
+
52
+ adapter: qlora
53
+ lora_model_dir:
54
+
55
+ sequence_len: 4096
56
+ sample_packing: true
57
+ pad_to_sequence_len: false
58
+
59
+ lora_r: 16
60
+ lora_alpha: 32
61
+ lora_dropout: 0.05
62
+ lora_target_linear: true
63
+ lora_fan_in_fan_out:
64
+ lora_target_modules:
65
+ - gate_proj
66
+ - down_proj
67
+ - up_proj
68
+ - q_proj
69
+ - v_proj
70
+ - k_proj
71
+ - o_proj
72
+
73
+ lora_modules_to_save:
74
+ - embed_tokens
75
+ - lm_head
76
+
77
+ wandb_entity:
78
+ wandb_watch:
79
+ wandb_run_id:
80
+ wandb_log_model:
81
+
82
+ gradient_accumulation_steps: 4
83
+ micro_batch_size: 3
84
+ num_epochs: 4
85
+ optimizer: adamw_bnb_8bit
86
+ lr_scheduler: cosine
87
+ learning_rate: 0.0002
88
+
89
+ adam_beta2: 0.95
90
+ adam_epsilon: 0.00001
91
+ max_grad_norm: 1.0
92
+
93
+ train_on_inputs: false
94
+ group_by_length: false
95
+ bf16: true
96
+ fp16: false
97
+ tf32: false
98
+
99
+
100
+ gradient_checkpointing: true
101
+ early_stopping_patience:
102
+ resume_from_checkpoint:
103
+ auto_resume_from_checkpoints: true ## manage check point resume from here
104
+ local_rank:
105
+ logging_steps: 1
106
+ xformers_attention:
107
+ flash_attention: true
108
+
109
+ loss_watchdog_threshold: 5.0
110
+ loss_watchdog_patience: 3
111
+
112
+ warmup_steps: 10
113
+ eval_steps: 0
114
+ evals_per_epoch: 0
115
+ eval_table_size:
116
+ eval_table_max_new_tokens: 128
117
+ save_steps: 100 ## increase based on your dataset
118
+ save_strategy: steps
119
+ debug:
120
+ deepspeed:
121
+ weight_decay: 0.0
122
+ fsdp:
123
+ fsdp_config:
124
+ special_tokens:
125
+ bos_token: "<s>"
126
+ eos_token: "</s>"
127
+ unk_token: "<unk>"
128
+ tokens: # these are delimiters
129
+ - "<|im_start|>"
130
+ - "<|im_end|>"
131
+ ```
132
+
133
+ </details><br>
134
+
135
+ # open-aditi-hi-v1-dpo
136
+
137
+ This model is a fine-tuned version of [manishiitg/open-aditi-hi-v1](https://huggingface.co/manishiitg/open-aditi-hi-v1) on the None dataset.
138
+
139
+ ## Model description
140
+
141
+ More information needed
142
+
143
+ ## Intended uses & limitations
144
+
145
+ More information needed
146
+
147
+ ## Training and evaluation data
148
+
149
+ More information needed
150
+
151
+ ## Training procedure
152
+
153
+
154
+ The following `bitsandbytes` quantization config was used during training:
155
+ - quant_method: bitsandbytes
156
+ - load_in_8bit: False
157
+ - load_in_4bit: True
158
+ - llm_int8_threshold: 6.0
159
+ - llm_int8_skip_modules: None
160
+ - llm_int8_enable_fp32_cpu_offload: False
161
+ - llm_int8_has_fp16_weight: False
162
+ - bnb_4bit_quant_type: nf4
163
+ - bnb_4bit_use_double_quant: True
164
+ - bnb_4bit_compute_dtype: bfloat16
165
+
166
+ ### Training hyperparameters
167
+
168
+ The following hyperparameters were used during training:
169
+ - learning_rate: 0.0002
170
+ - train_batch_size: 3
171
+ - eval_batch_size: 8
172
+ - seed: 42
173
+ - gradient_accumulation_steps: 4
174
+ - total_train_batch_size: 12
175
+ - optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-05
176
+ - lr_scheduler_type: linear
177
+ - lr_scheduler_warmup_steps: 10
178
+ - training_steps: 6964
179
+
180
+ ### Training results
181
+
182
+
183
+
184
+ ### Framework versions
185
+
186
+ - PEFT 0.7.0
187
+ - Transformers 4.37.0.dev0
188
+ - Pytorch 2.1.1+cu121
189
+ - Datasets 2.16.1
190
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "manishiitg/open-aditi-hi-v1",
5
+ "bias": "none",
6
+ "fan_in_fan_out": null,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 32,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": [
17
+ "embed_tokens",
18
+ "lm_head"
19
+ ],
20
+ "peft_type": "LORA",
21
+ "r": 16,
22
+ "rank_pattern": {},
23
+ "revision": null,
24
+ "target_modules": [
25
+ "k_proj",
26
+ "down_proj",
27
+ "up_proj",
28
+ "gate_proj",
29
+ "v_proj",
30
+ "q_proj",
31
+ "o_proj"
32
+ ],
33
+ "task_type": "CAUSAL_LM"
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f47347ad8b6b44c9ca85d4e517d3d6e0d350959b2d8462d9e8416e8f46780012
3
+ size 692153240
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 32001,
3
+ "<|im_start|>": 32000
4
+ }
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "manishiitg/open-aditi-hi-v1",
3
+ "architectures": [
4
+ "MistralForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 4096,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 14336,
13
+ "max_position_embeddings": 32768,
14
+ "model_type": "mistral",
15
+ "num_attention_heads": 32,
16
+ "num_hidden_layers": 32,
17
+ "num_key_value_heads": 8,
18
+ "quantization_config": {
19
+ "bnb_4bit_compute_dtype": "bfloat16",
20
+ "bnb_4bit_quant_type": "nf4",
21
+ "bnb_4bit_use_double_quant": true,
22
+ "llm_int8_enable_fp32_cpu_offload": false,
23
+ "llm_int8_has_fp16_weight": false,
24
+ "llm_int8_skip_modules": null,
25
+ "llm_int8_threshold": 6.0,
26
+ "load_in_4bit": true,
27
+ "load_in_8bit": false,
28
+ "quant_method": "bitsandbytes"
29
+ },
30
+ "rms_norm_eps": 1e-05,
31
+ "rope_theta": 10000.0,
32
+ "sliding_window": 4096,
33
+ "tie_word_embeddings": false,
34
+ "torch_dtype": "bfloat16",
35
+ "transformers_version": "4.37.0.dev0",
36
+ "use_cache": false,
37
+ "vocab_size": 32002
38
+ }
runs/Jan14_09-44-40_1c54d1981a2c/events.out.tfevents.1705225948.1c54d1981a2c.76.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba70bca6ebd74c8e42cbc613fcf2f54531e11a57251c7075416a02c9674a1d81
3
+ size 1013436
runs/Jan15_10-06-37_e7646ab1305c/events.out.tfevents.1705313656.e7646ab1305c.38.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1695f3c93dfdf4526c3f579d0ebac71a1be94e431cb69664a1dd805d1616517a
3
+ size 1176982
runs/Jan16_10-01-10_fe5fe188cf5a/events.out.tfevents.1705399979.fe5fe188cf5a.38.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8305883f3012b7c105c340dfc1b682bbe9affc9f21a58efaf1b2ba3c2869df5a
3
+ size 1184124
runs/Jan17_09-59-09_9a35389951a8/events.out.tfevents.1705486313.9a35389951a8.38.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fab106d00c782a1a1f4c23f7f77735744b14b1caf165d339afed22b4a495625f
3
+ size 1171160
runs/Jan18_10-00-02_6605e1600ed0/events.out.tfevents.1705572757.6605e1600ed0.38.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4784296f8083c2cd1aa876431a115964bb0d01ce32881e4f6b9e0b5f2e0f80ad
3
+ size 45814
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32000": {
30
+ "content": "<|im_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": false
36
+ },
37
+ "32001": {
38
+ "content": "<|im_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": false
44
+ }
45
+ },
46
+ "additional_special_tokens": [],
47
+ "bos_token": "<s>",
48
+ "clean_up_tokenization_spaces": false,
49
+ "eos_token": "</s>",
50
+ "legacy": true,
51
+ "model_max_length": 1000000000000000019884624838656,
52
+ "pad_token": "</s>",
53
+ "sp_model_kwargs": {},
54
+ "spaces_between_special_tokens": false,
55
+ "tokenizer_class": "LlamaTokenizer",
56
+ "trust_remote_code": false,
57
+ "unk_token": "<unk>",
58
+ "use_default_system_prompt": false,
59
+ "use_fast": true
60
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0e6d6fda4c62bb59f12ca84a901913fba26d57766a9463b0001c3b875d80b89
3
+ size 4792