WangXFng commited on
Commit
c5c3a79
·
verified ·
1 Parent(s): 069fc67

Model save

Browse files
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- base_model: meta-llama/Llama-3.2-3B-Instruct
3
  library_name: peft
4
  license: llama3.2
5
  tags:
@@ -14,7 +14,7 @@ should probably proofread and complete it, then remove this comment. -->
14
 
15
  # lora
16
 
17
- This model is a fine-tuned version of [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) on an unknown dataset.
18
 
19
  ## Model description
20
 
@@ -42,7 +42,7 @@ The following hyperparameters were used during training:
42
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
  - lr_scheduler_type: linear
44
  - lr_scheduler_warmup_steps: 2
45
- - num_epochs: 2
46
 
47
  ### Training results
48
 
@@ -50,7 +50,7 @@ The following hyperparameters were used during training:
50
 
51
  ### Framework versions
52
 
53
- - PEFT 0.13.1
54
  - Transformers 4.45.2
55
- - Pytorch 2.4.1
56
  - Tokenizers 0.20.0
 
1
  ---
2
+ base_model: meta-llama/Llama-3.2-1B-Instruct
3
  library_name: peft
4
  license: llama3.2
5
  tags:
 
14
 
15
  # lora
16
 
17
+ This model is a fine-tuned version of [meta-llama/Llama-3.2-1B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct) on an unknown dataset.
18
 
19
  ## Model description
20
 
 
42
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
  - lr_scheduler_type: linear
44
  - lr_scheduler_warmup_steps: 2
45
+ - num_epochs: 4
46
 
47
  ### Training results
48
 
 
50
 
51
  ### Framework versions
52
 
53
+ - PEFT 0.13.0
54
  - Transformers 4.45.2
55
+ - Pytorch 2.4.0
56
  - Tokenizers 0.20.0
adapter_config.json CHANGED
@@ -4,7 +4,7 @@
4
  "base_model_class": "LlamaForCausalLM",
5
  "parent_library": "transformers.models.llama.modeling_llama"
6
  },
7
- "base_model_name_or_path": "meta-llama/Llama-3.2-3B-Instruct",
8
  "bias": "none",
9
  "fan_in_fan_out": false,
10
  "inference_mode": true,
@@ -24,12 +24,12 @@
24
  "revision": null,
25
  "target_modules": [
26
  "o_proj",
27
- "k_proj",
28
  "down_proj",
29
  "q_proj",
30
- "v_proj",
31
  "up_proj",
32
- "gate_proj"
33
  ],
34
  "task_type": null,
35
  "use_dora": true,
 
4
  "base_model_class": "LlamaForCausalLM",
5
  "parent_library": "transformers.models.llama.modeling_llama"
6
  },
7
+ "base_model_name_or_path": "meta-llama/Llama-3.2-1B-Instruct",
8
  "bias": "none",
9
  "fan_in_fan_out": false,
10
  "inference_mode": true,
 
24
  "revision": null,
25
  "target_modules": [
26
  "o_proj",
27
+ "gate_proj",
28
  "down_proj",
29
  "q_proj",
30
+ "k_proj",
31
  "up_proj",
32
+ "v_proj"
33
  ],
34
  "task_type": null,
35
  "use_dora": true,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:edc35461591e376a149bc97ee20d05ba3e08b63b4d1f0a96c620390206290710
3
- size 1639093264
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4362f75679bf4f5e357de009c0daa6baf45eca037300bc533ce7c7af7172c500
3
+ size 1082290000
trainer_state.json CHANGED
@@ -1,55 +1,83 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": 2.0,
5
  "eval_steps": 500,
6
- "global_step": 1030,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
  "epoch": 0.4854368932038835,
13
- "grad_norm": 2.154229164123535,
14
- "learning_rate": 7.587548638132295e-05,
15
- "loss": 0.6104,
16
  "step": 250
17
  },
18
  {
19
  "epoch": 0.970873786407767,
20
- "grad_norm": 1.9545427560806274,
21
- "learning_rate": 5.155642023346303e-05,
22
- "loss": 0.3677,
23
  "step": 500
24
  },
25
  {
26
  "epoch": 1.4563106796116505,
27
- "grad_norm": 2.771542549133301,
28
- "learning_rate": 2.7237354085603113e-05,
29
- "loss": 0.3307,
30
  "step": 750
31
  },
