0xSingletOnly commited on
Commit
4f35968
1 Parent(s): a2cd44b

End of training

Browse files
Files changed (2) hide show
  1. README.md +158 -0
  2. adapter_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - axolotl
6
+ - generated_from_trainer
7
+ base_model: mistralai/Mistral-7B-Instruct-v0.2
8
+ model-index:
9
+ - name: if-mistral-7b-v0.2
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
+ base_model: mistralai/Mistral-7B-Instruct-v0.2
22
+ model_type: MistralForCausalLM
23
+ tokenizer_type: LlamaTokenizer
24
+ is_mistral_derived_model: true
25
+ hub_model_id: if-mistral-7b-v0.2
26
+
27
+ load_in_8bit: false
28
+ load_in_4bit: true
29
+ strict: false
30
+
31
+ datasets:
32
+ - path: train_alpaca.jsonl
33
+ ds_type: json
34
+ type: alpaca
35
+ val_set_size: 0.1
36
+ output_dir: ./qlora-out
37
+
38
+ adapter: qlora
39
+ lora_model_dir:
40
+
41
+ sequence_len: 1024
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: auto
75
+ fp16:
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_table_size:
92
+ eval_table_max_new_tokens: 128
93
+ saves_per_epoch: 1
94
+ debug:
95
+ deepspeed:
96
+ weight_decay: 0.0
97
+ fsdp:
98
+ fsdp_config:
99
+ special_tokens:
100
+ bos_token: "<s>"
101
+ eos_token: "</s>"
102
+ unk_token: "<unk>"
103
+
104
+ ```
105
+
106
+ </details><br>
107
+
108
+ # if-mistral-7b-v0.2
109
+
110
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on the None dataset.
111
+ It achieves the following results on the evaluation set:
112
+ - Loss: 2.6317
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
+ | Training Loss | Epoch | Step | Validation Loss |
145
+ |:-------------:|:-----:|:----:|:---------------:|
146
+ | 4.7937 | 0.01 | 1 | 4.5661 |
147
+ | 2.6718 | 0.25 | 18 | 2.7041 |
148
+ | 2.5812 | 0.51 | 36 | 2.6526 |
149
+ | 2.6002 | 0.76 | 54 | 2.6317 |
150
+
151
+
152
+ ### Framework versions
153
+
154
+ - PEFT 0.8.2
155
+ - Transformers 4.38.0.dev0
156
+ - Pytorch 2.1.2+cu118
157
+ - Datasets 2.16.1
158
+ - Tokenizers 0.15.0
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a13f3e37bd0d6b4197fed86765109de67949cf791dfc4ec41ea5099de34bc81
3
+ size 335706186