intervitens commited on
Commit
4d4a5c9
·
verified ·
1 Parent(s): ea00eae

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - PocketDoc/Dans-MemoryCore-CoreCurriculum-Small
7
+ - Nitral-AI/ARES-ShareGPT
8
+ - Gryphe/Sonnet3.5-SlimOrcaDedupCleaned-20k
9
+ - NewEden/Claude-Instruct-2.7K
10
+ - NewEden/Claude-Instruct-5K
11
+ base_model: NewEden_Phi-PT-merged-LIT
12
+ model-index:
13
+ - name: phi4-inst-out-r2
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
21
+ <details><summary>See axolotl config</summary>
22
+
23
+ axolotl version: `0.6.0`
24
+ ```yaml
25
+ base_model: NewEden_Phi-PT-merged-LIT
26
+ model_type: AutoModelForCausalLM
27
+ tokenizer_type: AutoTokenizer
28
+
29
+ plugins:
30
+ - axolotl.integrations.liger.LigerPlugin
31
+ liger_rope: true
32
+ liger_rms_norm: true
33
+ liger_swiglu: true
34
+ liger_fused_linear_cross_entropy: true
35
+
36
+
37
+ load_in_8bit: false
38
+ load_in_4bit: false
39
+ strict: false
40
+
41
+ datasets:
42
+ - path: PocketDoc/Dans-MemoryCore-CoreCurriculum-Small
43
+ type: dan-chat-advanced
44
+ - path: Nitral-AI/ARES-ShareGPT
45
+ type: dan-chat-advanced
46
+ - path: Gryphe/Sonnet3.5-SlimOrcaDedupCleaned-20k
47
+ type: dan-chat-advanced
48
+ - path: NewEden/Claude-Instruct-2.7K
49
+ type: dan-chat-advanced
50
+ - path: NewEden/Claude-Instruct-5K
51
+ type: dan-chat-advanced
52
+
53
+ shuffle_merged_datasets: true
54
+ dataset_prepared_path: prepared_data
55
+ val_set_size: 0.0
56
+ output_dir: ./phi4-inst-out-r2
57
+
58
+ sequence_len: 16384
59
+ sample_packing: true
60
+ pad_to_sequence_len: true
61
+
62
+ adapter: lora
63
+ lora_model_dir:
64
+ lora_r: 128
65
+ lora_alpha: 16
66
+ lora_dropout: 0.05
67
+ lora_target_modules:
68
+ - gate_proj
69
+ - down_proj
70
+ - up_proj
71
+ - q_proj
72
+ - v_proj
73
+ - k_proj
74
+ - o_proj
75
+
76
+ lora_modules_to_save:
77
+ - embed_tokens
78
+ - lm_head
79
+
80
+
81
+ wandb_project: mag-phi
82
+ wandb_entity:
83
+ wandb_watch:
84
+ wandb_name: inst-attempt-02
85
+ wandb_log_model:
86
+
87
+ gradient_accumulation_steps: 4
88
+ micro_batch_size: 2
89
+ num_epochs: 4
90
+ optimizer: paged_ademamix_8bit
91
+ lr_scheduler: cosine
92
+ learning_rate: 0.000025
93
+
94
+ train_on_inputs: false
95
+ group_by_length: false
96
+ bf16: auto
97
+ fp16:
98
+ tf32: false
99
+
100
+ gradient_checkpointing: unsloth
101
+ early_stopping_patience:
102
+ resume_from_checkpoint:
103
+ local_rank:
104
+ logging_steps: 1
105
+ xformers_attention:
106
+ flash_attention: true
107
+
108
+ warmup_steps: 15
109
+ evals_per_epoch: 4
110
+ eval_table_size:
111
+ eval_max_new_tokens: 128
112
+ saves_per_epoch: 2
113
+ debug:
114
+ deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16_cpuoffload_params.json
115
+ weight_decay: 0.01
116
+ fsdp:
117
+ fsdp_config:
118
+
119
+ ```
120
+
121
+ </details><br>
122
+
123
+ # phi4-inst-out-r2
124
+
125
+ This model was trained from scratch on the PocketDoc/Dans-MemoryCore-CoreCurriculum-Small, the Nitral-AI/ARES-ShareGPT, the Gryphe/Sonnet3.5-SlimOrcaDedupCleaned-20k, the NewEden/Claude-Instruct-2.7K and the NewEden/Claude-Instruct-5K datasets.
126
+
127
+ ## Model description
128
+
129
+ More information needed
130
+
131
+ ## Intended uses & limitations
132
+
133
+ More information needed
134
+
135
+ ## Training and evaluation data
136
+
137
+ More information needed
138
+
139
+ ## Training procedure
140
+
141
+ ### Training hyperparameters
142
+
143
+ The following hyperparameters were used during training:
144
+ - learning_rate: 2.5e-05
145
+ - train_batch_size: 2
146
+ - eval_batch_size: 2
147
+ - seed: 42
148
+ - distributed_type: multi-GPU
149
+ - num_devices: 4
150
+ - gradient_accumulation_steps: 4
151
+ - total_train_batch_size: 32
152
+ - total_eval_batch_size: 8
153
+ - optimizer: Use OptimizerNames.PAGED_ADEMAMIX_8BIT and the args are:
154
+ No additional optimizer arguments
155
+ - lr_scheduler_type: cosine
156
+ - lr_scheduler_warmup_steps: 15
157
+ - num_epochs: 4.0
158
+
159
+ ### Training results
160
+
161
+
162
+
163
+ ### Framework versions
164
+
165
+ - PEFT 0.14.0
166
+ - Transformers 4.48.1
167
+ - Pytorch 2.5.1+cu124
168
+ - Datasets 3.2.0
169
+ - Tokenizers 0.21.0
adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "NewEden_Phi-PT-merged-LIT",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": null,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.05,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "embed_tokens",
22
+ "lm_head"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 128,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "v_proj",
31
+ "q_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "o_proj",
35
+ "down_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8b9eecb567aad37ef4cc08f4b3221ea0b3c8691054f62d97d141ee289dd0d03
3
+ size 3103863288
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "NewEden_Phi-PT-merged-LIT",
4
+ "architectures": [
5
+ "LlamaForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 100257,
10
+ "eos_token_id": 100265,
11
+ "head_dim": 128,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 5120,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 17920,
16
+ "max_position_embeddings": 16384,
17
+ "mlp_bias": false,
18
+ "model_type": "llama",
19
+ "num_attention_heads": 40,
20
+ "num_hidden_layers": 40,
21
+ "num_key_value_heads": 10,
22
+ "original_max_position_embeddings": 16384,
23
+ "pad_token_id": 100351,
24
+ "pretraining_tp": 1,
25
+ "rms_norm_eps": 1e-05,
26
+ "rope_scaling": null,
27
+ "rope_theta": 250000,
28
+ "tie_word_embeddings": false,
29
+ "torch_dtype": "bfloat16",
30
+ "transformers_version": "4.48.1",
31
+ "use_cache": false,
32
+ "vocab_size": 100352
33
+ }
epoch3/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: NewEden_Phi-PT-merged-LIT
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.14.0
epoch3/adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "NewEden_Phi-PT-merged-LIT",
5
+ "bias": "none",
6
+ "eva_config": null,
7
+ "exclude_modules": null,
8
+ "fan_in_fan_out": null,
9
+ "inference_mode": true,
10
+ "init_lora_weights": true,
11
+ "layer_replication": null,
12
+ "layers_pattern": null,
13
+ "layers_to_transform": null,
14
+ "loftq_config": {},
15
+ "lora_alpha": 16,
16
+ "lora_bias": false,
17
+ "lora_dropout": 0.05,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": [
21
+ "embed_tokens",
22
+ "lm_head"
23
+ ],
24
+ "peft_type": "LORA",
25
+ "r": 128,
26
+ "rank_pattern": {},
27
+ "revision": null,
28
+ "target_modules": [
29
+ "k_proj",
30
+ "v_proj",
31
+ "q_proj",
32
+ "up_proj",
33
+ "gate_proj",
34
+ "o_proj",
35
+ "down_proj"
36
+ ],
37
+ "task_type": "CAUSAL_LM",
38
+ "use_dora": false,
39
+ "use_rslora": false
40
+ }
epoch3/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a22d9c034b16e48358fe8bc1fed16026f2721386ae57466abf542ef4dd3529c0
3
+ size 3103863288
epoch3/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step174
epoch3/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
epoch3/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40ec8ae68138e45d0b61087ee3bca35584564d1675cfd844b05b4ba5f0301b8f
3
+ size 15024
epoch3/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be2339680a37e4027880efc26592f79130a7bd19189d0d7deb69b9fc6e87e3d3
3
+ size 15024
epoch3/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe06cccfbda1776ac9ec5d8d5e3d2ba1f277ffa6723891c4fb090b299df4a725
3
+ size 15024
epoch3/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:034f88eb39e73949930bf72797201aab4d37d393a08765d3ef6bc956b7597b3a
3
+ size 15024
epoch3/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7ecf6b0704d9a6fe3ba010a127ec78665531858108796a570b3a1626b18401d
3
+ size 1064
epoch3/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": true,
5
+ "normalized": false,
6
+ "rstrip": true,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|im_end|>",
11
+ "lstrip": true,
12
+ "normalized": false,
13
+ "rstrip": true,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|dummy_87|>",
18
+ "lstrip": true,
19
+ "normalized": false,
20
+ "rstrip": true,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "�",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
epoch3/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
epoch3/tokenizer_config.json ADDED
@@ -0,0 +1,791 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "5809": {
5
+ "content": "�",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "100256": {
13
+ "content": "<|dummy_0|>",
14
+ "lstrip": true,
15
+ "normalized": false,
16
+ "rstrip": true,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "100257": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": true,
23
+ "normalized": false,
24
+ "rstrip": true,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "100258": {
29
+ "content": "<|fim_prefix|>",
30
+ "lstrip": true,
31
+ "normalized": false,
32
+ "rstrip": true,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "100259": {
37
+ "content": "<|fim_middle|>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": true,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "100260": {
45
+ "content": "<|fim_suffix|>",
46
+ "lstrip": true,
47
+ "normalized": false,
48
+ "rstrip": true,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "100261": {
53
+ "content": "<|dummy_1|>",
54
+ "lstrip": true,
55
+ "normalized": false,
56
+ "rstrip": true,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "100262": {
61
+ "content": "<|dummy_2|>",
62
+ "lstrip": true,
63
+ "normalized": false,
64
+ "rstrip": true,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "100263": {
69
+ "content": "<|dummy_3|>",
70
+ "lstrip": true,
71
+ "normalized": false,
72
+ "rstrip": true,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "100264": {
77
+ "content": "<|im_start|>",
78
+ "lstrip": true,
79
+ "normalized": false,
80
+ "rstrip": true,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "100265": {
85
+ "content": "<|im_end|>",
86
+ "lstrip": true,
87
+ "normalized": false,
88
+ "rstrip": true,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "100266": {
93
+ "content": "<|im_sep|>",
94
+ "lstrip": true,
95
+ "normalized": false,
96
+ "rstrip": true,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "100267": {
101
+ "content": "<|dummy_4|>",
102
+ "lstrip": true,
103
+ "normalized": false,
104
+ "rstrip": true,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "100268": {
109
+ "content": "<|dummy_5|>",
110
+ "lstrip": true,
111
+ "normalized": false,
112
+ "rstrip": true,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "100269": {
117
+ "content": "<|dummy_6|>",
118
+ "lstrip": true,
119
+ "normalized": false,
120
+ "rstrip": true,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "100270": {
125
+ "content": "<|dummy_7|>",
126
+ "lstrip": true,
127
+ "normalized": false,
128
+ "rstrip": true,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "100271": {
133
+ "content": "<|dummy_8|>",
134
+ "lstrip": true,
135
+ "normalized": false,
136
+ "rstrip": true,
137
+ "single_word": false,
138
+ "special": true
139
+ },
140
+ "100272": {
141
+ "content": "<|dummy_9|>",
142
+ "lstrip": true,
143
+ "normalized": false,
144
+ "rstrip": true,
145
+ "single_word": false,
146
+ "special": true
147
+ },
148
+ "100273": {
149
+ "content": "<|dummy_10|>",
150
+ "lstrip": true,
151
+ "normalized": false,
152
+ "rstrip": true,
153
+ "single_word": false,
154
+ "special": true
155
+ },
156
+ "100274": {
157
+ "content": "<|dummy_11|>",
158
+ "lstrip": true,
159
+ "normalized": false,
160
+ "rstrip": true,
161
+ "single_word": false,
162
+ "special": true
163
+ },
164
+ "100275": {
165
+ "content": "<|dummy_12|>",
166
+ "lstrip": true,
167
+ "normalized": false,
168
+ "rstrip": true,
169
+ "single_word": false,
170
+ "special": true
171
+ },
172
+ "100276": {
173
+ "content": "<|endofprompt|>",
174
+ "lstrip": true,
175
+ "normalized": false,
176
+ "rstrip": true,
177
+ "single_word": false,
178
+ "special": true
179
+ },
180
+ "100277": {
181
+ "content": "<|dummy_13|>",
182
+ "lstrip": true,
183
+ "normalized": false,
184
+ "rstrip": true,
185
+ "single_word": false,
186
+ "special": true
187
+ },
188
+ "100278": {
189
+ "content": "<|dummy_14|>",
190
+ "lstrip": true,
191
+ "normalized": false,
192
+ "rstrip": true,
193
+ "single_word": false,
194
+ "special": true
195
+ },
196
+ "100279": {
197
+ "content": "<|dummy_15|>",
198
+ "lstrip": true,
199
+ "normalized": false,
200
+ "rstrip": true,
201
+ "single_word": false,
202
+ "special": true
203
+ },
204
+ "100280": {
205
+ "content": "<|dummy_16|>",
206
+ "lstrip": true,
207
+ "normalized": false,
208
+ "rstrip": true,
209
+ "single_word": false,
210
+ "special": true
211
+ },
212
+ "100281": {
213
+ "content": "<|dummy_17|>",
214
+ "lstrip": true,
215
+ "normalized": false,
216
+ "rstrip": true,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "100282": {
221
+ "content": "<|dummy_18|>",
222
+ "lstrip": true,
223
+ "normalized": false,
224
+ "rstrip": true,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "100283": {
229
+ "content": "<|dummy_19|>",
230
+ "lstrip": true,
231
+ "normalized": false,
232
+ "rstrip": true,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "100284": {
237
+ "content": "<|dummy_20|>",
238
+ "lstrip": true,
239
+ "normalized": false,
240
+ "rstrip": true,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "100285": {
245
+ "content": "<|dummy_21|>",
246
+ "lstrip": true,
247
+ "normalized": false,
248
+ "rstrip": true,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "100286": {
253
+ "content": "<|dummy_22|>",
254
+ "lstrip": true,
255
+ "normalized": false,
256
+ "rstrip": true,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "100287": {
261
+ "content": "<|dummy_23|>",
262
+ "lstrip": true,
263
+ "normalized": false,
264
+ "rstrip": true,
265
+ "single_word": false,
266
+ "special": true
267
+ },
268
+ "100288": {
269
+ "content": "<|dummy_24|>",
270
+ "lstrip": true,
271
+ "normalized": false,
272
+ "rstrip": true,
273
+ "single_word": false,
274
+ "special": true
275
+ },
276
+ "100289": {
277
+ "content": "<|dummy_25|>",
278
+ "lstrip": true,
279
+ "normalized": false,
280
+ "rstrip": true,
281
+ "single_word": false,
282
+ "special": true
283
+ },
284
+ "100290": {
285
+ "content": "<|dummy_26|>",
286
+ "lstrip": true,
287
+ "normalized": false,
288
+ "rstrip": true,
289
+ "single_word": false,
290
+ "special": true
291
+ },
292
+ "100291": {
293
+ "content": "<|dummy_27|>",
294
+ "lstrip": true,
295
+ "normalized": false,
296
+ "rstrip": true,
297
+ "single_word": false,
298
+ "special": true
299
+ },
300
+ "100292": {
301
+ "content": "<|dummy_28|>",
302
+ "lstrip": true,
303
+ "normalized": false,
304
+ "rstrip": true,
305
+ "single_word": false,
306
+ "special": true
307
+ },
308
+ "100293": {
309
+ "content": "<|dummy_29|>",
310
+ "lstrip": true,
311
+ "normalized": false,
312
+ "rstrip": true,
313
+ "single_word": false,
314
+ "special": true
315
+ },
316
+ "100294": {
317
+ "content": "<|dummy_30|>",
318
+ "lstrip": true,
319
+ "normalized": false,
320
+ "rstrip": true,
321
+ "single_word": false,
322
+ "special": true
323
+ },
324
+ "100295": {
325
+ "content": "<|dummy_31|>",
326
+ "lstrip": true,
327
+ "normalized": false,
328
+ "rstrip": true,
329
+ "single_word": false,
330
+ "special": true
331
+ },
332
+ "100296": {
333
+ "content": "<|dummy_32|>",
334
+ "lstrip": true,
335
+ "normalized": false,
336
+ "rstrip": true,
337
+ "single_word": false,
338
+ "special": true
339
+ },
340
+ "100297": {
341
+ "content": "<|dummy_33|>",
342
+ "lstrip": true,
343
+ "normalized": false,
344
+ "rstrip": true,
345
+ "single_word": false,
346
+ "special": true
347
+ },
348
+ "100298": {
349
+ "content": "<|dummy_34|>",
350
+ "lstrip": true,
351
+ "normalized": false,
352
+ "rstrip": true,
353
+ "single_word": false,
354
+ "special": true
355
+ },
356
+ "100299": {
357
+ "content": "<|dummy_35|>",
358
+ "lstrip": true,
359
+ "normalized": false,
360
+ "rstrip": true,
361
+ "single_word": false,
362
+ "special": true
363
+ },
364
+ "100300": {
365
+ "content": "<|dummy_36|>",
366
+ "lstrip": true,
367
+ "normalized": false,
368
+ "rstrip": true,
369
+ "single_word": false,
370
+ "special": true
371
+ },
372
+ "100301": {
373
+ "content": "<|dummy_37|>",
374
+ "lstrip": true,
375
+ "normalized": false,
376
+ "rstrip": true,
377
+ "single_word": false,
378
+ "special": true
379
+ },
380
+ "100302": {
381
+ "content": "<|dummy_38|>",
382
+ "lstrip": true,
383
+ "normalized": false,
384
+ "rstrip": true,
385
+ "single_word": false,
386
+ "special": true
387
+ },
388
+ "100303": {
389
+ "content": "<|dummy_39|>",
390
+ "lstrip": true,
391
+ "normalized": false,
392
+ "rstrip": true,
393
+ "single_word": false,
394
+ "special": true
395
+ },
396
+ "100304": {
397
+ "content": "<|dummy_40|>",
398
+ "lstrip": true,
399
+ "normalized": false,
400
+ "rstrip": true,
401
+ "single_word": false,
402
+ "special": true
403
+ },
404
+ "100305": {
405
+ "content": "<|dummy_41|>",
406
+ "lstrip": true,
407
+ "normalized": false,
408
+ "rstrip": true,
409
+ "single_word": false,
410
+ "special": true
411
+ },
412
+ "100306": {
413
+ "content": "<|dummy_42|>",
414
+ "lstrip": true,
415
+ "normalized": false,
416
+ "rstrip": true,
417
+ "single_word": false,
418
+ "special": true
419
+ },
420
+ "100307": {
421
+ "content": "<|dummy_43|>",
422
+ "lstrip": true,
423
+ "normalized": false,
424
+ "rstrip": true,
425
+ "single_word": false,
426
+ "special": true
427
+ },
428
+ "100308": {
429
+ "content": "<|dummy_44|>",
430
+ "lstrip": true,
431
+ "normalized": false,
432
+ "rstrip": true,
433
+ "single_word": false,
434
+ "special": true
435
+ },
436
+ "100309": {
437
+ "content": "<|dummy_45|>",
438
+ "lstrip": true,
439
+ "normalized": false,
440
+ "rstrip": true,
441
+ "single_word": false,
442
+ "special": true
443
+ },
444
+ "100310": {
445
+ "content": "<|dummy_46|>",
446
+ "lstrip": true,
447
+ "normalized": false,
448
+ "rstrip": true,
449
+ "single_word": false,
450
+ "special": true
451
+ },
452
+ "100311": {
453
+ "content": "<|dummy_47|>",
454
+ "lstrip": true,
455
+ "normalized": false,
456
+ "rstrip": true,
457
+ "single_word": false,
458
+ "special": true
459
+ },
460
+ "100312": {
461
+ "content": "<|dummy_48|>",
462
+ "lstrip": true,
463
+ "normalized": false,
464
+ "rstrip": true,
465
+ "single_word": false,
466
+ "special": true
467
+ },
468
+ "100313": {
469
+ "content": "<|dummy_49|>",
470
+ "lstrip": true,
471
+ "normalized": false,
472
+ "rstrip": true,
473
+ "single_word": false,
474
+ "special": true
475
+ },
476
+ "100314": {
477
+ "content": "<|dummy_50|>",
478
+ "lstrip": true,
479
+ "normalized": false,
480
+ "rstrip": true,
481
+ "single_word": false,
482
+ "special": true
483
+ },
484
+ "100315": {
485
+ "content": "<|dummy_51|>",
486
+ "lstrip": true,
487
+ "normalized": false,
488
+ "rstrip": true,
489
+ "single_word": false,
490
+ "special": true
491
+ },
492
+ "100316": {
493
+ "content": "<|dummy_52|>",
494
+ "lstrip": true,
495
+ "normalized": false,
496
+ "rstrip": true,
497
+ "single_word": false,
498
+ "special": true
499
+ },
500
+ "100317": {
501
+ "content": "<|dummy_53|>",
502
+ "lstrip": true,
503
+ "normalized": false,
504
+ "rstrip": true,
505
+ "single_word": false,
506
+ "special": true
507
+ },
508
+ "100318": {
509
+ "content": "<|dummy_54|>",
510
+ "lstrip": true,
511
+ "normalized": false,
512
+ "rstrip": true,
513
+ "single_word": false,
514
+ "special": true
515
+ },
516
+ "100319": {
517
+ "content": "<|dummy_55|>",
518
+ "lstrip": true,
519
+ "normalized": false,
520
+ "rstrip": true,
521
+ "single_word": false,
522
+ "special": true
523
+ },
524
+ "100320": {
525
+ "content": "<|dummy_56|>",
526
+ "lstrip": true,
527
+ "normalized": false,
528
+ "rstrip": true,
529
+ "single_word": false,
530
+ "special": true
531
+ },
532
+ "100321": {
533
+ "content": "<|dummy_57|>",
534
+ "lstrip": true,
535
+ "normalized": false,
536
+ "rstrip": true,
537
+ "single_word": false,
538
+ "special": true
539
+ },
540
+ "100322": {
541
+ "content": "<|dummy_58|>",
542
+ "lstrip": true,
543
+ "normalized": false,
544
+ "rstrip": true,
545
+ "single_word": false,
546
+ "special": true
547
+ },
548
+ "100323": {
549
+ "content": "<|dummy_59|>",
550
+ "lstrip": true,
551
+ "normalized": false,
552
+ "rstrip": true,
553
+ "single_word": false,
554
+ "special": true
555
+ },
556
+ "100324": {
557
+ "content": "<|dummy_60|>",
558
+ "lstrip": true,
559
+ "normalized": false,
560
+ "rstrip": true,
561
+ "single_word": false,
562
+ "special": true
563
+ },
564
+ "100325": {
565
+ "content": "<|dummy_61|>",
566
+ "lstrip": true,
567
+ "normalized": false,
568
+ "rstrip": true,
569
+ "single_word": false,
570
+ "special": true
571
+ },
572
+ "100326": {
573
+ "content": "<|dummy_62|>",
574
+ "lstrip": true,
575
+ "normalized": false,
576
+ "rstrip": true,
577
+ "single_word": false,
578
+ "special": true
579
+ },
580
+ "100327": {
581
+ "content": "<|dummy_63|>",
582
+ "lstrip": true,
583
+ "normalized": false,
584
+ "rstrip": true,
585
+ "single_word": false,
586
+ "special": true
587
+ },
588
+ "100328": {
589
+ "content": "<|dummy_64|>",
590
+ "lstrip": true,
591
+ "normalized": false,
592
+ "rstrip": true,
593
+ "single_word": false,
594
+ "special": true
595
+ },
596
+ "100329": {
597
+ "content": "<|dummy_65|>",
598
+ "lstrip": true,
599
+ "normalized": false,
600
+ "rstrip": true,
601
+ "single_word": false,
602
+ "special": true
603
+ },
604
+ "100330": {
605
+ "content": "<|dummy_66|>",
606
+ "lstrip": true,
607
+ "normalized": false,
608
+ "rstrip": true,
609
+ "single_word": false,
610
+ "special": true
611
+ },
612
+ "100331": {
613
+ "content": "<|dummy_67|>",
614
+ "lstrip": true,
615
+ "normalized": false,
616
+ "rstrip": true,
617
+ "single_word": false,
618
+ "special": true
619
+ },
620
+ "100332": {
621
+ "content": "<|dummy_68|>",
622
+ "lstrip": true,
623
+ "normalized": false,
624
+ "rstrip": true,
625
+ "single_word": false,
626
+ "special": true
627
+ },
628
+ "100333": {
629
+ "content": "<|dummy_69|>",
630
+ "lstrip": true,
631
+ "normalized": false,
632
+ "rstrip": true,
633
+ "single_word": false,
634
+ "special": true
635
+ },
636
+ "100334": {
637
+ "content": "<|dummy_70|>",
638
+ "lstrip": true,
639
+ "normalized": false,
640
+ "rstrip": true,
641
+ "single_word": false,
642
+ "special": true
643
+ },
644
+ "100335": {
645
+ "content": "<|dummy_71|>",
646
+ "lstrip": true,
647
+ "normalized": false,
648
+ "rstrip": true,
649
+ "single_word": false,
650
+ "special": true
651
+ },
652
+ "100336": {
653
+ "content": "<|dummy_72|>",
654
+ "lstrip": true,
655
+ "normalized": false,
656
+ "rstrip": true,
657
+ "single_word": false,
658
+ "special": true
659
+ },
660
+ "100337": {
661
+ "content": "<|dummy_73|>",
662
+ "lstrip": true,
663
+ "normalized": false,
664
+ "rstrip": true,
665
+ "single_word": false,
666
+ "special": true
667
+ },
668
+ "100338": {
669
+ "content": "<|dummy_74|>",
670
+ "lstrip": true,
671
+ "normalized": false,
672
+ "rstrip": true,
673
+ "single_word": false,
674
+ "special": true
675
+ },
676
+ "100339": {
677
+ "content": "<|dummy_75|>",
678
+ "lstrip": true,
679
+ "normalized": false,
680
+ "rstrip": true,
681
+ "single_word": false,
682
+ "special": true
683
+ },
684
+ "100340": {
685
+ "content": "<|dummy_76|>",
686
+ "lstrip": true,
687
+ "normalized": false,
688
+ "rstrip": true,
689
+ "single_word": false,
690
+ "special": true
691
+ },
692
+ "100341": {
693
+ "content": "<|dummy_77|>",
694
+ "lstrip": true,
695
+ "normalized": false,
696
+ "rstrip": true,
697
+ "single_word": false,
698
+ "special": true
699
+ },
700
+ "100342": {
701
+ "content": "<|dummy_78|>",
702
+ "lstrip": true,
703
+ "normalized": false,
704
+ "rstrip": true,
705
+ "single_word": false,
706
+ "special": true
707
+ },
708
+ "100343": {
709
+ "content": "<|dummy_79|>",
710
+ "lstrip": true,
711
+ "normalized": false,
712
+ "rstrip": true,
713
+ "single_word": false,
714
+ "special": true
715
+ },
716
+ "100344": {
717
+ "content": "<|dummy_80|>",
718
+ "lstrip": true,
719
+ "normalized": false,
720
+ "rstrip": true,
721
+ "single_word": false,
722
+ "special": true
723
+ },
724
+ "100345": {
725
+ "content": "<|dummy_81|>",
726
+ "lstrip": true,
727
+ "normalized": false,
728
+ "rstrip": true,
729
+ "single_word": false,
730
+ "special": true
731
+ },
732
+ "100346": {
733
+ "content": "<|dummy_82|>",
734
+ "lstrip": true,
735
+ "normalized": false,
736
+ "rstrip": true,
737
+ "single_word": false,
738
+ "special": true
739
+ },
740
+ "100347": {
741
+ "content": "<|dummy_83|>",
742
+ "lstrip": true,
743
+ "normalized": false,
744
+ "rstrip": true,
745
+ "single_word": false,
746
+ "special": true
747
+ },
748
+ "100348": {
749
+ "content": "<|dummy_84|>",
750
+ "lstrip": true,
751
+ "normalized": false,
752
+ "rstrip": true,
753
+ "single_word": false,
754
+ "special": true
755
+ },
756
+ "100349": {
757
+ "content": "<|dummy_85|>",
758
+ "lstrip": true,
759
+ "normalized": false,
760
+ "rstrip": true,
761
+ "single_word": false,
762
+ "special": true
763
+ },
764
+ "100350": {
765
+ "content": "<|dummy_86|>",
766
+ "lstrip": true,
767
+ "normalized": false,
768
+ "rstrip": true,
769
+ "single_word": false,
770
+ "special": true
771
+ },
772
+ "100351": {
773
+ "content": "<|dummy_87|>",
774
+ "lstrip": true,
775
+ "normalized": false,
776
+ "rstrip": true,
777
+ "single_word": false,
778
+ "special": true
779
+ }
780
+ },
781
+ "bos_token": "<|endoftext|>",
782
+ "chat_template": "{% for message in messages %}{% if (message['role'] == 'system') %}{{'<|im_start|>system<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'user') %}{{'<|im_start|>user<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'assistant') %}{{'<|im_start|>assistant<|im_sep|>' + message['content'] + '<|im_end|>'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant<|im_sep|>' }}{% endif %}",
783
+ "clean_up_tokenization_spaces": false,
784
+ "eos_token": "<|im_end|>",
785
+ "extra_special_tokens": {},
786
+ "model_max_length": 16384,
787
+ "pad_token": "<|dummy_87|>",
788
+ "padding_side": "left",
789
+ "tokenizer_class": "GPT2Tokenizer",
790
+ "unk_token": "�"
791
+ }
epoch3/trainer_state.json ADDED
@@ -0,0 +1,1251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0526315789473686,
5
+ "eval_steps": 500,
6
+ "global_step": 174,
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.017543859649122806,
13
+ "grad_norm": 0.2277653039057954,
14
+ "learning_rate": 1.6666666666666667e-06,
15
+ "loss": 1.0079,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.03508771929824561,
20
+ "grad_norm": 0.22929541131469036,
21
+ "learning_rate": 3.3333333333333333e-06,
22
+ "loss": 1.0155,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.05263157894736842,
27
+ "grad_norm": 0.23320532182877252,
28
+ "learning_rate": 5e-06,
29
+ "loss": 1.042,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 0.07017543859649122,
34
+ "grad_norm": 0.2327235097386226,
35
+ "learning_rate": 6.666666666666667e-06,
36
+ "loss": 1.0147,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 0.08771929824561403,
41
+ "grad_norm": 0.22899683750189437,
42
+ "learning_rate": 8.333333333333334e-06,
43
+ "loss": 1.0155,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 0.10526315789473684,
48
+ "grad_norm": 0.2346984759899663,
49
+ "learning_rate": 1e-05,
50
+ "loss": 1.0471,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 0.12280701754385964,
55
+ "grad_norm": 0.22126116958454167,
56
+ "learning_rate": 1.1666666666666668e-05,
57
+ "loss": 1.0295,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 0.14035087719298245,
62
+ "grad_norm": 0.21457628974392648,
63
+ "learning_rate": 1.3333333333333333e-05,
64
+ "loss": 1.0319,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 0.15789473684210525,
69
+ "grad_norm": 0.21253345072366,
70
+ "learning_rate": 1.5e-05,
71
+ "loss": 1.0166,
72
+ "step": 9
73
+ },
74
+ {
75
+ "epoch": 0.17543859649122806,
76
+ "grad_norm": 0.21642169088434604,
77
+ "learning_rate": 1.6666666666666667e-05,
78
+ "loss": 1.0331,
79
+ "step": 10
80
+ },
81
+ {
82
+ "epoch": 0.19298245614035087,
83
+ "grad_norm": 0.18849235769492945,
84
+ "learning_rate": 1.8333333333333333e-05,
85
+ "loss": 1.0142,
86
+ "step": 11
87
+ },
88
+ {
89
+ "epoch": 0.21052631578947367,
90
+ "grad_norm": 0.17642654464303906,
91
+ "learning_rate": 2e-05,
92
+ "loss": 0.9902,
93
+ "step": 12
94
+ },
95
+ {
96
+ "epoch": 0.22807017543859648,
97
+ "grad_norm": 0.17187933882719988,
98
+ "learning_rate": 2.1666666666666667e-05,
99
+ "loss": 1.017,
100
+ "step": 13
101
+ },
102
+ {
103
+ "epoch": 0.24561403508771928,
104
+ "grad_norm": 0.17103598555992858,
105
+ "learning_rate": 2.3333333333333336e-05,
106
+ "loss": 0.9751,
107
+ "step": 14
108
+ },
109
+ {
110
+ "epoch": 0.2631578947368421,
111
+ "grad_norm": 0.16014487415950107,
112
+ "learning_rate": 2.5e-05,
113
+ "loss": 0.9881,
114
+ "step": 15
115
+ },
116
+ {
117
+ "epoch": 0.2807017543859649,
118
+ "grad_norm": 0.14028695923022452,
119
+ "learning_rate": 2.4998640395219987e-05,
120
+ "loss": 0.9778,
121
+ "step": 16
122
+ },
123
+ {
124
+ "epoch": 0.2982456140350877,
125
+ "grad_norm": 0.12551729140438972,
126
+ "learning_rate": 2.499456187664396e-05,
127
+ "loss": 0.9689,
128
+ "step": 17
129
+ },
130
+ {
131
+ "epoch": 0.3157894736842105,
132
+ "grad_norm": 0.1251340971956454,
133
+ "learning_rate": 2.4987765331499672e-05,
134
+ "loss": 0.9429,
135
+ "step": 18
136
+ },
137
+ {
138
+ "epoch": 0.3333333333333333,
139
+ "grad_norm": 0.1296210035785423,
140
+ "learning_rate": 2.497825223828555e-05,
141
+ "loss": 0.946,
142
+ "step": 19
143
+ },
144
+ {
145
+ "epoch": 0.3508771929824561,
146
+ "grad_norm": 0.11329484685623345,
147
+ "learning_rate": 2.4966024666449125e-05,
148
+ "loss": 0.9366,
149
+ "step": 20
150
+ },
151
+ {
152
+ "epoch": 0.3684210526315789,
153
+ "grad_norm": 0.10321338855040195,
154
+ "learning_rate": 2.495108527593681e-05,
155
+ "loss": 0.9259,
156
+ "step": 21
157
+ },
158
+ {
159
+ "epoch": 0.38596491228070173,
160
+ "grad_norm": 0.09404432805330766,
161
+ "learning_rate": 2.493343731661529e-05,
162
+ "loss": 0.9482,
163
+ "step": 22
164
+ },
165
+ {
166
+ "epoch": 0.40350877192982454,
167
+ "grad_norm": 0.09243083734470846,
168
+ "learning_rate": 2.4913084627564535e-05,
169
+ "loss": 0.9065,
170
+ "step": 23
171
+ },
172
+ {
173
+ "epoch": 0.42105263157894735,
174
+ "grad_norm": 0.08906226913721381,
175
+ "learning_rate": 2.4890031636242685e-05,
176
+ "loss": 0.8938,
177
+ "step": 24
178
+ },
179
+ {
180
+ "epoch": 0.43859649122807015,
181
+ "grad_norm": 0.08389891645958811,
182
+ "learning_rate": 2.486428335752288e-05,
183
+ "loss": 0.916,
184
+ "step": 25
185
+ },
186
+ {
187
+ "epoch": 0.45614035087719296,
188
+ "grad_norm": 0.08425667259579685,
189
+ "learning_rate": 2.483584539260238e-05,
190
+ "loss": 0.8779,
191
+ "step": 26
192
+ },
193
+ {
194
+ "epoch": 0.47368421052631576,
195
+ "grad_norm": 0.07744492406671652,
196
+ "learning_rate": 2.480472392778407e-05,
197
+ "loss": 0.8834,
198
+ "step": 27
199
+ },
200
+ {
201
+ "epoch": 0.49122807017543857,
202
+ "grad_norm": 0.08767059933162678,
203
+ "learning_rate": 2.4770925733130725e-05,
204
+ "loss": 0.9148,
205
+ "step": 28
206
+ },
207
+ {
208
+ "epoch": 0.5087719298245614,
209
+ "grad_norm": 0.07726724919511256,
210
+ "learning_rate": 2.473445816099226e-05,
211
+ "loss": 0.9088,
212
+ "step": 29
213
+ },
214
+ {
215
+ "epoch": 0.5263157894736842,
216
+ "grad_norm": 0.07836879806212735,
217
+ "learning_rate": 2.4695329144406337e-05,
218
+ "loss": 0.8944,
219
+ "step": 30
220
+ },
221
+ {
222
+ "epoch": 0.543859649122807,
223
+ "grad_norm": 0.07205578520489196,
224
+ "learning_rate": 2.465354719537264e-05,
225
+ "loss": 0.8966,
226
+ "step": 31
227
+ },
228
+ {
229
+ "epoch": 0.5614035087719298,
230
+ "grad_norm": 0.0732976565919632,
231
+ "learning_rate": 2.460912140300119e-05,
232
+ "loss": 0.8933,
233
+ "step": 32
234
+ },
235
+ {
236
+ "epoch": 0.5789473684210527,
237
+ "grad_norm": 0.06413069817944542,
238
+ "learning_rate": 2.4562061431535128e-05,
239
+ "loss": 0.8687,
240
+ "step": 33
241
+ },
242
+ {
243
+ "epoch": 0.5964912280701754,
244
+ "grad_norm": 0.061655130915948715,
245
+ "learning_rate": 2.4512377518248398e-05,
246
+ "loss": 0.8757,
247
+ "step": 34
248
+ },
249
+ {
250
+ "epoch": 0.6140350877192983,
251
+ "grad_norm": 0.06005143040792398,
252
+ "learning_rate": 2.4460080471218766e-05,
253
+ "loss": 0.8763,
254
+ "step": 35
255
+ },
256
+ {
257
+ "epoch": 0.631578947368421,
258
+ "grad_norm": 0.059268901460994255,
259
+ "learning_rate": 2.4405181666976646e-05,
260
+ "loss": 0.8691,
261
+ "step": 36
262
+ },
263
+ {
264
+ "epoch": 0.6491228070175439,
265
+ "grad_norm": 0.0632968952247683,
266
+ "learning_rate": 2.43476930480303e-05,
267
+ "loss": 0.876,
268
+ "step": 37
269
+ },
270
+ {
271
+ "epoch": 0.6666666666666666,
272
+ "grad_norm": 0.05479140319445762,
273
+ "learning_rate": 2.428762712026792e-05,
274
+ "loss": 0.8682,
275
+ "step": 38
276
+ },
277
+ {
278
+ "epoch": 0.6842105263157895,
279
+ "grad_norm": 0.05563512390428038,
280
+ "learning_rate": 2.4224996950237093e-05,
281
+ "loss": 0.8841,
282
+ "step": 39
283
+ },
284
+ {
285
+ "epoch": 0.7017543859649122,
286
+ "grad_norm": 0.05247972036076721,
287
+ "learning_rate": 2.4159816162302394e-05,
288
+ "loss": 0.8787,
289
+ "step": 40
290
+ },
291
+ {
292
+ "epoch": 0.7192982456140351,
293
+ "grad_norm": 0.061183366717530226,
294
+ "learning_rate": 2.4092098935681556e-05,
295
+ "loss": 0.8549,
296
+ "step": 41
297
+ },
298
+ {
299
+ "epoch": 0.7368421052631579,
300
+ "grad_norm": 0.05375757865160034,
301
+ "learning_rate": 2.402186000136098e-05,
302
+ "loss": 0.8528,
303
+ "step": 42
304
+ },
305
+ {
306
+ "epoch": 0.7543859649122807,
307
+ "grad_norm": 0.05057045758521559,
308
+ "learning_rate": 2.39491146388912e-05,
309
+ "loss": 0.8536,
310
+ "step": 43
311
+ },
312
+ {
313
+ "epoch": 0.7719298245614035,
314
+ "grad_norm": 0.04649702726117417,
315
+ "learning_rate": 2.387387867306302e-05,
316
+ "loss": 0.8488,
317
+ "step": 44
318
+ },
319
+ {
320
+ "epoch": 0.7894736842105263,
321
+ "grad_norm": 0.04787518315340449,
322
+ "learning_rate": 2.379616847046505e-05,
323
+ "loss": 0.8573,
324
+ "step": 45
325
+ },
326
+ {
327
+ "epoch": 0.8070175438596491,
328
+ "grad_norm": 0.045213502324060025,
329
+ "learning_rate": 2.371600093592335e-05,
330
+ "loss": 0.8727,
331
+ "step": 46
332
+ },
333
+ {
334
+ "epoch": 0.8245614035087719,
335
+ "grad_norm": 0.04738126021150567,
336
+ "learning_rate": 2.3633393508824022e-05,
337
+ "loss": 0.8633,
338
+ "step": 47
339
+ },
340
+ {
341
+ "epoch": 0.8421052631578947,
342
+ "grad_norm": 0.043833518738075415,
343
+ "learning_rate": 2.3548364159319513e-05,
344
+ "loss": 0.868,
345
+ "step": 48
346
+ },
347
+ {
348
+ "epoch": 0.8596491228070176,
349
+ "grad_norm": 0.042510793627425734,
350
+ "learning_rate": 2.3460931384419427e-05,
351
+ "loss": 0.852,
352
+ "step": 49
353
+ },
354
+ {
355
+ "epoch": 0.8771929824561403,
356
+ "grad_norm": 0.0408258194280563,
357
+ "learning_rate": 2.3371114203966756e-05,
358
+ "loss": 0.8595,
359
+ "step": 50
360
+ },
361
+ {
362
+ "epoch": 0.8947368421052632,
363
+ "grad_norm": 0.041284443987598174,
364
+ "learning_rate": 2.3278932156500348e-05,
365
+ "loss": 0.8701,
366
+ "step": 51
367
+ },
368
+ {
369
+ "epoch": 0.9122807017543859,
370
+ "grad_norm": 0.04015399468491511,
371
+ "learning_rate": 2.3184405295004592e-05,
372
+ "loss": 0.8378,
373
+ "step": 52
374
+ },
375
+ {
376
+ "epoch": 0.9298245614035088,
377
+ "grad_norm": 0.0470194493755998,
378
+ "learning_rate": 2.3087554182547123e-05,
379
+ "loss": 0.8522,
380
+ "step": 53
381
+ },
382
+ {
383
+ "epoch": 0.9473684210526315,
384
+ "grad_norm": 0.040346271463175765,
385
+ "learning_rate": 2.298839988780561e-05,
386
+ "loss": 0.8571,
387
+ "step": 54
388
+ },
389
+ {
390
+ "epoch": 0.9649122807017544,
391
+ "grad_norm": 0.03907150168014673,
392
+ "learning_rate": 2.288696398048455e-05,
393
+ "loss": 0.8389,
394
+ "step": 55
395
+ },
396
+ {
397
+ "epoch": 0.9824561403508771,
398
+ "grad_norm": 0.03966173521753987,
399
+ "learning_rate": 2.278326852662305e-05,
400
+ "loss": 0.8473,
401
+ "step": 56
402
+ },
403
+ {
404
+ "epoch": 1.0,
405
+ "grad_norm": 0.03792422830368885,
406
+ "learning_rate": 2.267733608379468e-05,
407
+ "loss": 0.8308,
408
+ "step": 57
409
+ },
410
+ {
411
+ "epoch": 1.0175438596491229,
412
+ "grad_norm": 0.039916995591762185,
413
+ "learning_rate": 2.2569189696200327e-05,
414
+ "loss": 0.8363,
415
+ "step": 58
416
+ },
417
+ {
418
+ "epoch": 1.0350877192982457,
419
+ "grad_norm": 0.04222978922823946,
420
+ "learning_rate": 2.2458852889655284e-05,
421
+ "loss": 0.8248,
422
+ "step": 59
423
+ },
424
+ {
425
+ "epoch": 1.0526315789473684,
426
+ "grad_norm": 0.037766008270626816,
427
+ "learning_rate": 2.234634966647148e-05,
428
+ "loss": 0.8108,
429
+ "step": 60
430
+ },
431
+ {
432
+ "epoch": 1.0701754385964912,
433
+ "grad_norm": 0.03910137890933386,
434
+ "learning_rate": 2.2231704500236117e-05,
435
+ "loss": 0.8111,
436
+ "step": 61
437
+ },
438
+ {
439
+ "epoch": 1.087719298245614,
440
+ "grad_norm": 0.03723938187511672,
441
+ "learning_rate": 2.211494233048776e-05,
442
+ "loss": 0.7961,
443
+ "step": 62
444
+ },
445
+ {
446
+ "epoch": 1.1052631578947367,
447
+ "grad_norm": 0.03536618534586841,
448
+ "learning_rate": 2.1996088557291062e-05,
449
+ "loss": 0.8083,
450
+ "step": 63
451
+ },
452
+ {
453
+ "epoch": 1.1228070175438596,
454
+ "grad_norm": 0.03509557198121232,
455
+ "learning_rate": 2.1875169035711335e-05,
456
+ "loss": 0.8301,
457
+ "step": 64
458
+ },
459
+ {
460
+ "epoch": 1.1403508771929824,
461
+ "grad_norm": 0.03631360422996243,
462
+ "learning_rate": 2.1752210070190106e-05,
463
+ "loss": 0.8119,
464
+ "step": 65
465
+ },
466
+ {
467
+ "epoch": 1.1578947368421053,
468
+ "grad_norm": 0.034923838848099804,
469
+ "learning_rate": 2.162723840882293e-05,
470
+ "loss": 0.8351,
471
+ "step": 66
472
+ },
473
+ {
474
+ "epoch": 1.1754385964912282,
475
+ "grad_norm": 0.034222477158642954,
476
+ "learning_rate": 2.150028123754072e-05,
477
+ "loss": 0.8396,
478
+ "step": 67
479
+ },
480
+ {
481
+ "epoch": 1.1929824561403508,
482
+ "grad_norm": 0.044099006560021574,
483
+ "learning_rate": 2.137136617419578e-05,
484
+ "loss": 0.8132,
485
+ "step": 68
486
+ },
487
+ {
488
+ "epoch": 1.2105263157894737,
489
+ "grad_norm": 0.03760194901086737,
490
+ "learning_rate": 2.1240521262553927e-05,
491
+ "loss": 0.8277,
492
+ "step": 69
493
+ },
494
+ {
495
+ "epoch": 1.2280701754385965,
496
+ "grad_norm": 0.034132230637497686,
497
+ "learning_rate": 2.1107774966193932e-05,
498
+ "loss": 0.8231,
499
+ "step": 70
500
+ },
501
+ {
502
+ "epoch": 1.2456140350877192,
503
+ "grad_norm": 0.034145371494878535,
504
+ "learning_rate": 2.097315616231564e-05,
505
+ "loss": 0.8116,
506
+ "step": 71
507
+ },
508
+ {
509
+ "epoch": 1.263157894736842,
510
+ "grad_norm": 0.03402745474331636,
511
+ "learning_rate": 2.0836694135458136e-05,
512
+ "loss": 0.8283,
513
+ "step": 72
514
+ },
515
+ {
516
+ "epoch": 1.280701754385965,
517
+ "grad_norm": 0.046074062113807,
518
+ "learning_rate": 2.0698418571129255e-05,
519
+ "loss": 0.8161,
520
+ "step": 73
521
+ },
522
+ {
523
+ "epoch": 1.2982456140350878,
524
+ "grad_norm": 0.03409175484451008,
525
+ "learning_rate": 2.055835954934791e-05,
526
+ "loss": 0.8056,
527
+ "step": 74
528
+ },
529
+ {
530
+ "epoch": 1.3157894736842106,
531
+ "grad_norm": 0.03601398897730395,
532
+ "learning_rate": 2.041654753810059e-05,
533
+ "loss": 0.8139,
534
+ "step": 75
535
+ },
536
+ {
537
+ "epoch": 1.3333333333333333,
538
+ "grad_norm": 0.035605249354124874,
539
+ "learning_rate": 2.027301338671342e-05,
540
+ "loss": 0.7993,
541
+ "step": 76
542
+ },
543
+ {
544
+ "epoch": 1.3508771929824561,
545
+ "grad_norm": 0.03851629705577501,
546
+ "learning_rate": 2.0127788319141345e-05,
547
+ "loss": 0.8192,
548
+ "step": 77
549
+ },
550
+ {
551
+ "epoch": 1.368421052631579,
552
+ "grad_norm": 0.03560123297297108,
553
+ "learning_rate": 1.998090392717572e-05,
554
+ "loss": 0.8194,
555
+ "step": 78
556
+ },
557
+ {
558
+ "epoch": 1.3859649122807016,
559
+ "grad_norm": 0.03338440818080332,
560
+ "learning_rate": 1.9832392163571977e-05,
561
+ "loss": 0.823,
562
+ "step": 79
563
+ },
564
+ {
565
+ "epoch": 1.4035087719298245,
566
+ "grad_norm": 0.039320599103418945,
567
+ "learning_rate": 1.968228533509871e-05,
568
+ "loss": 0.7991,
569
+ "step": 80
570
+ },
571
+ {
572
+ "epoch": 1.4210526315789473,
573
+ "grad_norm": 0.03413703166680613,
574
+ "learning_rate": 1.953061609550976e-05,
575
+ "loss": 0.8122,
576
+ "step": 81
577
+ },
578
+ {
579
+ "epoch": 1.4385964912280702,
580
+ "grad_norm": 0.03632660780988978,
581
+ "learning_rate": 1.937741743844082e-05,
582
+ "loss": 0.8051,
583
+ "step": 82
584
+ },
585
+ {
586
+ "epoch": 1.456140350877193,
587
+ "grad_norm": 0.2720784291107051,
588
+ "learning_rate": 1.9222722690232124e-05,
589
+ "loss": 0.7982,
590
+ "step": 83
591
+ },
592
+ {
593
+ "epoch": 1.4736842105263157,
594
+ "grad_norm": 0.033948193629099205,
595
+ "learning_rate": 1.9066565502678735e-05,
596
+ "loss": 0.8244,
597
+ "step": 84
598
+ },
599
+ {
600
+ "epoch": 1.4912280701754386,
601
+ "grad_norm": 0.04015231276799685,
602
+ "learning_rate": 1.8908979845710028e-05,
603
+ "loss": 0.802,
604
+ "step": 85
605
+ },
606
+ {
607
+ "epoch": 1.5087719298245614,
608
+ "grad_norm": 0.0334280910595663,
609
+ "learning_rate": 1.8750000000000002e-05,
610
+ "loss": 0.7944,
611
+ "step": 86
612
+ },
613
+ {
614
+ "epoch": 1.526315789473684,
615
+ "grad_norm": 0.033433004016842426,
616
+ "learning_rate": 1.8589660549509958e-05,
617
+ "loss": 0.8086,
618
+ "step": 87
619
+ },
620
+ {
621
+ "epoch": 1.543859649122807,
622
+ "grad_norm": 0.03647767785675323,
623
+ "learning_rate": 1.842799637396523e-05,
624
+ "loss": 0.8005,
625
+ "step": 88
626
+ },
627
+ {
628
+ "epoch": 1.5614035087719298,
629
+ "grad_norm": 0.034851294076943595,
630
+ "learning_rate": 1.8265042641267543e-05,
631
+ "loss": 0.7697,
632
+ "step": 89
633
+ },
634
+ {
635
+ "epoch": 1.5789473684210527,
636
+ "grad_norm": 0.035934237530251795,
637
+ "learning_rate": 1.8100834799844733e-05,
638
+ "loss": 0.8017,
639
+ "step": 90
640
+ },
641
+ {
642
+ "epoch": 1.5964912280701755,
643
+ "grad_norm": 0.035583328708530516,
644
+ "learning_rate": 1.793540857093937e-05,
645
+ "loss": 0.8035,
646
+ "step": 91
647
+ },
648
+ {
649
+ "epoch": 1.6140350877192984,
650
+ "grad_norm": 0.035602801094138097,
651
+ "learning_rate": 1.77687999408381e-05,
652
+ "loss": 0.7785,
653
+ "step": 92
654
+ },
655
+ {
656
+ "epoch": 1.631578947368421,
657
+ "grad_norm": 0.03338943294215932,
658
+ "learning_rate": 1.760104515304331e-05,
659
+ "loss": 0.809,
660
+ "step": 93
661
+ },
662
+ {
663
+ "epoch": 1.6491228070175439,
664
+ "grad_norm": 0.03440455754366396,
665
+ "learning_rate": 1.743218070038882e-05,
666
+ "loss": 0.7835,
667
+ "step": 94
668
+ },
669
+ {
670
+ "epoch": 1.6666666666666665,
671
+ "grad_norm": 0.03413755186702014,
672
+ "learning_rate": 1.7262243317101342e-05,
673
+ "loss": 0.7857,
674
+ "step": 95
675
+ },
676
+ {
677
+ "epoch": 1.6842105263157894,
678
+ "grad_norm": 0.03450977935766268,
679
+ "learning_rate": 1.709126997080946e-05,
680
+ "loss": 0.8045,
681
+ "step": 96
682
+ },
683
+ {
684
+ "epoch": 1.7017543859649122,
685
+ "grad_norm": 0.03521585021316178,
686
+ "learning_rate": 1.6919297854501793e-05,
687
+ "loss": 0.7935,
688
+ "step": 97
689
+ },
690
+ {
691
+ "epoch": 1.719298245614035,
692
+ "grad_norm": 0.03493887488862163,
693
+ "learning_rate": 1.674636437843616e-05,
694
+ "loss": 0.798,
695
+ "step": 98
696
+ },
697
+ {
698
+ "epoch": 1.736842105263158,
699
+ "grad_norm": 0.035529760900503735,
700
+ "learning_rate": 1.6572507162001472e-05,
701
+ "loss": 0.799,
702
+ "step": 99
703
+ },
704
+ {
705
+ "epoch": 1.7543859649122808,
706
+ "grad_norm": 0.033513087382252796,
707
+ "learning_rate": 1.6397764025534122e-05,
708
+ "loss": 0.7894,
709
+ "step": 100
710
+ },
711
+ {
712
+ "epoch": 1.7719298245614035,
713
+ "grad_norm": 0.19122994636460844,
714
+ "learning_rate": 1.6222172982090696e-05,
715
+ "loss": 0.7804,
716
+ "step": 101
717
+ },
718
+ {
719
+ "epoch": 1.7894736842105263,
720
+ "grad_norm": 0.035807687623747184,
721
+ "learning_rate": 1.604577222917871e-05,
722
+ "loss": 0.7951,
723
+ "step": 102
724
+ },
725
+ {
726
+ "epoch": 1.807017543859649,
727
+ "grad_norm": 0.03259107722786136,
728
+ "learning_rate": 1.586860014044726e-05,
729
+ "loss": 0.7781,
730
+ "step": 103
731
+ },
732
+ {
733
+ "epoch": 1.8245614035087718,
734
+ "grad_norm": 0.036809691518080494,
735
+ "learning_rate": 1.5690695257339348e-05,
736
+ "loss": 0.8008,
737
+ "step": 104
738
+ },
739
+ {
740
+ "epoch": 1.8421052631578947,
741
+ "grad_norm": 0.035038305488987835,
742
+ "learning_rate": 1.551209628070768e-05,
743
+ "loss": 0.7753,
744
+ "step": 105
745
+ },
746
+ {
747
+ "epoch": 1.8596491228070176,
748
+ "grad_norm": 0.03563704680282362,
749
+ "learning_rate": 1.5332842062395837e-05,
750
+ "loss": 0.8109,
751
+ "step": 106
752
+ },
753
+ {
754
+ "epoch": 1.8771929824561404,
755
+ "grad_norm": 0.03337909268033773,
756
+ "learning_rate": 1.5152971596786539e-05,
757
+ "loss": 0.8074,
758
+ "step": 107
759
+ },
760
+ {
761
+ "epoch": 1.8947368421052633,
762
+ "grad_norm": 0.03364182376321439,
763
+ "learning_rate": 1.4972524012318968e-05,
764
+ "loss": 0.7814,
765
+ "step": 108
766
+ },
767
+ {
768
+ "epoch": 1.912280701754386,
769
+ "grad_norm": 0.03394899793236395,
770
+ "learning_rate": 1.4791538562976858e-05,
771
+ "loss": 0.8046,
772
+ "step": 109
773
+ },
774
+ {
775
+ "epoch": 1.9298245614035088,
776
+ "grad_norm": 0.03276078625186682,
777
+ "learning_rate": 1.4610054619749335e-05,
778
+ "loss": 0.7923,
779
+ "step": 110
780
+ },
781
+ {
782
+ "epoch": 1.9473684210526314,
783
+ "grad_norm": 0.035403995130927304,
784
+ "learning_rate": 1.442811166206628e-05,
785
+ "loss": 0.8036,
786
+ "step": 111
787
+ },
788
+ {
789
+ "epoch": 1.9649122807017543,
790
+ "grad_norm": 0.036133327261938186,
791
+ "learning_rate": 1.4245749269210077e-05,
792
+ "loss": 0.7875,
793
+ "step": 112
794
+ },
795
+ {
796
+ "epoch": 1.9824561403508771,
797
+ "grad_norm": 0.036600172448979534,
798
+ "learning_rate": 1.40630071117057e-05,
799
+ "loss": 0.7697,
800
+ "step": 113
801
+ },
802
+ {
803
+ "epoch": 2.0,
804
+ "grad_norm": 0.037601350569099724,
805
+ "learning_rate": 1.3879924942690875e-05,
806
+ "loss": 0.8189,
807
+ "step": 114
808
+ },
809
+ {
810
+ "epoch": 2.017543859649123,
811
+ "grad_norm": 0.03302530011499694,
812
+ "learning_rate": 1.3696542589268343e-05,
813
+ "loss": 0.7611,
814
+ "step": 115
815
+ },
816
+ {
817
+ "epoch": 2.0350877192982457,
818
+ "grad_norm": 0.03512883427203999,
819
+ "learning_rate": 1.3512899943842001e-05,
820
+ "loss": 0.8027,
821
+ "step": 116
822
+ },
823
+ {
824
+ "epoch": 2.0526315789473686,
825
+ "grad_norm": 0.032765823734136675,
826
+ "learning_rate": 1.3329036955438801e-05,
827
+ "loss": 0.7739,
828
+ "step": 117
829
+ },
830
+ {
831
+ "epoch": 2.0701754385964914,
832
+ "grad_norm": 0.0325717443826363,
833
+ "learning_rate": 1.3144993621018414e-05,
834
+ "loss": 0.7749,
835
+ "step": 118
836
+ },
837
+ {
838
+ "epoch": 2.087719298245614,
839
+ "grad_norm": 0.03351967483422044,
840
+ "learning_rate": 1.2960809976772395e-05,
841
+ "loss": 0.7776,
842
+ "step": 119
843
+ },
844
+ {
845
+ "epoch": 2.1052631578947367,
846
+ "grad_norm": 0.03412426117127494,
847
+ "learning_rate": 1.2776526089414836e-05,
848
+ "loss": 0.7604,
849
+ "step": 120
850
+ },
851
+ {
852
+ "epoch": 2.1228070175438596,
853
+ "grad_norm": 0.034817647751256633,
854
+ "learning_rate": 1.2592182047466405e-05,
855
+ "loss": 0.7701,
856
+ "step": 121
857
+ },
858
+ {
859
+ "epoch": 2.1403508771929824,
860
+ "grad_norm": 0.03260110561553477,
861
+ "learning_rate": 1.2407817952533594e-05,
862
+ "loss": 0.7741,
863
+ "step": 122
864
+ },
865
+ {
866
+ "epoch": 2.1578947368421053,
867
+ "grad_norm": 0.03193494436049472,
868
+ "learning_rate": 1.2223473910585165e-05,
869
+ "loss": 0.7645,
870
+ "step": 123
871
+ },
872
+ {
873
+ "epoch": 2.175438596491228,
874
+ "grad_norm": 0.03312398775341158,
875
+ "learning_rate": 1.2039190023227611e-05,
876
+ "loss": 0.7585,
877
+ "step": 124
878
+ },
879
+ {
880
+ "epoch": 2.192982456140351,
881
+ "grad_norm": 0.03343964045395972,
882
+ "learning_rate": 1.1855006378981588e-05,
883
+ "loss": 0.7921,
884
+ "step": 125
885
+ },
886
+ {
887
+ "epoch": 2.2105263157894735,
888
+ "grad_norm": 0.033686542752496544,
889
+ "learning_rate": 1.1670963044561205e-05,
890
+ "loss": 0.7827,
891
+ "step": 126
892
+ },
893
+ {
894
+ "epoch": 2.2280701754385963,
895
+ "grad_norm": 0.03497709388430689,
896
+ "learning_rate": 1.1487100056158e-05,
897
+ "loss": 0.7867,
898
+ "step": 127
899
+ },
900
+ {
901
+ "epoch": 2.245614035087719,
902
+ "grad_norm": 0.03909574941588132,
903
+ "learning_rate": 1.1303457410731658e-05,
904
+ "loss": 0.7651,
905
+ "step": 128
906
+ },
907
+ {
908
+ "epoch": 2.263157894736842,
909
+ "grad_norm": 0.03295131774552763,
910
+ "learning_rate": 1.112007505730913e-05,
911
+ "loss": 0.7716,
912
+ "step": 129
913
+ },
914
+ {
915
+ "epoch": 2.280701754385965,
916
+ "grad_norm": 0.03535332720570186,
917
+ "learning_rate": 1.0936992888294304e-05,
918
+ "loss": 0.7519,
919
+ "step": 130
920
+ },
921
+ {
922
+ "epoch": 2.2982456140350878,
923
+ "grad_norm": 0.034260157940805745,
924
+ "learning_rate": 1.0754250730789925e-05,
925
+ "loss": 0.7778,
926
+ "step": 131
927
+ },
928
+ {
929
+ "epoch": 2.3157894736842106,
930
+ "grad_norm": 0.03778502943480454,
931
+ "learning_rate": 1.057188833793372e-05,
932
+ "loss": 0.7785,
933
+ "step": 132
934
+ },
935
+ {
936
+ "epoch": 2.3333333333333335,
937
+ "grad_norm": 0.03282521968583762,
938
+ "learning_rate": 1.0389945380250666e-05,
939
+ "loss": 0.7822,
940
+ "step": 133
941
+ },
942
+ {
943
+ "epoch": 2.3508771929824563,
944
+ "grad_norm": 0.03439059832810125,
945
+ "learning_rate": 1.0208461437023146e-05,
946
+ "loss": 0.7774,
947
+ "step": 134
948
+ },
949
+ {
950
+ "epoch": 2.3684210526315788,
951
+ "grad_norm": 0.03579842875417821,
952
+ "learning_rate": 1.0027475987681033e-05,
953
+ "loss": 0.7626,
954
+ "step": 135
955
+ },
956
+ {
957
+ "epoch": 2.3859649122807016,
958
+ "grad_norm": 0.04487526535583229,
959
+ "learning_rate": 9.847028403213464e-06,
960
+ "loss": 0.785,
961
+ "step": 136
962
+ },
963
+ {
964
+ "epoch": 2.4035087719298245,
965
+ "grad_norm": 0.03582408613012423,
966
+ "learning_rate": 9.667157937604165e-06,
967
+ "loss": 0.772,
968
+ "step": 137
969
+ },
970
+ {
971
+ "epoch": 2.4210526315789473,
972
+ "grad_norm": 0.035176969293327615,
973
+ "learning_rate": 9.487903719292321e-06,
974
+ "loss": 0.7777,
975
+ "step": 138
976
+ },
977
+ {
978
+ "epoch": 2.43859649122807,
979
+ "grad_norm": 0.03346578608050542,
980
+ "learning_rate": 9.309304742660656e-06,
981
+ "loss": 0.7577,
982
+ "step": 139
983
+ },
984
+ {
985
+ "epoch": 2.456140350877193,
986
+ "grad_norm": 0.039503770377912154,
987
+ "learning_rate": 9.131399859552739e-06,
988
+ "loss": 0.7901,
989
+ "step": 140
990
+ },
991
+ {
992
+ "epoch": 2.473684210526316,
993
+ "grad_norm": 0.03677116076069421,
994
+ "learning_rate": 8.954227770821292e-06,
995
+ "loss": 0.7723,
996
+ "step": 141
997
+ },
998
+ {
999
+ "epoch": 2.4912280701754383,
1000
+ "grad_norm": 0.03338240458340637,
1001
+ "learning_rate": 8.77782701790931e-06,
1002
+ "loss": 0.7617,
1003
+ "step": 142
1004
+ },
1005
+ {
1006
+ "epoch": 2.5087719298245617,
1007
+ "grad_norm": 0.033837659971756015,
1008
+ "learning_rate": 8.60223597446588e-06,
1009
+ "loss": 0.7713,
1010
+ "step": 143
1011
+ },
1012
+ {
1013
+ "epoch": 2.526315789473684,
1014
+ "grad_norm": 0.03820384430127108,
1015
+ "learning_rate": 8.427492837998533e-06,
1016
+ "loss": 0.7557,
1017
+ "step": 144
1018
+ },
1019
+ {
1020
+ "epoch": 2.543859649122807,
1021
+ "grad_norm": 0.03252410748125962,
1022
+ "learning_rate": 8.25363562156384e-06,
1023
+ "loss": 0.7805,
1024
+ "step": 145
1025
+ },
1026
+ {
1027
+ "epoch": 2.56140350877193,
1028
+ "grad_norm": 0.03706815897768721,
1029
+ "learning_rate": 8.080702145498206e-06,
1030
+ "loss": 0.7645,
1031
+ "step": 146
1032
+ },
1033
+ {
1034
+ "epoch": 2.5789473684210527,
1035
+ "grad_norm": 0.035598168147733984,
1036
+ "learning_rate": 7.908730029190544e-06,
1037
+ "loss": 0.7877,
1038
+ "step": 147
1039
+ },
1040
+ {
1041
+ "epoch": 2.5964912280701755,
1042
+ "grad_norm": 0.0333688858025551,
1043
+ "learning_rate": 7.737756682898659e-06,
1044
+ "loss": 0.7591,
1045
+ "step": 148
1046
+ },
1047
+ {
1048
+ "epoch": 2.6140350877192984,
1049
+ "grad_norm": 0.044640638601682346,
1050
+ "learning_rate": 7.567819299611184e-06,
1051
+ "loss": 0.7658,
1052
+ "step": 149
1053
+ },
1054
+ {
1055
+ "epoch": 2.6315789473684212,
1056
+ "grad_norm": 0.033158357578421456,
1057
+ "learning_rate": 7.398954846956688e-06,
1058
+ "loss": 0.7719,
1059
+ "step": 150
1060
+ },
1061
+ {
1062
+ "epoch": 2.6491228070175437,
1063
+ "grad_norm": 0.033194259963536865,
1064
+ "learning_rate": 7.231200059161899e-06,
1065
+ "loss": 0.7806,
1066
+ "step": 151
1067
+ },
1068
+ {
1069
+ "epoch": 2.6666666666666665,
1070
+ "grad_norm": 0.03518173471203294,
1071
+ "learning_rate": 7.064591429060635e-06,
1072
+ "loss": 0.7679,
1073
+ "step": 152
1074
+ },
1075
+ {
1076
+ "epoch": 2.6842105263157894,
1077
+ "grad_norm": 0.03276207653785537,
1078
+ "learning_rate": 6.8991652001552695e-06,
1079
+ "loss": 0.7728,
1080
+ "step": 153
1081
+ },
1082
+ {
1083
+ "epoch": 2.7017543859649122,
1084
+ "grad_norm": 0.0347231674496661,
1085
+ "learning_rate": 6.734957358732458e-06,
1086
+ "loss": 0.7741,
1087
+ "step": 154
1088
+ },
1089
+ {
1090
+ "epoch": 2.719298245614035,
1091
+ "grad_norm": 0.033258910497780264,
1092
+ "learning_rate": 6.572003626034776e-06,
1093
+ "loss": 0.7728,
1094
+ "step": 155
1095
+ },
1096
+ {
1097
+ "epoch": 2.736842105263158,
1098
+ "grad_norm": 0.033923018163736,
1099
+ "learning_rate": 6.410339450490047e-06,
1100
+ "loss": 0.7838,
1101
+ "step": 156
1102
+ },
1103
+ {
1104
+ "epoch": 2.754385964912281,
1105
+ "grad_norm": 0.03499101652185436,
1106
+ "learning_rate": 6.250000000000003e-06,
1107
+ "loss": 0.7836,
1108
+ "step": 157
1109
+ },
1110
+ {
1111
+ "epoch": 2.7719298245614032,
1112
+ "grad_norm": 0.037455923489755065,
1113
+ "learning_rate": 6.091020154289971e-06,
1114
+ "loss": 0.786,
1115
+ "step": 158
1116
+ },
1117
+ {
1118
+ "epoch": 2.7894736842105265,
1119
+ "grad_norm": 0.03406798967875397,
1120
+ "learning_rate": 5.933434497321268e-06,
1121
+ "loss": 0.7607,
1122
+ "step": 159
1123
+ },
1124
+ {
1125
+ "epoch": 2.807017543859649,
1126
+ "grad_norm": 0.03263055408168355,
1127
+ "learning_rate": 5.777277309767873e-06,
1128
+ "loss": 0.7835,
1129
+ "step": 160
1130
+ },
1131
+ {
1132
+ "epoch": 2.824561403508772,
1133
+ "grad_norm": 0.0370087111535257,
1134
+ "learning_rate": 5.62258256155918e-06,
1135
+ "loss": 0.7506,
1136
+ "step": 161
1137
+ },
1138
+ {
1139
+ "epoch": 2.8421052631578947,
1140
+ "grad_norm": 0.03253506069052104,
1141
+ "learning_rate": 5.469383904490243e-06,
1142
+ "loss": 0.7849,
1143
+ "step": 162
1144
+ },
1145
+ {
1146
+ "epoch": 2.8596491228070176,
1147
+ "grad_norm": 0.034164574715283676,
1148
+ "learning_rate": 5.317714664901289e-06,
1149
+ "loss": 0.7665,
1150
+ "step": 163
1151
+ },
1152
+ {
1153
+ "epoch": 2.8771929824561404,
1154
+ "grad_norm": 0.03375521327460909,
1155
+ "learning_rate": 5.167607836428023e-06,
1156
+ "loss": 0.7497,
1157
+ "step": 164
1158
+ },
1159
+ {
1160
+ "epoch": 2.8947368421052633,
1161
+ "grad_norm": 0.035848240948616814,
1162
+ "learning_rate": 5.0190960728242834e-06,
1163
+ "loss": 0.7904,
1164
+ "step": 165
1165
+ },
1166
+ {
1167
+ "epoch": 2.912280701754386,
1168
+ "grad_norm": 0.03266391216652421,
1169
+ "learning_rate": 4.872211680858662e-06,
1170
+ "loss": 0.7592,
1171
+ "step": 166
1172
+ },
1173
+ {
1174
+ "epoch": 2.9298245614035086,
1175
+ "grad_norm": 0.03349205497732682,
1176
+ "learning_rate": 4.726986613286583e-06,
1177
+ "loss": 0.7666,
1178
+ "step": 167
1179
+ },
1180
+ {
1181
+ "epoch": 2.9473684210526314,
1182
+ "grad_norm": 0.034893605290688134,
1183
+ "learning_rate": 4.5834524618994106e-06,
1184
+ "loss": 0.7676,
1185
+ "step": 168
1186
+ },
1187
+ {
1188
+ "epoch": 2.9649122807017543,
1189
+ "grad_norm": 0.034664258032328234,
1190
+ "learning_rate": 4.441640450652093e-06,
1191
+ "loss": 0.7675,
1192
+ "step": 169
1193
+ },
1194
+ {
1195
+ "epoch": 2.982456140350877,
1196
+ "grad_norm": 0.032567147685664447,
1197
+ "learning_rate": 4.30158142887075e-06,
1198
+ "loss": 0.7607,
1199
+ "step": 170
1200
+ },
1201
+ {
1202
+ "epoch": 3.0,
1203
+ "grad_norm": 0.034965409248096775,
1204
+ "learning_rate": 4.163305864541865e-06,
1205
+ "loss": 0.7622,
1206
+ "step": 171
1207
+ },
1208
+ {
1209
+ "epoch": 3.017543859649123,
1210
+ "grad_norm": 0.034735445589064905,
1211
+ "learning_rate": 4.026843837684359e-06,
1212
+ "loss": 0.7767,
1213
+ "step": 172
1214
+ },
1215
+ {
1216
+ "epoch": 3.0350877192982457,
1217
+ "grad_norm": 0.061447912336751793,
1218
+ "learning_rate": 3.89222503380607e-06,
1219
+ "loss": 0.7423,
1220
+ "step": 173
1221
+ },
1222
+ {
1223
+ "epoch": 3.0526315789473686,
1224
+ "grad_norm": 0.03296491017047373,
1225
+ "learning_rate": 3.7594787374460747e-06,
1226
+ "loss": 0.7608,
1227
+ "step": 174
1228
+ }
1229
+ ],
1230
+ "logging_steps": 1,
1231
+ "max_steps": 228,
1232
+ "num_input_tokens_seen": 0,
1233
+ "num_train_epochs": 4,
1234
+ "save_steps": 29,
1235
+ "stateful_callbacks": {
1236
+ "TrainerControl": {
1237
+ "args": {
1238
+ "should_epoch_stop": false,
1239
+ "should_evaluate": false,
1240
+ "should_log": false,
1241
+ "should_save": true,
1242
+ "should_training_stop": false
1243
+ },
1244
+ "attributes": {}
1245
+ }
1246
+ },
1247
+ "total_flos": 2.1115148672434176e+17,
1248
+ "train_batch_size": 2,
1249
+ "trial_name": null,
1250
+ "trial_params": null
1251
+ }
epoch3/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05c6c10f6210235129364645e98f756016c73d51a6140c7cf57bc1858a89a218
3
+ size 8568
epoch3/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
epoch3/zero_to_fp32.py ADDED
@@ -0,0 +1,604 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright (c) Microsoft Corporation.
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ # DeepSpeed Team
7
+
8
+ # This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
9
+ # copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
10
+ # the future. Once extracted, the weights don't require DeepSpeed and can be used in any
11
+ # application.
12
+ #
13
+ # example: python zero_to_fp32.py . pytorch_model.bin
14
+
15
+ import argparse
16
+ import torch
17
+ import glob
18
+ import math
19
+ import os
20
+ import re
21
+ from collections import OrderedDict
22
+ from dataclasses import dataclass
23
+
24
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
25
+ # DeepSpeed data structures it has to be available in the current python environment.
26
+ from deepspeed.utils import logger
27
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
28
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
29
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
30
+
31
+
32
+ @dataclass
33
+ class zero_model_state:
34
+ buffers: dict()
35
+ param_shapes: dict()
36
+ shared_params: list
37
+ ds_version: int
38
+ frozen_param_shapes: dict()
39
+ frozen_param_fragments: dict()
40
+
41
+
42
+ debug = 0
43
+
44
+ # load to cpu
45
+ device = torch.device('cpu')
46
+
47
+
48
+ def atoi(text):
49
+ return int(text) if text.isdigit() else text
50
+
51
+
52
+ def natural_keys(text):
53
+ '''
54
+ alist.sort(key=natural_keys) sorts in human order
55
+ http://nedbatchelder.com/blog/200712/human_sorting.html
56
+ (See Toothy's implementation in the comments)
57
+ '''
58
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
59
+
60
+
61
+ def get_model_state_file(checkpoint_dir, zero_stage):
62
+ if not os.path.isdir(checkpoint_dir):
63
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
64
+
65
+ # there should be only one file
66
+ if zero_stage <= 2:
67
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
68
+ elif zero_stage == 3:
69
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
70
+
71
+ if not os.path.exists(file):
72
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
73
+
74
+ return file
75
+
76
+
77
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
78
+ # XXX: need to test that this simple glob rule works for multi-node setup too
79
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
80
+
81
+ if len(ckpt_files) == 0:
82
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
83
+
84
+ return ckpt_files
85
+
86
+
87
+ def get_optim_files(checkpoint_dir):
88
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
89
+
90
+
91
+ def get_model_state_files(checkpoint_dir):
92
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
93
+
94
+
95
+ def parse_model_states(files):
96
+ zero_model_states = []
97
+ for file in files:
98
+ state_dict = torch.load(file, map_location=device)
99
+
100
+ if BUFFER_NAMES not in state_dict:
101
+ raise ValueError(f"{file} is not a model state checkpoint")
102
+ buffer_names = state_dict[BUFFER_NAMES]
103
+ if debug:
104
+ print("Found buffers:", buffer_names)
105
+
106
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
107
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
108
+ param_shapes = state_dict[PARAM_SHAPES]
109
+
110
+ # collect parameters that are included in param_shapes
111
+ param_names = []
112
+ for s in param_shapes:
113
+ for name in s.keys():
114
+ param_names.append(name)
115
+
116
+ # update with frozen parameters
117
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
118
+ if frozen_param_shapes is not None:
119
+ if debug:
120
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
121
+ param_names += list(frozen_param_shapes.keys())
122
+
123
+ # handle shared params
124
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
125
+
126
+ ds_version = state_dict.get(DS_VERSION, None)
127
+
128
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
129
+
130
+ z_model_state = zero_model_state(buffers=buffers,
131
+ param_shapes=param_shapes,
132
+ shared_params=shared_params,
133
+ ds_version=ds_version,
134
+ frozen_param_shapes=frozen_param_shapes,
135
+ frozen_param_fragments=frozen_param_fragments)
136
+ zero_model_states.append(z_model_state)
137
+
138
+ return zero_model_states
139
+
140
+
141
+ def parse_optim_states(files, ds_checkpoint_dir):
142
+
143
+ total_files = len(files)
144
+ state_dicts = []
145
+ for f in files:
146
+ state_dict = torch.load(f, map_location=device)
147
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
148
+ # and also handle the case where it was already removed by another helper script
149
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
150
+ state_dicts.append(state_dict)
151
+
152
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
153
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
154
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
155
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
156
+
157
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
158
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
159
+ # use the max of the partition_count to get the dp world_size.
160
+
161
+ if type(world_size) is list:
162
+ world_size = max(world_size)
163
+
164
+ if world_size != total_files:
165
+ raise ValueError(
166
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
167
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
168
+ )
169
+
170
+ # the groups are named differently in each stage
171
+ if zero_stage <= 2:
172
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
173
+ elif zero_stage == 3:
174
+ fp32_groups_key = FP32_FLAT_GROUPS
175
+ else:
176
+ raise ValueError(f"unknown zero stage {zero_stage}")
177
+
178
+ if zero_stage <= 2:
179
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
180
+ elif zero_stage == 3:
181
+ # if there is more than one param group, there will be multiple flattened tensors - one
182
+ # flattened tensor per group - for simplicity merge them into a single tensor
183
+ #
184
+ # XXX: could make the script more memory efficient for when there are multiple groups - it
185
+ # will require matching the sub-lists of param_shapes for each param group flattened tensor
186
+
187
+ fp32_flat_groups = [
188
+ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
189
+ ]
190
+
191
+ return zero_stage, world_size, fp32_flat_groups
192
+
193
+
194
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
195
+ """
196
+ Returns fp32 state_dict reconstructed from ds checkpoint
197
+
198
+ Args:
199
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
200
+
201
+ """
202
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
203
+
204
+ optim_files = get_optim_files(ds_checkpoint_dir)
205
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
206
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
207
+
208
+ model_files = get_model_state_files(ds_checkpoint_dir)
209
+
210
+ zero_model_states = parse_model_states(model_files)
211
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
212
+
213
+ if zero_stage <= 2:
214
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
215
+ exclude_frozen_parameters)
216
+ elif zero_stage == 3:
217
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
218
+ exclude_frozen_parameters)
219
+
220
+
221
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
222
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
223
+ return
224
+
225
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
226
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
227
+
228
+ if debug:
229
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
230
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
231
+
232
+ wanted_params = len(frozen_param_shapes)
233
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
234
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
235
+ print(f'Frozen params: Have {avail_numel} numels to process.')
236
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
237
+
238
+ total_params = 0
239
+ total_numel = 0
240
+ for name, shape in frozen_param_shapes.items():
241
+ total_params += 1
242
+ unpartitioned_numel = shape.numel()
243
+ total_numel += unpartitioned_numel
244
+
245
+ state_dict[name] = frozen_param_fragments[name]
246
+
247
+ if debug:
248
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
249
+
250
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
251
+
252
+
253
+ def _has_callable(obj, fn):
254
+ attr = getattr(obj, fn, None)
255
+ return callable(attr)
256
+
257
+
258
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
259
+ param_shapes = zero_model_states[0].param_shapes
260
+
261
+ # Reconstruction protocol:
262
+ #
263
+ # XXX: document this
264
+
265
+ if debug:
266
+ for i in range(world_size):
267
+ for j in range(len(fp32_flat_groups[0])):
268
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
269
+
270
+ # XXX: memory usage doubles here (zero2)
271
+ num_param_groups = len(fp32_flat_groups[0])
272
+ merged_single_partition_of_fp32_groups = []
273
+ for i in range(num_param_groups):
274
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
275
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
276
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
277
+ avail_numel = sum(
278
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
279
+
280
+ if debug:
281
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
282
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
283
+ # not asserting if there is a mismatch due to possible padding
284
+ print(f"Have {avail_numel} numels to process.")
285
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
286
+
287
+ # params
288
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
289
+ # out-of-core computing solution
290
+ total_numel = 0
291
+ total_params = 0
292
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
293
+ offset = 0
294
+ avail_numel = full_single_fp32_vector.numel()
295
+ for name, shape in shapes.items():
296
+
297
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
298
+ total_numel += unpartitioned_numel
299
+ total_params += 1
300
+
301
+ if debug:
302
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
303
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
304
+ offset += unpartitioned_numel
305
+
306
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
307
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
308
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
309
+ # live optimizer object, so we are checking that the numbers are within the right range
310
+ align_to = 2 * world_size
311
+
312
+ def zero2_align(x):
313
+ return align_to * math.ceil(x / align_to)
314
+
315
+ if debug:
316
+ print(f"original offset={offset}, avail_numel={avail_numel}")
317
+
318
+ offset = zero2_align(offset)
319
+ avail_numel = zero2_align(avail_numel)
320
+
321
+ if debug:
322
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
323
+
324
+ # Sanity check
325
+ if offset != avail_numel:
326
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
327
+
328
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
329
+
330
+
331
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
332
+ exclude_frozen_parameters):
333
+ state_dict = OrderedDict()
334
+
335
+ # buffers
336
+ buffers = zero_model_states[0].buffers
337
+ state_dict.update(buffers)
338
+ if debug:
339
+ print(f"added {len(buffers)} buffers")
340
+
341
+ if not exclude_frozen_parameters:
342
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
343
+
344
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
345
+
346
+ # recover shared parameters
347
+ for pair in zero_model_states[0].shared_params:
348
+ if pair[1] in state_dict:
349
+ state_dict[pair[0]] = state_dict[pair[1]]
350
+
351
+ return state_dict
352
+
353
+
354
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
355
+ remainder = unpartitioned_numel % world_size
356
+ padding_numel = (world_size - remainder) if remainder else 0
357
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
358
+ return partitioned_numel, padding_numel
359
+
360
+
361
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
362
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
363
+ return
364
+
365
+ if debug:
366
+ for i in range(world_size):
367
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
368
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
369
+
370
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
371
+ wanted_params = len(frozen_param_shapes)
372
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
373
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
374
+ print(f'Frozen params: Have {avail_numel} numels to process.')
375
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
376
+
377
+ total_params = 0
378
+ total_numel = 0
379
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
380
+ total_params += 1
381
+ unpartitioned_numel = shape.numel()
382
+ total_numel += unpartitioned_numel
383
+
384
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
385
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
386
+
387
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
388
+
389
+ if debug:
390
+ print(
391
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
392
+ )
393
+
394
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
395
+
396
+
397
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
398
+ param_shapes = zero_model_states[0].param_shapes
399
+ avail_numel = fp32_flat_groups[0].numel() * world_size
400
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
401
+ # param, re-consolidating each param, while dealing with padding if any
402
+
403
+ # merge list of dicts, preserving order
404
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
405
+
406
+ if debug:
407
+ for i in range(world_size):
408
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
409
+
410
+ wanted_params = len(param_shapes)
411
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
412
+ # not asserting if there is a mismatch due to possible padding
413
+ avail_numel = fp32_flat_groups[0].numel() * world_size
414
+ print(f"Trainable params: Have {avail_numel} numels to process.")
415
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
416
+
417
+ # params
418
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
419
+ # out-of-core computing solution
420
+ offset = 0
421
+ total_numel = 0
422
+ total_params = 0
423
+ for name, shape in param_shapes.items():
424
+
425
+ unpartitioned_numel = shape.numel()
426
+ total_numel += unpartitioned_numel
427
+ total_params += 1
428
+
429
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
430
+
431
+ if debug:
432
+ print(
433
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
434
+ )
435
+
436
+ # XXX: memory usage doubles here
437
+ state_dict[name] = torch.cat(
438
+ tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
439
+ 0).narrow(0, 0, unpartitioned_numel).view(shape)
440
+ offset += partitioned_numel
441
+
442
+ offset *= world_size
443
+
444
+ # Sanity check
445
+ if offset != avail_numel:
446
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
447
+
448
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
449
+
450
+
451
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
452
+ exclude_frozen_parameters):
453
+ state_dict = OrderedDict()
454
+
455
+ # buffers
456
+ buffers = zero_model_states[0].buffers
457
+ state_dict.update(buffers)
458
+ if debug:
459
+ print(f"added {len(buffers)} buffers")
460
+
461
+ if not exclude_frozen_parameters:
462
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
463
+
464
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
465
+
466
+ # recover shared parameters
467
+ for pair in zero_model_states[0].shared_params:
468
+ if pair[1] in state_dict:
469
+ state_dict[pair[0]] = state_dict[pair[1]]
470
+
471
+ return state_dict
472
+
473
+
474
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False):
475
+ """
476
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
477
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
478
+ via a model hub.
479
+
480
+ Args:
481
+ - ``checkpoint_dir``: path to the desired checkpoint folder
482
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
483
+ - ``exclude_frozen_parameters``: exclude frozen parameters
484
+
485
+ Returns:
486
+ - pytorch ``state_dict``
487
+
488
+ Note: this approach may not work if your application doesn't have sufficient free CPU memory and
489
+ you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
490
+ the checkpoint.
491
+
492
+ A typical usage might be ::
493
+
494
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
495
+ # do the training and checkpoint saving
496
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
497
+ model = model.cpu() # move to cpu
498
+ model.load_state_dict(state_dict)
499
+ # submit to model hub or save the model to share with others
500
+
501
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
502
+ application. i.e. you will need to re-initialize the deepspeed engine, since
503
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
504
+
505
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
506
+
507
+ """
508
+ if tag is None:
509
+ latest_path = os.path.join(checkpoint_dir, 'latest')
510
+ if os.path.isfile(latest_path):
511
+ with open(latest_path, 'r') as fd:
512
+ tag = fd.read().strip()
513
+ else:
514
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
515
+
516
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
517
+
518
+ if not os.path.isdir(ds_checkpoint_dir):
519
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
520
+
521
+ return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
522
+
523
+
524
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None, exclude_frozen_parameters=False):
525
+ """
526
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
527
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
528
+
529
+ Args:
530
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
531
+ - ``output_file``: path to the pytorch fp32 state_dict output file (e.g. path/pytorch_model.bin)
532
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
533
+ - ``exclude_frozen_parameters``: exclude frozen parameters
534
+ """
535
+
536
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
537
+ print(f"Saving fp32 state dict to {output_file}")
538
+ torch.save(state_dict, output_file)
539
+
540
+
541
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
542
+ """
543
+ 1. Put the provided model to cpu
544
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
545
+ 3. Load it into the provided model
546
+
547
+ Args:
548
+ - ``model``: the model object to update
549
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
550
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
551
+
552
+ Returns:
553
+ - ``model`: modified model
554
+
555
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
556
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
557
+ conveniently placed for you in the checkpoint folder.
558
+
559
+ A typical usage might be ::
560
+
561
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
562
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
563
+ # submit to model hub or save the model to share with others
564
+
565
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
566
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
567
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
568
+
569
+ """
570
+ logger.info(f"Extracting fp32 weights")
571
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
572
+
573
+ logger.info(f"Overwriting model with fp32 weights")
574
+ model = model.cpu()
575
+ model.load_state_dict(state_dict, strict=False)
576
+
577
+ return model
578
+
579
+
580
+ if __name__ == "__main__":
581
+
582
+ parser = argparse.ArgumentParser()
583
+ parser.add_argument("checkpoint_dir",
584
+ type=str,
585
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
586
+ parser.add_argument(
587
+ "output_file",
588
+ type=str,
589
+ help="path to the pytorch fp32 state_dict output file (e.g. path/checkpoint-12/pytorch_model.bin)")
590
+ parser.add_argument("-t",
591
+ "--tag",
592
+ type=str,
593
+ default=None,
594
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
595
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
596
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
597
+ args = parser.parse_args()
598
+
599
+ debug = args.debug
600
+
601
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
602
+ args.output_file,
603
+ tag=args.tag,
604
+ exclude_frozen_parameters=args.exclude_frozen_parameters)
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": true,
5
+ "normalized": false,
6
+ "rstrip": true,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|im_end|>",
11
+ "lstrip": true,
12
+ "normalized": false,
13
+ "rstrip": true,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|dummy_87|>",
18
+ "lstrip": true,
19
+ "normalized": false,
20
+ "rstrip": true,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "�",
25
+ "lstrip": false,
26
+ "normalized": false,
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_config.json ADDED
@@ -0,0 +1,791 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "5809": {
5
+ "content": "�",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "100256": {
13
+ "content": "<|dummy_0|>",
14
+ "lstrip": true,
15
+ "normalized": false,
16
+ "rstrip": true,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "100257": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": true,
23
+ "normalized": false,
24
+ "rstrip": true,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "100258": {
29
+ "content": "<|fim_prefix|>",
30
+ "lstrip": true,
31
+ "normalized": false,
32
+ "rstrip": true,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "100259": {
37
+ "content": "<|fim_middle|>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": true,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "100260": {
45
+ "content": "<|fim_suffix|>",
46
+ "lstrip": true,
47
+ "normalized": false,
48
+ "rstrip": true,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "100261": {
53
+ "content": "<|dummy_1|>",
54
+ "lstrip": true,
55
+ "normalized": false,
56
+ "rstrip": true,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "100262": {
61
+ "content": "<|dummy_2|>",
62
+ "lstrip": true,
63
+ "normalized": false,
64
+ "rstrip": true,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "100263": {
69
+ "content": "<|dummy_3|>",
70
+ "lstrip": true,
71
+ "normalized": false,
72
+ "rstrip": true,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "100264": {
77
+ "content": "<|im_start|>",
78
+ "lstrip": true,
79
+ "normalized": false,
80
+ "rstrip": true,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "100265": {
85
+ "content": "<|im_end|>",
86
+ "lstrip": true,
87
+ "normalized": false,
88
+ "rstrip": true,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "100266": {
93
+ "content": "<|im_sep|>",
94
+ "lstrip": true,
95
+ "normalized": false,
96
+ "rstrip": true,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "100267": {
101
+ "content": "<|dummy_4|>",
102
+ "lstrip": true,
103
+ "normalized": false,
104
+ "rstrip": true,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "100268": {
109
+ "content": "<|dummy_5|>",
110
+ "lstrip": true,
111
+ "normalized": false,
112
+ "rstrip": true,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "100269": {
117
+ "content": "<|dummy_6|>",
118
+ "lstrip": true,
119
+ "normalized": false,
120
+ "rstrip": true,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "100270": {
125
+ "content": "<|dummy_7|>",
126
+ "lstrip": true,
127
+ "normalized": false,
128
+ "rstrip": true,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "100271": {
133
+ "content": "<|dummy_8|>",
134
+ "lstrip": true,
135
+ "normalized": false,
136
+ "rstrip": true,
137
+ "single_word": false,
138
+ "special": true
139
+ },
140
+ "100272": {
141
+ "content": "<|dummy_9|>",
142
+ "lstrip": true,
143
+ "normalized": false,
144
+ "rstrip": true,
145
+ "single_word": false,
146
+ "special": true
147
+ },
148
+ "100273": {
149
+ "content": "<|dummy_10|>",
150
+ "lstrip": true,
151
+ "normalized": false,
152
+ "rstrip": true,
153
+ "single_word": false,
154
+ "special": true
155
+ },
156
+ "100274": {
157
+ "content": "<|dummy_11|>",
158
+ "lstrip": true,
159
+ "normalized": false,
160
+ "rstrip": true,
161
+ "single_word": false,
162
+ "special": true
163
+ },
164
+ "100275": {
165
+ "content": "<|dummy_12|>",
166
+ "lstrip": true,
167
+ "normalized": false,
168
+ "rstrip": true,
169
+ "single_word": false,
170
+ "special": true
171
+ },
172
+ "100276": {
173
+ "content": "<|endofprompt|>",
174
+ "lstrip": true,
175
+ "normalized": false,
176
+ "rstrip": true,
177
+ "single_word": false,
178
+ "special": true
179
+ },
180
+ "100277": {
181
+ "content": "<|dummy_13|>",
182
+ "lstrip": true,
183
+ "normalized": false,
184
+ "rstrip": true,
185
+ "single_word": false,
186
+ "special": true
187
+ },
188
+ "100278": {
189
+ "content": "<|dummy_14|>",
190
+ "lstrip": true,
191
+ "normalized": false,
192
+ "rstrip": true,
193
+ "single_word": false,
194
+ "special": true
195
+ },
196
+ "100279": {
197
+ "content": "<|dummy_15|>",
198
+ "lstrip": true,
199
+ "normalized": false,
200
+ "rstrip": true,
201
+ "single_word": false,
202
+ "special": true
203
+ },
204
+ "100280": {
205
+ "content": "<|dummy_16|>",
206
+ "lstrip": true,
207
+ "normalized": false,
208
+ "rstrip": true,
209
+ "single_word": false,
210
+ "special": true
211
+ },
212
+ "100281": {
213
+ "content": "<|dummy_17|>",
214
+ "lstrip": true,
215
+ "normalized": false,
216
+ "rstrip": true,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "100282": {
221
+ "content": "<|dummy_18|>",
222
+ "lstrip": true,
223
+ "normalized": false,
224
+ "rstrip": true,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "100283": {
229
+ "content": "<|dummy_19|>",
230
+ "lstrip": true,
231
+ "normalized": false,
232
+ "rstrip": true,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "100284": {
237
+ "content": "<|dummy_20|>",
238
+ "lstrip": true,
239
+ "normalized": false,
240
+ "rstrip": true,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "100285": {
245
+ "content": "<|dummy_21|>",
246
+ "lstrip": true,
247
+ "normalized": false,
248
+ "rstrip": true,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "100286": {
253
+ "content": "<|dummy_22|>",
254
+ "lstrip": true,
255
+ "normalized": false,
256
+ "rstrip": true,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "100287": {
261
+ "content": "<|dummy_23|>",
262
+ "lstrip": true,
263
+ "normalized": false,
264
+ "rstrip": true,
265
+ "single_word": false,
266
+ "special": true
267
+ },
268
+ "100288": {
269
+ "content": "<|dummy_24|>",
270
+ "lstrip": true,
271
+ "normalized": false,
272
+ "rstrip": true,
273
+ "single_word": false,
274
+ "special": true
275
+ },
276
+ "100289": {
277
+ "content": "<|dummy_25|>",
278
+ "lstrip": true,
279
+ "normalized": false,
280
+ "rstrip": true,
281
+ "single_word": false,
282
+ "special": true
283
+ },
284
+ "100290": {
285
+ "content": "<|dummy_26|>",
286
+ "lstrip": true,
287
+ "normalized": false,
288
+ "rstrip": true,
289
+ "single_word": false,
290
+ "special": true
291
+ },
292
+ "100291": {
293
+ "content": "<|dummy_27|>",
294
+ "lstrip": true,
295
+ "normalized": false,
296
+ "rstrip": true,
297
+ "single_word": false,
298
+ "special": true
299
+ },
300
+ "100292": {
301
+ "content": "<|dummy_28|>",
302
+ "lstrip": true,
303
+ "normalized": false,
304
+ "rstrip": true,
305
+ "single_word": false,
306
+ "special": true
307
+ },
308
+ "100293": {
309
+ "content": "<|dummy_29|>",
310
+ "lstrip": true,
311
+ "normalized": false,
312
+ "rstrip": true,
313
+ "single_word": false,
314
+ "special": true
315
+ },
316
+ "100294": {
317
+ "content": "<|dummy_30|>",
318
+ "lstrip": true,
319
+ "normalized": false,
320
+ "rstrip": true,
321
+ "single_word": false,
322
+ "special": true
323
+ },
324
+ "100295": {
325
+ "content": "<|dummy_31|>",
326
+ "lstrip": true,
327
+ "normalized": false,
328
+ "rstrip": true,
329
+ "single_word": false,
330
+ "special": true
331
+ },
332
+ "100296": {
333
+ "content": "<|dummy_32|>",
334
+ "lstrip": true,
335
+ "normalized": false,
336
+ "rstrip": true,
337
+ "single_word": false,
338
+ "special": true
339
+ },
340
+ "100297": {
341
+ "content": "<|dummy_33|>",
342
+ "lstrip": true,
343
+ "normalized": false,
344
+ "rstrip": true,
345
+ "single_word": false,
346
+ "special": true
347
+ },
348
+ "100298": {
349
+ "content": "<|dummy_34|>",
350
+ "lstrip": true,
351
+ "normalized": false,
352
+ "rstrip": true,
353
+ "single_word": false,
354
+ "special": true
355
+ },
356
+ "100299": {
357
+ "content": "<|dummy_35|>",
358
+ "lstrip": true,
359
+ "normalized": false,
360
+ "rstrip": true,
361
+ "single_word": false,
362
+ "special": true
363
+ },
364
+ "100300": {
365
+ "content": "<|dummy_36|>",
366
+ "lstrip": true,
367
+ "normalized": false,
368
+ "rstrip": true,
369
+ "single_word": false,
370
+ "special": true
371
+ },
372
+ "100301": {
373
+ "content": "<|dummy_37|>",
374
+ "lstrip": true,
375
+ "normalized": false,
376
+ "rstrip": true,
377
+ "single_word": false,
378
+ "special": true
379
+ },
380
+ "100302": {
381
+ "content": "<|dummy_38|>",
382
+ "lstrip": true,
383
+ "normalized": false,
384
+ "rstrip": true,
385
+ "single_word": false,
386
+ "special": true
387
+ },
388
+ "100303": {
389
+ "content": "<|dummy_39|>",
390
+ "lstrip": true,
391
+ "normalized": false,
392
+ "rstrip": true,
393
+ "single_word": false,
394
+ "special": true
395
+ },
396
+ "100304": {
397
+ "content": "<|dummy_40|>",
398
+ "lstrip": true,
399
+ "normalized": false,
400
+ "rstrip": true,
401
+ "single_word": false,
402
+ "special": true
403
+ },
404
+ "100305": {
405
+ "content": "<|dummy_41|>",
406
+ "lstrip": true,
407
+ "normalized": false,
408
+ "rstrip": true,
409
+ "single_word": false,
410
+ "special": true
411
+ },
412
+ "100306": {
413
+ "content": "<|dummy_42|>",
414
+ "lstrip": true,
415
+ "normalized": false,
416
+ "rstrip": true,
417
+ "single_word": false,
418
+ "special": true
419
+ },
420
+ "100307": {
421
+ "content": "<|dummy_43|>",
422
+ "lstrip": true,
423
+ "normalized": false,
424
+ "rstrip": true,
425
+ "single_word": false,
426
+ "special": true
427
+ },
428
+ "100308": {
429
+ "content": "<|dummy_44|>",
430
+ "lstrip": true,
431
+ "normalized": false,
432
+ "rstrip": true,
433
+ "single_word": false,
434
+ "special": true
435
+ },
436
+ "100309": {
437
+ "content": "<|dummy_45|>",
438
+ "lstrip": true,
439
+ "normalized": false,
440
+ "rstrip": true,
441
+ "single_word": false,
442
+ "special": true
443
+ },
444
+ "100310": {
445
+ "content": "<|dummy_46|>",
446
+ "lstrip": true,
447
+ "normalized": false,
448
+ "rstrip": true,
449
+ "single_word": false,
450
+ "special": true
451
+ },
452
+ "100311": {
453
+ "content": "<|dummy_47|>",
454
+ "lstrip": true,
455
+ "normalized": false,
456
+ "rstrip": true,
457
+ "single_word": false,
458
+ "special": true
459
+ },
460
+ "100312": {
461
+ "content": "<|dummy_48|>",
462
+ "lstrip": true,
463
+ "normalized": false,
464
+ "rstrip": true,
465
+ "single_word": false,
466
+ "special": true
467
+ },
468
+ "100313": {
469
+ "content": "<|dummy_49|>",
470
+ "lstrip": true,
471
+ "normalized": false,
472
+ "rstrip": true,
473
+ "single_word": false,
474
+ "special": true
475
+ },
476
+ "100314": {
477
+ "content": "<|dummy_50|>",
478
+ "lstrip": true,
479
+ "normalized": false,
480
+ "rstrip": true,
481
+ "single_word": false,
482
+ "special": true
483
+ },
484
+ "100315": {
485
+ "content": "<|dummy_51|>",
486
+ "lstrip": true,
487
+ "normalized": false,
488
+ "rstrip": true,
489
+ "single_word": false,
490
+ "special": true
491
+ },
492
+ "100316": {
493
+ "content": "<|dummy_52|>",
494
+ "lstrip": true,
495
+ "normalized": false,
496
+ "rstrip": true,
497
+ "single_word": false,
498
+ "special": true
499
+ },
500
+ "100317": {
501
+ "content": "<|dummy_53|>",
502
+ "lstrip": true,
503
+ "normalized": false,
504
+ "rstrip": true,
505
+ "single_word": false,
506
+ "special": true
507
+ },
508
+ "100318": {
509
+ "content": "<|dummy_54|>",
510
+ "lstrip": true,
511
+ "normalized": false,
512
+ "rstrip": true,
513
+ "single_word": false,
514
+ "special": true
515
+ },
516
+ "100319": {
517
+ "content": "<|dummy_55|>",
518
+ "lstrip": true,
519
+ "normalized": false,
520
+ "rstrip": true,
521
+ "single_word": false,
522
+ "special": true
523
+ },
524
+ "100320": {
525
+ "content": "<|dummy_56|>",
526
+ "lstrip": true,
527
+ "normalized": false,
528
+ "rstrip": true,
529
+ "single_word": false,
530
+ "special": true
531
+ },
532
+ "100321": {
533
+ "content": "<|dummy_57|>",
534
+ "lstrip": true,
535
+ "normalized": false,
536
+ "rstrip": true,
537
+ "single_word": false,
538
+ "special": true
539
+ },
540
+ "100322": {
541
+ "content": "<|dummy_58|>",
542
+ "lstrip": true,
543
+ "normalized": false,
544
+ "rstrip": true,
545
+ "single_word": false,
546
+ "special": true
547
+ },
548
+ "100323": {
549
+ "content": "<|dummy_59|>",
550
+ "lstrip": true,
551
+ "normalized": false,
552
+ "rstrip": true,
553
+ "single_word": false,
554
+ "special": true
555
+ },
556
+ "100324": {
557
+ "content": "<|dummy_60|>",
558
+ "lstrip": true,
559
+ "normalized": false,
560
+ "rstrip": true,
561
+ "single_word": false,
562
+ "special": true
563
+ },
564
+ "100325": {
565
+ "content": "<|dummy_61|>",
566
+ "lstrip": true,
567
+ "normalized": false,
568
+ "rstrip": true,
569
+ "single_word": false,
570
+ "special": true
571
+ },
572
+ "100326": {
573
+ "content": "<|dummy_62|>",
574
+ "lstrip": true,
575
+ "normalized": false,
576
+ "rstrip": true,
577
+ "single_word": false,
578
+ "special": true
579
+ },
580
+ "100327": {
581
+ "content": "<|dummy_63|>",
582
+ "lstrip": true,
583
+ "normalized": false,
584
+ "rstrip": true,
585
+ "single_word": false,
586
+ "special": true
587
+ },
588
+ "100328": {
589
+ "content": "<|dummy_64|>",
590
+ "lstrip": true,
591
+ "normalized": false,
592
+ "rstrip": true,
593
+ "single_word": false,
594
+ "special": true
595
+ },
596
+ "100329": {
597
+ "content": "<|dummy_65|>",
598
+ "lstrip": true,
599
+ "normalized": false,
600
+ "rstrip": true,
601
+ "single_word": false,
602
+ "special": true
603
+ },
604
+ "100330": {
605
+ "content": "<|dummy_66|>",
606
+ "lstrip": true,
607
+ "normalized": false,
608
+ "rstrip": true,
609
+ "single_word": false,
610
+ "special": true
611
+ },
612
+ "100331": {
613
+ "content": "<|dummy_67|>",
614
+ "lstrip": true,
615
+ "normalized": false,
616
+ "rstrip": true,
617
+ "single_word": false,
618
+ "special": true
619
+ },
620
+ "100332": {
621
+ "content": "<|dummy_68|>",
622
+ "lstrip": true,
623
+ "normalized": false,
624
+ "rstrip": true,
625
+ "single_word": false,
626
+ "special": true
627
+ },
628
+ "100333": {
629
+ "content": "<|dummy_69|>",
630
+ "lstrip": true,
631
+ "normalized": false,
632
+ "rstrip": true,
633
+ "single_word": false,
634
+ "special": true
635
+ },
636
+ "100334": {
637
+ "content": "<|dummy_70|>",
638
+ "lstrip": true,
639
+ "normalized": false,
640
+ "rstrip": true,
641
+ "single_word": false,
642
+ "special": true
643
+ },
644
+ "100335": {
645
+ "content": "<|dummy_71|>",
646
+ "lstrip": true,
647
+ "normalized": false,
648
+ "rstrip": true,
649
+ "single_word": false,
650
+ "special": true
651
+ },
652
+ "100336": {
653
+ "content": "<|dummy_72|>",
654
+ "lstrip": true,
655
+ "normalized": false,
656
+ "rstrip": true,
657
+ "single_word": false,
658
+ "special": true
659
+ },
660
+ "100337": {
661
+ "content": "<|dummy_73|>",
662
+ "lstrip": true,
663
+ "normalized": false,
664
+ "rstrip": true,
665
+ "single_word": false,
666
+ "special": true
667
+ },
668
+ "100338": {
669
+ "content": "<|dummy_74|>",
670
+ "lstrip": true,
671
+ "normalized": false,
672
+ "rstrip": true,
673
+ "single_word": false,
674
+ "special": true
675
+ },
676
+ "100339": {
677
+ "content": "<|dummy_75|>",
678
+ "lstrip": true,
679
+ "normalized": false,
680
+ "rstrip": true,
681
+ "single_word": false,
682
+ "special": true
683
+ },
684
+ "100340": {
685
+ "content": "<|dummy_76|>",
686
+ "lstrip": true,
687
+ "normalized": false,
688
+ "rstrip": true,
689
+ "single_word": false,
690
+ "special": true
691
+ },
692
+ "100341": {
693
+ "content": "<|dummy_77|>",
694
+ "lstrip": true,
695
+ "normalized": false,
696
+ "rstrip": true,
697
+ "single_word": false,
698
+ "special": true
699
+ },
700
+ "100342": {
701
+ "content": "<|dummy_78|>",
702
+ "lstrip": true,
703
+ "normalized": false,
704
+ "rstrip": true,
705
+ "single_word": false,
706
+ "special": true
707
+ },
708
+ "100343": {
709
+ "content": "<|dummy_79|>",
710
+ "lstrip": true,
711
+ "normalized": false,
712
+ "rstrip": true,
713
+ "single_word": false,
714
+ "special": true
715
+ },
716
+ "100344": {
717
+ "content": "<|dummy_80|>",
718
+ "lstrip": true,
719
+ "normalized": false,
720
+ "rstrip": true,
721
+ "single_word": false,
722
+ "special": true
723
+ },
724
+ "100345": {
725
+ "content": "<|dummy_81|>",
726
+ "lstrip": true,
727
+ "normalized": false,
728
+ "rstrip": true,
729
+ "single_word": false,
730
+ "special": true
731
+ },
732
+ "100346": {
733
+ "content": "<|dummy_82|>",
734
+ "lstrip": true,
735
+ "normalized": false,
736
+ "rstrip": true,
737
+ "single_word": false,
738
+ "special": true
739
+ },
740
+ "100347": {
741
+ "content": "<|dummy_83|>",
742
+ "lstrip": true,
743
+ "normalized": false,
744
+ "rstrip": true,
745
+ "single_word": false,
746
+ "special": true
747
+ },
748
+ "100348": {
749
+ "content": "<|dummy_84|>",
750
+ "lstrip": true,
751
+ "normalized": false,
752
+ "rstrip": true,
753
+ "single_word": false,
754
+ "special": true
755
+ },
756
+ "100349": {
757
+ "content": "<|dummy_85|>",
758
+ "lstrip": true,
759
+ "normalized": false,
760
+ "rstrip": true,
761
+ "single_word": false,
762
+ "special": true
763
+ },
764
+ "100350": {
765
+ "content": "<|dummy_86|>",
766
+ "lstrip": true,
767
+ "normalized": false,
768
+ "rstrip": true,
769
+ "single_word": false,
770
+ "special": true
771
+ },
772
+ "100351": {
773
+ "content": "<|dummy_87|>",
774
+ "lstrip": true,
775
+ "normalized": false,
776
+ "rstrip": true,
777
+ "single_word": false,
778
+ "special": true
779
+ }
780
+ },
781
+ "bos_token": "<|endoftext|>",
782
+ "chat_template": "{% for message in messages %}{% if (message['role'] == 'system') %}{{'<|im_start|>system<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'user') %}{{'<|im_start|>user<|im_sep|>' + message['content'] + '<|im_end|>'}}{% elif (message['role'] == 'assistant') %}{{'<|im_start|>assistant<|im_sep|>' + message['content'] + '<|im_end|>'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant<|im_sep|>' }}{% endif %}",
783
+ "clean_up_tokenization_spaces": false,
784
+ "eos_token": "<|im_end|>",
785
+ "extra_special_tokens": {},
786
+ "model_max_length": 16384,
787
+ "pad_token": "<|dummy_87|>",
788
+ "padding_side": "left",
789
+ "tokenizer_class": "GPT2Tokenizer",
790
+ "unk_token": "�"
791
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05c6c10f6210235129364645e98f756016c73d51a6140c7cf57bc1858a89a218
3
+ size 8568
vocab.json ADDED
The diff for this file is too large to render. See raw diff