32
  {
33
  "epoch": 1.941747572815534,
34
- "grad_norm": 2.780686140060425,
35
- "learning_rate": 2.9182879377431908e-06,
36
- "loss": 0.2978,
37
  "step": 1000
38
  },
39
  {
40
- "epoch": 2.0,
41
- "step": 1030,
42
- "total_flos": 7.232215420241879e+17,
43
- "train_loss": 0.39821495037634397,
44
- "train_runtime": 29524.5328,
45
- "train_samples_per_second": 8.931,
46
- "train_steps_per_second": 0.035
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
  ],
49
  "logging_steps": 250,
50
- "max_steps": 1030,
51
  "num_input_tokens_seen": 0,
52
- "num_train_epochs": 2,
53
  "save_steps": 500,
54
  "stateful_callbacks": {
55
  "TrainerControl": {
@@ -63,7 +91,7 @@
63
  "attributes": {}
64
  }
65
  },
66
- "total_flos": 7.232215420241879e+17,
67
  "train_batch_size": 16,
68
  "trial_name": null,
69
  "trial_params": null
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 4.0,
5
  "eval_steps": 500,
6
+ "global_step": 2060,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
  "epoch": 0.4854368932038835,
13
+ "grad_norm": 2.1187877655029297,
14
+ "learning_rate": 8.794946550048592e-05,
15
+ "loss": 0.6386,
16
  "step": 250
17
  },
18
  {
19
  "epoch": 0.970873786407767,
20
+ "grad_norm": 1.740912675857544,
21
+ "learning_rate": 7.580174927113704e-05,
22
+ "loss": 0.3835,
23
  "step": 500
24
  },
25
  {
26
  "epoch": 1.4563106796116505,
27
+ "grad_norm": 1.9458281993865967,
28
+ "learning_rate": 6.365403304178815e-05,
29
+ "loss": 0.3585,
30
  "step": 750
31
  },
32
  {
33
  "epoch": 1.941747572815534,
34
+ "grad_norm": 2.2465028762817383,
35
+ "learning_rate": 5.150631681243926e-05,
36
+ "loss": 0.3352,
37
  "step": 1000
38
  },
39
  {
40
+ "epoch": 2.4271844660194173,
41
+ "grad_norm": 2.5679686069488525,
42
+ "learning_rate": 3.9358600583090386e-05,
43
+ "loss": 0.3078,
44
+ "step": 1250
45
+ },
46
+ {
47
+ "epoch": 2.912621359223301,
48
+ "grad_norm": 2.835810899734497,
49
+ "learning_rate": 2.72108843537415e-05,
50
+ "loss": 0.2888,
51
+ "step": 1500
52
+ },
53
+ {
54
+ "epoch": 3.3980582524271843,
55
+ "grad_norm": 2.606696367263794,
56
+ "learning_rate": 1.5063168124392615e-05,
57
+ "loss": 0.2672,
58
+ "step": 1750
59
+ },
60
+ {
61
+ "epoch": 3.883495145631068,
62
+ "grad_norm": 2.562168836593628,
63
+ "learning_rate": 2.915451895043732e-06,
64
+ "loss": 0.2569,
65
+ "step": 2000
66
+ },
67
+ {
68
+ "epoch": 4.0,
69
+ "step": 2060,
70
+ "total_flos": 4.998764563388621e+17,
71
+ "train_loss": 0.35164398545200387,
72
+ "train_runtime": 15327.6354,
73
+ "train_samples_per_second": 34.405,
74
+ "train_steps_per_second": 0.134
75
  }
76
  ],
77
  "logging_steps": 250,
78
+ "max_steps": 2060,
79
  "num_input_tokens_seen": 0,
80
+ "num_train_epochs": 4,
81
  "save_steps": 500,
82
  "stateful_callbacks": {
83
  "TrainerControl": {
 
91
  "attributes": {}
92
  }
93
  },
94
+ "total_flos": 4.998764563388621e+17,
95
  "train_batch_size": 16,
96
  "trial_name": null,
97
  "trial_params": null
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:04956adb5217175aaa36e11b2da87eace1a9f30a2a1627cc233a8fb4044febf4
3
  size 5176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8633d9c0f297b452fd7e6997b1a857978104ecf0f156a35e33ed6acc4cb7b486
3
  size 5176