EshAhm commited on
Commit
0a2c5fa
·
verified ·
1 Parent(s): 454afe6

EshAhm/LoRa-Python1

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: mit
4
+ base_model: microsoft/phi-2
5
+ tags:
6
+ - base_model:adapter:microsoft/phi-2
7
+ - lora
8
+ pipeline_tag: text-generation
9
+ model-index:
10
+ - name: phi-2-LoRa-Python
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
+ # phi-2-LoRa-Python
18
+
19
+ This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 4.4689
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0002
41
+ - train_batch_size: 2
42
+ - eval_batch_size: 2
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 2
45
+ - total_train_batch_size: 4
46
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
47
+ - lr_scheduler_type: linear
48
+ - lr_scheduler_warmup_steps: 100
49
+ - num_epochs: 3
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss |
54
+ |:-------------:|:------:|:----:|:---------------:|
55
+ | 4.5284 | 0.1333 | 100 | 4.4728 |
56
+ | 4.4172 | 0.2667 | 200 | 4.4776 |
57
+ | 4.2789 | 0.4 | 300 | 4.4774 |
58
+ | 4.4041 | 0.5333 | 400 | 4.4751 |
59
+ | 4.3978 | 0.6667 | 500 | 4.4777 |
60
+ | 4.061 | 0.8 | 600 | 4.4762 |
61
+ | 4.1693 | 0.9333 | 700 | 4.4764 |
62
+ | 4.5403 | 1.0667 | 800 | 4.4727 |
63
+ | 4.5481 | 1.2 | 900 | 4.4725 |
64
+ | 4.0223 | 1.3333 | 1000 | 4.4757 |
65
+ | 4.5108 | 1.4667 | 1100 | 4.4747 |
66
+ | 4.0763 | 1.6 | 1200 | 4.4719 |
67
+ | 4.1443 | 1.7333 | 1300 | 4.4723 |
68
+ | 4.4699 | 1.8667 | 1400 | 4.4738 |
69
+ | 4.7084 | 2.0 | 1500 | 4.4713 |
70
+ | 3.9716 | 2.1333 | 1600 | 4.4710 |
71
+ | 4.5229 | 2.2667 | 1700 | 4.4711 |
72
+ | 3.8189 | 2.4 | 1800 | 4.4702 |
73
+ | 4.6479 | 2.5333 | 1900 | 4.4695 |
74
+ | 4.4305 | 2.6667 | 2000 | 4.4690 |
75
+ | 4.2955 | 2.8 | 2100 | 4.4690 |
76
+ | 4.2989 | 2.9333 | 2200 | 4.4689 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - PEFT 0.17.1
82
+ - Transformers 4.56.1
83
+ - Pytorch 2.8.0+cu126
84
+ - Datasets 4.0.0
85
+ - Tokenizers 0.22.0
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": null,
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 64,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.1,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "qalora_group_size": 16,
24
+ "r": 32,
25
+ "rank_pattern": {},
26
+ "revision": null,
27
+ "target_modules": [
28
+ "v_proj",
29
+ "k_proj",
30
+ "dense",
31
+ "q_proj"
32
+ ],
33
+ "target_parameters": null,
34
+ "task_type": "CAUSAL_LM",
35
+ "trainable_token_indices": null,
36
+ "use_dora": false,
37
+ "use_qalora": false,
38
+ "use_rslora": false
39
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2746cc7bdcac3d6b58df64efac21ef3160762157b0ea2c2af8976c80df4b6ef8
3
+ size 83924816
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77a7985546e2331302690dc943aa4032cf03d6e8a512705d41ba11c33fac01ec
3
+ size 5777