maherghanem86 commited on
Commit
eba226c
·
verified ·
1 Parent(s): 7f10ef2

upload model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ data/patient_records_clean.csv filter=lfs diff=lfs merge=lfs -text
37
+ data/patient_records_aggregated.csv filter=lfs diff=lfs merge=lfs -text
38
+ data/train_records.csv filter=lfs diff=lfs merge=lfs -text
39
+ data/validation_records.csv filter=lfs diff=lfs merge=lfs -text
40
+ data/test_records.csv filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,45 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Llama2-7B-MIMIC-iii-Extraction-v1
2
+
3
+ ## Model Description
4
+ This model is a fine-tuned version of **Llama-2-7b-chat-hf** designed for **Structured Clinical Information Extraction**. It has been specifically trained to process unstructured clinical notes (discharge summaries) from the **MIMIC-III** database and transform them into a structured **JSON format**.
5
+
6
+ The model can identify and extract key medical entities such as:
7
+ - Drug names
8
+ - Dosages
9
+ - Frequency of administration
10
+ - Indications/Reasons for treatment
11
+
12
+ ## Training Procedure
13
+ The model was fine-tuned using **QLoRA (4-bit quantization)** to ensure efficiency and high performance.
14
+
15
+ ### Training Hyperparameters:
16
+ - **Base Model:** NousResearch/Llama-2-7b-chat-hf
17
+ - **Method:** LoRA (Low-Rank Adaptation)
18
+ - **Max Sequence Length:** 2048 tokens
19
+ - **Learning Rate:** 2e-4
20
+ - **Batch Size:** 1 (with 4 gradient accumulation steps)
21
+ - **Optimizer:** paged_adamw_32bit
22
+ - **Precision:** 4-bit (bitsandbytes)
23
+
24
+ ### LoRA Configuration:
25
+ - **r (Rank):** 16
26
+ - **lora_alpha:** 32
27
+ - **Target Modules:** q_proj, v_proj, k_proj, o_proj (Attention layers)
28
+ - **lora_dropout:** 0.05
29
+
30
+ ## Intended Use
31
+ This model is intended for researchers and developers working on clinical natural language processing (NLP). It is designed to assist in converting medical narratives into machine-readable data.
32
+
33
+ ### How to use:
34
+ To use this model, you need to load it as a PEFT (Adapter) on top of the base Llama-2-7b-chat-hf model.
35
+
36
+ ```python
37
+ from peft import PeftModel, PeftConfig
38
+ from transformers import AutoModelForCausalLM, AutoTokenizer
39
+
40
+ base_model_name = "NousResearch/Llama-2-7b-chat-hf"
41
+ adapter_model_name = "yazansvu123/Llama2-7B-MIMIC-iii-Extraction-v1"
42
+
43
+ model = AutoModelForCausalLM.from_pretrained(base_model_name)
44
+ model = PeftModel.from_pretrained(model, adapter_model_name)
45
+ tokenizer = AutoTokenizer.from_pretrained(base_model_name)
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "NousResearch/Llama-2-7b-chat-hf",
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": 32,
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
+ "r": 16,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "gate_proj",
28
+ "down_proj",
29
+ "v_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "k_proj",
33
+ "o_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": 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:ac5b1177d53f52a5244ed2c7f9701c35f851f46b485082c096f5a32bced461af
3
+ size 159967880
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<pad>": 32000
3
+ }
data/clinical_trials_data.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/my_model_predictions.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/my_model_predictions_improved.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/patient_records_aggregated.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2086a44b98e8d626a401cb6fce568831801595d77bd6aae13565a414980cc00
3
+ size 467932330
data/patient_records_clean.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb87a06d565ecdaede62ca503b0d478b1af6d24c0851ecde968cdab7b6fdd1f9
3
+ size 467797666
data/test_records.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bca06b7431e820c584881dd31f7c5b1c0b24786703724dbfe5e541047ad97d1a
3
+ size 47481378
data/train_records.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c844ac33fef9a56f9b31d67f4cb5b5ccdc150f84ff1dc68a70ad80e3217b1678
3
+ size 373152442
data/train_records_with_json.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/val_records_with_json.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/validation_records.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73654c2e4b1fc321edb966910208ccb822a8fa1803f4d01dc838d3ab6d3711f9
3
+ size 47298564
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db3a34424e4117205b73f1e005bceccd5f775681c35dd9fdcd34e1a025e94590
3
+ size 320194002
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:870b4d2e0d4174ac90ceb9ac59610e366f4e15c2945bf96ed3f6266b57a8ce36
3
+ size 14244
scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2520783f832b2107900d29345e68a9e21172111f0b5b7257af97a424d62b4f82
3
+ size 988
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75baa296154be9838aef0662f8fa11b0812d9005f5cbd86dce81cccb49a51ff0
3
+ size 1064
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
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,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": true,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "32000": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": false
37
+ }
38
+ },
39
+ "bos_token": "<s>",
40
+ "clean_up_tokenization_spaces": false,
41
+ "eos_token": "</s>",
42
+ "extra_special_tokens": {},
43
+ "legacy": false,
44
+ "model_max_length": 1000000000000000019884624838656,
45
+ "pad_token": "<unk>",
46
+ "padding_side": "right",
47
+ "sp_model_kwargs": {},
48
+ "tokenizer_class": "LlamaTokenizer",
49
+ "unk_token": "<unk>",
50
+ "use_default_system_prompt": false
51
+ }
trainer_state.json ADDED
@@ -0,0 +1,580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 350,
3
+ "best_metric": 1.0208680629730225,
4
+ "best_model_checkpoint": "./llama2-medical-lora/checkpoint-300",
5
+ "epoch": 1.992947813822285,
6
+ "eval_steps": 50,
7
+ "global_step": 354,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.028208744710860368,
14
+ "grad_norm": 0.802484393119812,
15
+ "learning_rate": 8.000000000000001e-06,
16
+ "loss": 2.5988,
17
+ "step": 5
18
+ },
19
+ {
20
+ "epoch": 0.056417489421720736,
21
+ "grad_norm": 0.6854377388954163,
22
+ "learning_rate": 1.8e-05,
23
+ "loss": 2.5458,
24
+ "step": 10
25
+ },
26
+ {
27
+ "epoch": 0.0846262341325811,
28
+ "grad_norm": 0.7429786920547485,
29
+ "learning_rate": 2.8000000000000003e-05,
30
+ "loss": 2.7827,
31
+ "step": 15
32
+ },
33
+ {
34
+ "epoch": 0.11283497884344147,
35
+ "grad_norm": 0.5219557881355286,
36
+ "learning_rate": 3.8e-05,
37
+ "loss": 2.4165,
38
+ "step": 20
39
+ },
40
+ {
41
+ "epoch": 0.14104372355430184,
42
+ "grad_norm": 0.5999312996864319,
43
+ "learning_rate": 4.8e-05,
44
+ "loss": 2.4447,
45
+ "step": 25
46
+ },
47
+ {
48
+ "epoch": 0.1692524682651622,
49
+ "grad_norm": 0.4902834892272949,
50
+ "learning_rate": 5.8e-05,
51
+ "loss": 2.4914,
52
+ "step": 30
53
+ },
54
+ {
55
+ "epoch": 0.19746121297602257,
56
+ "grad_norm": 0.5148080587387085,
57
+ "learning_rate": 6.800000000000001e-05,
58
+ "loss": 2.228,
59
+ "step": 35
60
+ },
61
+ {
62
+ "epoch": 0.22566995768688294,
63
+ "grad_norm": 0.4651883542537689,
64
+ "learning_rate": 7.800000000000001e-05,
65
+ "loss": 2.1752,
66
+ "step": 40
67
+ },
68
+ {
69
+ "epoch": 0.2538787023977433,
70
+ "grad_norm": 0.5549948215484619,
71
+ "learning_rate": 8.800000000000001e-05,
72
+ "loss": 2.2121,
73
+ "step": 45
74
+ },
75
+ {
76
+ "epoch": 0.2820874471086037,
77
+ "grad_norm": 0.5938742160797119,
78
+ "learning_rate": 9.8e-05,
79
+ "loss": 2.0736,
80
+ "step": 50
81
+ },
82
+ {
83
+ "epoch": 0.2820874471086037,
84
+ "eval_loss": 1.4600411653518677,
85
+ "eval_runtime": 22.9644,
86
+ "eval_samples_per_second": 3.832,
87
+ "eval_steps_per_second": 3.832,
88
+ "step": 50
89
+ },
90
+ {
91
+ "epoch": 0.31029619181946405,
92
+ "grad_norm": 0.5836663842201233,
93
+ "learning_rate": 9.868421052631579e-05,
94
+ "loss": 1.9917,
95
+ "step": 55
96
+ },
97
+ {
98
+ "epoch": 0.3385049365303244,
99
+ "grad_norm": 0.5286921262741089,
100
+ "learning_rate": 9.703947368421054e-05,
101
+ "loss": 1.6407,
102
+ "step": 60
103
+ },
104
+ {
105
+ "epoch": 0.36671368124118475,
106
+ "grad_norm": 0.6719670295715332,
107
+ "learning_rate": 9.539473684210526e-05,
108
+ "loss": 1.783,
109
+ "step": 65
110
+ },
111
+ {
112
+ "epoch": 0.39492242595204513,
113
+ "grad_norm": 0.5518754720687866,
114
+ "learning_rate": 9.375e-05,
115
+ "loss": 1.552,
116
+ "step": 70
117
+ },
118
+ {
119
+ "epoch": 0.4231311706629055,
120
+ "grad_norm": 0.6786110997200012,
121
+ "learning_rate": 9.210526315789474e-05,
122
+ "loss": 1.8268,
123
+ "step": 75
124
+ },
125
+ {
126
+ "epoch": 0.4513399153737659,
127
+ "grad_norm": 0.6912865042686462,
128
+ "learning_rate": 9.046052631578948e-05,
129
+ "loss": 1.6622,
130
+ "step": 80
131
+ },
132
+ {
133
+ "epoch": 0.4795486600846262,
134
+ "grad_norm": 0.5231357216835022,
135
+ "learning_rate": 8.881578947368422e-05,
136
+ "loss": 1.4071,
137
+ "step": 85
138
+ },
139
+ {
140
+ "epoch": 0.5077574047954866,
141
+ "grad_norm": 0.6691134572029114,
142
+ "learning_rate": 8.717105263157895e-05,
143
+ "loss": 1.7379,
144
+ "step": 90
145
+ },
146
+ {
147
+ "epoch": 0.535966149506347,
148
+ "grad_norm": 0.7257916331291199,
149
+ "learning_rate": 8.552631578947369e-05,
150
+ "loss": 1.4458,
151
+ "step": 95
152
+ },
153
+ {
154
+ "epoch": 0.5641748942172073,
155
+ "grad_norm": 0.6908120512962341,
156
+ "learning_rate": 8.388157894736842e-05,
157
+ "loss": 1.6261,
158
+ "step": 100
159
+ },
160
+ {
161
+ "epoch": 0.5641748942172073,
162
+ "eval_loss": 1.1523932218551636,
163
+ "eval_runtime": 22.9742,
164
+ "eval_samples_per_second": 3.83,
165
+ "eval_steps_per_second": 3.83,
166
+ "step": 100
167
+ },
168
+ {
169
+ "epoch": 0.5923836389280677,
170
+ "grad_norm": 0.7155871391296387,
171
+ "learning_rate": 8.223684210526316e-05,
172
+ "loss": 1.6057,
173
+ "step": 105
174
+ },
175
+ {
176
+ "epoch": 0.6205923836389281,
177
+ "grad_norm": 0.6426169276237488,
178
+ "learning_rate": 8.059210526315791e-05,
179
+ "loss": 1.5596,
180
+ "step": 110
181
+ },
182
+ {
183
+ "epoch": 0.6488011283497884,
184
+ "grad_norm": 0.7796515226364136,
185
+ "learning_rate": 7.894736842105263e-05,
186
+ "loss": 1.507,
187
+ "step": 115
188
+ },
189
+ {
190
+ "epoch": 0.6770098730606487,
191
+ "grad_norm": 0.671275794506073,
192
+ "learning_rate": 7.730263157894737e-05,
193
+ "loss": 1.6426,
194
+ "step": 120
195
+ },
196
+ {
197
+ "epoch": 0.7052186177715092,
198
+ "grad_norm": 0.6995854377746582,
199
+ "learning_rate": 7.565789473684211e-05,
200
+ "loss": 1.5737,
201
+ "step": 125
202
+ },
203
+ {
204
+ "epoch": 0.7334273624823695,
205
+ "grad_norm": 0.8593846559524536,
206
+ "learning_rate": 7.401315789473685e-05,
207
+ "loss": 1.5536,
208
+ "step": 130
209
+ },
210
+ {
211
+ "epoch": 0.7616361071932299,
212
+ "grad_norm": 0.8717703223228455,
213
+ "learning_rate": 7.236842105263159e-05,
214
+ "loss": 1.6078,
215
+ "step": 135
216
+ },
217
+ {
218
+ "epoch": 0.7898448519040903,
219
+ "grad_norm": 0.8219364881515503,
220
+ "learning_rate": 7.072368421052632e-05,
221
+ "loss": 1.7053,
222
+ "step": 140
223
+ },
224
+ {
225
+ "epoch": 0.8180535966149506,
226
+ "grad_norm": 0.7495922446250916,
227
+ "learning_rate": 6.907894736842105e-05,
228
+ "loss": 1.4436,
229
+ "step": 145
230
+ },
231
+ {
232
+ "epoch": 0.846262341325811,
233
+ "grad_norm": 0.8867738246917725,
234
+ "learning_rate": 6.743421052631579e-05,
235
+ "loss": 1.6826,
236
+ "step": 150
237
+ },
238
+ {
239
+ "epoch": 0.846262341325811,
240
+ "eval_loss": 1.091098427772522,
241
+ "eval_runtime": 22.9641,
242
+ "eval_samples_per_second": 3.832,
243
+ "eval_steps_per_second": 3.832,
244
+ "step": 150
245
+ },
246
+ {
247
+ "epoch": 0.8744710860366713,
248
+ "grad_norm": 0.8017202615737915,
249
+ "learning_rate": 6.578947368421054e-05,
250
+ "loss": 1.4847,
251
+ "step": 155
252
+ },
253
+ {
254
+ "epoch": 0.9026798307475318,
255
+ "grad_norm": 0.8118647336959839,
256
+ "learning_rate": 6.414473684210526e-05,
257
+ "loss": 1.5564,
258
+ "step": 160
259
+ },
260
+ {
261
+ "epoch": 0.9308885754583921,
262
+ "grad_norm": 0.7750623822212219,
263
+ "learning_rate": 6.25e-05,
264
+ "loss": 1.6639,
265
+ "step": 165
266
+ },
267
+ {
268
+ "epoch": 0.9590973201692524,
269
+ "grad_norm": 0.8271228075027466,
270
+ "learning_rate": 6.085526315789474e-05,
271
+ "loss": 1.7569,
272
+ "step": 170
273
+ },
274
+ {
275
+ "epoch": 0.9873060648801129,
276
+ "grad_norm": 0.8436787128448486,
277
+ "learning_rate": 5.921052631578947e-05,
278
+ "loss": 1.592,
279
+ "step": 175
280
+ },
281
+ {
282
+ "epoch": 1.0112834978843441,
283
+ "grad_norm": 0.7751876711845398,
284
+ "learning_rate": 5.7565789473684216e-05,
285
+ "loss": 1.5432,
286
+ "step": 180
287
+ },
288
+ {
289
+ "epoch": 1.0394922425952045,
290
+ "grad_norm": 0.752131998538971,
291
+ "learning_rate": 5.5921052631578954e-05,
292
+ "loss": 1.48,
293
+ "step": 185
294
+ },
295
+ {
296
+ "epoch": 1.0677009873060648,
297
+ "grad_norm": 0.886309027671814,
298
+ "learning_rate": 5.4276315789473686e-05,
299
+ "loss": 1.4321,
300
+ "step": 190
301
+ },
302
+ {
303
+ "epoch": 1.0959097320169253,
304
+ "grad_norm": 0.810002326965332,
305
+ "learning_rate": 5.2631578947368424e-05,
306
+ "loss": 1.3895,
307
+ "step": 195
308
+ },
309
+ {
310
+ "epoch": 1.1241184767277856,
311
+ "grad_norm": 0.8746829032897949,
312
+ "learning_rate": 5.0986842105263155e-05,
313
+ "loss": 1.4329,
314
+ "step": 200
315
+ },
316
+ {
317
+ "epoch": 1.1241184767277856,
318
+ "eval_loss": 1.063501238822937,
319
+ "eval_runtime": 22.947,
320
+ "eval_samples_per_second": 3.835,
321
+ "eval_steps_per_second": 3.835,
322
+ "step": 200
323
+ },
324
+ {
325
+ "epoch": 1.152327221438646,
326
+ "grad_norm": 0.7560333013534546,
327
+ "learning_rate": 4.9342105263157894e-05,
328
+ "loss": 1.3735,
329
+ "step": 205
330
+ },
331
+ {
332
+ "epoch": 1.1805359661495063,
333
+ "grad_norm": 0.9235308766365051,
334
+ "learning_rate": 4.769736842105263e-05,
335
+ "loss": 1.3622,
336
+ "step": 210
337
+ },
338
+ {
339
+ "epoch": 1.2087447108603668,
340
+ "grad_norm": 0.8749310374259949,
341
+ "learning_rate": 4.605263157894737e-05,
342
+ "loss": 1.3775,
343
+ "step": 215
344
+ },
345
+ {
346
+ "epoch": 1.2369534555712272,
347
+ "grad_norm": 0.8778985738754272,
348
+ "learning_rate": 4.440789473684211e-05,
349
+ "loss": 1.382,
350
+ "step": 220
351
+ },
352
+ {
353
+ "epoch": 1.2651622002820875,
354
+ "grad_norm": 1.1433746814727783,
355
+ "learning_rate": 4.2763157894736847e-05,
356
+ "loss": 1.4517,
357
+ "step": 225
358
+ },
359
+ {
360
+ "epoch": 1.2933709449929478,
361
+ "grad_norm": 0.9843802452087402,
362
+ "learning_rate": 4.111842105263158e-05,
363
+ "loss": 1.5194,
364
+ "step": 230
365
+ },
366
+ {
367
+ "epoch": 1.3215796897038081,
368
+ "grad_norm": 0.8270325064659119,
369
+ "learning_rate": 3.9473684210526316e-05,
370
+ "loss": 1.4335,
371
+ "step": 235
372
+ },
373
+ {
374
+ "epoch": 1.3497884344146684,
375
+ "grad_norm": 0.8765392303466797,
376
+ "learning_rate": 3.7828947368421054e-05,
377
+ "loss": 1.3667,
378
+ "step": 240
379
+ },
380
+ {
381
+ "epoch": 1.377997179125529,
382
+ "grad_norm": 0.9477415084838867,
383
+ "learning_rate": 3.618421052631579e-05,
384
+ "loss": 1.438,
385
+ "step": 245
386
+ },
387
+ {
388
+ "epoch": 1.4062059238363893,
389
+ "grad_norm": 0.7957858443260193,
390
+ "learning_rate": 3.4539473684210524e-05,
391
+ "loss": 1.3859,
392
+ "step": 250
393
+ },
394
+ {
395
+ "epoch": 1.4062059238363893,
396
+ "eval_loss": 1.0414153337478638,
397
+ "eval_runtime": 22.9463,
398
+ "eval_samples_per_second": 3.835,
399
+ "eval_steps_per_second": 3.835,
400
+ "step": 250
401
+ },
402
+ {
403
+ "epoch": 1.4344146685472496,
404
+ "grad_norm": 0.9236720204353333,
405
+ "learning_rate": 3.289473684210527e-05,
406
+ "loss": 1.4527,
407
+ "step": 255
408
+ },
409
+ {
410
+ "epoch": 1.46262341325811,
411
+ "grad_norm": 0.9670230150222778,
412
+ "learning_rate": 3.125e-05,
413
+ "loss": 1.5064,
414
+ "step": 260
415
+ },
416
+ {
417
+ "epoch": 1.4908321579689705,
418
+ "grad_norm": 0.8780084252357483,
419
+ "learning_rate": 2.9605263157894735e-05,
420
+ "loss": 1.4092,
421
+ "step": 265
422
+ },
423
+ {
424
+ "epoch": 1.5190409026798308,
425
+ "grad_norm": 0.8973761200904846,
426
+ "learning_rate": 2.7960526315789477e-05,
427
+ "loss": 1.472,
428
+ "step": 270
429
+ },
430
+ {
431
+ "epoch": 1.5472496473906912,
432
+ "grad_norm": 1.020290732383728,
433
+ "learning_rate": 2.6315789473684212e-05,
434
+ "loss": 1.4181,
435
+ "step": 275
436
+ },
437
+ {
438
+ "epoch": 1.5754583921015515,
439
+ "grad_norm": 0.9510458111763,
440
+ "learning_rate": 2.4671052631578947e-05,
441
+ "loss": 1.3838,
442
+ "step": 280
443
+ },
444
+ {
445
+ "epoch": 1.6036671368124118,
446
+ "grad_norm": 0.856960654258728,
447
+ "learning_rate": 2.3026315789473685e-05,
448
+ "loss": 1.3249,
449
+ "step": 285
450
+ },
451
+ {
452
+ "epoch": 1.6318758815232721,
453
+ "grad_norm": 0.9089232683181763,
454
+ "learning_rate": 2.1381578947368423e-05,
455
+ "loss": 1.4036,
456
+ "step": 290
457
+ },
458
+ {
459
+ "epoch": 1.6600846262341324,
460
+ "grad_norm": 0.9417166709899902,
461
+ "learning_rate": 1.9736842105263158e-05,
462
+ "loss": 1.3667,
463
+ "step": 295
464
+ },
465
+ {
466
+ "epoch": 1.688293370944993,
467
+ "grad_norm": 0.8981354832649231,
468
+ "learning_rate": 1.8092105263157896e-05,
469
+ "loss": 1.3101,
470
+ "step": 300
471
+ },
472
+ {
473
+ "epoch": 1.688293370944993,
474
+ "eval_loss": 1.0266820192337036,
475
+ "eval_runtime": 22.9326,
476
+ "eval_samples_per_second": 3.837,
477
+ "eval_steps_per_second": 3.837,
478
+ "step": 300
479
+ },
480
+ {
481
+ "epoch": 1.7165021156558533,
482
+ "grad_norm": 0.9740147590637207,
483
+ "learning_rate": 1.6447368421052635e-05,
484
+ "loss": 1.4924,
485
+ "step": 305
486
+ },
487
+ {
488
+ "epoch": 1.7447108603667136,
489
+ "grad_norm": 0.8645333647727966,
490
+ "learning_rate": 1.4802631578947368e-05,
491
+ "loss": 1.3228,
492
+ "step": 310
493
+ },
494
+ {
495
+ "epoch": 1.7729196050775742,
496
+ "grad_norm": 1.0288525819778442,
497
+ "learning_rate": 1.3157894736842106e-05,
498
+ "loss": 1.357,
499
+ "step": 315
500
+ },
501
+ {
502
+ "epoch": 1.8011283497884345,
503
+ "grad_norm": 1.038477897644043,
504
+ "learning_rate": 1.1513157894736843e-05,
505
+ "loss": 1.4585,
506
+ "step": 320
507
+ },
508
+ {
509
+ "epoch": 1.8293370944992948,
510
+ "grad_norm": 0.9444319009780884,
511
+ "learning_rate": 9.868421052631579e-06,
512
+ "loss": 1.3472,
513
+ "step": 325
514
+ },
515
+ {
516
+ "epoch": 1.8575458392101551,
517
+ "grad_norm": 0.9182987809181213,
518
+ "learning_rate": 8.223684210526317e-06,
519
+ "loss": 1.5454,
520
+ "step": 330
521
+ },
522
+ {
523
+ "epoch": 1.8857545839210155,
524
+ "grad_norm": 1.0083339214324951,
525
+ "learning_rate": 6.578947368421053e-06,
526
+ "loss": 1.6271,
527
+ "step": 335
528
+ },
529
+ {
530
+ "epoch": 1.9139633286318758,
531
+ "grad_norm": 0.9220558404922485,
532
+ "learning_rate": 4.9342105263157895e-06,
533
+ "loss": 1.4036,
534
+ "step": 340
535
+ },
536
+ {
537
+ "epoch": 1.9421720733427361,
538
+ "grad_norm": 0.997721254825592,
539
+ "learning_rate": 3.2894736842105265e-06,
540
+ "loss": 1.4065,
541
+ "step": 345
542
+ },
543
+ {
544
+ "epoch": 1.9703808180535967,
545
+ "grad_norm": 0.9783635139465332,
546
+ "learning_rate": 1.6447368421052632e-06,
547
+ "loss": 1.3533,
548
+ "step": 350
549
+ },
550
+ {
551
+ "epoch": 1.9703808180535967,
552
+ "eval_loss": 1.0208680629730225,
553
+ "eval_runtime": 22.9356,
554
+ "eval_samples_per_second": 3.837,
555
+ "eval_steps_per_second": 3.837,
556
+ "step": 350
557
+ }
558
+ ],
559
+ "logging_steps": 5,
560
+ "max_steps": 354,
561
+ "num_input_tokens_seen": 0,
562
+ "num_train_epochs": 2,
563
+ "save_steps": 100,
564
+ "stateful_callbacks": {
565
+ "TrainerControl": {
566
+ "args": {
567
+ "should_epoch_stop": false,
568
+ "should_evaluate": false,
569
+ "should_log": false,
570
+ "should_save": true,
571
+ "should_training_stop": true
572
+ },
573
+ "attributes": {}
574
+ }
575
+ },
576
+ "total_flos": 7.078311570721997e+16,
577
+ "train_batch_size": 1,
578
+ "trial_name": null,
579
+ "trial_params": null
580
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee14c0a342647d420ff82acb2c84f52153776fa6924a1abe4bf677bcbce34d1a
3
+ size 5304