nitsw commited on
Commit
d622096
1 Parent(s): cbae9be

End of training

Browse files
README.md ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - axolotl
6
+ - generated_from_trainer
7
+ base_model: mistralai/Mistral-7B-v0.1
8
+ model-index:
9
+ - name: mistral_axonotl
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.3.0`
20
+ ```yaml
21
+ base_model: mistralai/Mistral-7B-v0.1
22
+ model_type: MistralForCausalLM
23
+ tokenizer_type: LlamaTokenizer
24
+ is_mistral_derived_model: true
25
+
26
+ load_in_8bit: false
27
+ load_in_4bit: true
28
+ strict: false
29
+
30
+ hub_model_id: nitsw/mistral_axonotl
31
+ datasets:
32
+ - path: mhenrichsen/alpaca_2k_test
33
+ type: alpaca
34
+ dataset_prepared_path: last_run_prepared
35
+ val_set_size: 0.1
36
+ output_dir: ./qlora-out
37
+
38
+ adapter: qlora
39
+ lora_model_dir:
40
+
41
+ sequence_len: 8192
42
+ sample_packing: true
43
+ pad_to_sequence_len: true
44
+
45
+ lora_r: 32
46
+ lora_alpha: 16
47
+ lora_dropout: 0.05
48
+ lora_target_linear: true
49
+ lora_fan_in_fan_out:
50
+ lora_target_modules:
51
+ - gate_proj
52
+ - down_proj
53
+ - up_proj
54
+ - q_proj
55
+ - v_proj
56
+ - k_proj
57
+ - o_proj
58
+
59
+ wandb_project:
60
+ wandb_entity:
61
+ wandb_watch:
62
+ wandb_name:
63
+ wandb_log_model:
64
+
65
+ gradient_accumulation_steps: 4
66
+ micro_batch_size: 2
67
+ num_epochs: 1
68
+ optimizer: adamw_bnb_8bit
69
+ lr_scheduler: cosine
70
+ learning_rate: 0.0002
71
+
72
+ train_on_inputs: false
73
+ group_by_length: false
74
+ bf16: true
75
+ fp16: false
76
+ tf32: false
77
+
78
+ gradient_checkpointing: true
79
+ early_stopping_patience:
80
+ resume_from_checkpoint:
81
+ local_rank:
82
+ logging_steps: 1
83
+ xformers_attention:
84
+ flash_attention: true
85
+
86
+ loss_watchdog_threshold: 5.0
87
+ loss_watchdog_patience: 3
88
+
89
+ warmup_steps: 10
90
+ # evals_per_epoch: 4
91
+ eval_steps: 10
92
+ eval_table_size:
93
+ eval_table_max_new_tokens: 128
94
+ # saves_per_epoch: 1
95
+ save_steps: 10
96
+ debug:
97
+ deepspeed:
98
+ weight_decay: 0.0
99
+ fsdp:
100
+ fsdp_config:
101
+ special_tokens:
102
+ bos_token: "<s>"
103
+ eos_token: "</s>"
104
+ unk_token: "<unk>"
105
+
106
+ ```
107
+
108
+ </details><br>
109
+
110
+ # mistral_axonotl
111
+
112
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the None dataset.
113
+
114
+ ## Model description
115
+
116
+ More information needed
117
+
118
+ ## Intended uses & limitations
119
+
120
+ More information needed
121
+
122
+ ## Training and evaluation data
123
+
124
+ More information needed
125
+
126
+ ## Training procedure
127
+
128
+ ### Training hyperparameters
129
+
130
+ The following hyperparameters were used during training:
131
+ - learning_rate: 0.0002
132
+ - train_batch_size: 2
133
+ - eval_batch_size: 2
134
+ - seed: 42
135
+ - gradient_accumulation_steps: 4
136
+ - total_train_batch_size: 8
137
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
138
+ - lr_scheduler_type: cosine
139
+ - lr_scheduler_warmup_steps: 10
140
+ - num_epochs: 1
141
+
142
+ ### Training results
143
+
144
+
145
+
146
+ ### Framework versions
147
+
148
+ - PEFT 0.7.2.dev0
149
+ - Transformers 4.38.0.dev0
150
+ - Pytorch 2.0.1
151
+ - Datasets 2.16.1
152
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-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": 16,
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
+ "q_proj",
24
+ "down_proj",
25
+ "up_proj",
26
+ "o_proj",
27
+ "gate_proj",
28
+ "v_proj"
29
+ ],
30
+ "task_type": "CAUSAL_LM",
31
+ "use_rslora": false
32
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9241e944864700b3b43d9b370474cdf708120a17643897b7d2bd32442ed87c5
3
+ size 335705741
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ae0cbe4a1fd47f7127dafce2a4951fdd12ce96eee6e3ab2ff3fda8502419931
3
+ size 335604696
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mistralai/Mistral-7B-v0.1",
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.38.0.dev0",
36
+ "use_cache": false,
37
+ "vocab_size": 32000
38
+ }
runs/Jan19_10-13-08_ip-172-16-127-192.ec2.internal/events.out.tfevents.1705659189.ip-172-16-127-192.ec2.internal.14380.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:068c11b9a28f08c8529097f3f13edde65f83c708ceddfda1e6d30fe7584bcd6d
3
+ size 6162
runs/Jan19_10-30-51_ip-172-16-127-192.ec2.internal/events.out.tfevents.1705660251.ip-172-16-127-192.ec2.internal.29845.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92085001a055e1928fcf453bb72ebef6e3571a29deff022d23f82f7b4aaabc0c
3
+ size 6455
runs/Jan23_09-22-45_ip-172-16-6-233.ec2.internal/events.out.tfevents.1706001766.ip-172-16-6-233.ec2.internal.18258.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b4fa17706b8aa3757f8ababb109fbda217ff14b16eb0af093a39683fa6f4759
3
+ size 6453
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,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": true,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "sp_model_kwargs": {},
38
+ "spaces_between_special_tokens": false,
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "trust_remote_code": false,
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false,
43
+ "use_fast": true
44
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9e56c4707e4fd14939fb9fc05795ff94f0be15c1677beeda04967ff73dd415c
3
+ size 4859