liuylhf commited on
Commit
2ae9c7d
1 Parent(s): 6bdfc4d

Training in progress, step 210

Browse files
README.md ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - axolotl
6
+ - generated_from_trainer
7
+ base_model: mistralai/Mixtral-8x7B-Instruct-v0.1
8
+ model-index:
9
+ - name: empower-functions-more-tools-staging
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ [<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)
17
+ <details><summary>See axolotl config</summary>
18
+
19
+ axolotl version: `0.4.0`
20
+ ```yaml
21
+ adapter: qlora
22
+ base_model: mistralai/Mixtral-8x7B-Instruct-v0.1
23
+ bf16: true
24
+ chat_template: inst
25
+ dataset_prepared_path: last_run_prepared
26
+ datasets:
27
+ - conversation: mistral
28
+ path: ./data/with_function_response/more_functions/function_not_used_training_small.jsonl
29
+ type: sharegpt
30
+ - conversation: mistral
31
+ path: ./data/with_function_response/more_functions/function_used_training_small.jsonl
32
+ type: sharegpt
33
+ - conversation: mistral
34
+ path: ./data/with_function_response/parallel_call/parallel_data_training.jsonl
35
+ type: sharegpt
36
+ debug: null
37
+ eval_max_new_tokens: 256
38
+ eval_steps: 0.05
39
+ eval_table_size: null
40
+ flash_attention: true
41
+ fp16: false
42
+ fsdp: null
43
+ fsdp_config: null
44
+ gradient_accumulation_steps: 4
45
+ gradient_checkpointing: true
46
+ group_by_length: false
47
+ hub_model_id: liuylhf/empower-functions-more-tools-staging
48
+ learning_rate: 0.0002
49
+ load_in_4bit: true
50
+ load_in_8bit: false
51
+ logging_steps: 1
52
+ lora_alpha: 64
53
+ lora_dropout: 0.05
54
+ lora_model_dir: null
55
+ lora_r: 32
56
+ lora_target_modules:
57
+ - q_proj
58
+ - k_proj
59
+ - v_proj
60
+ - o_proj
61
+ loss_watchdog_patience: 3
62
+ loss_watchdog_threshold: 5.0
63
+ lr_scheduler: cosine
64
+ micro_batch_size: 2
65
+ model_config:
66
+ output_router_logits: true
67
+ model_type: AutoModelForCausalLM
68
+ num_epochs: 2
69
+ optimizer: paged_adamw_8bit
70
+ output_dir: 2af0968cad514d6e9d5fb8448230e1c6/model
71
+ pad_to_sequence_len: true
72
+ sample_packing: true
73
+ save_steps: 0.1
74
+ sequence_len: 4096
75
+ strict: false
76
+ tf32: false
77
+ tokenizer_type: LlamaTokenizer
78
+ train_on_inputs: false
79
+ trust_remote_code: true
80
+ val_set_size: 0.025
81
+ wandb_log_model: end
82
+ wandb_name: mixtral-instruct-lora-no-negative
83
+ wandb_project: function-call
84
+ warmup_steps: 10
85
+ weight_decay: 0.0
86
+
87
+ ```
88
+
89
+ </details><br>
90
+
91
+ # empower-functions-more-tools-staging
92
+
93
+ This model is a fine-tuned version of [mistralai/Mixtral-8x7B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1) on the None dataset.
94
+ It achieves the following results on the evaluation set:
95
+ - Loss: 0.0904
96
+
97
+ ## Model description
98
+
99
+ More information needed
100
+
101
+ ## Intended uses & limitations
102
+
103
+ More information needed
104
+
105
+ ## Training and evaluation data
106
+
107
+ More information needed
108
+
109
+ ## Training procedure
110
+
111
+ ### Training hyperparameters
112
+
113
+ The following hyperparameters were used during training:
114
+ - learning_rate: 0.0002
115
+ - train_batch_size: 2
116
+ - eval_batch_size: 2
117
+ - seed: 42
118
+ - distributed_type: multi-GPU
119
+ - num_devices: 2
120
+ - gradient_accumulation_steps: 4
121
+ - total_train_batch_size: 16
122
+ - total_eval_batch_size: 4
123
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
124
+ - lr_scheduler_type: cosine
125
+ - lr_scheduler_warmup_steps: 10
126
+ - num_epochs: 2
127
+
128
+ ### Training results
129
+
130
+ | Training Loss | Epoch | Step | Validation Loss |
131
+ |:-------------:|:-----:|:----:|:---------------:|
132
+ | 1.8305 | 0.0 | 1 | 1.9892 |
133
+ | 0.1336 | 0.1 | 27 | 0.1444 |
134
+ | 0.1006 | 0.2 | 54 | 0.1193 |
135
+ | 0.102 | 0.3 | 81 | 0.1120 |
136
+ | 0.0798 | 0.41 | 108 | 0.1068 |
137
+ | 0.0976 | 0.51 | 135 | 0.1051 |
138
+ | 0.1145 | 0.61 | 162 | 0.1021 |
139
+ | 0.0984 | 0.71 | 189 | 0.1008 |
140
+ | 0.0817 | 0.81 | 216 | 0.1006 |
141
+ | 0.0841 | 0.91 | 243 | 0.0971 |
142
+ | 0.0983 | 1.02 | 270 | 0.0967 |
143
+ | 0.0948 | 1.09 | 297 | 0.0956 |
144
+ | 0.093 | 1.2 | 324 | 0.0944 |
145
+ | 0.0991 | 1.3 | 351 | 0.0938 |
146
+ | 0.072 | 1.4 | 378 | 0.0927 |
147
+ | 0.0831 | 1.5 | 405 | 0.0920 |
148
+ | 0.0768 | 1.6 | 432 | 0.0912 |
149
+ | 0.0915 | 1.7 | 459 | 0.0905 |
150
+ | 0.082 | 1.81 | 486 | 0.0906 |
151
+ | 0.0702 | 1.91 | 513 | 0.0904 |
152
+
153
+
154
+ ### Framework versions
155
+
156
+ - PEFT 0.9.0
157
+ - Transformers 4.38.2
158
+ - Pytorch 2.2.0+cu121
159
+ - Datasets 2.18.0
160
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mixtral-8x7B-Instruct-v0.1",
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": 32,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "k_proj",
23
+ "v_proj",
24
+ "o_proj",
25
+ "q_proj"
26
+ ],
27
+ "task_type": "CAUSAL_LM",
28
+ "use_dora": false,
29
+ "use_rslora": false
30
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0194ced12dda3e1c375796d0b1bb4be25e35b24266f3eb13caf0779a57faa93
3
+ size 109144714
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b682eb31639f20779d103bc101fb9b5073fbd918e51f476cde04545a9856fbc2
3
+ size 109086416
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mistralai/Mixtral-8x7B-Instruct-v0.1",
3
+ "architectures": [
4
+ "MixtralForCausalLM"
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": "mixtral",
15
+ "num_attention_heads": 32,
16
+ "num_experts_per_tok": 2,
17
+ "num_hidden_layers": 32,
18
+ "num_key_value_heads": 8,
19
+ "num_local_experts": 8,
20
+ "output_router_logits": true,
21
+ "quantization_config": {
22
+ "_load_in_4bit": true,
23
+ "_load_in_8bit": false,
24
+ "bnb_4bit_compute_dtype": "bfloat16",
25
+ "bnb_4bit_quant_type": "nf4",
26
+ "bnb_4bit_use_double_quant": true,
27
+ "llm_int8_enable_fp32_cpu_offload": false,
28
+ "llm_int8_has_fp16_weight": false,
29
+ "llm_int8_skip_modules": null,
30
+ "llm_int8_threshold": 6.0,
31
+ "load_in_4bit": true,
32
+ "load_in_8bit": false,
33
+ "quant_method": "bitsandbytes"
34
+ },
35
+ "rms_norm_eps": 1e-05,
36
+ "rope_theta": 1000000.0,
37
+ "router_aux_loss_coef": 0.02,
38
+ "sliding_window": null,
39
+ "tie_word_embeddings": false,
40
+ "torch_dtype": "bfloat16",
41
+ "transformers_version": "4.38.2",
42
+ "use_cache": false,
43
+ "vocab_size": 32000
44
+ }
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.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,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
34
+ "clean_up_tokenization_spaces": false,
35
+ "eos_token": "</s>",
36
+ "legacy": true,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": "</s>",
39
+ "sp_model_kwargs": {},
40
+ "spaces_between_special_tokens": false,
41
+ "tokenizer_class": "LlamaTokenizer",
42
+ "unk_token": "<unk>",
43
+ "use_default_system_prompt": false,
44
+ "use_fast": true
45
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2f2a5a3d76e7e978111652280ccca2d6c9a772c7c2c27236e59b51a91f0198d
3
+ size 5688