End of training
Browse files- README.md +89 -0
- adapter_config.json +28 -0
- adapter_model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ar
|
4 |
+
library_name: peft
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- dalyaff/darebah
|
9 |
+
base_model: microsoft/phi-2
|
10 |
+
model-index:
|
11 |
+
- name: phi-2
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# phi-2
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [microsoftl](https://huggingface.co/microsoftl) on the dalyaff/darebah dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.7781
|
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: 2.5e-05
|
42 |
+
- train_batch_size: 2
|
43 |
+
- eval_batch_size: 8
|
44 |
+
- seed: 42
|
45 |
+
- gradient_accumulation_steps: 4
|
46 |
+
- total_train_batch_size: 8
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: linear
|
49 |
+
- lr_scheduler_warmup_steps: 5
|
50 |
+
- training_steps: 2500
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
55 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
56 |
+
| 1.1114 | 0.89 | 100 | 1.0073 |
|
57 |
+
| 0.8772 | 1.78 | 200 | 0.8791 |
|
58 |
+
| 0.7638 | 2.67 | 300 | 0.8327 |
|
59 |
+
| 0.7518 | 3.56 | 400 | 0.8077 |
|
60 |
+
| 0.6624 | 4.44 | 500 | 0.7896 |
|
61 |
+
| 0.6386 | 5.33 | 600 | 0.7826 |
|
62 |
+
| 0.6161 | 6.22 | 700 | 0.7677 |
|
63 |
+
| 0.6053 | 7.11 | 800 | 0.7669 |
|
64 |
+
| 0.5725 | 8.0 | 900 | 0.7640 |
|
65 |
+
| 0.5569 | 8.89 | 1000 | 0.7705 |
|
66 |
+
| 0.5303 | 9.78 | 1100 | 0.7691 |
|
67 |
+
| 0.546 | 10.67 | 1200 | 0.7671 |
|
68 |
+
| 0.5331 | 11.56 | 1300 | 0.7696 |
|
69 |
+
| 0.5142 | 12.44 | 1400 | 0.7670 |
|
70 |
+
| 0.5037 | 13.33 | 1500 | 0.7713 |
|
71 |
+
| 0.4938 | 14.22 | 1600 | 0.7686 |
|
72 |
+
| 0.4879 | 15.11 | 1700 | 0.7733 |
|
73 |
+
| 0.4743 | 16.0 | 1800 | 0.7730 |
|
74 |
+
| 0.4705 | 16.89 | 1900 | 0.7739 |
|
75 |
+
| 0.4942 | 17.78 | 2000 | 0.7770 |
|
76 |
+
| 0.4669 | 18.67 | 2100 | 0.7709 |
|
77 |
+
| 0.462 | 19.56 | 2200 | 0.7788 |
|
78 |
+
| 0.4667 | 20.44 | 2300 | 0.7783 |
|
79 |
+
| 0.4638 | 21.33 | 2400 | 0.7754 |
|
80 |
+
| 0.4512 | 22.22 | 2500 | 0.7781 |
|
81 |
+
|
82 |
+
|
83 |
+
### Framework versions
|
84 |
+
|
85 |
+
- PEFT 0.7.2.dev0
|
86 |
+
- Transformers 4.38.0.dev0
|
87 |
+
- Pytorch 2.1.0+cu121
|
88 |
+
- Datasets 2.16.1
|
89 |
+
- Tokenizers 0.15.0
|
adapter_config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "microsoft/phi-2",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 16,
|
13 |
+
"lora_dropout": 0.05,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 8,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"fc2",
|
23 |
+
"fc1",
|
24 |
+
"Wqkv"
|
25 |
+
],
|
26 |
+
"task_type": "CAUSAL_LM",
|
27 |
+
"use_rslora": false
|
28 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d35a735c43713115f84f3b57996bcc9fa4d2da1009c4b73def50d60cd1886652
|
3 |
+
size 26230352
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f65e142915211d765a5a86fcc6c7e54d6774d3f41578507b3e9ab9147ddca69a
|
3 |
+
size 4728
|