minimini99
commited on
Commit
•
51b0802
1
Parent(s):
11de333
minimini99/phi3-lora-mergedata
Browse files- README.md +135 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- added_tokens.json +13 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +131 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/Phi-3-mini-4k-instruct
|
3 |
+
library_name: peft
|
4 |
+
license: mit
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- sft
|
8 |
+
- generated_from_trainer
|
9 |
+
model-index:
|
10 |
+
- name: phi-3-mini-LoRA-mergedatafilter3_split
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/jongmin4422/Phi3-mini-ft-python-code2_split/runs/24vjhm5l)
|
18 |
+
# phi-3-mini-LoRA-mergedatafilter3_split
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.3387
|
23 |
+
|
24 |
+
## Model description
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Intended uses & limitations
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training and evaluation data
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training procedure
|
37 |
+
|
38 |
+
### Training hyperparameters
|
39 |
+
|
40 |
+
The following hyperparameters were used during training:
|
41 |
+
- learning_rate: 0.0001
|
42 |
+
- train_batch_size: 12
|
43 |
+
- eval_batch_size: 12
|
44 |
+
- seed: 42
|
45 |
+
- distributed_type: multi-GPU
|
46 |
+
- num_devices: 4
|
47 |
+
- gradient_accumulation_steps: 4
|
48 |
+
- total_train_batch_size: 192
|
49 |
+
- total_eval_batch_size: 48
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_ratio: 0.1
|
53 |
+
- num_epochs: 10
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
58 |
+
|:-------------:|:------:|:-----:|:---------------:|
|
59 |
+
| 0.4848 | 0.1462 | 800 | 0.4776 |
|
60 |
+
| 0.4265 | 0.2924 | 1600 | 0.4238 |
|
61 |
+
| 0.3995 | 0.4386 | 2400 | 0.3986 |
|
62 |
+
| 0.3848 | 0.5848 | 3200 | 0.3839 |
|
63 |
+
| 0.3742 | 0.7310 | 4000 | 0.3742 |
|
64 |
+
| 0.3679 | 0.8772 | 4800 | 0.3669 |
|
65 |
+
| 0.3616 | 1.0233 | 5600 | 0.3625 |
|
66 |
+
| 0.3574 | 1.1695 | 6400 | 0.3569 |
|
67 |
+
| 0.3537 | 1.3157 | 7200 | 0.3537 |
|
68 |
+
| 0.3523 | 1.4619 | 8000 | 0.3516 |
|
69 |
+
| 0.3491 | 1.6081 | 8800 | 0.3495 |
|
70 |
+
| 0.3478 | 1.7543 | 9600 | 0.3483 |
|
71 |
+
| 0.3467 | 1.9005 | 10400 | 0.3470 |
|
72 |
+
| 0.3455 | 2.0467 | 11200 | 0.3459 |
|
73 |
+
| 0.3455 | 2.1929 | 12000 | 0.3451 |
|
74 |
+
| 0.3442 | 2.3391 | 12800 | 0.3444 |
|
75 |
+
| 0.3424 | 2.4853 | 13600 | 0.3436 |
|
76 |
+
| 0.3431 | 2.6315 | 14400 | 0.3432 |
|
77 |
+
| 0.3427 | 2.7777 | 15200 | 0.3426 |
|
78 |
+
| 0.3424 | 2.9238 | 16000 | 0.3423 |
|
79 |
+
| 0.3419 | 3.0700 | 16800 | 0.3418 |
|
80 |
+
| 0.3413 | 3.2162 | 17600 | 0.3415 |
|
81 |
+
| 0.3417 | 3.3624 | 18400 | 0.3412 |
|
82 |
+
| 0.3406 | 3.5086 | 19200 | 0.3408 |
|
83 |
+
| 0.34 | 3.6548 | 20000 | 0.3407 |
|
84 |
+
| 0.341 | 3.8010 | 20800 | 0.3406 |
|
85 |
+
| 0.3395 | 3.9472 | 21600 | 0.3403 |
|
86 |
+
| 0.3415 | 4.0934 | 22400 | 0.3401 |
|
87 |
+
| 0.3398 | 4.2396 | 23200 | 0.3400 |
|
88 |
+
| 0.3395 | 4.3858 | 24000 | 0.3398 |
|
89 |
+
| 0.3405 | 4.5320 | 24800 | 0.3396 |
|
90 |
+
| 0.3385 | 4.6781 | 25600 | 0.3396 |
|
91 |
+
| 0.339 | 4.8243 | 26400 | 0.3395 |
|
92 |
+
| 0.3391 | 4.9705 | 27200 | 0.3395 |
|
93 |
+
| 0.3397 | 5.1167 | 28000 | 0.3393 |
|
94 |
+
| 0.337 | 5.2629 | 28800 | 0.3393 |
|
95 |
+
| 0.3383 | 5.4091 | 29600 | 0.3392 |
|
96 |
+
| 0.3384 | 5.5553 | 30400 | 0.3391 |
|
97 |
+
| 0.3383 | 5.7015 | 31200 | 0.3391 |
|
98 |
+
| 0.3386 | 5.8477 | 32000 | 0.3390 |
|
99 |
+
| 0.3391 | 5.9939 | 32800 | 0.3390 |
|
100 |
+
| 0.3384 | 6.1401 | 33600 | 0.3390 |
|
101 |
+
| 0.3391 | 6.2863 | 34400 | 0.3390 |
|
102 |
+
| 0.3385 | 6.4325 | 35200 | 0.3389 |
|
103 |
+
| 0.338 | 6.5786 | 36000 | 0.3389 |
|
104 |
+
| 0.3384 | 6.7248 | 36800 | 0.3389 |
|
105 |
+
| 0.3377 | 6.8710 | 37600 | 0.3388 |
|
106 |
+
| 0.338 | 7.0172 | 38400 | 0.3388 |
|
107 |
+
| 0.3385 | 7.1634 | 39200 | 0.3388 |
|
108 |
+
| 0.3393 | 7.3096 | 40000 | 0.3388 |
|
109 |
+
| 0.3377 | 7.4558 | 40800 | 0.3388 |
|
110 |
+
| 0.3382 | 7.6020 | 41600 | 0.3387 |
|
111 |
+
| 0.3387 | 7.7482 | 42400 | 0.3387 |
|
112 |
+
| 0.3391 | 7.8944 | 43200 | 0.3387 |
|
113 |
+
| 0.338 | 8.0406 | 44000 | 0.3387 |
|
114 |
+
| 0.3386 | 8.1868 | 44800 | 0.3387 |
|
115 |
+
| 0.3385 | 8.3330 | 45600 | 0.3387 |
|
116 |
+
| 0.3372 | 8.4791 | 46400 | 0.3387 |
|
117 |
+
| 0.338 | 8.6253 | 47200 | 0.3387 |
|
118 |
+
| 0.3387 | 8.7715 | 48000 | 0.3387 |
|
119 |
+
| 0.3391 | 8.9177 | 48800 | 0.3387 |
|
120 |
+
| 0.3379 | 9.0639 | 49600 | 0.3387 |
|
121 |
+
| 0.3386 | 9.2101 | 50400 | 0.3387 |
|
122 |
+
| 0.3385 | 9.3563 | 51200 | 0.3387 |
|
123 |
+
| 0.3385 | 9.5025 | 52000 | 0.3387 |
|
124 |
+
| 0.3385 | 9.6487 | 52800 | 0.3387 |
|
125 |
+
| 0.3386 | 9.7949 | 53600 | 0.3387 |
|
126 |
+
| 0.3373 | 9.9411 | 54400 | 0.3387 |
|
127 |
+
|
128 |
+
|
129 |
+
### Framework versions
|
130 |
+
|
131 |
+
- PEFT 0.11.1
|
132 |
+
- Transformers 4.43.2
|
133 |
+
- Pytorch 2.3.1+cu121
|
134 |
+
- Datasets 2.20.0
|
135 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "microsoft/Phi-3-mini-4k-instruct",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 16,
|
14 |
+
"lora_dropout": 0.05,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 16,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"k_proj",
|
24 |
+
"up_proj",
|
25 |
+
"v_proj",
|
26 |
+
"o_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"down_proj",
|
29 |
+
"q_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_dora": false,
|
33 |
+
"use_rslora": false
|
34 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8e45823690794aa124d942bc681dc832b7431910917dd02aecbe469c749dcfc
|
3 |
+
size 17842848
|
added_tokens.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|assistant|>": 32001,
|
3 |
+
"<|endoftext|>": 32000,
|
4 |
+
"<|end|>": 32007,
|
5 |
+
"<|placeholder1|>": 32002,
|
6 |
+
"<|placeholder2|>": 32003,
|
7 |
+
"<|placeholder3|>": 32004,
|
8 |
+
"<|placeholder4|>": 32005,
|
9 |
+
"<|placeholder5|>": 32008,
|
10 |
+
"<|placeholder6|>": 32009,
|
11 |
+
"<|system|>": 32006,
|
12 |
+
"<|user|>": 32010
|
13 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "<unk>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_eos_token": true,
|
4 |
+
"add_prefix_space": null,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<unk>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": true,
|
27 |
+
"single_word": false,
|
28 |
+
"special": false
|
29 |
+
},
|
30 |
+
"32000": {
|
31 |
+
"content": "<|endoftext|>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false,
|
36 |
+
"special": true
|
37 |
+
},
|
38 |
+
"32001": {
|
39 |
+
"content": "<|assistant|>",
|
40 |
+
"lstrip": false,
|
41 |
+
"normalized": false,
|
42 |
+
"rstrip": true,
|
43 |
+
"single_word": false,
|
44 |
+
"special": true
|
45 |
+
},
|
46 |
+
"32002": {
|
47 |
+
"content": "<|placeholder1|>",
|
48 |
+
"lstrip": false,
|
49 |
+
"normalized": false,
|
50 |
+
"rstrip": true,
|
51 |
+
"single_word": false,
|
52 |
+
"special": true
|
53 |
+
},
|
54 |
+
"32003": {
|
55 |
+
"content": "<|placeholder2|>",
|
56 |
+
"lstrip": false,
|
57 |
+
"normalized": false,
|
58 |
+
"rstrip": true,
|
59 |
+
"single_word": false,
|
60 |
+
"special": true
|
61 |
+
},
|
62 |
+
"32004": {
|
63 |
+
"content": "<|placeholder3|>",
|
64 |
+
"lstrip": false,
|
65 |
+
"normalized": false,
|
66 |
+
"rstrip": true,
|
67 |
+
"single_word": false,
|
68 |
+
"special": true
|
69 |
+
},
|
70 |
+
"32005": {
|
71 |
+
"content": "<|placeholder4|>",
|
72 |
+
"lstrip": false,
|
73 |
+
"normalized": false,
|
74 |
+
"rstrip": true,
|
75 |
+
"single_word": false,
|
76 |
+
"special": true
|
77 |
+
},
|
78 |
+
"32006": {
|
79 |
+
"content": "<|system|>",
|
80 |
+
"lstrip": false,
|
81 |
+
"normalized": false,
|
82 |
+
"rstrip": true,
|
83 |
+
"single_word": false,
|
84 |
+
"special": true
|
85 |
+
},
|
86 |
+
"32007": {
|
87 |
+
"content": "<|end|>",
|
88 |
+
"lstrip": false,
|
89 |
+
"normalized": false,
|
90 |
+
"rstrip": true,
|
91 |
+
"single_word": false,
|
92 |
+
"special": true
|
93 |
+
},
|
94 |
+
"32008": {
|
95 |
+
"content": "<|placeholder5|>",
|
96 |
+
"lstrip": false,
|
97 |
+
"normalized": false,
|
98 |
+
"rstrip": true,
|
99 |
+
"single_word": false,
|
100 |
+
"special": true
|
101 |
+
},
|
102 |
+
"32009": {
|
103 |
+
"content": "<|placeholder6|>",
|
104 |
+
"lstrip": false,
|
105 |
+
"normalized": false,
|
106 |
+
"rstrip": true,
|
107 |
+
"single_word": false,
|
108 |
+
"special": true
|
109 |
+
},
|
110 |
+
"32010": {
|
111 |
+
"content": "<|user|>",
|
112 |
+
"lstrip": false,
|
113 |
+
"normalized": false,
|
114 |
+
"rstrip": true,
|
115 |
+
"single_word": false,
|
116 |
+
"special": true
|
117 |
+
}
|
118 |
+
},
|
119 |
+
"bos_token": "<s>",
|
120 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{'<|system|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'user' %}{{'<|user|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'assistant' %}{{'<|assistant|>\n' + message['content'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% else %}{{ eos_token }}{% endif %}",
|
121 |
+
"clean_up_tokenization_spaces": false,
|
122 |
+
"eos_token": "<|endoftext|>",
|
123 |
+
"legacy": false,
|
124 |
+
"model_max_length": 4096,
|
125 |
+
"pad_token": "<unk>",
|
126 |
+
"padding_side": "left",
|
127 |
+
"sp_model_kwargs": {},
|
128 |
+
"tokenizer_class": "LlamaTokenizer",
|
129 |
+
"unk_token": "<unk>",
|
130 |
+
"use_default_system_prompt": false
|
131 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4b00b98c654301ba1a8d568cf1202f8d1a3c61c9d49a64035bfd4f019d52c933
|
3 |
+
size 5432
|