Erick03 commited on
Commit
fd377b1
1 Parent(s): f2fbbe9

End of training

Browse files
Files changed (5) hide show
  1. README.md +7 -3
  2. all_results.json +10 -10
  3. eval_results.json +5 -5
  4. train_results.json +6 -6
  5. trainer_state.json +84 -24
README.md CHANGED
@@ -1,17 +1,21 @@
1
  ---
2
  base_model: HuggingFaceTB/SmolLM2-135M-Instruct
 
3
  library_name: transformers
4
- model_name: HFTB-SmolLM2-135M-Instruct-OTCMedicinePHv2
5
  tags:
6
  - generated_from_trainer
 
 
 
7
  - trl
8
  - sft
9
  licence: license
10
  ---
11
 
12
- # Model Card for HFTB-SmolLM2-135M-Instruct-OTCMedicinePHv2
13
 
14
- This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct).
15
  It has been trained using [TRL](https://github.com/huggingface/trl).
16
 
17
  ## Quick start
 
1
  ---
2
  base_model: HuggingFaceTB/SmolLM2-135M-Instruct
3
+ datasets: Crimsoin/OTC_Medicine_PH_v2
4
  library_name: transformers
5
+ model_name: HuggingFaceTB/SmolLM2-135M-Instruct
6
  tags:
7
  - generated_from_trainer
8
+ - question-answering
9
+ - QA
10
+ - text-generation
11
  - trl
12
  - sft
13
  licence: license
14
  ---
15
 
16
+ # Model Card for HuggingFaceTB/SmolLM2-135M-Instruct
17
 
18
+ This model is a fine-tuned version of [HuggingFaceTB/SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct) on the [Crimsoin/OTC_Medicine_PH_v2](https://huggingface.co/datasets/Crimsoin/OTC_Medicine_PH_v2) dataset.
19
  It has been trained using [TRL](https://github.com/huggingface/trl).
20
 
21
  ## Quick start
all_results.json CHANGED
@@ -1,12 +1,12 @@
1
  {
2
- "epoch": 3.883495145631068,
3
- "eval_loss": 0.14737741649150848,
4
- "eval_runtime": 14.0975,
5
- "eval_samples_per_second": 37.595,
6
- "eval_steps_per_second": 4.753,
7
- "total_flos": 258162252195456.0,
8
- "train_loss": 0.4854153060913086,
9
- "train_runtime": 885.215,
10
- "train_samples_per_second": 5.422,
11
- "train_steps_per_second": 0.113
12
  }
 
1
  {
2
+ "epoch": 9.70873786407767,
3
+ "eval_loss": 0.11601576954126358,
4
+ "eval_runtime": 14.5695,
5
+ "eval_samples_per_second": 36.377,
6
+ "eval_steps_per_second": 4.599,
7
+ "total_flos": 634548176930304.0,
8
+ "train_loss": 0.2663491096496582,
9
+ "train_runtime": 2216.0805,
10
+ "train_samples_per_second": 21.66,
11
+ "train_steps_per_second": 0.451
12
  }
eval_results.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
- "epoch": 3.883495145631068,
3
- "eval_loss": 0.14737741649150848,
4
- "eval_runtime": 14.0975,
5
- "eval_samples_per_second": 37.595,
6
- "eval_steps_per_second": 4.753
7
  }
 
1
  {
2
+ "epoch": 9.70873786407767,
3
+ "eval_loss": 0.11601576954126358,
4
+ "eval_runtime": 14.5695,
5
+ "eval_samples_per_second": 36.377,
6
+ "eval_steps_per_second": 4.599
7
  }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 3.883495145631068,
3
- "total_flos": 258162252195456.0,
4
- "train_loss": 0.4854153060913086,
5
- "train_runtime": 885.215,
6
- "train_samples_per_second": 5.422,
7
- "train_steps_per_second": 0.113
8
  }
 
1
  {
2
+ "epoch": 9.70873786407767,
3
+ "total_flos": 634548176930304.0,
4
+ "train_loss": 0.2663491096496582,
5
+ "train_runtime": 2216.0805,
6
+ "train_samples_per_second": 21.66,
7
+ "train_steps_per_second": 0.451
8
  }
trainer_state.json CHANGED
@@ -1,43 +1,103 @@
1
  {
2
- "best_metric": 0.14742426574230194,
3
- "best_model_checkpoint": "./HFTB-SmolLM2-135M-Instruct-OTCMedicinePHv2\\checkpoint-100",
4
- "epoch": 3.883495145631068,
5
- "eval_steps": 100,
6
- "global_step": 100,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  {
12
  "epoch": 3.883495145631068,
13
- "grad_norm": 0.20863692462444305,
14
  "learning_rate": 0.0005,
15
- "loss": 0.4854,
16
  "step": 100
17
  },
18
  {
19
  "epoch": 3.883495145631068,
20
- "eval_loss": 0.14742426574230194,
21
- "eval_runtime": 13.1852,
22
- "eval_samples_per_second": 40.197,
23
- "eval_steps_per_second": 5.081,
24
  "step": 100
25
  },
26
  {
27
- "epoch": 3.883495145631068,
28
- "step": 100,
29
- "total_flos": 258162252195456.0,
30
- "train_loss": 0.4854153060913086,
31
- "train_runtime": 885.215,
32
- "train_samples_per_second": 5.422,
33
- "train_steps_per_second": 0.113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
  ],
36
- "logging_steps": 100,
37
- "max_steps": 100,
38
  "num_input_tokens_seen": 0,
39
- "num_train_epochs": 4,
40
- "save_steps": 100,
41
  "stateful_callbacks": {
42
  "EarlyStoppingCallback": {
43
  "args": {
@@ -45,7 +105,7 @@
45
  "early_stopping_threshold": 0.01
46
  },
47
  "attributes": {
48
- "early_stopping_patience_counter": 0
49
  }
50
  },
51
  "TrainerControl": {
@@ -59,7 +119,7 @@
59
  "attributes": {}
60
  }
61
  },
62
- "total_flos": 258162252195456.0,
63
  "train_batch_size": 4,
64
  "trial_name": null,
65
  "trial_params": null
 
1
  {
2
+ "best_metric": 0.11598550528287888,
3
+ "best_model_checkpoint": "./HFTB-SmolLM2-135M-Instruct-OTCMedicinePHv2\\checkpoint-250",
4
+ "epoch": 9.70873786407767,
5
+ "eval_steps": 50,
6
+ "global_step": 250,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
+ {
12
+ "epoch": 1.941747572815534,
13
+ "grad_norm": 0.35462793707847595,
14
+ "learning_rate": 0.0005,
15
+ "loss": 0.8189,
16
+ "step": 50
17
+ },
18
+ {
19
+ "epoch": 1.941747572815534,
20
+ "eval_loss": 0.16038869321346283,
21
+ "eval_runtime": 13.1355,
22
+ "eval_samples_per_second": 40.349,
23
+ "eval_steps_per_second": 5.101,
24
+ "step": 50
25
+ },
26
  {
27
  "epoch": 3.883495145631068,
28
+ "grad_norm": 0.2993379235267639,
29
  "learning_rate": 0.0005,
30
+ "loss": 0.1464,
31
  "step": 100
32
  },
33
  {
34
  "epoch": 3.883495145631068,
35
+ "eval_loss": 0.12895184755325317,
36
+ "eval_runtime": 12.8791,
37
+ "eval_samples_per_second": 41.152,
38
+ "eval_steps_per_second": 5.202,
39
  "step": 100
40
  },
41
  {
42
+ "epoch": 5.825242718446602,
43
+ "grad_norm": 0.14636453986167908,
44
+ "learning_rate": 0.0005,
45
+ "loss": 0.127,
46
+ "step": 150
47
+ },
48
+ {
49
+ "epoch": 5.825242718446602,
50
+ "eval_loss": 0.12111850827932358,
51
+ "eval_runtime": 12.7129,
52
+ "eval_samples_per_second": 41.69,
53
+ "eval_steps_per_second": 5.27,
54
+ "step": 150
55
+ },
56
+ {
57
+ "epoch": 7.766990291262136,
58
+ "grad_norm": 0.1845141053199768,
59
+ "learning_rate": 0.0005,
60
+ "loss": 0.1212,
61
+ "step": 200
62
+ },
63
+ {
64
+ "epoch": 7.766990291262136,
65
+ "eval_loss": 0.11958930641412735,
66
+ "eval_runtime": 14.1475,
67
+ "eval_samples_per_second": 37.463,
68
+ "eval_steps_per_second": 4.736,
69
+ "step": 200
70
+ },
71
+ {
72
+ "epoch": 9.70873786407767,
73
+ "grad_norm": 0.14870111644268036,
74
+ "learning_rate": 0.0005,
75
+ "loss": 0.1183,
76
+ "step": 250
77
+ },
78
+ {
79
+ "epoch": 9.70873786407767,
80
+ "eval_loss": 0.11598550528287888,
81
+ "eval_runtime": 13.0644,
82
+ "eval_samples_per_second": 40.568,
83
+ "eval_steps_per_second": 5.128,
84
+ "step": 250
85
+ },
86
+ {
87
+ "epoch": 9.70873786407767,
88
+ "step": 250,
89
+ "total_flos": 634548176930304.0,
90
+ "train_loss": 0.2663491096496582,
91
+ "train_runtime": 2216.0805,
92
+ "train_samples_per_second": 21.66,
93
+ "train_steps_per_second": 0.451
94
  }
95
  ],
96
+ "logging_steps": 50,
97
+ "max_steps": 1000,
98
  "num_input_tokens_seen": 0,
99
+ "num_train_epochs": 40,
100
+ "save_steps": 50,
101
  "stateful_callbacks": {
102
  "EarlyStoppingCallback": {
103
  "args": {
 
105
  "early_stopping_threshold": 0.01
106
  },
107
  "attributes": {
108
+ "early_stopping_patience_counter": 3
109
  }
110
  },
111
  "TrainerControl": {
 
119
  "attributes": {}
120
  }
121
  },
122
+ "total_flos": 634548176930304.0,
123
  "train_batch_size": 4,
124
  "trial_name": null,
125
  "trial_params": null