winglian commited on
Commit
8c002a0
1 Parent(s): ffaa21e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ base_model: HuggingFaceH4/mistral-7b-sft-beta
9
+ model-index:
10
+ - name: zephyr-deita
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: HuggingFaceH4/mistral-7b-sft-beta
23
+ model_type: MistralForCausalLM
24
+ tokenizer_type: LlamaTokenizer
25
+ is_mistral_derived_model: true
26
+
27
+ load_in_8bit: false
28
+ load_in_4bit: false
29
+ strict: false
30
+
31
+ rl: true
32
+ datasets:
33
+ - path: winglian/deita-nectar
34
+ split: train_dpo
35
+ type: zephyr.nectar
36
+ dataset_prepared_path: last_run_prepared
37
+ val_set_size: 0.0
38
+ output_dir: ./zephyr-deita
39
+ save_total_limit: 3
40
+ hub_model_id: openaccess-ai-collective/dpo-zephyr-deita-nectar
41
+
42
+ adapter: lora
43
+ lora_model_dir:
44
+
45
+ sequence_len: 2048
46
+ sample_packing: false
47
+ pad_to_sequence_len: false
48
+
49
+ lora_r: 128
50
+ lora_alpha: 64
51
+ lora_dropout: 0.05
52
+ lora_target_linear: true
53
+ lora_modules_to_save:
54
+ lora_fan_in_fan_out:
55
+ lora_target_modules:
56
+ - gate_proj
57
+ - down_proj
58
+ - up_proj
59
+ - q_proj
60
+ - v_proj
61
+ - k_proj
62
+ - o_proj
63
+
64
+ wandb_project: dpo-zephyr-deita-nectar
65
+ wandb_entity: oaaic
66
+ wandb_watch:
67
+ wandb_run_id:
68
+ wandb_log_model:
69
+
70
+ gradient_accumulation_steps: 4
71
+ micro_batch_size: 4
72
+ num_epochs: 1
73
+ optimizer: paged_adamw_8bit
74
+ adam_beta2: 0.95
75
+ adam_epsilion: 0.00001
76
+ lr_scheduler: cosine
77
+ learning_rate: 1.0e-5
78
+
79
+ train_on_inputs: false
80
+ group_by_length: false
81
+ bf16: true
82
+ fp16: false
83
+ tf32: true
84
+
85
+ gradient_checkpointing: true
86
+ early_stopping_patience:
87
+ resume_from_checkpoint:
88
+ local_rank:
89
+ logging_steps: 1
90
+ xformers_attention:
91
+ flash_attention: true
92
+
93
+ warmup_steps: 100
94
+ eval_steps:
95
+ eval_table_size:
96
+ eval_table_max_new_tokens: 128
97
+ save_steps: 45
98
+ debug:
99
+ deepspeed:
100
+ weight_decay: 0.1
101
+ fsdp:
102
+ fsdp_config:
103
+ special_tokens:
104
+ save_safetensors: true
105
+
106
+ dataloader_num_workers: 16
107
+ dataloader_pin_memory: true
108
+
109
+ ```
110
+
111
+ </details><br>
112
+
113
+ # zephyr-deita
114
+
115
+ This model is a fine-tuned version of [HuggingFaceH4/mistral-7b-sft-beta](https://huggingface.co/HuggingFaceH4/mistral-7b-sft-beta) on the None dataset.
116
+
117
+ ## Model description
118
+
119
+ More information needed
120
+
121
+ ## Intended uses & limitations
122
+
123
+ More information needed
124
+
125
+ ## Training and evaluation data
126
+
127
+ More information needed
128
+
129
+ ## Training procedure
130
+
131
+ ### Training hyperparameters
132
+
133
+ The following hyperparameters were used during training:
134
+ - learning_rate: 1e-05
135
+ - train_batch_size: 4
136
+ - eval_batch_size: 8
137
+ - seed: 42
138
+ - distributed_type: multi-GPU
139
+ - num_devices: 4
140
+ - gradient_accumulation_steps: 4
141
+ - total_train_batch_size: 64
142
+ - total_eval_batch_size: 32
143
+ - optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-08
144
+ - lr_scheduler_type: linear
145
+ - lr_scheduler_warmup_steps: 100
146
+ - training_steps: 135
147
+
148
+ ### Training results
149
+
150
+
151
+
152
+ ### Framework versions
153
+
154
+ - PEFT 0.7.0
155
+ - Transformers 4.37.0.dev0
156
+ - Pytorch 2.0.1+cu118
157
+ - Datasets 2.16.1
158
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "HuggingFaceH4/mistral-7b-sft-beta",
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": 64,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 128,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "up_proj",
23
+ "v_proj",
24
+ "down_proj",
25
+ "gate_proj",
26
+ "k_proj",
27
+ "q_proj",
28
+ "o_proj"
29
+ ],
30
+ "task_type": "CAUSAL_LM"
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da57b8fc3b617d9d669cbff988529538dd72a203f48bebfa9bfe26ff5ac35021
3
+ size 822145032
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "HuggingFaceH4/mistral-7b-sft-beta",
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
+ "rms_norm_eps": 1e-05,
19
+ "rope_theta": 10000.0,
20
+ "sliding_window": 4096,
21
+ "tie_word_embeddings": false,
22
+ "torch_dtype": "bfloat16",
23
+ "transformers_version": "4.37.0.dev0",
24
+ "use_cache": false,
25
+ "vocab_size": 32000
26
+ }
runs/Jan12_23-59-48_b5637b3f66b9/events.out.tfevents.1705104086.b5637b3f66b9.1937.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e0fa0d9ad88309d1eb8d04916a49b079965339237c214f76bd72c15cd4589e0
3
+ size 6281
runs/Jan13_00-04-07_b5637b3f66b9/events.out.tfevents.1705104259.b5637b3f66b9.2205.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:891262c672fbfe5a5e470c1a3a6d4c6112b7f66283a6bfc06e0c4189708d39c7
3
+ size 32446
runs/Jan13_00-27-24_b5637b3f66b9/events.out.tfevents.1705105740.b5637b3f66b9.7116.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9d535d7c64746d57c1869fd853997f999e825b8c86a8d1b3ed54fd117c3582a
3
+ size 88958
special_tokens_map.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<unk>",
4
+ "<s>",
5
+ "</s>"
6
+ ],
7
+ "bos_token": {
8
+ "content": "<s>",
9
+ "lstrip": false,
10
+ "normalized": false,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "eos_token": {
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "pad_token": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "unk_token": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ }
35
+ }
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,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
30
+ "additional_special_tokens": [
31
+ "<unk>",
32
+ "<s>",
33
+ "</s>"
34
+ ],
35
+ "bos_token": "<s>",
36
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
37
+ "clean_up_tokenization_spaces": false,
38
+ "eos_token": "</s>",
39
+ "legacy": true,
40
+ "model_max_length": 1000000000000000019884624838656,
41
+ "pad_token": "</s>",
42
+ "sp_model_kwargs": {},
43
+ "spaces_between_special_tokens": false,
44
+ "tokenizer_class": "LlamaTokenizer",
45
+ "truncation_side": "left",
46
+ "trust_remote_code": false,
47
+ "unk_token": "<unk>",
48
+ "use_default_system_prompt": true,
49
+ "use_fast": true
50
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcb87b1f3e8ce00a810ea74bc591148f5e9169f05b3208a78c84c98bf0d6534e
3
+ size 4283