elichen3051 commited on
Commit
72a17aa
·
verified ·
1 Parent(s): 2740b87

Model save

Browse files
Files changed (2) hide show
  1. README.md +172 -0
  2. generation_config.json +7 -0
README.md ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: mistralai/Mistral-7B-v0.1
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: mistral-7B-v0.1-open-orca
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/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
17
+ <details><summary>See axolotl config</summary>
18
+
19
+ axolotl version: `0.5.2`
20
+ ```yaml
21
+ base_model: mistralai/Mistral-7B-v0.1
22
+ model_type: AutoModelForCausalLM
23
+ tokenizer_config: Open-Orca/Mistral-7B-OpenOrca
24
+ tokenizer_type: AutoTokenizer
25
+ tokenizer_use_fast: false
26
+ resize_token_embeddings_to_32x: false
27
+
28
+ flash_attention: true
29
+ xformers_attention:
30
+
31
+ load_in_8bit: false
32
+ load_in_4bit: false
33
+ strict: false
34
+
35
+ chat_template: chatml
36
+ datasets:
37
+ - path: skymizer/open-orca-conversations
38
+ type: chat_template
39
+ field_messages: messages
40
+ train_on_split: train
41
+
42
+ test_datasets:
43
+ - path: skymizer/open-orca-conversations
44
+ type: chat_template
45
+ field_messages: messages
46
+ split: test
47
+
48
+ hf_use_auth_token: true
49
+ dataset_prepared_path: /mnt/home/model-team/dataset/pretokenized/mistral-open-orca
50
+ output_dir: /mnt/home/model-team/models/mistral-7B-v0.1-open-orca-vanilla
51
+
52
+ sequence_len: 2048
53
+ sample_packing: true
54
+ pad_to_sequence_len: true
55
+
56
+ eval_sample_packing: false
57
+ # eval_causal_lm_metrics: ["perplexity"]
58
+
59
+ wandb_project: "axolotl_q_sparse_sft"
60
+ wandb_entity:
61
+ wandb_watch:
62
+ wandb_name: "mistral-7B-v0.1-open-orca"
63
+ wandb_log_model:
64
+
65
+ gradient_accumulation_steps: 2
66
+ micro_batch_size: 8
67
+ eval_batch_size:
68
+ num_epochs: 1
69
+ optimizer: adamw_torch
70
+ lr_scheduler: cosine
71
+ learning_rate: 0.000005
72
+ weight_decay: 0.0
73
+ adam_beta1: 0.9
74
+ adam_beta2: 0.95
75
+ adam_eps: 0.000001
76
+ max_grad_norm: 1.0
77
+
78
+ train_on_inputs: false
79
+ group_by_length: false
80
+ bf16: true
81
+ fp16:
82
+ tf32: false
83
+
84
+ hub_model_id: "skymizer/mistral-7B-v0.1-open-orca"
85
+
86
+ save_strategy: "steps"
87
+ save_steps: 500
88
+
89
+ gradient_checkpointing: true
90
+ gradient_checkpointing_kwargs:
91
+ use_reentrant: false
92
+ early_stopping_patience:
93
+ resume_from_checkpoint:
94
+ local_rank:
95
+ logging_steps: 1
96
+
97
+ warmup_ratio: 0.03
98
+ eval_steps: 500
99
+ eval_table_size:
100
+ eval_max_new_tokens: 2048
101
+ debug:
102
+ deepspeed: /root/train/axolotl/deepspeed_configs/zero3_bf16.json
103
+ fsdp:
104
+ fsdp_config:
105
+ seed: 42
106
+
107
+ ```
108
+
109
+ </details><br>
110
+
111
+ # mistral-7B-v0.1-open-orca
112
+
113
+ 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.
114
+ It achieves the following results on the evaluation set:
115
+ - Loss: 0.4278
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: 5e-06
135
+ - train_batch_size: 8
136
+ - eval_batch_size: 8
137
+ - seed: 42
138
+ - distributed_type: multi-GPU
139
+ - num_devices: 8
140
+ - gradient_accumulation_steps: 2
141
+ - total_train_batch_size: 128
142
+ - total_eval_batch_size: 64
143
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.95) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
144
+ - lr_scheduler_type: cosine
145
+ - lr_scheduler_warmup_steps: 182
146
+ - num_epochs: 1
147
+
148
+ ### Training results
149
+
150
+ | Training Loss | Epoch | Step | Validation Loss |
151
+ |:-------------:|:------:|:----:|:---------------:|
152
+ | 1.189 | 0.0002 | 1 | 1.2125 |
153
+ | 0.5119 | 0.0824 | 500 | 0.5199 |
154
+ | 0.5351 | 0.1648 | 1000 | 0.5017 |
155
+ | 0.5137 | 0.2472 | 1500 | 0.4893 |
156
+ | 0.5229 | 0.3296 | 2000 | 0.4784 |
157
+ | 0.4858 | 0.4120 | 2500 | 0.4687 |
158
+ | 0.4767 | 0.4944 | 3000 | 0.4583 |
159
+ | 0.4959 | 0.5768 | 3500 | 0.4494 |
160
+ | 0.4502 | 0.6592 | 4000 | 0.4416 |
161
+ | 0.4698 | 0.7416 | 4500 | 0.4353 |
162
+ | 0.482 | 0.8240 | 5000 | 0.4307 |
163
+ | 0.4248 | 0.9064 | 5500 | 0.4284 |
164
+ | 0.4534 | 0.9888 | 6000 | 0.4278 |
165
+
166
+
167
+ ### Framework versions
168
+
169
+ - Transformers 4.46.3
170
+ - Pytorch 2.5.1+cu124
171
+ - Datasets 3.1.0
172
+ - Tokenizers 0.20.3
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "do_sample": true,
5
+ "eos_token_id": 2,
6
+ "transformers_version": "4.46.3"
7
+ }