fozziethebeat
commited on
Commit
•
ba40ddd
1
Parent(s):
510a82e
End of training
Browse files- README.md +158 -0
- adapter_model.bin +3 -0
README.md
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/Phi-3.5-mini-instruct
|
3 |
+
library_name: peft
|
4 |
+
license: mit
|
5 |
+
tags:
|
6 |
+
- axolotl
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: phi-3.5-alpaca-test-classifier
|
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.4.1`
|
20 |
+
```yaml
|
21 |
+
strict: false
|
22 |
+
|
23 |
+
base_model: microsoft/Phi-3.5-mini-instruct
|
24 |
+
model_type: AutoModelForCausalLM
|
25 |
+
tokenizer_type: AutoTokenizer
|
26 |
+
|
27 |
+
load_in_8bit: false
|
28 |
+
load_in_4bit: true
|
29 |
+
|
30 |
+
chat_template: phi_3
|
31 |
+
datasets:
|
32 |
+
- path: fozziethebeat/alpaca_messages_classifier_2k_test
|
33 |
+
type: chat_template
|
34 |
+
split: train
|
35 |
+
chat_template: phi_3
|
36 |
+
field_messages: messages
|
37 |
+
message_field_role: role
|
38 |
+
message_field_content: content
|
39 |
+
roles:
|
40 |
+
user:
|
41 |
+
- user
|
42 |
+
assistant:
|
43 |
+
- assistant
|
44 |
+
|
45 |
+
dataset_prepared_path:
|
46 |
+
val_set_size: 0.05
|
47 |
+
output_dir: ./outputs/lora-out
|
48 |
+
|
49 |
+
sequence_len: 2048
|
50 |
+
sample_packing: false
|
51 |
+
pad_to_sequence_len: true
|
52 |
+
|
53 |
+
adapter: lora
|
54 |
+
lora_model_dir:
|
55 |
+
lora_r: 32
|
56 |
+
lora_alpha: 16
|
57 |
+
lora_dropout: 0.05
|
58 |
+
lora_target_linear: true
|
59 |
+
lora_fan_in_fan_out:
|
60 |
+
|
61 |
+
wandb_project:
|
62 |
+
wandb_entity:
|
63 |
+
wandb_watch:
|
64 |
+
wandb_name:
|
65 |
+
wandb_log_model:
|
66 |
+
|
67 |
+
gradient_accumulation_steps: 4
|
68 |
+
micro_batch_size: 8
|
69 |
+
num_epochs: 2
|
70 |
+
optimizer: adamw_bnb_8bit
|
71 |
+
lr_scheduler: cosine
|
72 |
+
learning_rate: 5.0e-5
|
73 |
+
|
74 |
+
train_on_inputs: false
|
75 |
+
group_by_length: false
|
76 |
+
bfloat16: true
|
77 |
+
bf16: true
|
78 |
+
fp16:
|
79 |
+
tf32: false
|
80 |
+
|
81 |
+
gradient_checkpointing: true
|
82 |
+
early_stopping_patience:
|
83 |
+
resume_from_checkpoint:
|
84 |
+
local_rank:
|
85 |
+
logging_steps: 1
|
86 |
+
xformers_attention:
|
87 |
+
s2_attention:
|
88 |
+
|
89 |
+
warmup_steps: 10
|
90 |
+
evals_per_epoch: 4
|
91 |
+
eval_table_size:
|
92 |
+
eval_max_new_tokens: 128
|
93 |
+
saves_per_epoch: 4
|
94 |
+
debug:
|
95 |
+
deepspeed:
|
96 |
+
weight_decay: 0.0
|
97 |
+
fsdp:
|
98 |
+
fsdp_config:
|
99 |
+
|
100 |
+
```
|
101 |
+
|
102 |
+
</details><br>
|
103 |
+
|
104 |
+
# phi-3.5-alpaca-test-classifier
|
105 |
+
|
106 |
+
This model is a fine-tuned version of [microsoft/Phi-3.5-mini-instruct](https://huggingface.co/microsoft/Phi-3.5-mini-instruct) on the None dataset.
|
107 |
+
It achieves the following results on the evaluation set:
|
108 |
+
- Loss: 0.1174
|
109 |
+
|
110 |
+
## Model description
|
111 |
+
|
112 |
+
More information needed
|
113 |
+
|
114 |
+
## Intended uses & limitations
|
115 |
+
|
116 |
+
More information needed
|
117 |
+
|
118 |
+
## Training and evaluation data
|
119 |
+
|
120 |
+
More information needed
|
121 |
+
|
122 |
+
## Training procedure
|
123 |
+
|
124 |
+
### Training hyperparameters
|
125 |
+
|
126 |
+
The following hyperparameters were used during training:
|
127 |
+
- learning_rate: 5e-05
|
128 |
+
- train_batch_size: 8
|
129 |
+
- eval_batch_size: 8
|
130 |
+
- seed: 42
|
131 |
+
- gradient_accumulation_steps: 4
|
132 |
+
- total_train_batch_size: 32
|
133 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
134 |
+
- lr_scheduler_type: cosine
|
135 |
+
- lr_scheduler_warmup_steps: 10
|
136 |
+
- num_epochs: 2
|
137 |
+
|
138 |
+
### Training results
|
139 |
+
|
140 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
141 |
+
|:-------------:|:------:|:----:|:---------------:|
|
142 |
+
| 11.7206 | 0.0187 | 1 | 11.9120 |
|
143 |
+
| 9.4452 | 0.2617 | 14 | 9.1059 |
|
144 |
+
| 2.2582 | 0.5234 | 28 | 1.8353 |
|
145 |
+
| 0.1463 | 0.7850 | 42 | 0.1658 |
|
146 |
+
| 0.1315 | 1.0467 | 56 | 0.1291 |
|
147 |
+
| 0.1207 | 1.3084 | 70 | 0.1218 |
|
148 |
+
| 0.1238 | 1.5701 | 84 | 0.1196 |
|
149 |
+
| 0.1103 | 1.8318 | 98 | 0.1174 |
|
150 |
+
|
151 |
+
|
152 |
+
### Framework versions
|
153 |
+
|
154 |
+
- PEFT 0.12.0
|
155 |
+
- Transformers 4.44.2
|
156 |
+
- Pytorch 2.3.1+cu121
|
157 |
+
- Datasets 2.20.0
|
158 |
+
- Tokenizers 0.19.1
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dcd38b21f22100859359437e654e4375ef98dc34d2dba075d967f5500875e850
|
3 |
+
size 201419466
|