michaelfeil commited on
Commit
ba2c5e2
1 Parent(s): d380cc7

Upload Salesforce/codegen2-3_7B ctranslate fp16 weights

Browse files
README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - ctranslate2
4
+ - int8
5
+ - float16
6
+
7
+ license: apache-2.0
8
+ ---
9
+ # # Fast-Inference with Ctranslate2
10
+ Speedup inference while reducing memory by 2x-4x using int8 inference in C++ on CPU or GPU.
11
+
12
+ quantized version of [Salesforce/codegen2-3_7B](https://huggingface.co/Salesforce/codegen2-3_7B)
13
+ ```bash
14
+ pip install hf-hub-ctranslate2>=2.0.8
15
+ ```
16
+ Converted on 2023-05-21 using
17
+ ```
18
+ ct2-transformers-converter --model Salesforce/codegen2-3_7B --output_dir /home/michael/tmp-ct2fast-codegen2-3_7B --force --copy_files merges.txt tokenizer.json README.md tokenizer_config.json vocab.json special_tokens_map.json added_tokens.json configuration_codegen.py .gitattributes --quantization float16
19
+ ```
20
+
21
+ Checkpoint compatible to [ctranslate2>=3.13.0](https://github.com/OpenNMT/CTranslate2) and [hf-hub-ctranslate2>=2.0.6](https://github.com/michaelfeil/hf-hub-ctranslate2)
22
+ - `compute_type=int8_float16` for `device="cuda"`
23
+ - `compute_type=int8` for `device="cpu"`
24
+
25
+ ```python
26
+ from hf_hub_ctranslate2 import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub
27
+ from transformers import AutoTokenizer
28
+
29
+ model_name = "michaelfeil/ct2fast-codegen2-3_7B"
30
+ # use either TranslatorCT2fromHfHub or GeneratorCT2fromHfHub here, depending on model.
31
+ model = GeneratorCT2fromHfHub(
32
+ # load in int8 on CUDA
33
+ model_name_or_path=model_name,
34
+ device="cuda",
35
+ compute_type="int8_float16",
36
+ # tokenizer=AutoTokenizer.from_pretrained("Salesforce/codegen2-3_7B")
37
+ )
38
+ outputs = model.generate(
39
+ text=["def print_hello_world():", "def hello_name(name:"],
40
+ max_length=64
41
+ )
42
+ print(outputs)
43
+ ```
44
+
45
+ # Licence and other remarks:
46
+ This is just a quantized version. Licence conditions are intended to be idential to original huggingface repo.
47
+
48
+ # Original description
49
+
50
+ tags:
51
+ - ctranslate2
52
+ - int8
53
+ - float16
54
+
55
+
56
+ # CodeGen2 (CodeGen2-3.7B)
57
+
58
+ ## Model description
59
+
60
+ [CodeGen2](https://github.com/salesforce/CodeGen2) is a family of autoregressive language models for **program synthesis**, introduced in the paper:
61
+
62
+ [CodeGen2: Lessons for Training LLMs on Programming and Natural Languages](https://arxiv.org/abs/2305.02309) by Erik Nijkamp\*, Hiroaki Hayashi\*, Caiming Xiong, Silvio Savarese, Yingbo Zhou.
63
+
64
+ Unlike the original CodeGen model family (i.e., CodeGen1), CodeGen2 is capable of infilling, and supports more programming languages.
65
+
66
+ Four model sizes are released: `1B`, `3.7B`, `7B`, `16B`.
67
+
68
+ ## How to use
69
+
70
+ This model can be easily loaded using the `AutoModelForCausalLM` functionality.
71
+
72
+ ### Causal sampling
73
+
74
+ For regular causal sampling, simply generate completions given the context:
75
+ ```python
76
+ from transformers import AutoTokenizer, AutoModelForCausalLM
77
+ tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen2-3_7B")
78
+ model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen2-3_7B", trust_remote_code=True, revision="main")
79
+
80
+ text = "def hello_world():"
81
+ input_ids = tokenizer(text, return_tensors="pt").input_ids
82
+ generated_ids = model.generate(input_ids, max_length=128)
83
+ print(tokenizer.decode(generated_ids[0], skip_special_tokens=True))
84
+ ```
85
+
86
+ ### Infill sampling
87
+
88
+ For **infill** sampling, we introduce three new special token types:
89
+
90
+ * `<mask_N>`: N-th span to be masked. In practice, use `<mask_1>` to where you want to sample infill.
91
+ * `<sep>`: Seperator token between the suffix and the infilled sample. See below.
92
+ * `<eom>`: "End-Of-Mask" token that model will output at the end of infilling. You may use this token to truncate the output.
93
+
94
+ For example, if we want to generate infill for the following cursor position of a function:
95
+ ```python
96
+ def hello_world():
97
+ |
98
+ return name
99
+ ```
100
+ we construct an input to the model by
101
+
102
+ 1. Inserting `<mask_1>` token in place of cursor position
103
+ 2. Append `<sep>` token to indicate the boundary
104
+ 3. Insert another `<mask_1>` to indicate which mask we want to infill.
105
+
106
+ The final snippet looks as follows:
107
+
108
+ ```python
109
+ from transformers import AutoTokenizer, AutoModelForCausalLM
110
+ tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen2-3_7B")
111
+ model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen2-3_7B", trust_remote_code=True, revision="main")
112
+
113
+
114
+ def format(prefix, suffix):
115
+ return prefix + "<mask_1>" + suffix + "<|endoftext|>" + "<sep>" + "<mask_1>"
116
+
117
+
118
+ prefix = "def hello_world():\n "
119
+ suffix = " return name"
120
+ text = format(prefix, suffix)
121
+ input_ids = tokenizer(text, return_tensors="pt").input_ids
122
+ generated_ids = model.generate(input_ids, max_length=128)
123
+ print(tokenizer.decode(generated_ids[0], skip_special_tokens=False)[len(text):])
124
+ ```
125
+
126
+ You might want to truncate the model output with `<eom>`.
127
+
128
+ ## Training data
129
+
130
+ This checkpoint is trained on the stricter permissive subset of [the deduplicated version of the Stack dataset (v1.1)](https://huggingface.co/datasets/bigcode/the-stack-dedup). Supported languages (and frameworks) are as follows:
131
+ `c`, `c++`, `c-sharp`, `dart`, `go`, `java`, `javascript`, `kotlin`, `lua`, `php`, `python`, `ruby`, `rust`, `scala`, `shell`, `sql`, `swift`, `typescript`, `vue`.
132
+
133
+ ## Training procedure
134
+
135
+ CodeGen2 was trained using cross-entropy loss to maximize the likelihood of sequential inputs.
136
+ The input sequences are formatted in two ways: (1) causal language modeling and (2) file-level span corruption.
137
+ Please refer to the paper for more details.
138
+
139
+ ## Evaluation results
140
+
141
+ We evaluate our models on HumanEval and HumanEval-Infill. Please refer to the [paper](https://arxiv.org/abs/2305.02309) for more details.
142
+
143
+ ## Intended use and limitations
144
+
145
+ As an autoregressive language model, CodeGen2 is capable of extracting features from given natural language and programming language texts, and calculating the likelihood of them.
146
+ However, the model is intended for and best at **program synthesis**, that is, generating executable code given English prompts, where the prompts should be in the form of a comment string. The model can complete partially-generated code as well.
147
+
148
+
149
+ ## BibTeX entry and citation info
150
+
151
+ ```bibtex
152
+ @article{Nijkamp2023codegen2,
153
+ title={CodeGen2: Lessons for Training LLMs on Programming and Natural Languages},
154
+ author={Nijkamp, Erik and Hayashi, Hiroaki and Xiong, Caiming and Savarese, Silvio and Zhou, Yingbo},
155
+ journal={arXiv preprint},
156
+ year={2023}
157
+ }
158
+ ```
added_tokens.json ADDED
@@ -0,0 +1,945 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "\t\t": 50294,
3
+ "\t\t\t": 50293,
4
+ "\t\t\t\t": 50292,
5
+ "\t\t\t\t\t": 50291,
6
+ "\t\t\t\t\t\t": 50290,
7
+ "\t\t\t\t\t\t\t": 50289,
8
+ "\t\t\t\t\t\t\t\t": 50288,
9
+ "\t\t\t\t\t\t\t\t\t": 50287,
10
+ " ": 50286,
11
+ " ": 50285,
12
+ " ": 50284,
13
+ " ": 50283,
14
+ " ": 50282,
15
+ " ": 50281,
16
+ " ": 50280,
17
+ " ": 50279,
18
+ " ": 50278,
19
+ " ": 50277,
20
+ " ": 50276,
21
+ " ": 50275,
22
+ " ": 50274,
23
+ " ": 50273,
24
+ " ": 50272,
25
+ " ": 50271,
26
+ " ": 50270,
27
+ " ": 50269,
28
+ " ": 50268,
29
+ " ": 50267,
30
+ " ": 50266,
31
+ " ": 50265,
32
+ " ": 50264,
33
+ " ": 50263,
34
+ " ": 50262,
35
+ " ": 50261,
36
+ " ": 50260,
37
+ " ": 50259,
38
+ " ": 50258,
39
+ " ": 50257,
40
+ "<dummy_0>": 50295,
41
+ "<dummy_1>": 50296,
42
+ "<dummy_2>": 50297,
43
+ "<dummy_3>": 50298,
44
+ "<eom>": 50300,
45
+ "<mask_100>": 51100,
46
+ "<mask_101>": 51099,
47
+ "<mask_102>": 51098,
48
+ "<mask_103>": 51097,
49
+ "<mask_104>": 51096,
50
+ "<mask_105>": 51095,
51
+ "<mask_106>": 51094,
52
+ "<mask_107>": 51093,
53
+ "<mask_108>": 51092,
54
+ "<mask_109>": 51091,
55
+ "<mask_10>": 51190,
56
+ "<mask_110>": 51090,
57
+ "<mask_111>": 51089,
58
+ "<mask_112>": 51088,
59
+ "<mask_113>": 51087,
60
+ "<mask_114>": 51086,
61
+ "<mask_115>": 51085,
62
+ "<mask_116>": 51084,
63
+ "<mask_117>": 51083,
64
+ "<mask_118>": 51082,
65
+ "<mask_119>": 51081,
66
+ "<mask_11>": 51189,
67
+ "<mask_120>": 51080,
68
+ "<mask_121>": 51079,
69
+ "<mask_122>": 51078,
70
+ "<mask_123>": 51077,
71
+ "<mask_124>": 51076,
72
+ "<mask_125>": 51075,
73
+ "<mask_126>": 51074,
74
+ "<mask_127>": 51073,
75
+ "<mask_128>": 51072,
76
+ "<mask_129>": 51071,
77
+ "<mask_12>": 51188,
78
+ "<mask_130>": 51070,
79
+ "<mask_131>": 51069,
80
+ "<mask_132>": 51068,
81
+ "<mask_133>": 51067,
82
+ "<mask_134>": 51066,
83
+ "<mask_135>": 51065,
84
+ "<mask_136>": 51064,
85
+ "<mask_137>": 51063,
86
+ "<mask_138>": 51062,
87
+ "<mask_139>": 51061,
88
+ "<mask_13>": 51187,
89
+ "<mask_140>": 51060,
90
+ "<mask_141>": 51059,
91
+ "<mask_142>": 51058,
92
+ "<mask_143>": 51057,
93
+ "<mask_144>": 51056,
94
+ "<mask_145>": 51055,
95
+ "<mask_146>": 51054,
96
+ "<mask_147>": 51053,
97
+ "<mask_148>": 51052,
98
+ "<mask_149>": 51051,
99
+ "<mask_14>": 51186,
100
+ "<mask_150>": 51050,
101
+ "<mask_151>": 51049,
102
+ "<mask_152>": 51048,
103
+ "<mask_153>": 51047,
104
+ "<mask_154>": 51046,
105
+ "<mask_155>": 51045,
106
+ "<mask_156>": 51044,
107
+ "<mask_157>": 51043,
108
+ "<mask_158>": 51042,
109
+ "<mask_159>": 51041,
110
+ "<mask_15>": 51185,
111
+ "<mask_160>": 51040,
112
+ "<mask_161>": 51039,
113
+ "<mask_162>": 51038,
114
+ "<mask_163>": 51037,
115
+ "<mask_164>": 51036,
116
+ "<mask_165>": 51035,
117
+ "<mask_166>": 51034,
118
+ "<mask_167>": 51033,
119
+ "<mask_168>": 51032,
120
+ "<mask_169>": 51031,
121
+ "<mask_16>": 51184,
122
+ "<mask_170>": 51030,
123
+ "<mask_171>": 51029,
124
+ "<mask_172>": 51028,
125
+ "<mask_173>": 51027,
126
+ "<mask_174>": 51026,
127
+ "<mask_175>": 51025,
128
+ "<mask_176>": 51024,
129
+ "<mask_177>": 51023,
130
+ "<mask_178>": 51022,
131
+ "<mask_179>": 51021,
132
+ "<mask_17>": 51183,
133
+ "<mask_180>": 51020,
134
+ "<mask_181>": 51019,
135
+ "<mask_182>": 51018,
136
+ "<mask_183>": 51017,
137
+ "<mask_184>": 51016,
138
+ "<mask_185>": 51015,
139
+ "<mask_186>": 51014,
140
+ "<mask_187>": 51013,
141
+ "<mask_188>": 51012,
142
+ "<mask_189>": 51011,
143
+ "<mask_18>": 51182,
144
+ "<mask_190>": 51010,
145
+ "<mask_191>": 51009,
146
+ "<mask_192>": 51008,
147
+ "<mask_193>": 51007,
148
+ "<mask_194>": 51006,
149
+ "<mask_195>": 51005,
150
+ "<mask_196>": 51004,
151
+ "<mask_197>": 51003,
152
+ "<mask_198>": 51002,
153
+ "<mask_199>": 51001,
154
+ "<mask_19>": 51181,
155
+ "<mask_1>": 51199,
156
+ "<mask_200>": 51000,
157
+ "<mask_201>": 50999,
158
+ "<mask_202>": 50998,
159
+ "<mask_203>": 50997,
160
+ "<mask_204>": 50996,
161
+ "<mask_205>": 50995,
162
+ "<mask_206>": 50994,
163
+ "<mask_207>": 50993,
164
+ "<mask_208>": 50992,
165
+ "<mask_209>": 50991,
166
+ "<mask_20>": 51180,
167
+ "<mask_210>": 50990,
168
+ "<mask_211>": 50989,
169
+ "<mask_212>": 50988,
170
+ "<mask_213>": 50987,
171
+ "<mask_214>": 50986,
172
+ "<mask_215>": 50985,
173
+ "<mask_216>": 50984,
174
+ "<mask_217>": 50983,
175
+ "<mask_218>": 50982,
176
+ "<mask_219>": 50981,
177
+ "<mask_21>": 51179,
178
+ "<mask_220>": 50980,
179
+ "<mask_221>": 50979,
180
+ "<mask_222>": 50978,
181
+ "<mask_223>": 50977,
182
+ "<mask_224>": 50976,
183
+ "<mask_225>": 50975,
184
+ "<mask_226>": 50974,
185
+ "<mask_227>": 50973,
186
+ "<mask_228>": 50972,
187
+ "<mask_229>": 50971,
188
+ "<mask_22>": 51178,
189
+ "<mask_230>": 50970,
190
+ "<mask_231>": 50969,
191
+ "<mask_232>": 50968,
192
+ "<mask_233>": 50967,
193
+ "<mask_234>": 50966,
194
+ "<mask_235>": 50965,
195
+ "<mask_236>": 50964,
196
+ "<mask_237>": 50963,
197
+ "<mask_238>": 50962,
198
+ "<mask_239>": 50961,
199
+ "<mask_23>": 51177,
200
+ "<mask_240>": 50960,
201
+ "<mask_241>": 50959,
202
+ "<mask_242>": 50958,
203
+ "<mask_243>": 50957,
204
+ "<mask_244>": 50956,
205
+ "<mask_245>": 50955,
206
+ "<mask_246>": 50954,
207
+ "<mask_247>": 50953,
208
+ "<mask_248>": 50952,
209
+ "<mask_249>": 50951,
210
+ "<mask_24>": 51176,
211
+ "<mask_250>": 50950,
212
+ "<mask_251>": 50949,
213
+ "<mask_252>": 50948,
214
+ "<mask_253>": 50947,
215
+ "<mask_254>": 50946,
216
+ "<mask_255>": 50945,
217
+ "<mask_256>": 50944,
218
+ "<mask_257>": 50943,
219
+ "<mask_258>": 50942,
220
+ "<mask_259>": 50941,
221
+ "<mask_25>": 51175,
222
+ "<mask_260>": 50940,
223
+ "<mask_261>": 50939,
224
+ "<mask_262>": 50938,
225
+ "<mask_263>": 50937,
226
+ "<mask_264>": 50936,
227
+ "<mask_265>": 50935,
228
+ "<mask_266>": 50934,
229
+ "<mask_267>": 50933,
230
+ "<mask_268>": 50932,
231
+ "<mask_269>": 50931,
232
+ "<mask_26>": 51174,
233
+ "<mask_270>": 50930,
234
+ "<mask_271>": 50929,
235
+ "<mask_272>": 50928,
236
+ "<mask_273>": 50927,
237
+ "<mask_274>": 50926,
238
+ "<mask_275>": 50925,
239
+ "<mask_276>": 50924,
240
+ "<mask_277>": 50923,
241
+ "<mask_278>": 50922,
242
+ "<mask_279>": 50921,
243
+ "<mask_27>": 51173,
244
+ "<mask_280>": 50920,
245
+ "<mask_281>": 50919,
246
+ "<mask_282>": 50918,
247
+ "<mask_283>": 50917,
248
+ "<mask_284>": 50916,
249
+ "<mask_285>": 50915,
250
+ "<mask_286>": 50914,
251
+ "<mask_287>": 50913,
252
+ "<mask_288>": 50912,
253
+ "<mask_289>": 50911,
254
+ "<mask_28>": 51172,
255
+ "<mask_290>": 50910,
256
+ "<mask_291>": 50909,
257
+ "<mask_292>": 50908,
258
+ "<mask_293>": 50907,
259
+ "<mask_294>": 50906,
260
+ "<mask_295>": 50905,
261
+ "<mask_296>": 50904,
262
+ "<mask_297>": 50903,
263
+ "<mask_298>": 50902,
264
+ "<mask_299>": 50901,
265
+ "<mask_29>": 51171,
266
+ "<mask_2>": 51198,
267
+ "<mask_300>": 50900,
268
+ "<mask_301>": 50899,
269
+ "<mask_302>": 50898,
270
+ "<mask_303>": 50897,
271
+ "<mask_304>": 50896,
272
+ "<mask_305>": 50895,
273
+ "<mask_306>": 50894,
274
+ "<mask_307>": 50893,
275
+ "<mask_308>": 50892,
276
+ "<mask_309>": 50891,
277
+ "<mask_30>": 51170,
278
+ "<mask_310>": 50890,
279
+ "<mask_311>": 50889,
280
+ "<mask_312>": 50888,
281
+ "<mask_313>": 50887,
282
+ "<mask_314>": 50886,
283
+ "<mask_315>": 50885,
284
+ "<mask_316>": 50884,
285
+ "<mask_317>": 50883,
286
+ "<mask_318>": 50882,
287
+ "<mask_319>": 50881,
288
+ "<mask_31>": 51169,
289
+ "<mask_320>": 50880,
290
+ "<mask_321>": 50879,
291
+ "<mask_322>": 50878,
292
+ "<mask_323>": 50877,
293
+ "<mask_324>": 50876,
294
+ "<mask_325>": 50875,
295
+ "<mask_326>": 50874,
296
+ "<mask_327>": 50873,
297
+ "<mask_328>": 50872,
298
+ "<mask_329>": 50871,
299
+ "<mask_32>": 51168,
300
+ "<mask_330>": 50870,
301
+ "<mask_331>": 50869,
302
+ "<mask_332>": 50868,
303
+ "<mask_333>": 50867,
304
+ "<mask_334>": 50866,
305
+ "<mask_335>": 50865,
306
+ "<mask_336>": 50864,
307
+ "<mask_337>": 50863,
308
+ "<mask_338>": 50862,
309
+ "<mask_339>": 50861,
310
+ "<mask_33>": 51167,
311
+ "<mask_340>": 50860,
312
+ "<mask_341>": 50859,
313
+ "<mask_342>": 50858,
314
+ "<mask_343>": 50857,
315
+ "<mask_344>": 50856,
316
+ "<mask_345>": 50855,
317
+ "<mask_346>": 50854,
318
+ "<mask_347>": 50853,
319
+ "<mask_348>": 50852,
320
+ "<mask_349>": 50851,
321
+ "<mask_34>": 51166,
322
+ "<mask_350>": 50850,
323
+ "<mask_351>": 50849,
324
+ "<mask_352>": 50848,
325
+ "<mask_353>": 50847,
326
+ "<mask_354>": 50846,
327
+ "<mask_355>": 50845,
328
+ "<mask_356>": 50844,
329
+ "<mask_357>": 50843,
330
+ "<mask_358>": 50842,
331
+ "<mask_359>": 50841,
332
+ "<mask_35>": 51165,
333
+ "<mask_360>": 50840,
334
+ "<mask_361>": 50839,
335
+ "<mask_362>": 50838,
336
+ "<mask_363>": 50837,
337
+ "<mask_364>": 50836,
338
+ "<mask_365>": 50835,
339
+ "<mask_366>": 50834,
340
+ "<mask_367>": 50833,
341
+ "<mask_368>": 50832,
342
+ "<mask_369>": 50831,
343
+ "<mask_36>": 51164,
344
+ "<mask_370>": 50830,
345
+ "<mask_371>": 50829,
346
+ "<mask_372>": 50828,
347
+ "<mask_373>": 50827,
348
+ "<mask_374>": 50826,
349
+ "<mask_375>": 50825,
350
+ "<mask_376>": 50824,
351
+ "<mask_377>": 50823,
352
+ "<mask_378>": 50822,
353
+ "<mask_379>": 50821,
354
+ "<mask_37>": 51163,
355
+ "<mask_380>": 50820,
356
+ "<mask_381>": 50819,
357
+ "<mask_382>": 50818,
358
+ "<mask_383>": 50817,
359
+ "<mask_384>": 50816,
360
+ "<mask_385>": 50815,
361
+ "<mask_386>": 50814,
362
+ "<mask_387>": 50813,
363
+ "<mask_388>": 50812,
364
+ "<mask_389>": 50811,
365
+ "<mask_38>": 51162,
366
+ "<mask_390>": 50810,
367
+ "<mask_391>": 50809,
368
+ "<mask_392>": 50808,
369
+ "<mask_393>": 50807,
370
+ "<mask_394>": 50806,
371
+ "<mask_395>": 50805,
372
+ "<mask_396>": 50804,
373
+ "<mask_397>": 50803,
374
+ "<mask_398>": 50802,
375
+ "<mask_399>": 50801,
376
+ "<mask_39>": 51161,
377
+ "<mask_3>": 51197,
378
+ "<mask_400>": 50800,
379
+ "<mask_401>": 50799,
380
+ "<mask_402>": 50798,
381
+ "<mask_403>": 50797,
382
+ "<mask_404>": 50796,
383
+ "<mask_405>": 50795,
384
+ "<mask_406>": 50794,
385
+ "<mask_407>": 50793,
386
+ "<mask_408>": 50792,
387
+ "<mask_409>": 50791,
388
+ "<mask_40>": 51160,
389
+ "<mask_410>": 50790,
390
+ "<mask_411>": 50789,
391
+ "<mask_412>": 50788,
392
+ "<mask_413>": 50787,
393
+ "<mask_414>": 50786,
394
+ "<mask_415>": 50785,
395
+ "<mask_416>": 50784,
396
+ "<mask_417>": 50783,
397
+ "<mask_418>": 50782,
398
+ "<mask_419>": 50781,
399
+ "<mask_41>": 51159,
400
+ "<mask_420>": 50780,
401
+ "<mask_421>": 50779,
402
+ "<mask_422>": 50778,
403
+ "<mask_423>": 50777,
404
+ "<mask_424>": 50776,
405
+ "<mask_425>": 50775,
406
+ "<mask_426>": 50774,
407
+ "<mask_427>": 50773,
408
+ "<mask_428>": 50772,
409
+ "<mask_429>": 50771,
410
+ "<mask_42>": 51158,
411
+ "<mask_430>": 50770,
412
+ "<mask_431>": 50769,
413
+ "<mask_432>": 50768,
414
+ "<mask_433>": 50767,
415
+ "<mask_434>": 50766,
416
+ "<mask_435>": 50765,
417
+ "<mask_436>": 50764,
418
+ "<mask_437>": 50763,
419
+ "<mask_438>": 50762,
420
+ "<mask_439>": 50761,
421
+ "<mask_43>": 51157,
422
+ "<mask_440>": 50760,
423
+ "<mask_441>": 50759,
424
+ "<mask_442>": 50758,
425
+ "<mask_443>": 50757,
426
+ "<mask_444>": 50756,
427
+ "<mask_445>": 50755,
428
+ "<mask_446>": 50754,
429
+ "<mask_447>": 50753,
430
+ "<mask_448>": 50752,
431
+ "<mask_449>": 50751,
432
+ "<mask_44>": 51156,
433
+ "<mask_450>": 50750,
434
+ "<mask_451>": 50749,
435
+ "<mask_452>": 50748,
436
+ "<mask_453>": 50747,
437
+ "<mask_454>": 50746,
438
+ "<mask_455>": 50745,
439
+ "<mask_456>": 50744,
440
+ "<mask_457>": 50743,
441
+ "<mask_458>": 50742,
442
+ "<mask_459>": 50741,
443
+ "<mask_45>": 51155,
444
+ "<mask_460>": 50740,
445
+ "<mask_461>": 50739,
446
+ "<mask_462>": 50738,
447
+ "<mask_463>": 50737,
448
+ "<mask_464>": 50736,
449
+ "<mask_465>": 50735,
450
+ "<mask_466>": 50734,
451
+ "<mask_467>": 50733,
452
+ "<mask_468>": 50732,
453
+ "<mask_469>": 50731,
454
+ "<mask_46>": 51154,
455
+ "<mask_470>": 50730,
456
+ "<mask_471>": 50729,
457
+ "<mask_472>": 50728,
458
+ "<mask_473>": 50727,
459
+ "<mask_474>": 50726,
460
+ "<mask_475>": 50725,
461
+ "<mask_476>": 50724,
462
+ "<mask_477>": 50723,
463
+ "<mask_478>": 50722,
464
+ "<mask_479>": 50721,
465
+ "<mask_47>": 51153,
466
+ "<mask_480>": 50720,
467
+ "<mask_481>": 50719,
468
+ "<mask_482>": 50718,
469
+ "<mask_483>": 50717,
470
+ "<mask_484>": 50716,
471
+ "<mask_485>": 50715,
472
+ "<mask_486>": 50714,
473
+ "<mask_487>": 50713,
474
+ "<mask_488>": 50712,
475
+ "<mask_489>": 50711,
476
+ "<mask_48>": 51152,
477
+ "<mask_490>": 50710,
478
+ "<mask_491>": 50709,
479
+ "<mask_492>": 50708,
480
+ "<mask_493>": 50707,
481
+ "<mask_494>": 50706,
482
+ "<mask_495>": 50705,
483
+ "<mask_496>": 50704,
484
+ "<mask_497>": 50703,
485
+ "<mask_498>": 50702,
486
+ "<mask_499>": 50701,
487
+ "<mask_49>": 51151,
488
+ "<mask_4>": 51196,
489
+ "<mask_500>": 50700,
490
+ "<mask_501>": 50699,
491
+ "<mask_502>": 50698,
492
+ "<mask_503>": 50697,
493
+ "<mask_504>": 50696,
494
+ "<mask_505>": 50695,
495
+ "<mask_506>": 50694,
496
+ "<mask_507>": 50693,
497
+ "<mask_508>": 50692,
498
+ "<mask_509>": 50691,
499
+ "<mask_50>": 51150,
500
+ "<mask_510>": 50690,
501
+ "<mask_511>": 50689,
502
+ "<mask_512>": 50688,
503
+ "<mask_513>": 50687,
504
+ "<mask_514>": 50686,
505
+ "<mask_515>": 50685,
506
+ "<mask_516>": 50684,
507
+ "<mask_517>": 50683,
508
+ "<mask_518>": 50682,
509
+ "<mask_519>": 50681,
510
+ "<mask_51>": 51149,
511
+ "<mask_520>": 50680,
512
+ "<mask_521>": 50679,
513
+ "<mask_522>": 50678,
514
+ "<mask_523>": 50677,
515
+ "<mask_524>": 50676,
516
+ "<mask_525>": 50675,
517
+ "<mask_526>": 50674,
518
+ "<mask_527>": 50673,
519
+ "<mask_528>": 50672,
520
+ "<mask_529>": 50671,
521
+ "<mask_52>": 51148,
522
+ "<mask_530>": 50670,
523
+ "<mask_531>": 50669,
524
+ "<mask_532>": 50668,
525
+ "<mask_533>": 50667,
526
+ "<mask_534>": 50666,
527
+ "<mask_535>": 50665,
528
+ "<mask_536>": 50664,
529
+ "<mask_537>": 50663,
530
+ "<mask_538>": 50662,
531
+ "<mask_539>": 50661,
532
+ "<mask_53>": 51147,
533
+ "<mask_540>": 50660,
534
+ "<mask_541>": 50659,
535
+ "<mask_542>": 50658,
536
+ "<mask_543>": 50657,
537
+ "<mask_544>": 50656,
538
+ "<mask_545>": 50655,
539
+ "<mask_546>": 50654,
540
+ "<mask_547>": 50653,
541
+ "<mask_548>": 50652,
542
+ "<mask_549>": 50651,
543
+ "<mask_54>": 51146,
544
+ "<mask_550>": 50650,
545
+ "<mask_551>": 50649,
546
+ "<mask_552>": 50648,
547
+ "<mask_553>": 50647,
548
+ "<mask_554>": 50646,
549
+ "<mask_555>": 50645,
550
+ "<mask_556>": 50644,
551
+ "<mask_557>": 50643,
552
+ "<mask_558>": 50642,
553
+ "<mask_559>": 50641,
554
+ "<mask_55>": 51145,
555
+ "<mask_560>": 50640,
556
+ "<mask_561>": 50639,
557
+ "<mask_562>": 50638,
558
+ "<mask_563>": 50637,
559
+ "<mask_564>": 50636,
560
+ "<mask_565>": 50635,
561
+ "<mask_566>": 50634,
562
+ "<mask_567>": 50633,
563
+ "<mask_568>": 50632,
564
+ "<mask_569>": 50631,
565
+ "<mask_56>": 51144,
566
+ "<mask_570>": 50630,
567
+ "<mask_571>": 50629,
568
+ "<mask_572>": 50628,
569
+ "<mask_573>": 50627,
570
+ "<mask_574>": 50626,
571
+ "<mask_575>": 50625,
572
+ "<mask_576>": 50624,
573
+ "<mask_577>": 50623,
574
+ "<mask_578>": 50622,
575
+ "<mask_579>": 50621,
576
+ "<mask_57>": 51143,
577
+ "<mask_580>": 50620,
578
+ "<mask_581>": 50619,
579
+ "<mask_582>": 50618,
580
+ "<mask_583>": 50617,
581
+ "<mask_584>": 50616,
582
+ "<mask_585>": 50615,
583
+ "<mask_586>": 50614,
584
+ "<mask_587>": 50613,
585
+ "<mask_588>": 50612,
586
+ "<mask_589>": 50611,
587
+ "<mask_58>": 51142,
588
+ "<mask_590>": 50610,
589
+ "<mask_591>": 50609,
590
+ "<mask_592>": 50608,
591
+ "<mask_593>": 50607,
592
+ "<mask_594>": 50606,
593
+ "<mask_595>": 50605,
594
+ "<mask_596>": 50604,
595
+ "<mask_597>": 50603,
596
+ "<mask_598>": 50602,
597
+ "<mask_599>": 50601,
598
+ "<mask_59>": 51141,
599
+ "<mask_5>": 51195,
600
+ "<mask_600>": 50600,
601
+ "<mask_601>": 50599,
602
+ "<mask_602>": 50598,
603
+ "<mask_603>": 50597,
604
+ "<mask_604>": 50596,
605
+ "<mask_605>": 50595,
606
+ "<mask_606>": 50594,
607
+ "<mask_607>": 50593,
608
+ "<mask_608>": 50592,
609
+ "<mask_609>": 50591,
610
+ "<mask_60>": 51140,
611
+ "<mask_610>": 50590,
612
+ "<mask_611>": 50589,
613
+ "<mask_612>": 50588,
614
+ "<mask_613>": 50587,
615
+ "<mask_614>": 50586,
616
+ "<mask_615>": 50585,
617
+ "<mask_616>": 50584,
618
+ "<mask_617>": 50583,
619
+ "<mask_618>": 50582,
620
+ "<mask_619>": 50581,
621
+ "<mask_61>": 51139,
622
+ "<mask_620>": 50580,
623
+ "<mask_621>": 50579,
624
+ "<mask_622>": 50578,
625
+ "<mask_623>": 50577,
626
+ "<mask_624>": 50576,
627
+ "<mask_625>": 50575,
628
+ "<mask_626>": 50574,
629
+ "<mask_627>": 50573,
630
+ "<mask_628>": 50572,
631
+ "<mask_629>": 50571,
632
+ "<mask_62>": 51138,
633
+ "<mask_630>": 50570,
634
+ "<mask_631>": 50569,
635
+ "<mask_632>": 50568,
636
+ "<mask_633>": 50567,
637
+ "<mask_634>": 50566,
638
+ "<mask_635>": 50565,
639
+ "<mask_636>": 50564,
640
+ "<mask_637>": 50563,
641
+ "<mask_638>": 50562,
642
+ "<mask_639>": 50561,
643
+ "<mask_63>": 51137,
644
+ "<mask_640>": 50560,
645
+ "<mask_641>": 50559,
646
+ "<mask_642>": 50558,
647
+ "<mask_643>": 50557,
648
+ "<mask_644>": 50556,
649
+ "<mask_645>": 50555,
650
+ "<mask_646>": 50554,
651
+ "<mask_647>": 50553,
652
+ "<mask_648>": 50552,
653
+ "<mask_649>": 50551,
654
+ "<mask_64>": 51136,
655
+ "<mask_650>": 50550,
656
+ "<mask_651>": 50549,
657
+ "<mask_652>": 50548,
658
+ "<mask_653>": 50547,
659
+ "<mask_654>": 50546,
660
+ "<mask_655>": 50545,
661
+ "<mask_656>": 50544,
662
+ "<mask_657>": 50543,
663
+ "<mask_658>": 50542,
664
+ "<mask_659>": 50541,
665
+ "<mask_65>": 51135,
666
+ "<mask_660>": 50540,
667
+ "<mask_661>": 50539,
668
+ "<mask_662>": 50538,
669
+ "<mask_663>": 50537,
670
+ "<mask_664>": 50536,
671
+ "<mask_665>": 50535,
672
+ "<mask_666>": 50534,
673
+ "<mask_667>": 50533,
674
+ "<mask_668>": 50532,
675
+ "<mask_669>": 50531,
676
+ "<mask_66>": 51134,
677
+ "<mask_670>": 50530,
678
+ "<mask_671>": 50529,
679
+ "<mask_672>": 50528,
680
+ "<mask_673>": 50527,
681
+ "<mask_674>": 50526,
682
+ "<mask_675>": 50525,
683
+ "<mask_676>": 50524,
684
+ "<mask_677>": 50523,
685
+ "<mask_678>": 50522,
686
+ "<mask_679>": 50521,
687
+ "<mask_67>": 51133,
688
+ "<mask_680>": 50520,
689
+ "<mask_681>": 50519,
690
+ "<mask_682>": 50518,
691
+ "<mask_683>": 50517,
692
+ "<mask_684>": 50516,
693
+ "<mask_685>": 50515,
694
+ "<mask_686>": 50514,
695
+ "<mask_687>": 50513,
696
+ "<mask_688>": 50512,
697
+ "<mask_689>": 50511,
698
+ "<mask_68>": 51132,
699
+ "<mask_690>": 50510,
700
+ "<mask_691>": 50509,
701
+ "<mask_692>": 50508,
702
+ "<mask_693>": 50507,
703
+ "<mask_694>": 50506,
704
+ "<mask_695>": 50505,
705
+ "<mask_696>": 50504,
706
+ "<mask_697>": 50503,
707
+ "<mask_698>": 50502,
708
+ "<mask_699>": 50501,
709
+ "<mask_69>": 51131,
710
+ "<mask_6>": 51194,
711
+ "<mask_700>": 50500,
712
+ "<mask_701>": 50499,
713
+ "<mask_702>": 50498,
714
+ "<mask_703>": 50497,
715
+ "<mask_704>": 50496,
716
+ "<mask_705>": 50495,
717
+ "<mask_706>": 50494,
718
+ "<mask_707>": 50493,
719
+ "<mask_708>": 50492,
720
+ "<mask_709>": 50491,
721
+ "<mask_70>": 51130,
722
+ "<mask_710>": 50490,
723
+ "<mask_711>": 50489,
724
+ "<mask_712>": 50488,
725
+ "<mask_713>": 50487,
726
+ "<mask_714>": 50486,
727
+ "<mask_715>": 50485,
728
+ "<mask_716>": 50484,
729
+ "<mask_717>": 50483,
730
+ "<mask_718>": 50482,
731
+ "<mask_719>": 50481,
732
+ "<mask_71>": 51129,
733
+ "<mask_720>": 50480,
734
+ "<mask_721>": 50479,
735
+ "<mask_722>": 50478,
736
+ "<mask_723>": 50477,
737
+ "<mask_724>": 50476,
738
+ "<mask_725>": 50475,
739
+ "<mask_726>": 50474,
740
+ "<mask_727>": 50473,
741
+ "<mask_728>": 50472,
742
+ "<mask_729>": 50471,
743
+ "<mask_72>": 51128,
744
+ "<mask_730>": 50470,
745
+ "<mask_731>": 50469,
746
+ "<mask_732>": 50468,
747
+ "<mask_733>": 50467,
748
+ "<mask_734>": 50466,
749
+ "<mask_735>": 50465,
750
+ "<mask_736>": 50464,
751
+ "<mask_737>": 50463,
752
+ "<mask_738>": 50462,
753
+ "<mask_739>": 50461,
754
+ "<mask_73>": 51127,
755
+ "<mask_740>": 50460,
756
+ "<mask_741>": 50459,
757
+ "<mask_742>": 50458,
758
+ "<mask_743>": 50457,
759
+ "<mask_744>": 50456,
760
+ "<mask_745>": 50455,
761
+ "<mask_746>": 50454,
762
+ "<mask_747>": 50453,
763
+ "<mask_748>": 50452,
764
+ "<mask_749>": 50451,
765
+ "<mask_74>": 51126,
766
+ "<mask_750>": 50450,
767
+ "<mask_751>": 50449,
768
+ "<mask_752>": 50448,
769
+ "<mask_753>": 50447,
770
+ "<mask_754>": 50446,
771
+ "<mask_755>": 50445,
772
+ "<mask_756>": 50444,
773
+ "<mask_757>": 50443,
774
+ "<mask_758>": 50442,
775
+ "<mask_759>": 50441,
776
+ "<mask_75>": 51125,
777
+ "<mask_760>": 50440,
778
+ "<mask_761>": 50439,
779
+ "<mask_762>": 50438,
780
+ "<mask_763>": 50437,
781
+ "<mask_764>": 50436,
782
+ "<mask_765>": 50435,
783
+ "<mask_766>": 50434,
784
+ "<mask_767>": 50433,
785
+ "<mask_768>": 50432,
786
+ "<mask_769>": 50431,
787
+ "<mask_76>": 51124,
788
+ "<mask_770>": 50430,
789
+ "<mask_771>": 50429,
790
+ "<mask_772>": 50428,
791
+ "<mask_773>": 50427,
792
+ "<mask_774>": 50426,
793
+ "<mask_775>": 50425,
794
+ "<mask_776>": 50424,
795
+ "<mask_777>": 50423,
796
+ "<mask_778>": 50422,
797
+ "<mask_779>": 50421,
798
+ "<mask_77>": 51123,
799
+ "<mask_780>": 50420,
800
+ "<mask_781>": 50419,
801
+ "<mask_782>": 50418,
802
+ "<mask_783>": 50417,
803
+ "<mask_784>": 50416,
804
+ "<mask_785>": 50415,
805
+ "<mask_786>": 50414,
806
+ "<mask_787>": 50413,
807
+ "<mask_788>": 50412,
808
+ "<mask_789>": 50411,
809
+ "<mask_78>": 51122,
810
+ "<mask_790>": 50410,
811
+ "<mask_791>": 50409,
812
+ "<mask_792>": 50408,
813
+ "<mask_793>": 50407,
814
+ "<mask_794>": 50406,
815
+ "<mask_795>": 50405,
816
+ "<mask_796>": 50404,
817
+ "<mask_797>": 50403,
818
+ "<mask_798>": 50402,
819
+ "<mask_799>": 50401,
820
+ "<mask_79>": 51121,
821
+ "<mask_7>": 51193,
822
+ "<mask_800>": 50400,
823
+ "<mask_801>": 50399,
824
+ "<mask_802>": 50398,
825
+ "<mask_803>": 50397,
826
+ "<mask_804>": 50396,
827
+ "<mask_805>": 50395,
828
+ "<mask_806>": 50394,
829
+ "<mask_807>": 50393,
830
+ "<mask_808>": 50392,
831
+ "<mask_809>": 50391,
832
+ "<mask_80>": 51120,
833
+ "<mask_810>": 50390,
834
+ "<mask_811>": 50389,
835
+ "<mask_812>": 50388,
836
+ "<mask_813>": 50387,
837
+ "<mask_814>": 50386,
838
+ "<mask_815>": 50385,
839
+ "<mask_816>": 50384,
840
+ "<mask_817>": 50383,
841
+ "<mask_818>": 50382,
842
+ "<mask_819>": 50381,
843
+ "<mask_81>": 51119,
844
+ "<mask_820>": 50380,
845
+ "<mask_821>": 50379,
846
+ "<mask_822>": 50378,
847
+ "<mask_823>": 50377,
848
+ "<mask_824>": 50376,
849
+ "<mask_825>": 50375,
850
+ "<mask_826>": 50374,
851
+ "<mask_827>": 50373,
852
+ "<mask_828>": 50372,
853
+ "<mask_829>": 50371,
854
+ "<mask_82>": 51118,
855
+ "<mask_830>": 50370,
856
+ "<mask_831>": 50369,
857
+ "<mask_832>": 50368,
858
+ "<mask_833>": 50367,
859
+ "<mask_834>": 50366,
860
+ "<mask_835>": 50365,
861
+ "<mask_836>": 50364,
862
+ "<mask_837>": 50363,
863
+ "<mask_838>": 50362,
864
+ "<mask_839>": 50361,
865
+ "<mask_83>": 51117,
866
+ "<mask_840>": 50360,
867
+ "<mask_841>": 50359,
868
+ "<mask_842>": 50358,
869
+ "<mask_843>": 50357,
870
+ "<mask_844>": 50356,
871
+ "<mask_845>": 50355,
872
+ "<mask_846>": 50354,
873
+ "<mask_847>": 50353,
874
+ "<mask_848>": 50352,
875
+ "<mask_849>": 50351,
876
+ "<mask_84>": 51116,
877
+ "<mask_850>": 50350,
878
+ "<mask_851>": 50349,
879
+ "<mask_852>": 50348,
880
+ "<mask_853>": 50347,
881
+ "<mask_854>": 50346,
882
+ "<mask_855>": 50345,
883
+ "<mask_856>": 50344,
884
+ "<mask_857>": 50343,
885
+ "<mask_858>": 50342,
886
+ "<mask_859>": 50341,
887
+ "<mask_85>": 51115,
888
+ "<mask_860>": 50340,
889
+ "<mask_861>": 50339,
890
+ "<mask_862>": 50338,
891
+ "<mask_863>": 50337,
892
+ "<mask_864>": 50336,
893
+ "<mask_865>": 50335,
894
+ "<mask_866>": 50334,
895
+ "<mask_867>": 50333,
896
+ "<mask_868>": 50332,
897
+ "<mask_869>": 50331,
898
+ "<mask_86>": 51114,
899
+ "<mask_870>": 50330,
900
+ "<mask_871>": 50329,
901
+ "<mask_872>": 50328,
902
+ "<mask_873>": 50327,
903
+ "<mask_874>": 50326,
904
+ "<mask_875>": 50325,
905
+ "<mask_876>": 50324,
906
+ "<mask_877>": 50323,
907
+ "<mask_878>": 50322,
908
+ "<mask_879>": 50321,
909
+ "<mask_87>": 51113,
910
+ "<mask_880>": 50320,
911
+ "<mask_881>": 50319,
912
+ "<mask_882>": 50318,
913
+ "<mask_883>": 50317,
914
+ "<mask_884>": 50316,
915
+ "<mask_885>": 50315,
916
+ "<mask_886>": 50314,
917
+ "<mask_887>": 50313,
918
+ "<mask_888>": 50312,
919
+ "<mask_889>": 50311,
920
+ "<mask_88>": 51112,
921
+ "<mask_890>": 50310,
922
+ "<mask_891>": 50309,
923
+ "<mask_892>": 50308,
924
+ "<mask_893>": 50307,
925
+ "<mask_894>": 50306,
926
+ "<mask_895>": 50305,
927
+ "<mask_896>": 50304,
928
+ "<mask_897>": 50303,
929
+ "<mask_898>": 50302,
930
+ "<mask_899>": 50301,
931
+ "<mask_89>": 51111,
932
+ "<mask_8>": 51192,
933
+ "<mask_90>": 51110,
934
+ "<mask_91>": 51109,
935
+ "<mask_92>": 51108,
936
+ "<mask_93>": 51107,
937
+ "<mask_94>": 51106,
938
+ "<mask_95>": 51105,
939
+ "<mask_96>": 51104,
940
+ "<mask_97>": 51103,
941
+ "<mask_98>": 51102,
942
+ "<mask_99>": 51101,
943
+ "<mask_9>": 51191,
944
+ "<sep>": 50299
945
+ }
config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "unk_token": "<|endoftext|>"
5
+ }
configuration_codegen.py ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2022 Salesforce authors, The EleutherAI, and HuggingFace Teams. All rights reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """ CodeGen model configuration"""
16
+ from collections import OrderedDict
17
+ from typing import Any, List, Mapping, Optional
18
+
19
+ from transformers import PreTrainedTokenizer, TensorType, is_torch_available
20
+ from transformers.configuration_utils import PretrainedConfig
21
+ from transformers.onnx import OnnxConfigWithPast, PatchingSpec
22
+ from transformers.utils import logging
23
+
24
+
25
+ logger = logging.get_logger(__name__)
26
+
27
+
28
+ CODEGEN_PRETRAINED_CONFIG_ARCHIVE_MAP = {
29
+ "Salesforce/codegen-350M-nl": "https://huggingface.co/Salesforce/codegen-350M-nl/resolve/main/config.json",
30
+ "Salesforce/codegen-350M-multi": "https://huggingface.co/Salesforce/codegen-350M-multi/resolve/main/config.json",
31
+ "Salesforce/codegen-350M-mono": "https://huggingface.co/Salesforce/codegen-350M-mono/resolve/main/config.json",
32
+ "Salesforce/codegen-2B-nl": "https://huggingface.co/Salesforce/codegen-2B-nl/resolve/main/config.json",
33
+ "Salesforce/codegen-2B-multi": "https://huggingface.co/Salesforce/codegen-2B-multi/resolve/main/config.json",
34
+ "Salesforce/codegen-2B-mono": "https://huggingface.co/Salesforce/codegen-2B-mono/resolve/main/config.json",
35
+ "Salesforce/codegen-6B-nl": "https://huggingface.co/Salesforce/codegen-6B-nl/resolve/main/config.json",
36
+ "Salesforce/codegen-6B-multi": "https://huggingface.co/Salesforce/codegen-6B-multi/resolve/main/config.json",
37
+ "Salesforce/codegen-6B-mono": "https://huggingface.co/Salesforce/codegen-6B-mono/resolve/main/config.json",
38
+ "Salesforce/codegen-16B-nl": "https://huggingface.co/Salesforce/codegen-16B-nl/resolve/main/config.json",
39
+ "Salesforce/codegen-16B-multi": "https://huggingface.co/Salesforce/codegen-16B-multi/resolve/main/config.json",
40
+ "Salesforce/codegen-16B-mono": "https://huggingface.co/Salesforce/codegen-16B-mono/resolve/main/config.json",
41
+ }
42
+
43
+
44
+ class CodeGenConfig(PretrainedConfig):
45
+ r"""
46
+ This is the configuration class to store the configuration of a [`CodeGenModel`]. It is used to instantiate a
47
+ CodeGen model according to the specified arguments, defining the model architecture. Instantiating a configuration
48
+ with the defaults will yield a similar configuration to that of the CodeGen
49
+ [Salesforce/codegen-2B-mono](https://huggingface.co/Salesforce/codegen-2B-mono) architecture. Configuration objects
50
+ inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the documentation from
51
+ [`PretrainedConfig`] for more information.
52
+
53
+ Args:
54
+ vocab_size (`int`, *optional*, defaults to 50400):
55
+ Vocabulary size of the CodeGen model. Defines the number of different tokens that can be represented by the
56
+ `inputs_ids` passed when calling [`CodeGenModel`].
57
+ n_positions (`int`, *optional*, defaults to 2048):
58
+ The maximum sequence length that this model might ever be used with. Typically set this to something large
59
+ just in case (e.g., 512 or 1024 or 2048).
60
+ n_embd (`int`, *optional*, defaults to 4096):
61
+ Dimensionality of the embeddings and hidden states.
62
+ n_layer (`int`, *optional*, defaults to 28):
63
+ Number of hidden layers in the Transformer encoder.
64
+ n_head (`int`, *optional*, defaults to 16):
65
+ Number of attention heads for each attention layer in the Transformer encoder.
66
+ rotary_dim (`int`, *optional*, defaults to 64):
67
+ Number of dimensions in the embedding that Rotary Position Embedding is applied to.
68
+ n_inner (`int`, *optional*, defaults to None):
69
+ Dimensionality of the inner feed-forward layers. `None` will set it to 4 times n_embd
70
+ activation_function (`str`, *optional*, defaults to `"gelu_new"`):
71
+ Activation function, to be selected in the list `["relu", "silu", "gelu", "tanh", "gelu_new"]`.
72
+ resid_pdrop (`float`, *optional*, defaults to 0.1):
73
+ The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.
74
+ embd_pdrop (`int`, *optional*, defaults to 0.1):
75
+ The dropout ratio for the embeddings.
76
+ attn_pdrop (`float`, *optional*, defaults to 0.1):
77
+ The dropout ratio for the attention.
78
+ layer_norm_epsilon (`float`, *optional*, defaults to 1e-5):
79
+ The epsilon to use in the layer normalization layers.
80
+ initializer_range (`float`, *optional*, defaults to 0.02):
81
+ The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
82
+ scale_attn_weights (`bool`, *optional*, defaults to `True`):
83
+ Scale attention weights by dividing by sqrt(hidden_size).
84
+ use_cache (`bool`, *optional*, defaults to `True`):
85
+ Whether or not the model should return the last key/values attentions (not used by all models).
86
+
87
+ Example:
88
+
89
+ ```python
90
+ >>> from transformers import CodeGenModel, CodeGenConfig
91
+
92
+ >>> # Initializing a CodeGen 6B configuration
93
+ >>> configuration = CodeGenConfig()
94
+
95
+ >>> # Initializing a model from the configuration
96
+ >>> model = CodeGenModel(configuration)
97
+
98
+ >>> # Accessing the model configuration
99
+ >>> configuration = model.config
100
+ ```"""
101
+ model_type = "codegen"
102
+ attribute_map = {
103
+ "max_position_embeddings": "n_positions",
104
+ "hidden_size": "n_embd",
105
+ "num_attention_heads": "n_head",
106
+ "num_hidden_layers": "n_layer",
107
+ }
108
+
109
+ def __init__(
110
+ self,
111
+ vocab_size=50400,
112
+ n_positions=2048,
113
+ n_ctx=2048,
114
+ n_embd=4096,
115
+ n_layer=28,
116
+ n_head=16,
117
+ rotary_dim=64,
118
+ n_inner=None,
119
+ activation_function="gelu_new",
120
+ resid_pdrop=0.0,
121
+ embd_pdrop=0.0,
122
+ attn_pdrop=0.0,
123
+ layer_norm_epsilon=1e-5,
124
+ initializer_range=0.02,
125
+ scale_attn_weights=True,
126
+ use_cache=True,
127
+ bos_token_id=50256,
128
+ eos_token_id=50256,
129
+ tie_word_embeddings=False,
130
+ **kwargs
131
+ ):
132
+ self.vocab_size = vocab_size
133
+ self.n_ctx = n_ctx
134
+ self.n_positions = n_positions
135
+ self.n_embd = n_embd
136
+ self.n_layer = n_layer
137
+ self.n_head = n_head
138
+ self.n_inner = n_inner
139
+ self.rotary_dim = rotary_dim
140
+ self.activation_function = activation_function
141
+ self.resid_pdrop = resid_pdrop
142
+ self.embd_pdrop = embd_pdrop
143
+ self.attn_pdrop = attn_pdrop
144
+ self.layer_norm_epsilon = layer_norm_epsilon
145
+ self.initializer_range = initializer_range
146
+ self.scale_attn_weights = scale_attn_weights
147
+ self.use_cache = use_cache
148
+
149
+ self.bos_token_id = bos_token_id
150
+ self.eos_token_id = eos_token_id
151
+
152
+ super().__init__(
153
+ bos_token_id=bos_token_id, eos_token_id=eos_token_id, tie_word_embeddings=tie_word_embeddings, **kwargs
154
+ )
155
+
156
+
157
+ # Copied from transformers.models.gpt2.configuration_gpt2.GPT2OnnxConfig
158
+ class CodeGenOnnxConfig(OnnxConfigWithPast):
159
+ def __init__(
160
+ self,
161
+ config: PretrainedConfig,
162
+ task: str = "default",
163
+ patching_specs: List[PatchingSpec] = None,
164
+ use_past: bool = False,
165
+ ):
166
+ super().__init__(config, task=task, patching_specs=patching_specs, use_past=use_past)
167
+ if not getattr(self._config, "pad_token_id", None):
168
+ # TODO: how to do that better?
169
+ self._config.pad_token_id = 0
170
+
171
+ @property
172
+ def inputs(self) -> Mapping[str, Mapping[int, str]]:
173
+ common_inputs = OrderedDict({"input_ids": {0: "batch", 1: "sequence"}})
174
+ if self.use_past:
175
+ self.fill_with_past_key_values_(common_inputs, direction="inputs")
176
+ common_inputs["attention_mask"] = {0: "batch", 1: "past_sequence + sequence"}
177
+ else:
178
+ common_inputs["attention_mask"] = {0: "batch", 1: "sequence"}
179
+
180
+ return common_inputs
181
+
182
+ @property
183
+ def num_layers(self) -> int:
184
+ return self._config.n_layer
185
+
186
+ @property
187
+ def num_attention_heads(self) -> int:
188
+ return self._config.n_head
189
+
190
+ def generate_dummy_inputs(
191
+ self,
192
+ tokenizer: PreTrainedTokenizer,
193
+ batch_size: int = -1,
194
+ seq_length: int = -1,
195
+ is_pair: bool = False,
196
+ framework: Optional[TensorType] = None,
197
+ ) -> Mapping[str, Any]:
198
+ common_inputs = super(OnnxConfigWithPast, self).generate_dummy_inputs(
199
+ tokenizer, batch_size=batch_size, seq_length=seq_length, is_pair=is_pair, framework=framework
200
+ )
201
+
202
+ # We need to order the input in the way they appears in the forward()
203
+ ordered_inputs = OrderedDict({"input_ids": common_inputs["input_ids"]})
204
+
205
+ # Need to add the past_keys
206
+ if self.use_past:
207
+ if not is_torch_available():
208
+ raise ValueError("Cannot generate dummy past_keys inputs without PyTorch installed.")
209
+ else:
210
+ import torch
211
+
212
+ batch, seqlen = common_inputs["input_ids"].shape
213
+ # Not using the same length for past_key_values
214
+ past_key_values_length = seqlen + 2
215
+ past_shape = (
216
+ batch,
217
+ self.num_attention_heads,
218
+ past_key_values_length,
219
+ self._config.hidden_size // self.num_attention_heads,
220
+ )
221
+ ordered_inputs["past_key_values"] = [
222
+ (torch.zeros(past_shape), torch.zeros(past_shape)) for _ in range(self.num_layers)
223
+ ]
224
+
225
+ ordered_inputs["attention_mask"] = common_inputs["attention_mask"]
226
+ if self.use_past:
227
+ mask_dtype = ordered_inputs["attention_mask"].dtype
228
+ ordered_inputs["attention_mask"] = torch.cat(
229
+ [ordered_inputs["attention_mask"], torch.ones(batch, past_key_values_length, dtype=mask_dtype)], dim=1
230
+ )
231
+
232
+ return ordered_inputs
233
+
234
+ @property
235
+ def default_onnx_opset(self) -> int:
236
+ return 13
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:411a1078e9d086dc068a980c2a7d73c26e48779992b89e31f311201b8d53d58f
3
+ size 7282357168
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "unk_token": "<|endoftext|>"
5
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<|endoftext|>",
4
+ "eos_token": "<|endoftext|>",
5
+ "model_max_length": 1024,
6
+ "name_or_path": "gpt2",
7
+ "special_tokens_map_file": null,
8
+ "tokenizer_class": "GPT2Tokenizer",
9
+ "unk_token": "<|endoftext|>"
10
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
vocabulary.txt ADDED
The diff for this file is too large to render. See raw diff