strickvl commited on
Commit
98ef071
·
verified ·
1 Parent(s): 9157d5e

End of training

Browse files
Files changed (2) hide show
  1. README.md +144 -0
  2. adapter_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: peft
4
+ tags:
5
+ - axolotl
6
+ - generated_from_trainer
7
+ base_model: microsoft/Phi-3-mini-4k-instruct
8
+ model-index:
9
+ - name: isafpr-phi3-lora
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: microsoft/Phi-3-mini-4k-instruct
22
+ trust_remote_code: true
23
+ model_type: AutoModelForCausalLM
24
+ tokenizer_type: AutoTokenizer
25
+ chat_template: phi_3
26
+
27
+ load_in_8bit: false
28
+ load_in_4bit: true
29
+ strict: false
30
+
31
+ datasets:
32
+ - path: data/isaf_press_releases_ft.jsonl
33
+ conversation: alpaca
34
+ type: sharegpt
35
+
36
+ dataset_prepared_path:
37
+ val_set_size: 0.05
38
+ output_dir: ./outputs/phi3/lora-out
39
+ hub_model_id: strickvl/isafpr-phi3-lora
40
+
41
+ sequence_len: 2048
42
+ sample_packing: true
43
+ pad_to_sequence_len: true
44
+
45
+ adapter: lora
46
+ lora_model_dir:
47
+ lora_r: 64
48
+ lora_alpha: 32
49
+ lora_dropout: 0.05
50
+ lora_target_linear: true
51
+ lora_fan_in_fan_out:
52
+
53
+ wandb_project: isaf_pr_ft
54
+ wandb_entity: strickvl
55
+
56
+ gradient_accumulation_steps: 1
57
+ micro_batch_size: 2
58
+ num_epochs: 1
59
+ optimizer: adamw_torch
60
+ adam_beta2: 0.95
61
+ adam_epsilon: 0.00001
62
+ max_grad_norm: 1.0
63
+ lr_scheduler: cosine
64
+ learning_rate: 5.0e-6
65
+
66
+ train_on_inputs: false
67
+ group_by_length: false
68
+ bf16: auto
69
+
70
+ gradient_checkpointing: true
71
+ gradient_checkpointing_kwargs:
72
+ use_reentrant: True
73
+ early_stopping_patience: 3
74
+ logging_steps: 1
75
+ flash_attention: true
76
+
77
+ eval_steps: 1000
78
+ save_steps: 5000
79
+ eval_table_size: 2
80
+ eval_batch_size: 2
81
+ eval_sample_packing: false
82
+ eval_max_new_tokens: 32
83
+ eval_causal_lm_metrics: ["perplexity"]
84
+ do_causal_lm_eval: true
85
+
86
+ warmup_ratio: 0.2
87
+ debug: true
88
+ weight_decay: 0.1
89
+ resize_token_embeddings_to_32x: true
90
+
91
+ ```
92
+
93
+ </details><br>
94
+
95
+ # isafpr-phi3-lora
96
+
97
+ This model is a fine-tuned version of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) on the None dataset.
98
+ It achieves the following results on the evaluation set:
99
+ - Loss: 3.2970
100
+
101
+ ## Model description
102
+
103
+ More information needed
104
+
105
+ ## Intended uses & limitations
106
+
107
+ More information needed
108
+
109
+ ## Training and evaluation data
110
+
111
+ More information needed
112
+
113
+ ## Training procedure
114
+
115
+ ### Training hyperparameters
116
+
117
+ The following hyperparameters were used during training:
118
+ - learning_rate: 5e-06
119
+ - train_batch_size: 2
120
+ - eval_batch_size: 2
121
+ - seed: 42
122
+ - distributed_type: multi-GPU
123
+ - num_devices: 2
124
+ - total_train_batch_size: 4
125
+ - total_eval_batch_size: 4
126
+ - optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-05
127
+ - lr_scheduler_type: cosine
128
+ - lr_scheduler_warmup_steps: 53
129
+ - num_epochs: 1
130
+
131
+ ### Training results
132
+
133
+ | Training Loss | Epoch | Step | Validation Loss |
134
+ |:-------------:|:------:|:----:|:---------------:|
135
+ | 7.0334 | 0.0038 | 1 | 3.2970 |
136
+
137
+
138
+ ### Framework versions
139
+
140
+ - PEFT 0.11.1
141
+ - Transformers 4.41.1
142
+ - Pytorch 2.3.0+cu121
143
+ - Datasets 2.19.1
144
+ - Tokenizers 0.19.1
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df3167300e0e2c8bc3e4e9fcfc6a778d400fac0e5a72369b01fa80b46cd70c3b
3
+ size 402746058