sidbin commited on
Commit
9a196d2
1 Parent(s): b054ee4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +205 -0
README.md ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-2-9b
3
+ library_name: peft
4
+ license: gemma
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: lora-out
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ [<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)
16
+ <details><summary>See axolotl config</summary>
17
+
18
+ axolotl version: `0.4.1`
19
+ ```yaml
20
+ base_model: google/gemma-2-9b
21
+
22
+ sequence_len: 1024
23
+
24
+ # base model weight quantization
25
+ load_in_8bit: true
26
+ # load_in_4bit: true
27
+
28
+ # attention implementation
29
+ flash_attention: true
30
+
31
+ # finetuned adapter config
32
+ adapter: lora
33
+ lora_model_dir:
34
+ lora_r: 16
35
+ lora_alpha: 32
36
+ lora_dropout: 0.05
37
+ lora_target_linear: true
38
+ lora_fan_in_fan_out:
39
+ lora_modules_to_save: # required when adding new tokens to LLaMA/Mistral
40
+ - embed_tokens
41
+ - lm_head
42
+
43
+ # if training fails, uncomment above
44
+ # for details, see https://github.com/huggingface/peft/issues/334#issuecomment-1561727994
45
+
46
+ ###
47
+ # Dataset Configuration: sqlqa
48
+ ###
49
+ # datasets:
50
+ # - path: data.jsonl
51
+ # type: alpaca
52
+
53
+ datasets:
54
+ - path: public_train_data.jsonl
55
+ ds_type: json
56
+ type:
57
+ field_instruction: instruction
58
+ field_input: input
59
+ field_output: output
60
+ format: |-
61
+ [INST] {instruction}
62
+ {input} [/INST]
63
+
64
+ chat_template: gemma
65
+ tokens:
66
+ - "[INST]"
67
+ - " [/INST]"
68
+ - "[QL]"
69
+ - " [/QL]"
70
+ - "[EXPLANATION]"
71
+ - " [/EXPLANATION]"
72
+ # dataset formatting config
73
+
74
+ special_tokens:
75
+ pad_token: <|end_of_text|>
76
+
77
+ val_set_size: 0.05
78
+
79
+ ###
80
+ # Training Configuration
81
+ ###
82
+
83
+ # masks the input messages so that the model learns and understands the language w/o being reliant on the input
84
+ train_on_inputs: false
85
+ # random seed for better reproducibility
86
+ seed: 117
87
+
88
+ # optimizer config
89
+ optimizer: adamw_bnb_8bit
90
+ learning_rate: 0.0001
91
+ lr_scheduler: cosine
92
+ num_epochs: 4
93
+ micro_batch_size: 4
94
+ gradient_accumulation_steps: 1
95
+ warmup_steps: 10
96
+
97
+ # axolotl saving config
98
+ dataset_prepared_path: last_run_prepared
99
+ output_dir: ./lora-out
100
+
101
+ # logging and eval config
102
+ logging_steps: 1
103
+ eval_steps: 0.05
104
+
105
+ # training performance optimization config
106
+ bf16: auto
107
+ tf32: false
108
+ gradient_checkpointing: true
109
+
110
+ ###
111
+ # Miscellaneous Configuration
112
+ ###
113
+
114
+ # when true, prevents over-writing the config from the CLI
115
+ strict: false
116
+
117
+ # "Don't mess with this, it's here for accelerate and torchrun" -- axolotl docs
118
+ local_rank:
119
+
120
+ # WANDB
121
+ wandb_mode:
122
+ wandb_project:
123
+ wandb_watch:
124
+ wandb_name:
125
+ wandb_run_id:
126
+
127
+ # Multi-GPU
128
+ # deepspeed: /root/axolotl/deepspeed_configs/zero3_bf16.json
129
+ # deepspeed: zero3_bf16.json
130
+ # deepspeed: /workspace/axolotl/deepspeed_configs/zero2.json
131
+ deepspeed:
132
+ fsdp:
133
+ fsdp_config:
134
+
135
+ ```
136
+
137
+ </details><br>
138
+
139
+ # lora-out
140
+
141
+ This model is a fine-tuned version of [google/gemma-2-9b](https://huggingface.co/google/gemma-2-9b) on the None dataset.
142
+ It achieves the following results on the evaluation set:
143
+ - Loss: 0.0077
144
+
145
+ ## Model description
146
+
147
+ More information needed
148
+
149
+ ## Intended uses & limitations
150
+
151
+ More information needed
152
+
153
+ ## Training and evaluation data
154
+
155
+ More information needed
156
+
157
+ ## Training procedure
158
+
159
+ ### Training hyperparameters
160
+
161
+ The following hyperparameters were used during training:
162
+ - learning_rate: 0.0001
163
+ - train_batch_size: 4
164
+ - eval_batch_size: 4
165
+ - seed: 117
166
+ - distributed_type: multi-GPU
167
+ - num_devices: 4
168
+ - total_train_batch_size: 16
169
+ - total_eval_batch_size: 16
170
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
171
+ - lr_scheduler_type: cosine
172
+ - lr_scheduler_warmup_steps: 10
173
+ - num_epochs: 4
174
+
175
+ ### Training results
176
+
177
+ | Training Loss | Epoch | Step | Validation Loss |
178
+ |:-------------:|:------:|:----:|:---------------:|
179
+ | 1.7925 | 0.0385 | 1 | 2.0412 |
180
+ | 1.6872 | 0.2308 | 6 | 1.6089 |
181
+ | 0.6967 | 0.4615 | 12 | 0.6328 |
182
+ | 0.3327 | 0.6923 | 18 | 0.2711 |
183
+ | 0.1784 | 0.9231 | 24 | 0.1733 |
184
+ | 0.1136 | 1.1538 | 30 | 0.1190 |
185
+ | 0.0891 | 1.3846 | 36 | 0.0850 |
186
+ | 0.0746 | 1.6154 | 42 | 0.0626 |
187
+ | 0.0522 | 1.8462 | 48 | 0.0465 |
188
+ | 0.033 | 2.0769 | 54 | 0.0282 |
189
+ | 0.0333 | 2.3077 | 60 | 0.0225 |
190
+ | 0.0171 | 2.5385 | 66 | 0.0203 |
191
+ | 0.0172 | 2.7692 | 72 | 0.0144 |
192
+ | 0.0095 | 3.0 | 78 | 0.0119 |
193
+ | 0.0088 | 3.2308 | 84 | 0.0099 |
194
+ | 0.0054 | 3.4615 | 90 | 0.0089 |
195
+ | 0.0073 | 3.6923 | 96 | 0.0085 |
196
+ | 0.0059 | 3.9231 | 102 | 0.0077 |
197
+
198
+
199
+ ### Framework versions
200
+
201
+ - PEFT 0.13.0
202
+ - Transformers 4.45.1
203
+ - Pytorch 2.3.1+cu121
204
+ - Datasets 2.21.0
205
+ - Tokenizers 0.20.0