strickvl commited on
Commit
0c7cbfd
1 Parent(s): 1260657

End of training

Browse files
Files changed (2) hide show
  1. README.md +164 -0
  2. adapter_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - axolotl
6
+ - generated_from_trainer
7
+ base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
8
+ model-index:
9
+ - name: isafpr-tiny-llama-lora-templatefree
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.1`
20
+ ```yaml
21
+ base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
22
+ model_type: LlamaForCausalLM
23
+ tokenizer_type: LlamaTokenizer
24
+
25
+ load_in_8bit: false
26
+ # I'm training on 4090 GPUs
27
+ # so I'm using 4-bit precision to save on memory
28
+ load_in_4bit: true
29
+ strict: false
30
+
31
+ data_seed: 42
32
+ seed: 42
33
+
34
+ datasets:
35
+ - path: data/templatefree_isaf_press_releases_ft_train.jsonl
36
+ type: input_output
37
+ dataset_prepared_path:
38
+ val_set_size: 0.1
39
+ output_dir: ./outputs/tiny-llama/lora-out-templatefree
40
+ hub_model_id: strickvl/isafpr-tiny-llama-lora-templatefree
41
+
42
+ sequence_len: 4096
43
+ sample_packing: true
44
+ eval_sample_packing: false
45
+ pad_to_sequence_len: true
46
+
47
+ adapter: lora
48
+ lora_model_dir:
49
+ lora_r: 32
50
+ lora_alpha: 16
51
+ lora_dropout: 0.05
52
+ lora_target_linear: true
53
+ lora_fan_in_fan_out:
54
+
55
+ wandb_project: isaf_pr_ft
56
+ wandb_entity: strickvl
57
+ wandb_watch:
58
+ wandb_name:
59
+ wandb_log_model:
60
+
61
+ gradient_accumulation_steps: 4
62
+ micro_batch_size: 2
63
+ num_epochs: 4
64
+ optimizer: adamw_bnb_8bit
65
+ lr_scheduler: cosine
66
+ learning_rate: 0.0002
67
+
68
+ train_on_inputs: false
69
+ group_by_length: false
70
+ bf16: auto
71
+ fp16:
72
+ tf32: false
73
+
74
+ gradient_checkpointing: true
75
+ early_stopping_patience:
76
+ resume_from_checkpoint:
77
+ local_rank:
78
+ logging_steps: 1
79
+ xformers_attention:
80
+ flash_attention: true
81
+
82
+ warmup_steps: 10
83
+ evals_per_epoch: 4
84
+ saves_per_epoch: 1
85
+ debug:
86
+ deepspeed:
87
+ weight_decay: 0.0
88
+ fsdp:
89
+ fsdp_config:
90
+ special_tokens:
91
+ bos_token: "<s>"
92
+ eos_token: "</s>"
93
+
94
+ ```
95
+
96
+ </details><br>
97
+
98
+ # isafpr-tiny-llama-lora-templatefree
99
+
100
+ This model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T) on the None dataset.
101
+ It achieves the following results on the evaluation set:
102
+ - Loss: 0.0504
103
+
104
+ ## Model description
105
+
106
+ More information needed
107
+
108
+ ## Intended uses & limitations
109
+
110
+ More information needed
111
+
112
+ ## Training and evaluation data
113
+
114
+ More information needed
115
+
116
+ ## Training procedure
117
+
118
+ ### Training hyperparameters
119
+
120
+ The following hyperparameters were used during training:
121
+ - learning_rate: 0.0002
122
+ - train_batch_size: 2
123
+ - eval_batch_size: 2
124
+ - seed: 42
125
+ - distributed_type: multi-GPU
126
+ - num_devices: 2
127
+ - gradient_accumulation_steps: 4
128
+ - total_train_batch_size: 16
129
+ - total_eval_batch_size: 4
130
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
131
+ - lr_scheduler_type: cosine
132
+ - lr_scheduler_warmup_steps: 10
133
+ - num_epochs: 4
134
+
135
+ ### Training results
136
+
137
+ | Training Loss | Epoch | Step | Validation Loss |
138
+ |:-------------:|:------:|:----:|:---------------:|
139
+ | 1.8835 | 0.0274 | 1 | 1.8815 |
140
+ | 1.2729 | 0.2466 | 9 | 1.1212 |
141
+ | 0.2733 | 0.4932 | 18 | 0.2187 |
142
+ | 0.1129 | 0.7397 | 27 | 0.0996 |
143
+ | 0.0789 | 0.9863 | 36 | 0.0808 |
144
+ | 0.0725 | 1.2123 | 45 | 0.0705 |
145
+ | 0.0727 | 1.4589 | 54 | 0.0653 |
146
+ | 0.0536 | 1.7055 | 63 | 0.0609 |
147
+ | 0.0644 | 1.9521 | 72 | 0.0577 |
148
+ | 0.0536 | 2.1781 | 81 | 0.0554 |
149
+ | 0.0464 | 2.4247 | 90 | 0.0538 |
150
+ | 0.054 | 2.6712 | 99 | 0.0522 |
151
+ | 0.0512 | 2.9178 | 108 | 0.0511 |
152
+ | 0.0463 | 3.1438 | 117 | 0.0508 |
153
+ | 0.0523 | 3.3904 | 126 | 0.0505 |
154
+ | 0.0473 | 3.6370 | 135 | 0.0504 |
155
+ | 0.0459 | 3.8836 | 144 | 0.0504 |
156
+
157
+
158
+ ### Framework versions
159
+
160
+ - PEFT 0.11.1
161
+ - Transformers 4.41.1
162
+ - Pytorch 2.3.0+cu121
163
+ - Datasets 2.19.1
164
+ - Tokenizers 0.19.1
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:802280588472a42da60132455de9093bd308305b1bf217c410ad07028260d60f
3
+ size 101036698