bflhc commited on
Commit
d36c5ee
·
verified ·
1 Parent(s): 39b5bb2

Add files using upload-large-folder tool

Browse files
LICENSE ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-NonCommercial 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-NonCommercial 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. Copyright and Similar Rights means copyright and/or similar rights
88
+ closely related to copyright including, without limitation,
89
+ performance, broadcast, sound recording, and Sui Generis Database
90
+ Rights, without regard to how the rights are labeled or
91
+ categorized. For purposes of this Public License, the rights
92
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
93
+ Rights.
94
+ d. Effective Technological Measures means those measures that, in the
95
+ absence of proper authority, may not be circumvented under laws
96
+ fulfilling obligations under Article 11 of the WIPO Copyright
97
+ Treaty adopted on December 20, 1996, and/or similar international
98
+ agreements.
99
+
100
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
101
+ any other exception or limitation to Copyright and Similar Rights
102
+ that applies to Your use of the Licensed Material.
103
+
104
+ f. Licensed Material means the artistic or literary work, database,
105
+ or other material to which the Licensor applied this Public
106
+ License.
107
+
108
+ g. Licensed Rights means the rights granted to You subject to the
109
+ terms and conditions of this Public License, which are limited to
110
+ all Copyright and Similar Rights that apply to Your use of the
111
+ Licensed Material and that the Licensor has authority to license.
112
+
113
+ h. Licensor means the individual(s) or entity(ies) granting rights
114
+ under this Public License.
115
+
116
+ i. NonCommercial means not primarily intended for or directed towards
117
+ commercial advantage or monetary compensation. For purposes of
118
+ this Public License, the exchange of the Licensed Material for
119
+ other material subject to Copyright and Similar Rights by digital
120
+ file-sharing or similar means is NonCommercial provided there is
121
+ no payment of monetary compensation in connection with the
122
+ exchange.
123
+
124
+ j. Share means to provide material to the public by any means or
125
+ process that requires permission under the Licensed Rights, such
126
+ as reproduction, public display, public performance, distribution,
127
+ dissemination, communication, or importation, and to make material
128
+ available to the public including in ways that members of the
129
+ public may access the material from a place and at a time
130
+ individually chosen by them.
131
+
132
+ k. Sui Generis Database Rights means rights other than copyright
133
+ resulting from Directive 96/9/EC of the European Parliament and of
134
+ the Council of 11 March 1996 on the legal protection of databases,
135
+ as amended and/or succeeded, as well as other essentially
136
+ equivalent rights anywhere in the world.
137
+
138
+ l. You means the individual or entity exercising the Licensed Rights
139
+ under this Public License. Your has a corresponding meaning.
140
+
141
+
142
+ Section 2 -- Scope.
143
+
144
+ a. License grant.
145
+
146
+ 1. Subject to the terms and conditions of this Public License,
147
+ the Licensor hereby grants You a worldwide, royalty-free,
148
+ non-sublicensable, non-exclusive, irrevocable license to
149
+ exercise the Licensed Rights in the Licensed Material to:
150
+
151
+ a. reproduce and Share the Licensed Material, in whole or
152
+ in part, for NonCommercial purposes only; and
153
+
154
+ b. produce, reproduce, and Share Adapted Material for
155
+ NonCommercial purposes only.
156
+
157
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
158
+ Exceptions and Limitations apply to Your use, this Public
159
+ License does not apply, and You do not need to comply with
160
+ its terms and conditions.
161
+
162
+ 3. Term. The term of this Public License is specified in Section
163
+ 6(a).
164
+
165
+ 4. Media and formats; technical modifications allowed. The
166
+ Licensor authorizes You to exercise the Licensed Rights in
167
+ all media and formats whether now known or hereafter created,
168
+ and to make technical modifications necessary to do so. The
169
+ Licensor waives and/or agrees not to assert any right or
170
+ authority to forbid You from making technical modifications
171
+ necessary to exercise the Licensed Rights, including
172
+ technical modifications necessary to circumvent Effective
173
+ Technological Measures. For purposes of this Public License,
174
+ simply making modifications authorized by this Section 2(a)
175
+ (4) never produces Adapted Material.
176
+
177
+ 5. Downstream recipients.
178
+
179
+ a. Offer from the Licensor -- Licensed Material. Every
180
+ recipient of the Licensed Material automatically
181
+ receives an offer from the Licensor to exercise the
182
+ Licensed Rights under the terms and conditions of this
183
+ Public License.
184
+
185
+ b. No downstream restrictions. You may not offer or impose
186
+ any additional or different terms or conditions on, or
187
+ apply any Effective Technological Measures to, the
188
+ Licensed Material if doing so restricts exercise of the
189
+ Licensed Rights by any recipient of the Licensed
190
+ Material.
191
+
192
+ 6. No endorsement. Nothing in this Public License constitutes or
193
+ may be construed as permission to assert or imply that You
194
+ are, or that Your use of the Licensed Material is, connected
195
+ with, or sponsored, endorsed, or granted official status by,
196
+ the Licensor or others designated to receive attribution as
197
+ provided in Section 3(a)(1)(A)(i).
198
+
199
+ b. Other rights.
200
+
201
+ 1. Moral rights, such as the right of integrity, are not
202
+ licensed under this Public License, nor are publicity,
203
+ privacy, and/or other similar personality rights; however, to
204
+ the extent possible, the Licensor waives and/or agrees not to
205
+ assert any such rights held by the Licensor to the limited
206
+ extent necessary to allow You to exercise the Licensed
207
+ Rights, but not otherwise.
208
+
209
+ 2. Patent and trademark rights are not licensed under this
210
+ Public License.
211
+
212
+ 3. To the extent possible, the Licensor waives any right to
213
+ collect royalties from You for the exercise of the Licensed
214
+ Rights, whether directly or through a collecting society
215
+ under any voluntary or waivable statutory or compulsory
216
+ licensing scheme. In all other cases the Licensor expressly
217
+ reserves any right to collect such royalties, including when
218
+ the Licensed Material is used other than for NonCommercial
219
+ purposes.
220
+
221
+
222
+ Section 3 -- License Conditions.
223
+
224
+ Your exercise of the Licensed Rights is expressly made subject to the
225
+ following conditions.
226
+
227
+ a. Attribution.
228
+
229
+ 1. If You Share the Licensed Material (including in modified
230
+ form), You must:
231
+
232
+ a. retain the following if it is supplied by the Licensor
233
+ with the Licensed Material:
234
+
235
+ i. identification of the creator(s) of the Licensed
236
+ Material and any others designated to receive
237
+ attribution, in any reasonable manner requested by
238
+ the Licensor (including by pseudonym if
239
+ designated);
240
+
241
+ ii. a copyright notice;
242
+
243
+ iii. a notice that refers to this Public License;
244
+
245
+ iv. a notice that refers to the disclaimer of
246
+ warranties;
247
+
248
+ v. a URI or hyperlink to the Licensed Material to the
249
+ extent reasonably practicable;
250
+
251
+ b. indicate if You modified the Licensed Material and
252
+ retain an indication of any previous modifications; and
253
+
254
+ c. indicate the Licensed Material is licensed under this
255
+ Public License, and include the text of, or the URI or
256
+ hyperlink to, this Public License.
257
+
258
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
259
+ reasonable manner based on the medium, means, and context in
260
+ which You Share the Licensed Material. For example, it may be
261
+ reasonable to satisfy the conditions by providing a URI or
262
+ hyperlink to a resource that includes the required
263
+ information.
264
+
265
+ 3. If requested by the Licensor, You must remove any of the
266
+ information required by Section 3(a)(1)(A) to the extent
267
+ reasonably practicable.
268
+
269
+ 4. If You Share Adapted Material You produce, the Adapter's
270
+ License You apply must not prevent recipients of the Adapted
271
+ Material from complying with this Public License.
272
+
273
+
274
+ Section 4 -- Sui Generis Database Rights.
275
+
276
+ Where the Licensed Rights include Sui Generis Database Rights that
277
+ apply to Your use of the Licensed Material:
278
+
279
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
280
+ to extract, reuse, reproduce, and Share all or a substantial
281
+ portion of the contents of the database for NonCommercial purposes
282
+ only;
283
+
284
+ b. if You include all or a substantial portion of the database
285
+ contents in a database in which You have Sui Generis Database
286
+ Rights, then the database in which You have Sui Generis Database
287
+ Rights (but not its individual contents) is Adapted Material; and
288
+
289
+ c. You must comply with the conditions in Section 3(a) if You Share
290
+ all or a substantial portion of the contents of the database.
291
+
292
+ For the avoidance of doubt, this Section 4 supplements and does not
293
+ replace Your obligations under this Public License where the Licensed
294
+ Rights include other Copyright and Similar Rights.
295
+
296
+
297
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
298
+
299
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
300
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
301
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
302
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
303
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
304
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
305
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
306
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
307
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
308
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
309
+
310
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
311
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
312
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
313
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
314
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
315
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
316
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
317
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
318
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
319
+
320
+ c. The disclaimer of warranties and limitation of liability provided
321
+ above shall be interpreted in a manner that, to the extent
322
+ possible, most closely approximates an absolute disclaimer and
323
+ waiver of all liability.
324
+
325
+
326
+ Section 6 -- Term and Termination.
327
+
328
+ a. This Public License applies for the term of the Copyright and
329
+ Similar Rights licensed here. However, if You fail to comply with
330
+ this Public License, then Your rights under this Public License
331
+ terminate automatically.
332
+
333
+ b. Where Your right to use the Licensed Material has terminated under
334
+ Section 6(a), it reinstates:
335
+
336
+ 1. automatically as of the date the violation is cured, provided
337
+ it is cured within 30 days of Your discovery of the
338
+ violation; or
339
+
340
+ 2. upon express reinstatement by the Licensor.
341
+
342
+ For the avoidance of doubt, this Section 6(b) does not affect any
343
+ right the Licensor may have to seek remedies for Your violations
344
+ of this Public License.
345
+
346
+ c. For the avoidance of doubt, the Licensor may also offer the
347
+ Licensed Material under separate terms or conditions or stop
348
+ distributing the Licensed Material at any time; however, doing so
349
+ will not terminate this Public License.
350
+
351
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
352
+ License.
353
+
354
+
355
+ Section 7 -- Other Terms and Conditions.
356
+
357
+ a. The Licensor shall not be bound by any additional or different
358
+ terms or conditions communicated by You unless expressly agreed.
359
+
360
+ b. Any arrangements, understandings, or agreements regarding the
361
+ Licensed Material not stated herein are separate from and
362
+ independent of the terms and conditions of this Public License.
363
+
364
+
365
+ Section 8 -- Interpretation.
366
+
367
+ a. For the avoidance of doubt, this Public License does not, and
368
+ shall not be interpreted to, reduce, limit, restrict, or impose
369
+ conditions on any use of the Licensed Material that could lawfully
370
+ be made without permission under this Public License.
371
+
372
+ b. To the extent possible, if any provision of this Public License is
373
+ deemed unenforceable, it shall be automatically reformed to the
374
+ minimum extent necessary to make it enforceable. If the provision
375
+ cannot be reformed, it shall be severed from this Public License
376
+ without affecting the enforceability of the remaining terms and
377
+ conditions.
378
+
379
+ c. No term or condition of this Public License will be waived and no
380
+ failure to comply consented to unless expressly agreed to by the
381
+ Licensor.
382
+
383
+ d. Nothing in this Public License constitutes or may be interpreted
384
+ as a limitation upon, or waiver of, any privileges and immunities
385
+ that apply to the Licensor or You, including from the legal
386
+ processes of any jurisdiction or authority.
387
+
388
+ =======================================================================
389
+
390
+ Creative Commons is not a party to its public
391
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
392
+ its public licenses to material it publishes and in those instances
393
+ will be considered the “Licensor.” The text of the Creative Commons
394
+ public licenses is dedicated to the public domain under the CC0 Public
395
+ Domain Dedication. Except for the limited purpose of indicating that
396
+ material is shared under a Creative Commons public license or as
397
+ otherwise permitted by the Creative Commons policies published at
398
+ creativecommons.org/policies, Creative Commons does not authorize the
399
+ use of the trademark "Creative Commons" or any other trademark or logo
400
+ of Creative Commons without its prior written consent including,
401
+ without limitation, in connection with any unauthorized modifications
402
+ to any of its public licenses or any other arrangements,
403
+ understandings, or agreements concerning use of licensed material. For
404
+ the avoidance of doubt, this paragraph does not form part of the
405
+ public licenses.
406
+
407
+ Creative Commons may be contacted at creativecommons.org.
408
+
LICENSE-CODE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
LICENSE-QWEN3 ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2024 Alibaba Cloud
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Octen-WebGR
2
+ Copyright 2026 Octen
3
+
4
+ This model is a full-parameter fine-tune of a Qwen3 base model (Qwen/Qwen3-4B-Base or Qwen/Qwen3-0.6B-Base, see README.md),
5
+ Copyright 2024 Alibaba Cloud, licensed under the Apache License, Version 2.0 (LICENSE-QWEN3).
6
+
7
+ Modifications by Octen: the vocabulary was extended by 2 x 65,536 semantic-identifier tokens and all parameters were trained to map
8
+ search queries to these identifiers.
9
+
10
+ Licensing of this repository:
11
+ - Model weights (*.safetensors) and the SID-to-URL table (sid_table/): CC BY-NC 4.0 (LICENSE).
12
+ - Inference code (infer_gpu.py, infer_cpu.py): Apache License 2.0 (LICENSE-CODE).
13
+ - Tokenizer files are those of the Qwen3 base model and remain under its Apache License 2.0 (LICENSE-QWEN3).
README.md ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ license_link: LICENSE
4
+ base_model: Qwen/Qwen3-4B-Base
5
+ library_name: transformers
6
+ tags:
7
+ - generative-retrieval
8
+ - semantic-id
9
+ - navigational-search
10
+ - web-search
11
+ ---
12
+
13
+ # Octen-WebGR-4B
14
+
15
+ Octen-WebGR-4B is a generative retriever for navigational web search. Given a query, it generates a two-token semantic identifier
16
+ (SID) that is constrained to a table of 195.9 million real URLs, so the web index lives in the model's parameters: retrieval needs
17
+ one GPU and about 10 GB of memory, instead of hundreds of gigabytes of vectors.
18
+
19
+ It is described in the technical report *Octen-WebGR: Scaling Generative Retrieval to 200 Million Web Pages* (Octen Team, 2026).
20
+ A smaller model for a 31-million-URL table is available as [Octen-WebGR-0.6B](https://huggingface.co/Octen/Octen-WebGR-0.6B).
21
+
22
+ ## Model
23
+
24
+ | | |
25
+ |---|---|
26
+ | Base model | Qwen3-4B-Base, full-parameter fine-tuning |
27
+ | Layers / hidden size | 36 / 2,560 |
28
+ | Parameters, total (non-embedding) | 4.36B (3.63B) |
29
+ | Identifier tokens | 2 × 65,536 (vocabulary ids 151,936 to 283,007) |
30
+ | URLs in the training universe | 201,231,792 |
31
+ | URLs in the released table | 195,921,090 (after screening, see below) |
32
+ | Training data | Query–URL click pairs up to August 2026 (proprietary, not released) |
33
+ | Weights | bf16, 8.7 GB |
34
+
35
+ ## Results
36
+
37
+ Navigational queries from September 2026, the month after the training data, weighted by clicks. A system scores a hit when the
38
+ clicked target page is among its top *k* URLs; targets outside a system's candidate set count as misses.
39
+
40
+ | System | hit@1 | hit@10 |
41
+ |---|---|---|
42
+ | **Octen-WebGR-4B** | **59.6** | **68.7** |
43
+ | Octen-WebGR-0.6B (31M-URL universe) | 56.5 | 64.0 |
44
+ | Dense retrieval (Octen embedding + adapter trained on the same clicks, exact search) | 24.8 | 55.6 |
45
+ | Dense retrieval + click prior | 46.5 | 64.2 |
46
+ | BM25 over URL texts (URL + training queries) | 9.1 | 25.3 |
47
+ | Lookup in the training click table | 58.9 | 62.5 |
48
+
49
+ GR is strongest on new ways of asking for familiar pages: on unseen queries for pages with many training queries it ranks the target
50
+ first 30.9% of the time, against 17.2% for dense retrieval (21.4% with the click prior). Dense retrieval remains better on rarely
51
+ visited pages, and a click table cannot answer new queries at all. All numbers use the full 201M universe; restricting decoding to the screened table lowers hit@1 from 59.6 to 58.7,
52
+ because 1.2% of the traffic targets a removed URL. See the report for the full evaluation.
53
+
54
+ ## How it works
55
+
56
+ 1. Normalise the query: collapse whitespace, strip, lowercase. Keep at most the first 32 tokens.
57
+ 2. Prompt: `Query: {q}\nURL:` without special tokens.
58
+ 3. Generate two SID tokens. Level *t* (0 or 1) uses vocabulary id `151936 + t * 65536 + code`.
59
+ 4. Constrained beam search: at each level, only prefixes present in `sid_table/` are allowed and the softmax is taken over the valid
60
+ children only; 20 beams are kept. The score is the sum of the two log-probabilities.
61
+ 5. Look `(sid0, sid1)` up in `sid_table/` to get the URL.
62
+
63
+ > **Do not use `model.generate()`.** The tokenizer has no entries for the SID tokens, and unconstrained generation returns
64
+ > identifiers that map to no URL. Use the inference code in this repository.
65
+
66
+ ## Usage
67
+
68
+ ```bash
69
+ pip install -r requirements.txt # torch 2.8.0, transformers 4.57.1; flash-attn optional
70
+ python infer_gpu.py --model Octen/Octen-WebGR-4B --query "youtube" "boeing internship"
71
+ python infer_gpu.py --model Octen/Octen-WebGR-4B --check # compare against smoke_test.json
72
+ ```
73
+
74
+ ```python
75
+ from huggingface_hub import snapshot_download
76
+ import sys
77
+
78
+ root = snapshot_download("Octen/Octen-WebGR-4B")
79
+ sys.path.insert(0, root)
80
+ from infer_gpu import GR
81
+
82
+ gr = GR(root) # loads the model and the 195.9M-row table
83
+ for url, logp, row in gr.search(["hugging face"], K=10)[0]:
84
+ print(url, logp)
85
+ ```
86
+
87
+ `infer_gpu.py` is a reference implementation: it recomputes the prompt for every beam at the second level and pads each batch to its
88
+ longest prompt. On an idle H200 it answers a single query in 56 ms (median) and needs 10.1 ms per query in batches of 32.
89
+ `infer_cpu.py` implements the same protocol on CPUs and reuses the prompt's key–value cache.
90
+
91
+ Memory: about 9.7 GiB of GPU memory (bf16 weights and SID keys). Peak host RAM is about 23 GiB with `infer_cpu.py`, which keeps the weights and the table in memory.
92
+
93
+ ## Files
94
+
95
+ | Path | Content | License |
96
+ |---|---|---|
97
+ | `*.safetensors`, `config.json`, `generation_config.json` | Model weights (bf16) | CC BY-NC 4.0 |
98
+ | `tokenizer*.json`, `vocab.json`, `merges.txt` | Qwen3 tokenizer, unchanged | Apache 2.0 |
99
+ | `sid_table/part-*.parquet` | One row per URL: `sid0`, `sid1` (int32), `url` (string, without scheme), sorted by `sid0 * 65536 + sid1`, unique | CC BY-NC 4.0 |
100
+ | `infer_gpu.py`, `infer_cpu.py` | Inference code | Apache 2.0 |
101
+ | `smoke_test.json` | 31 hand-picked queries with expected top-20 URLs, for `--check` | – |
102
+
103
+ ## Screening of the table
104
+
105
+ Before release we removed every URL whose host, or a parent domain of it, is on the adult, malware, phishing, cryptojacking or
106
+ stalkerware lists of the UT1 blacklists; every URL listed by URLhaus; and every URL whose text contains an e-mail address or a
107
+ credential (5,310,702 URLs, 2.6%, mostly adult sites). Removing a row from the table removes the URL from every possible output, because
108
+ decoding is constrained to the table. The tables were not checked against lists of child sexual abuse material, nor screened for
109
+ personal pages; both are left to the takedown process.
110
+
111
+ URL removal requests: TODO_CONTACT. Removals are published as versioned changes to `sid_table/`.
112
+
113
+ ## Intended use and limitations
114
+
115
+ - Intended for research on generative retrieval and for navigational search over the URLs in the released table.
116
+ - The model can only return URLs in the table. Pages that appeared after August 2026 are not covered, and adding a page requires
117
+ training on it.
118
+ - It is weaker than dense retrieval on rarely visited pages, and it is not meant for informational queries.
119
+ - Its knowledge reflects clicks up to August 2026 and the biases of the rankings under which those clicks were made.
120
+ - It was trained on aggregated click data without user identifiers. It must not be used to infer anything about individual users.
121
+
122
+ ## License
123
+
124
+ The model weights and the SID-to-URL table are released under [CC BY-NC 4.0](LICENSE) (non-commercial use). The inference code is
125
+ released under the [Apache License 2.0](LICENSE-CODE). The model is derived from Qwen3-4B-Base, Copyright 2024 Alibaba Cloud, licensed
126
+ under the Apache License 2.0 ([LICENSE-QWEN3](LICENSE-QWEN3)); see [NOTICE](NOTICE). Unlike the Octen-Embedding models, the WebGR
127
+ weights are not licensed for commercial use; contact Octen for commercial licensing.
128
+
129
+ ## Citation
130
+
131
+ ```bibtex
132
+ @techreport{octen2026webgr,
133
+ title = {Octen-WebGR: Scaling Generative Retrieval to 200 Million Web Pages},
134
+ author = {{Octen Team}},
135
+ institution = {Octen},
136
+ year = {2026},
137
+ note = {TODO_LINK}
138
+ }
139
+ ```
config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 151643,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2560,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 9728,
15
+ "layer_types": [
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention"
52
+ ],
53
+ "max_position_embeddings": 32768,
54
+ "max_window_layers": 36,
55
+ "model_type": "qwen3",
56
+ "num_attention_heads": 32,
57
+ "num_hidden_layers": 36,
58
+ "num_key_value_heads": 8,
59
+ "rms_norm_eps": 1e-06,
60
+ "rope_scaling": null,
61
+ "rope_theta": 1000000,
62
+ "sliding_window": null,
63
+ "tie_word_embeddings": true,
64
+ "transformers_version": "4.57.1",
65
+ "use_cache": false,
66
+ "use_sliding_window": false,
67
+ "vocab_size": 283008
68
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_new_tokens": 2048,
5
+ "transformers_version": "4.57.1"
6
+ }
infer_cpu.py ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2026 Octen. Licensed under the Apache License, Version 2.0 (see LICENSE-CODE).
2
+ """CPU inference for Octen-WebGR. Same protocol as infer_gpu.py (query normalisation, prompt, constrained beam search,
3
+ scoring); it only removes two algorithmic redundancies of the reference implementation:
4
+
5
+ 1. Level 0 runs the prompt once and keeps its KV cache; the K beams of level 1 reuse it and each feed one token
6
+ (the reference recomputes "prompt + SID token" K times, roughly 7-8x the compute).
7
+ 2. Level-1 log_softmax is taken over the valid children only: sid_table/ is sorted by key = sid0 * 65536 + sid1,
8
+ so the valid children of prefix c are the contiguous rows [start[c], start[c+1]).
9
+
10
+ Results match infer_gpu.py except for occasional swaps between candidates whose scores are nearly tied.
11
+
12
+ python infer_cpu.py --model Octen/Octen-WebGR-0.6B --query "youtube" "boeing internship" --threads 16
13
+ python infer_cpu.py --model /path/to/local/copy --check --threads 16
14
+ """
15
+ import argparse, glob, json, os, time
16
+ import numpy as np
17
+ import pyarrow as pa
18
+ import pyarrow.parquet as pq
19
+ import torch
20
+ from transformers import AutoModelForCausalLM, AutoTokenizer
21
+
22
+ BASE_V, V, MAX_Q = 151936, 65536, 32
23
+ PAD = 151643 # <|endoftext|>, used only for left padding (masked out)
24
+
25
+
26
+ def resolve(model):
27
+ """Local directory, or a Hugging Face repo id that is downloaded once into the HF cache."""
28
+ if os.path.isdir(model):
29
+ return model
30
+ from huggingface_hub import snapshot_download
31
+ return snapshot_download(model)
32
+
33
+
34
+ def norm_query(q):
35
+ return " ".join(q.split()).lower()
36
+
37
+
38
+ class URLs:
39
+ """URL column kept as one array per table file (no combined copy, so peak memory is one table); rows are global."""
40
+ def __init__(self, files):
41
+ self.parts = [pq.read_table(f, columns=["url"]).column("url").combine_chunks() for f in files]
42
+ self.start = np.cumsum([0] + [len(p) for p in self.parts])
43
+
44
+ def take(self, rows):
45
+ f = np.searchsorted(self.start, rows, side="right") - 1
46
+ return [self.parts[i][int(r - self.start[i])].as_py() for i, r in zip(f, rows)]
47
+
48
+
49
+ class GRCPU:
50
+ def __init__(self, model, dtype=torch.bfloat16, logits_fp32=False):
51
+ """dtype: precision of the forward pass (bf16 matches the GPU evaluation; fp32 is slower).
52
+ logits_fp32: compute the lm_head step with fp32 weights (bf16 logits are spaced 0.125 apart at |logit| >= 16,
53
+ so nearly tied candidates can swap depending on the kernel)."""
54
+ self.root = resolve(model)
55
+ self.tok = AutoTokenizer.from_pretrained(self.root)
56
+ self.lm = AutoModelForCausalLM.from_pretrained(self.root, dtype=dtype, attn_implementation="sdpa").eval()
57
+ assert self.lm.config.vocab_size == BASE_V + 2 * V, "unexpected vocabulary size: should be 151936 + 2 x 65536"
58
+ W = self.lm.lm_head.weight.detach()
59
+ ldt = torch.float32 if logits_fp32 else dtype
60
+ self.W0 = W[BASE_V:BASE_V + V].to(ldt).contiguous() # the 65,536 rows of level 0
61
+ self.W1 = W[BASE_V + V:BASE_V + 2 * V].to(ldt).contiguous() # the 65,536 rows of level 1
62
+ files = sorted(glob.glob(f"{self.root}/sid_table/part-*.parquet"))
63
+ t = pa.concat_tables([pq.read_table(f, columns=["sid0", "sid1"]) for f in files])
64
+ s0 = t.column("sid0").to_numpy().astype(np.int64)
65
+ s1 = t.column("sid1").to_numpy().astype(np.int64)
66
+ assert (np.diff(s0 * V + s1) > 0).all(), "sid_table must be sorted by key in strictly ascending order (one URL per SID)"
67
+ self.start = torch.from_numpy(np.searchsorted(s0, np.arange(V + 1))) # valid children of prefix c = rows [start[c], start[c+1])
68
+ self.ok0 = self.start[1:] > self.start[:-1] # valid level-0 codes
69
+ self.sid1 = torch.from_numpy(s1)
70
+ self.url = URLs(files)
71
+ self.n = len(s0)
72
+
73
+ def prompts(self, qs):
74
+ qs = [norm_query(q) for q in qs]
75
+ qi = self.tok(qs, add_special_tokens=False)["input_ids"]
76
+ qs = [self.tok.decode(x[:MAX_Q]) if len(x) > MAX_Q else q for q, x in zip(qs, qi)]
77
+ return self.tok([f"Query: {q}\nURL:" for q in qs], add_special_tokens=False)["input_ids"]
78
+
79
+ @torch.inference_mode()
80
+ def search_rows(self, qs, K=20):
81
+ """-> (scores, rows) per query, sorted by score; rows index sid_table/."""
82
+ P = self.prompts(qs)
83
+ B, T = len(P), max(len(p) for p in P)
84
+ ids = torch.full((B, T), PAD, dtype=torch.long)
85
+ am = torch.zeros((B, T), dtype=torch.long)
86
+ for i, p in enumerate(P): # left padding: the last position is each sequence's last token
87
+ ids[i, T - len(p):] = torch.tensor(p)
88
+ am[i, T - len(p):] = 1
89
+ out = self.lm.model(input_ids=ids, attention_mask=am, position_ids=(am.cumsum(1) - 1).clamp(min=0), use_cache=True)
90
+ lg0 = (out.last_hidden_state[:, -1].to(self.W0.dtype) @ self.W0.t()).float().masked_fill(~self.ok0, float("-inf"))
91
+ k0 = min(K, int(self.ok0.sum()))
92
+ s0, c0 = lg0.log_softmax(-1).topk(k0, dim=1) # [B, k0]
93
+ # Level 1: copy the KV cache per beam (the k0 beams of query b are adjacent); each beam feeds only its SID token
94
+ cache = out.past_key_values
95
+ cache.batch_repeat_interleave(k0)
96
+ am1 = torch.cat([am.repeat_interleave(k0, 0), torch.ones((B * k0, 1), dtype=torch.long)], 1)
97
+ pos1 = am.sum(1, keepdim=True).repeat_interleave(k0, 0) # position of the new token = number of real tokens
98
+ h1 = self.lm.model(input_ids=(BASE_V + c0).reshape(-1, 1), attention_mask=am1, position_ids=pos1,
99
+ past_key_values=cache, use_cache=True).last_hidden_state[:, -1]
100
+ lg1 = h1.to(self.W1.dtype) @ self.W1.t() # [B*k0, V]; only the valid children's columns are used
101
+ cc = c0.reshape(-1)
102
+ lo = self.start[cc]
103
+ n = self.start[cc + 1] - lo # number of valid children per beam
104
+ r = torch.repeat_interleave(torch.arange(B * k0), n) # beam of each child
105
+ j = torch.arange(int(n.sum())) - torch.repeat_interleave(n.cumsum(0) - n, n) + lo[r] # table row of each child
106
+ x = lg1[r, self.sid1[j]].float()
107
+ mx = torch.full((B * k0,), float("-inf")).scatter_reduce(0, r, x, "amax")
108
+ lse = mx + torch.zeros(B * k0).index_add_(0, r, (x - mx[r]).exp()).log()
109
+ sc = s0.reshape(-1)[r] + x - lse[r] # sum of the two log-probabilities
110
+ off = [0] + n.view(B, k0).sum(1).cumsum(0).tolist() # children of one query are adjacent in sc
111
+ res = []
112
+ for b in range(B):
113
+ s, i = sc[off[b]:off[b + 1]].topk(min(K, off[b + 1] - off[b]))
114
+ res.append((s.numpy(), j[off[b] + i].numpy()))
115
+ return res
116
+
117
+ def search(self, qs, K=20):
118
+ """-> one list per query of (url, log_prob, table_row), sorted by score (same format as infer_gpu.GR.search)."""
119
+ return [list(zip(self.url.take(rr), s.tolist(), rr.tolist())) for s, rr in self.search_rows(qs, K)]
120
+
121
+
122
+ def check(gr, bs=32):
123
+ """Compare against smoke_test.json (hand-picked queries; expected results from the released weights and table)."""
124
+ ref = json.load(open(f"{gr.root}/smoke_test.json"))
125
+ assert gr.n == ref["table_rows"], f"sid_table has {gr.n:,} rows, expected {ref['table_rows']:,}"
126
+ qs, want = [x["query"] for x in ref["cases"]], [x["top20"] for x in ref["cases"]]
127
+ ov, top1, n = [], 0, len(qs)
128
+ for i in range(0, n, bs):
129
+ for res, w in zip(gr.search(qs[i:i + bs], 20), want[i:i + bs]):
130
+ got = [u for u, *_ in res]
131
+ ov.append(len(set(got) & set(w)) / max(len(w), 1))
132
+ top1 += bool(got and w and got[0] == w[0])
133
+ mo, t1 = float(np.mean(ov)), top1 / n
134
+ print(f"{n} queries: mean top-20 overlap {mo:.4f}, top-1 agreement {t1:.4f}, identical top-20 {np.mean(np.array(ov) == 1):.3f}")
135
+ ok = mo >= 0.9 and t1 >= 0.9
136
+ print("PASS" if ok else "FAIL (small differences from kernels are expected, but overlap should be >= 0.9)")
137
+ return ok
138
+
139
+
140
+ def main():
141
+ ap = argparse.ArgumentParser()
142
+ ap.add_argument("--model", default=os.path.dirname(os.path.abspath(__file__)), help="local directory or HF repo id")
143
+ ap.add_argument("--query", nargs="*", default=[])
144
+ ap.add_argument("--k", type=int, default=20)
145
+ ap.add_argument("--threads", type=int, default=0, help="0 = torch default")
146
+ ap.add_argument("--fp32", action="store_true", help="fp32 forward pass (default bf16, as in the GPU evaluation)")
147
+ ap.add_argument("--check", action="store_true")
148
+ a = ap.parse_args()
149
+ if a.threads:
150
+ torch.set_num_threads(a.threads)
151
+ t0 = time.time()
152
+ gr = GRCPU(a.model, dtype=torch.float32 if a.fp32 else torch.bfloat16)
153
+ print(f"Loaded {gr.n:,} candidate URLs, {torch.get_num_threads()} threads, {time.time() - t0:.0f}s", flush=True)
154
+ for q in a.query:
155
+ t = time.perf_counter()
156
+ res = gr.search([q], a.k)[0]
157
+ print(f"\n{q} ({(time.perf_counter() - t) * 1000:.0f} ms)")
158
+ for i, (u, lp, _) in enumerate(res, 1):
159
+ print(f" {i:2d}. {np.exp(lp):.3f} {u}")
160
+ if a.check and not check(gr):
161
+ raise SystemExit(1)
162
+
163
+
164
+ if __name__ == "__main__":
165
+ main()
infer_gpu.py ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2026 Octen. Licensed under the Apache License, Version 2.0 (see LICENSE-CODE).
2
+ """Reference GPU inference for Octen-WebGR: query -> top-K URLs by constrained beam search over two semantic-ID tokens.
3
+
4
+ Inference protocol (identical to the evaluation in the technical report):
5
+ 1. Normalise the query: collapse Unicode whitespace to one space, strip, lowercase.
6
+ 2. Keep at most the first 32 tokens of the query (decoded back to a string before building the prompt).
7
+ 3. Prompt = "Query: {q}\\nURL:", tokenised without special tokens.
8
+ 4. Level t (t = 0, 1) of the SID is vocabulary token 151936 + t * 65536 + code; only those 65,536 rows of
9
+ lm_head are scored at each level.
10
+ 5. Constrained beam search: only prefixes present in sid_table/ are allowed, and log_softmax is taken over the
11
+ valid children only. K beams are kept at each level (default 20).
12
+ 6. Score = sum of the two log-probabilities (exp(score) = the model's probability of the URL among valid SIDs).
13
+ (sid0, sid1) is looked up in sid_table/ to get the URL.
14
+
15
+ This implementation recomputes the prompt for every beam at level 1 and pads each batch to its longest prompt;
16
+ it favours clarity over speed. infer_cpu.py reuses the prompt's KV cache instead.
17
+
18
+ python infer_gpu.py --model Octen/Octen-WebGR-4B --query "youtube" "boeing internship"
19
+ python infer_gpu.py --model /path/to/local/copy --check # compare against smoke_test.json
20
+ """
21
+ import argparse, glob, json, os, time
22
+ import numpy as np
23
+ import pyarrow as pa
24
+ import pyarrow.parquet as pq
25
+ import torch
26
+ from transformers import AutoModelForCausalLM, AutoTokenizer
27
+
28
+ BASE_V, V, L, MAX_Q = 151936, 65536, 2, 32
29
+ PAD = 151643 # <|endoftext|>, used only for left padding (masked out)
30
+
31
+
32
+ def resolve(model):
33
+ """Local directory, or a Hugging Face repo id that is downloaded once into the HF cache."""
34
+ if os.path.isdir(model):
35
+ return model
36
+ from huggingface_hub import snapshot_download
37
+ return snapshot_download(model)
38
+
39
+
40
+ def norm_query(q):
41
+ return " ".join(q.split()).lower()
42
+
43
+
44
+ class URLs:
45
+ """URL column kept as one array per table file (no combined copy, so peak memory is one table); rows are global."""
46
+ def __init__(self, files):
47
+ self.parts = [pq.read_table(f, columns=["url"]).column("url").combine_chunks() for f in files]
48
+ self.start = np.cumsum([0] + [len(p) for p in self.parts])
49
+
50
+ def take(self, rows):
51
+ f = np.searchsorted(self.start, rows, side="right") - 1
52
+ return [self.parts[i][int(r - self.start[i])].as_py() for i, r in zip(f, rows)]
53
+
54
+
55
+ class GR:
56
+ def __init__(self, model, device="cuda"):
57
+ self.root = resolve(model)
58
+ self.dev = device
59
+ self.dev_type = torch.device(device).type
60
+ self.tok = AutoTokenizer.from_pretrained(self.root)
61
+ attn = "sdpa"
62
+ if self.dev_type == "cuda":
63
+ try:
64
+ import flash_attn # noqa: F401
65
+ attn = "flash_attention_2"
66
+ except ImportError:
67
+ pass
68
+ self.lm = AutoModelForCausalLM.from_pretrained(self.root, dtype=torch.bfloat16, attn_implementation=attn).to(device).eval()
69
+ assert self.lm.config.vocab_size == BASE_V + L * V, "unexpected vocabulary size: should be 151936 + 2 x 65536"
70
+ self.W = self.lm.lm_head.weight
71
+ files = sorted(glob.glob(f"{self.root}/sid_table/part-*.parquet"))
72
+ t = pa.concat_tables([pq.read_table(f, columns=["sid0", "sid1"]) for f in files])
73
+ key = t.column("sid0").to_numpy().astype(np.int64) * V + t.column("sid1").to_numpy().astype(np.int64)
74
+ assert (np.diff(key) > 0).all(), "sid_table must be sorted by key in strictly ascending order (one URL per SID)"
75
+ self.keys = torch.from_numpy(key).to(device) # row number = position in keys
76
+ ok0 = np.zeros(V, bool)
77
+ ok0[np.unique(key // V)] = True
78
+ self.ok0 = torch.from_numpy(ok0).to(device) # valid level-0 codes
79
+ self.url = URLs(files)
80
+ self.n = len(key)
81
+
82
+ def prompts(self, qs):
83
+ qs = [norm_query(q) for q in qs]
84
+ qi = self.tok(qs, add_special_tokens=False)["input_ids"]
85
+ qs = [self.tok.decode(x[:MAX_Q]) if len(x) > MAX_Q else q for q, x in zip(qs, qi)]
86
+ return self.tok([f"Query: {q}\nURL:" for q in qs], add_special_tokens=False)["input_ids"]
87
+
88
+ def last_hidden(self, seqs):
89
+ P = max(len(s) for s in seqs)
90
+ ids = torch.full((len(seqs), P), PAD, dtype=torch.long)
91
+ am = torch.zeros((len(seqs), P), dtype=torch.long)
92
+ for i, s in enumerate(seqs): # left padding: the last position is each sequence's last token
93
+ ids[i, P - len(s):] = torch.tensor(s)
94
+ am[i, P - len(s):] = 1
95
+ ids, am = ids.to(self.dev), am.to(self.dev)
96
+ pos = (am.cumsum(1) - 1).clamp(min=0)
97
+ return self.lm.model(input_ids=ids, attention_mask=am, position_ids=pos).last_hidden_state[:, -1]
98
+
99
+ @torch.no_grad()
100
+ def search(self, qs, K=20):
101
+ """-> one list per query of (url, log_prob, table_row), sorted by score."""
102
+ with torch.autocast(self.dev_type, dtype=torch.bfloat16):
103
+ P = self.prompts(qs)
104
+ B = len(P)
105
+ ninf = float("-inf")
106
+ lg0 = (self.last_hidden(P) @ self.W[BASE_V:BASE_V + V].t()).float() # [B, V]
107
+ lp0 = lg0.masked_fill(~self.ok0, ninf).log_softmax(-1).masked_fill(~self.ok0, ninf)
108
+ k0 = min(K, int(self.ok0.sum()))
109
+ s0, c0 = lp0.topk(k0, dim=1) # [B, k0]
110
+ # Level 1: one sequence per (query, level-0 candidate) = prompt + that SID token
111
+ P1 = [p + [BASE_V + c] for p, cs in zip(P, c0.tolist()) for c in cs]
112
+ lg1 = (self.last_hidden(P1) @ self.W[BASE_V + V:BASE_V + 2 * V].t()).float() # [B*k0, V]
113
+ cc = c0.reshape(-1)
114
+ lo = torch.searchsorted(self.keys, cc * V)
115
+ n = torch.searchsorted(self.keys, (cc + 1) * V) - lo # number of valid children per prefix
116
+ r = torch.repeat_interleave(torch.arange(len(cc), device=self.dev), n)
117
+ j = torch.arange(int(n.sum()), device=self.dev) - torch.repeat_interleave(n.cumsum(0) - n, n) + lo[r]
118
+ ok1 = torch.zeros_like(lg1, dtype=torch.bool)
119
+ ok1[r, self.keys[j] - cc[r] * V] = True
120
+ lp1 = lg1.masked_fill(~ok1, ninf).log_softmax(-1).masked_fill(~ok1, ninf)
121
+ cand = (s0.reshape(-1, 1) + lp1).view(B, k0 * V)
122
+ s, flat = cand.topk(min(K, k0 * V), dim=1)
123
+ key = c0.gather(1, flat // V) * V + flat % V
124
+ row = torch.searchsorted(self.keys, key)
125
+ s, row = s.float().cpu().numpy(), row.cpu().numpy()
126
+ out = []
127
+ for b in range(B):
128
+ m = np.isfinite(s[b])
129
+ rr = row[b][m]
130
+ out.append(list(zip(self.url.take(rr), s[b][m].tolist(), rr.tolist())))
131
+ return out
132
+
133
+
134
+ def check(gr, bs=32):
135
+ """Compare against smoke_test.json (hand-picked queries; expected results from the released weights and table)."""
136
+ ref = json.load(open(f"{gr.root}/smoke_test.json"))
137
+ assert gr.n == ref["table_rows"], f"sid_table has {gr.n:,} rows, expected {ref['table_rows']:,}"
138
+ qs, want = [x["query"] for x in ref["cases"]], [x["top20"] for x in ref["cases"]]
139
+ ov, top1, n = [], 0, len(qs)
140
+ for i in range(0, n, bs):
141
+ for res, w in zip(gr.search(qs[i:i + bs], 20), want[i:i + bs]):
142
+ got = [u for u, *_ in res]
143
+ ov.append(len(set(got) & set(w)) / max(len(w), 1))
144
+ top1 += bool(got and w and got[0] == w[0])
145
+ mo, t1 = float(np.mean(ov)), top1 / n
146
+ print(f"{n} queries: mean top-20 overlap {mo:.4f}, top-1 agreement {t1:.4f}, identical top-20 {np.mean(np.array(ov) == 1):.3f}")
147
+ ok = mo >= 0.9 and t1 >= 0.9
148
+ print("PASS" if ok else "FAIL (small differences from batching and kernels are expected, but overlap should be >= 0.9)")
149
+ return ok
150
+
151
+
152
+ def main():
153
+ ap = argparse.ArgumentParser()
154
+ ap.add_argument("--model", default=os.path.dirname(os.path.abspath(__file__)), help="local directory or HF repo id")
155
+ ap.add_argument("--query", nargs="*", default=[])
156
+ ap.add_argument("--k", type=int, default=20)
157
+ ap.add_argument("--device", default="cuda")
158
+ ap.add_argument("--check", action="store_true")
159
+ a = ap.parse_args()
160
+ t0 = time.time()
161
+ gr = GR(a.model, a.device)
162
+ print(f"Loaded {gr.n:,} candidate URLs in {time.time() - t0:.0f}s", flush=True)
163
+ for q in a.query:
164
+ t = time.perf_counter()
165
+ res = gr.search([q], a.k)[0]
166
+ print(f"\n{q} ({(time.perf_counter() - t) * 1000:.0f} ms)")
167
+ for i, (u, lp, _) in enumerate(res, 1):
168
+ print(f" {i:2d}. {np.exp(lp):.3f} {u}")
169
+ if a.check and not check(gr):
170
+ raise SystemExit(1)
171
+
172
+
173
+ if __name__ == "__main__":
174
+ main()
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:848eb7c7189bacc5fc949a70b2bb16341e1b3d46403a4f65d0479813f41e1439
3
+ size 2489773200
model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a9f51f28c2a418831230412c121fdf3cb3a03f143013fb3495b5628a7c3707f
3
+ size 2493134560
model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f9ee32d0e5b817a3ca7dec015860ae07d4dd8068dd1b3ad504a9d865b417e92
3
+ size 2472162240
model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e62eae079303298d585dcca460ff12a0b46f4fbf8cd7bb29b042e0b46d89414f
3
+ size 1261000496
model.safetensors.index.json ADDED
@@ -0,0 +1,406 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 4358012416,
4
+ "total_size": 8716024832
5
+ },
6
+ "weight_map": {
7
+ "model.embed_tokens.weight": "model-00001-of-00004.safetensors",
8
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00004.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
10
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
12
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
13
+ "model.layers.0.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
14
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
15
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
16
+ "model.layers.0.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
17
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
18
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
19
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00004.safetensors",
20
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
21
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
22
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
23
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
24
+ "model.layers.1.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
25
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
26
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
27
+ "model.layers.1.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
28
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
29
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
30
+ "model.layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors",
31
+ "model.layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
32
+ "model.layers.10.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
33
+ "model.layers.10.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
34
+ "model.layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
35
+ "model.layers.10.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
36
+ "model.layers.10.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
37
+ "model.layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
38
+ "model.layers.10.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
39
+ "model.layers.10.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
40
+ "model.layers.10.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
41
+ "model.layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors",
42
+ "model.layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
43
+ "model.layers.11.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
44
+ "model.layers.11.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
45
+ "model.layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
46
+ "model.layers.11.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
47
+ "model.layers.11.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
48
+ "model.layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
49
+ "model.layers.11.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
50
+ "model.layers.11.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
51
+ "model.layers.11.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
52
+ "model.layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors",
53
+ "model.layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
54
+ "model.layers.12.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
55
+ "model.layers.12.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
56
+ "model.layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
57
+ "model.layers.12.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
58
+ "model.layers.12.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
59
+ "model.layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
60
+ "model.layers.12.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
61
+ "model.layers.12.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
62
+ "model.layers.12.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
63
+ "model.layers.13.input_layernorm.weight": "model-00002-of-00004.safetensors",
64
+ "model.layers.13.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
65
+ "model.layers.13.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
66
+ "model.layers.13.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
67
+ "model.layers.13.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
68
+ "model.layers.13.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
69
+ "model.layers.13.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
70
+ "model.layers.13.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
71
+ "model.layers.13.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
72
+ "model.layers.13.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
73
+ "model.layers.13.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
74
+ "model.layers.14.input_layernorm.weight": "model-00002-of-00004.safetensors",
75
+ "model.layers.14.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
76
+ "model.layers.14.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
77
+ "model.layers.14.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
78
+ "model.layers.14.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
79
+ "model.layers.14.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
80
+ "model.layers.14.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
81
+ "model.layers.14.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
82
+ "model.layers.14.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
83
+ "model.layers.14.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
84
+ "model.layers.14.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
85
+ "model.layers.15.input_layernorm.weight": "model-00002-of-00004.safetensors",
86
+ "model.layers.15.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
87
+ "model.layers.15.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
88
+ "model.layers.15.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
89
+ "model.layers.15.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
90
+ "model.layers.15.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
91
+ "model.layers.15.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
92
+ "model.layers.15.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
93
+ "model.layers.15.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
94
+ "model.layers.15.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
95
+ "model.layers.15.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
96
+ "model.layers.16.input_layernorm.weight": "model-00002-of-00004.safetensors",
97
+ "model.layers.16.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
98
+ "model.layers.16.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
99
+ "model.layers.16.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
100
+ "model.layers.16.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
101
+ "model.layers.16.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
102
+ "model.layers.16.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
103
+ "model.layers.16.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
104
+ "model.layers.16.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
105
+ "model.layers.16.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
106
+ "model.layers.16.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
107
+ "model.layers.17.input_layernorm.weight": "model-00003-of-00004.safetensors",
108
+ "model.layers.17.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
109
+ "model.layers.17.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
110
+ "model.layers.17.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
111
+ "model.layers.17.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
112
+ "model.layers.17.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
113
+ "model.layers.17.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
114
+ "model.layers.17.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
115
+ "model.layers.17.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
116
+ "model.layers.17.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
117
+ "model.layers.17.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
118
+ "model.layers.18.input_layernorm.weight": "model-00003-of-00004.safetensors",
119
+ "model.layers.18.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
120
+ "model.layers.18.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
121
+ "model.layers.18.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
122
+ "model.layers.18.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
123
+ "model.layers.18.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
124
+ "model.layers.18.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
125
+ "model.layers.18.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
126
+ "model.layers.18.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
127
+ "model.layers.18.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
128
+ "model.layers.18.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
129
+ "model.layers.19.input_layernorm.weight": "model-00003-of-00004.safetensors",
130
+ "model.layers.19.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
131
+ "model.layers.19.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
132
+ "model.layers.19.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
133
+ "model.layers.19.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
134
+ "model.layers.19.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
135
+ "model.layers.19.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
136
+ "model.layers.19.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
137
+ "model.layers.19.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
138
+ "model.layers.19.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
139
+ "model.layers.19.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
140
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00004.safetensors",
141
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
142
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
143
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
144
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
145
+ "model.layers.2.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
146
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
147
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
148
+ "model.layers.2.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
149
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
150
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
151
+ "model.layers.20.input_layernorm.weight": "model-00003-of-00004.safetensors",
152
+ "model.layers.20.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
153
+ "model.layers.20.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
154
+ "model.layers.20.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
155
+ "model.layers.20.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
156
+ "model.layers.20.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
157
+ "model.layers.20.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
158
+ "model.layers.20.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
159
+ "model.layers.20.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
160
+ "model.layers.20.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
161
+ "model.layers.20.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
162
+ "model.layers.21.input_layernorm.weight": "model-00003-of-00004.safetensors",
163
+ "model.layers.21.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
164
+ "model.layers.21.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
165
+ "model.layers.21.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
166
+ "model.layers.21.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
167
+ "model.layers.21.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
168
+ "model.layers.21.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
169
+ "model.layers.21.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
170
+ "model.layers.21.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
171
+ "model.layers.21.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
172
+ "model.layers.21.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
173
+ "model.layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors",
174
+ "model.layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
175
+ "model.layers.22.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
176
+ "model.layers.22.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
177
+ "model.layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
178
+ "model.layers.22.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
179
+ "model.layers.22.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
180
+ "model.layers.22.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
181
+ "model.layers.22.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
182
+ "model.layers.22.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
183
+ "model.layers.22.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
184
+ "model.layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors",
185
+ "model.layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
186
+ "model.layers.23.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
187
+ "model.layers.23.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
188
+ "model.layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
189
+ "model.layers.23.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
190
+ "model.layers.23.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
191
+ "model.layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
192
+ "model.layers.23.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
193
+ "model.layers.23.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
194
+ "model.layers.23.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
195
+ "model.layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors",
196
+ "model.layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
197
+ "model.layers.24.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
198
+ "model.layers.24.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
199
+ "model.layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
200
+ "model.layers.24.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
201
+ "model.layers.24.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
202
+ "model.layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
203
+ "model.layers.24.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
204
+ "model.layers.24.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
205
+ "model.layers.24.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
206
+ "model.layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors",
207
+ "model.layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
208
+ "model.layers.25.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
209
+ "model.layers.25.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
210
+ "model.layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
211
+ "model.layers.25.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
212
+ "model.layers.25.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
213
+ "model.layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
214
+ "model.layers.25.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
215
+ "model.layers.25.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
216
+ "model.layers.25.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
217
+ "model.layers.26.input_layernorm.weight": "model-00003-of-00004.safetensors",
218
+ "model.layers.26.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
219
+ "model.layers.26.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
220
+ "model.layers.26.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
221
+ "model.layers.26.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
222
+ "model.layers.26.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
223
+ "model.layers.26.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
224
+ "model.layers.26.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
225
+ "model.layers.26.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
226
+ "model.layers.26.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
227
+ "model.layers.26.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
228
+ "model.layers.27.input_layernorm.weight": "model-00003-of-00004.safetensors",
229
+ "model.layers.27.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
230
+ "model.layers.27.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
231
+ "model.layers.27.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
232
+ "model.layers.27.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
233
+ "model.layers.27.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
234
+ "model.layers.27.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
235
+ "model.layers.27.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
236
+ "model.layers.27.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
237
+ "model.layers.27.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
238
+ "model.layers.27.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
239
+ "model.layers.28.input_layernorm.weight": "model-00003-of-00004.safetensors",
240
+ "model.layers.28.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
241
+ "model.layers.28.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
242
+ "model.layers.28.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
243
+ "model.layers.28.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
244
+ "model.layers.28.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
245
+ "model.layers.28.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
246
+ "model.layers.28.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
247
+ "model.layers.28.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
248
+ "model.layers.28.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
249
+ "model.layers.28.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
250
+ "model.layers.29.input_layernorm.weight": "model-00004-of-00004.safetensors",
251
+ "model.layers.29.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
252
+ "model.layers.29.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
253
+ "model.layers.29.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
254
+ "model.layers.29.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
255
+ "model.layers.29.self_attn.k_norm.weight": "model-00003-of-00004.safetensors",
256
+ "model.layers.29.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
257
+ "model.layers.29.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
258
+ "model.layers.29.self_attn.q_norm.weight": "model-00003-of-00004.safetensors",
259
+ "model.layers.29.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
260
+ "model.layers.29.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
261
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors",
262
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
263
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
264
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
265
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
266
+ "model.layers.3.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
267
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
268
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
269
+ "model.layers.3.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
270
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
271
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
272
+ "model.layers.30.input_layernorm.weight": "model-00004-of-00004.safetensors",
273
+ "model.layers.30.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
274
+ "model.layers.30.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
275
+ "model.layers.30.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
276
+ "model.layers.30.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
277
+ "model.layers.30.self_attn.k_norm.weight": "model-00004-of-00004.safetensors",
278
+ "model.layers.30.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
279
+ "model.layers.30.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
280
+ "model.layers.30.self_attn.q_norm.weight": "model-00004-of-00004.safetensors",
281
+ "model.layers.30.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
282
+ "model.layers.30.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
283
+ "model.layers.31.input_layernorm.weight": "model-00004-of-00004.safetensors",
284
+ "model.layers.31.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
285
+ "model.layers.31.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
286
+ "model.layers.31.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
287
+ "model.layers.31.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
288
+ "model.layers.31.self_attn.k_norm.weight": "model-00004-of-00004.safetensors",
289
+ "model.layers.31.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
290
+ "model.layers.31.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
291
+ "model.layers.31.self_attn.q_norm.weight": "model-00004-of-00004.safetensors",
292
+ "model.layers.31.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
293
+ "model.layers.31.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
294
+ "model.layers.32.input_layernorm.weight": "model-00004-of-00004.safetensors",
295
+ "model.layers.32.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
296
+ "model.layers.32.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
297
+ "model.layers.32.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
298
+ "model.layers.32.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
299
+ "model.layers.32.self_attn.k_norm.weight": "model-00004-of-00004.safetensors",
300
+ "model.layers.32.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
301
+ "model.layers.32.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
302
+ "model.layers.32.self_attn.q_norm.weight": "model-00004-of-00004.safetensors",
303
+ "model.layers.32.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
304
+ "model.layers.32.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
305
+ "model.layers.33.input_layernorm.weight": "model-00004-of-00004.safetensors",
306
+ "model.layers.33.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
307
+ "model.layers.33.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
308
+ "model.layers.33.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
309
+ "model.layers.33.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
310
+ "model.layers.33.self_attn.k_norm.weight": "model-00004-of-00004.safetensors",
311
+ "model.layers.33.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
312
+ "model.layers.33.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
313
+ "model.layers.33.self_attn.q_norm.weight": "model-00004-of-00004.safetensors",
314
+ "model.layers.33.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
315
+ "model.layers.33.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
316
+ "model.layers.34.input_layernorm.weight": "model-00004-of-00004.safetensors",
317
+ "model.layers.34.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
318
+ "model.layers.34.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
319
+ "model.layers.34.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
320
+ "model.layers.34.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
321
+ "model.layers.34.self_attn.k_norm.weight": "model-00004-of-00004.safetensors",
322
+ "model.layers.34.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
323
+ "model.layers.34.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
324
+ "model.layers.34.self_attn.q_norm.weight": "model-00004-of-00004.safetensors",
325
+ "model.layers.34.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
326
+ "model.layers.34.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
327
+ "model.layers.35.input_layernorm.weight": "model-00004-of-00004.safetensors",
328
+ "model.layers.35.mlp.down_proj.weight": "model-00004-of-00004.safetensors",
329
+ "model.layers.35.mlp.gate_proj.weight": "model-00004-of-00004.safetensors",
330
+ "model.layers.35.mlp.up_proj.weight": "model-00004-of-00004.safetensors",
331
+ "model.layers.35.post_attention_layernorm.weight": "model-00004-of-00004.safetensors",
332
+ "model.layers.35.self_attn.k_norm.weight": "model-00004-of-00004.safetensors",
333
+ "model.layers.35.self_attn.k_proj.weight": "model-00004-of-00004.safetensors",
334
+ "model.layers.35.self_attn.o_proj.weight": "model-00004-of-00004.safetensors",
335
+ "model.layers.35.self_attn.q_norm.weight": "model-00004-of-00004.safetensors",
336
+ "model.layers.35.self_attn.q_proj.weight": "model-00004-of-00004.safetensors",
337
+ "model.layers.35.self_attn.v_proj.weight": "model-00004-of-00004.safetensors",
338
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors",
339
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
340
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
341
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
342
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
343
+ "model.layers.4.self_attn.k_norm.weight": "model-00001-of-00004.safetensors",
344
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
345
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
346
+ "model.layers.4.self_attn.q_norm.weight": "model-00001-of-00004.safetensors",
347
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
348
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
349
+ "model.layers.5.input_layernorm.weight": "model-00002-of-00004.safetensors",
350
+ "model.layers.5.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
351
+ "model.layers.5.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
352
+ "model.layers.5.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
353
+ "model.layers.5.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
354
+ "model.layers.5.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
355
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
356
+ "model.layers.5.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
357
+ "model.layers.5.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
358
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
359
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
360
+ "model.layers.6.input_layernorm.weight": "model-00002-of-00004.safetensors",
361
+ "model.layers.6.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
362
+ "model.layers.6.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
363
+ "model.layers.6.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
364
+ "model.layers.6.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
365
+ "model.layers.6.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
366
+ "model.layers.6.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
367
+ "model.layers.6.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
368
+ "model.layers.6.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
369
+ "model.layers.6.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
370
+ "model.layers.6.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
371
+ "model.layers.7.input_layernorm.weight": "model-00002-of-00004.safetensors",
372
+ "model.layers.7.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
373
+ "model.layers.7.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
374
+ "model.layers.7.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
375
+ "model.layers.7.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
376
+ "model.layers.7.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
377
+ "model.layers.7.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
378
+ "model.layers.7.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
379
+ "model.layers.7.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
380
+ "model.layers.7.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
381
+ "model.layers.7.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
382
+ "model.layers.8.input_layernorm.weight": "model-00002-of-00004.safetensors",
383
+ "model.layers.8.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
384
+ "model.layers.8.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
385
+ "model.layers.8.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
386
+ "model.layers.8.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
387
+ "model.layers.8.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
388
+ "model.layers.8.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
389
+ "model.layers.8.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
390
+ "model.layers.8.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
391
+ "model.layers.8.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
392
+ "model.layers.8.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
393
+ "model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
394
+ "model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
395
+ "model.layers.9.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
396
+ "model.layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
397
+ "model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
398
+ "model.layers.9.self_attn.k_norm.weight": "model-00002-of-00004.safetensors",
399
+ "model.layers.9.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
400
+ "model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
401
+ "model.layers.9.self_attn.q_norm.weight": "model-00002-of-00004.safetensors",
402
+ "model.layers.9.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
403
+ "model.layers.9.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
404
+ "model.norm.weight": "model-00004-of-00004.safetensors"
405
+ }
406
+ }
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Versions the release was validated with. infer_cpu.py relies on DynamicCache.batch_repeat_interleave (transformers 4.x).
2
+ torch==2.8.0
3
+ transformers==4.57.1
4
+ pyarrow>=14
5
+ numpy>=1.26
6
+ huggingface_hub>=0.26
7
+ # Optional, GPU only: flash-attn==2.8.3 (infer_gpu.py falls back to SDPA without it)
sid_table/part-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:011ce70f2f57841ce1f007c84c4bfe73da341456bc556300b65f92bb0169d30d
3
+ size 302603717
sid_table/part-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:275d150e5f61284a1038ae90d4335d68fedfb04749ac77768ec667b71640616e
3
+ size 306523952
sid_table/part-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9901a2c92520eaee65f09125aa0c0c3f46149a4ea71bc587ae516605ce90fdda
3
+ size 313869651
sid_table/part-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c018f3d22577dc441d253edf49fd0bdb083a5817bda7aef849487f19acd06478
3
+ size 304267153
sid_table/part-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8943d49e21aabd96c99039304ce3f19f402c8fffa9e9691ad1ebc4bc4a8f54a1
3
+ size 296727787
sid_table/part-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:407ed9511bd17b2140a395751776a8a603391f3db7183e056f8e17f287f487d2
3
+ size 309664722
sid_table/part-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc787f8272a4cc880514d43d95dae26ce4f38601618afbb44d7c8bc7fde14672
3
+ size 301324090
sid_table/part-00007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b7dd7f56f80ee534e1258535f5980cf66458f58158cfb83a1732302225de738
3
+ size 306451611
sid_table/part-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd0be1e18e157f6a10dd5988d745f0ee1a9a7c59568bc28c4d714a07acbb4f49
3
+ size 307409990
sid_table/part-00009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58982526e6748d0c9ab306365eeccecf3fc7435250d8a6169f8150a1615d5da2
3
+ size 297176532
sid_table/part-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10a0343dbe0e0b2abb88e3a45c20ede0b0dfc54293922584aa4486d3983b0346
3
+ size 304033915
sid_table/part-00011.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de8532b0323054fec996e337cec5bfb2ec35254f08638cd83cfd5195b92a1ad6
3
+ size 301198916
sid_table/part-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:deb97e9cbf40b1aad7027040b6f4e7f6eae40b1d1c2648b8ea806ad9bc1887e0
3
+ size 309718109
sid_table/part-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1da0e1d6fdf39d0d00e9c93e1743decc9f44f71eb663436fffbc658ffbfccac1
3
+ size 299317432
sid_table/part-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c6929b7434ff062f41dbf3e194ca824b6ff7629fe186df023d331cb0dea0d55
3
+ size 298385829
sid_table/part-00015.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7483bb1fbb966b1eae7b01b0c341520910b7e243fedad9ce1f034511e97374ad
3
+ size 305202675
smoke_test.json ADDED
@@ -0,0 +1,782 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "Octen-WebGR-4B",
3
+ "table_rows": 195921090,
4
+ "note": "Hand-picked queries. Expected results were produced by infer_cpu.py (bf16, batches of 8) on the released weights and table. Any implementation may swap nearly tied candidates (GPU attention kernel, CPU thread count, batch composition), so --check requires mean top-20 overlap and top-1 agreement >= 0.9 rather than identical lists.",
5
+ "cases": [
6
+ {
7
+ "query": "youtube",
8
+ "top20": [
9
+ "youtube.com",
10
+ "en.wikipedia.org/wiki/YouTube",
11
+ "youtube.com/user/YouTube",
12
+ "music.youtube.com",
13
+ "youtube.com/feed/history",
14
+ "youtube.com/YouTubeJapan",
15
+ "youtube.com/index",
16
+ "youtube.com/feed/library",
17
+ "youtube.com/channel/UCqVDpXKLmKeBU_yyt_QkItQ",
18
+ "support.google.com/youtube?hl=en",
19
+ "youtube.com/example",
20
+ "youtube.com/user/YouTube/videos",
21
+ "facebook.com/youtube",
22
+ "es.wikipedia.org/wiki/YouTube",
23
+ "play.google.com/store/apps/details?hl=en_US&id=com.google.android.youtube",
24
+ "studio.youtube.com",
25
+ "youtube.jp",
26
+ "about.youtube",
27
+ "it.wikipedia.org/wiki/YouTube",
28
+ "support.google.com/youtube/answer/155562?hl=pt-BR"
29
+ ]
30
+ },
31
+ {
32
+ "query": "github",
33
+ "top20": [
34
+ "github.com",
35
+ "en.wikipedia.org/wiki/GitHub",
36
+ "github.co.jp",
37
+ "github.com/login",
38
+ "github.com/signup",
39
+ "github.com/explore",
40
+ "youtube.com/watch?v=pJYOG6klqj8",
41
+ "pages.github.com",
42
+ "youtube.com/watch?v=h2a3Kw-I_Ec",
43
+ "github.blog",
44
+ "github.com/features/copilot",
45
+ "play.google.com/store/apps/details?id=com.github.android",
46
+ "youtube.com/watch?v=a9u2yZvsqHA",
47
+ "git-scm.com",
48
+ "ja.wikipedia.org/wiki/GitHub",
49
+ "youtube.com/watch?v=2SgI1kAczfk",
50
+ "es.wikipedia.org/wiki/GitHub",
51
+ "play.google.com/store/apps/details?hl=en_IN&id=com.github.android",
52
+ "desktop.github.com/download",
53
+ "github.com/github"
54
+ ]
55
+ },
56
+ {
57
+ "query": "wikipedia",
58
+ "top20": [
59
+ "wikipedia.org",
60
+ "es.wikipedia.org/wiki/Wikipedia:Portada",
61
+ "it.wikipedia.org/wiki/Pagina_principale",
62
+ "pt.wikipedia.org/wiki/Wikipédia:Página_principal",
63
+ "en.wikipedia.org/wiki/Main_Page",
64
+ "fr.wikipedia.org/wiki/Wikipédia:Accueil_principal",
65
+ "ja.wikipedia.org/wiki/メインページ",
66
+ "de.wikipedia.org/wiki/Wikipedia:Hauptseite",
67
+ "pl.wikipedia.org/wiki/Wikipedia:Strona_główna",
68
+ "vi.wikipedia.org/wiki/Trang_Chính",
69
+ "nl.wikipedia.org/wiki/Hoofdpagina",
70
+ "es.wikipedia.org",
71
+ "tr.wikipedia.org/wiki/Anasayfa",
72
+ "id.wikipedia.org/wiki/Wikipedia",
73
+ "wikipedia.nl",
74
+ "sv.wikipedia.org/wiki/Portal:Huvudsida",
75
+ "en.wikipedia.org/wiki/Wiki",
76
+ "id.wikipedia.org/wiki/Halaman_Utama",
77
+ "cs.wikipedia.org/wiki/Hlavní_strana",
78
+ "es.wikipedia.org/wiki/Wikipedia"
79
+ ]
80
+ },
81
+ {
82
+ "query": "amazon",
83
+ "top20": [
84
+ "amazon.com",
85
+ "amazon.fr",
86
+ "amazon.co.jp",
87
+ "amazon.com/amz-books/store",
88
+ "amazon.co.uk",
89
+ "amazon.com.br",
90
+ "amazon.it",
91
+ "amazon.de",
92
+ "amazon.in",
93
+ "amazon.com/gp/video/storefront",
94
+ "amazon.ca",
95
+ "amazon.com.au",
96
+ "amazon.es",
97
+ "hiring.amazon.com",
98
+ "amazon.com/-/es",
99
+ "amazon.com/amazonprime",
100
+ "en.wikipedia.org/wiki/Amazon_(company)",
101
+ "amazon.jobs",
102
+ "amazon.com.mx",
103
+ "amazon.com.be"
104
+ ]
105
+ },
106
+ {
107
+ "query": "facebook",
108
+ "top20": [
109
+ "m.facebook.com",
110
+ "facebook.com",
111
+ "facebook.com?locale=es_LA",
112
+ "facebook.com?locale=pl_PL",
113
+ "m.facebook.com/login",
114
+ "m.facebook.com/reg",
115
+ "en.wikipedia.org/wiki/Facebook",
116
+ "facebook.com?locale=it_IT",
117
+ "facebook.com?locale=fr_FR",
118
+ "facebook.com?locale=es_ES",
119
+ "facebook.com?locale=vi_VN",
120
+ "facebook.com/facebook",
121
+ "facebook.com?locale=th_TH",
122
+ "facebook.com?locale=de_DE",
123
+ "facebook.com?locale=en_GB",
124
+ "m.facebook.com/watch",
125
+ "facebook.com/marketplace",
126
+ "facebook.com?locale=ar_AR",
127
+ "facebook.com?locale=ja_JP",
128
+ "facebook.com?locale=hr_HR"
129
+ ]
130
+ },
131
+ {
132
+ "query": "gmail",
133
+ "top20": [
134
+ "mail.google.com/mail/u/0",
135
+ "google.com/gmail/about/signup_complete.html",
136
+ "workspace.google.com/intl/es-419/gmail",
137
+ "workspace.google.com/intl/it/gmail",
138
+ "workspace.google.com/intl/fr/gmail",
139
+ "workspace.google.com/intl/es/gmail",
140
+ "mail.google.com",
141
+ "support.google.com/mail/answer/56256?hl=en",
142
+ "workspace.google.com/gmail",
143
+ "google.com/gmail",
144
+ "accounts.google.com/login?hl=tr&service=mail",
145
+ "accounts.google.com/ServiceLogin?hl=es&service=mail",
146
+ "workspace.google.com/intl/es-419_mx/gmail",
147
+ "workspace.google.com/intl/de/gmail",
148
+ "accounts.google.com/v3/signin/identifier?dsh=S1812573153:1655944654029516&flowEntry=ServiceLogin&flowName=WebLiteSignIn&ifkv=AX3vH39E0iYVTmn-NoMNM_C35EPrno8LWsRx2Qhr0HApkVLZ-Zc_Vql8ouaSQOiXzEmthrpOPAV5",
149
+ "workspace.google.com/intl/pt-BR/gmail",
150
+ "accounts.google.com/ServiceLogin?hl=fr&service=mail",
151
+ "workspace.google.com/intl/pl/gmail",
152
+ "mail.google.com/mail",
153
+ "workspace.google.com/intl/ru/gmail"
154
+ ]
155
+ },
156
+ {
157
+ "query": "google maps",
158
+ "top20": [
159
+ "maps.google.com",
160
+ "google.com/maps",
161
+ "earth.google.com/web",
162
+ "accounts.google.com/login?hl=en-GB&lp=1&service=local",
163
+ "developers.google.com/maps",
164
+ "en.wikipedia.org/wiki/Google_Maps",
165
+ "maps.google.com/maps/dir",
166
+ "maps.google.com/locationhistory/b/0",
167
+ "google.com/maps/dir",
168
+ "google.com/maps/about",
169
+ "es.wikipedia.org/wiki/Google_Maps",
170
+ "youtube.com/googlemaps",
171
+ "apps.apple.com/us/app/google-maps/id585027354",
172
+ "google.com/maps/d",
173
+ "google.com/intl/en_uk/streetview",
174
+ "support.google.com/mymaps/answer/3024454?co=GENIE.Platform=Desktop&hl=en",
175
+ "play.google.com/store/apps/details?hl=en_US&id=com.google.android.apps.maps",
176
+ "blog.google/products-and-platforms/products/maps",
177
+ "blog.google/products-and-platforms/products/maps/ask-maps-immersive-navigation",
178
+ "play.google.com/store/apps/details/Google+Maps?hl=gsw&id=com.google.android.apps.maps"
179
+ ]
180
+ },
181
+ {
182
+ "query": "netflix",
183
+ "top20": [
184
+ "netflix.com/browse",
185
+ "netflix.com",
186
+ "netflix.com/br",
187
+ "netflix.com/es",
188
+ "netflix.com/mx",
189
+ "netflix.com/fr",
190
+ "netflix.com/in",
191
+ "netflix.com/co",
192
+ "netflix.com/de",
193
+ "help.netflix.com/en/node/412",
194
+ "help.netflix.com/en/node/24926",
195
+ "netflix.com/it",
196
+ "netflix.com/tr",
197
+ "netflix.com/id",
198
+ "en.wikipedia.org/wiki/Netflix",
199
+ "netflix.com/es/login",
200
+ "netflix.com/pl",
201
+ "es.wikipedia.org/wiki/Netflix",
202
+ "netflix.com/nl",
203
+ "netflix.com/pe"
204
+ ]
205
+ },
206
+ {
207
+ "query": "reddit",
208
+ "top20": [
209
+ "reddit.com",
210
+ "en.wikipedia.org/wiki/Reddit",
211
+ "reddit.com/login",
212
+ "reddit.com/r/AMA",
213
+ "reddit.com/r/AskReddit",
214
+ "reddit.com/r/popular",
215
+ "redditinc.com",
216
+ "reddit.com/r/espanol",
217
+ "x.com/Reddit",
218
+ "reddit.com/r/reddit",
219
+ "support.reddithelp.com/hc/en-us",
220
+ "reddit.com/r/IAmA",
221
+ "facebook.com/reddit",
222
+ "apps.apple.com/us/app/reddit/id1064216828",
223
+ "old.reddit.com",
224
+ "reddit.com/explore",
225
+ "play.google.com/store/apps/details?hl=en_IN&id=com.reddit.frontpage",
226
+ "play.google.com/store/apps/details?hl=en_US&id=com.reddit.frontpage",
227
+ "fr.wikipedia.org/wiki/Reddit",
228
+ "reddit.com/r/mexico/comments/17nbtz2/redit"
229
+ ]
230
+ },
231
+ {
232
+ "query": "linkedin",
233
+ "top20": [
234
+ "linkedin.com",
235
+ "in.linkedin.com",
236
+ "linkedin.com/home?originalSubdomain=in",
237
+ "fr.linkedin.com",
238
+ "au.linkedin.com",
239
+ "ca.linkedin.com",
240
+ "es.linkedin.com",
241
+ "it.linkedin.com",
242
+ "linkedin.com/home?originalSubdomain=za",
243
+ "mx.linkedin.com",
244
+ "en.wikipedia.org/wiki/LinkedIn",
245
+ "br.linkedin.com",
246
+ "tr.linkedin.com",
247
+ "linkedin.com/home?originalSubdomain=it",
248
+ "linkedin.com/login",
249
+ "linkedin.com/home?originalSubdomain=mx",
250
+ "linkedin.com/home?originalSubdomain=br",
251
+ "de.linkedin.com",
252
+ "linkedin.com/home?originalSubdomain=es",
253
+ "linkedin.com/home?originalSubdomain=fr"
254
+ ]
255
+ },
256
+ {
257
+ "query": "instagram",
258
+ "top20": [
259
+ "instagram.com?hl=en",
260
+ "instagram.com",
261
+ "en.wikipedia.org/wiki/Instagram",
262
+ "instagram.com?hl=es",
263
+ "instagram.com?hl=it",
264
+ "instagram.com/accounts/signup/phone",
265
+ "instagram.com/accounts/login",
266
+ "business.instagram.com",
267
+ "instagram.com/accounts/login?hl=en",
268
+ "instagram.com/instagram?hl=en",
269
+ "facebook.com/instagram",
270
+ "instagram.com/explore",
271
+ "instagram.com?hl=tr",
272
+ "instagram.com?hl=en-gb",
273
+ "play.google.com/store/apps/details?id=com.instagram.android",
274
+ "instagram.com?hl=pt-br",
275
+ "play.google.com/store/apps/developer?hl=en_IN&id=Instagram",
276
+ "instagram.com?hl=fr",
277
+ "de.wikipedia.org/wiki/Instagram",
278
+ "help.instagram.com/581066165581870"
279
+ ]
280
+ },
281
+ {
282
+ "query": "stack overflow",
283
+ "top20": [
284
+ "stackoverflow.com",
285
+ "stackoverflow.com/questions",
286
+ "en.wikipedia.org/wiki/Stack_Overflow",
287
+ "es.stackoverflow.com",
288
+ "reddit.com/r/computerscience/comments/1pggxcr/llms_really_killed_stackoverflow",
289
+ "youtube.com/watch?v=dsfqyVYkrbM",
290
+ "stackoverflow.com/questions/214741/what-is-a-stackoverflowerror",
291
+ "stackoverflow.com/beta/challenges",
292
+ "stackoverflow.co",
293
+ "code.quora.com/Is-a-computer-science-degree-overrated",
294
+ "es.wikipedia.org/wiki/Stack_Overflow",
295
+ "pt.stackoverflow.com",
296
+ "meta.stackoverflow.com/questions/438596/stack-overflow-is-becoming-a-ghost-town-now-what",
297
+ "stackers.com",
298
+ "stackoverflow.blog/community",
299
+ "es.wikipedia.org/wiki/Pila_de_protocolos",
300
+ "survey.stackoverflow.co",
301
+ "stackoverflow.com/users/login",
302
+ "reddit.com/r/StackedAsian",
303
+ "reddit.com/r/Stacklands"
304
+ ]
305
+ },
306
+ {
307
+ "query": "bbc news",
308
+ "top20": [
309
+ "bbc.co.uk/news",
310
+ "bbc.com/news",
311
+ "bbc.com",
312
+ "bbc.co.uk/news/uk",
313
+ "bbc.com/news/uk",
314
+ "bbc.co.uk/news/world",
315
+ "youtube.com/channel/UC16niRr50-MSBwiO3YDb3RA",
316
+ "bbc.co.uk",
317
+ "en.wikipedia.org/wiki/BBC_News",
318
+ "bbc.co.uk/news/videos/c3w2l4q7y2eo",
319
+ "bbc.com/news/world",
320
+ "bbc.co.uk/iplayer/live/bbcnews",
321
+ "instagram.com/bbcnews",
322
+ "bbc.co.uk/news/england",
323
+ "bbc.com/news/hi/english/uk",
324
+ "bbc.com/news/world/europe",
325
+ "bbc.co.uk/news/business",
326
+ "bbc.com/news/england",
327
+ "news.bbc.co.uk/2/hi/uk",
328
+ "en.wikipedia.org/wiki/BBC"
329
+ ]
330
+ },
331
+ {
332
+ "query": "new york times",
333
+ "top20": [
334
+ "nytimes.com",
335
+ "nytimes.com/international",
336
+ "en.wikipedia.org/wiki/The_New_York_Times",
337
+ "nytimes.com/section/todayspaper",
338
+ "nytimes.com/ca",
339
+ "nytco.com",
340
+ "facebook.com/nytimes",
341
+ "instagram.com/nytimes",
342
+ "m.youtube.com/@nytimes",
343
+ "nytimes.com/section/opinion",
344
+ "instagram.com/nytimes?hl=en",
345
+ "youtube.com/@nytimes",
346
+ "nytimes.com/subscription/all-access",
347
+ "nytco.com/games",
348
+ "nytimes.com/es",
349
+ "nytimes.com/section/world",
350
+ "en.wikipedia.org/wiki/The_New_York_Times_Company",
351
+ "facebook.com/nytimesstyles",
352
+ "x.com/nytimes",
353
+ "nytimes.com/issue/todaysheadlines/2020/01/03/todays-headlines"
354
+ ]
355
+ },
356
+ {
357
+ "query": "ebay",
358
+ "top20": [
359
+ "ebay.com",
360
+ "ebay.de",
361
+ "ebay.co.uk",
362
+ "ebay.it",
363
+ "en.wikipedia.org/wiki/EBay",
364
+ "signin.ebay.com/signin",
365
+ "ebay.fr",
366
+ "ebay.ca",
367
+ "ebay.com/n/all-categories",
368
+ "ebay.es",
369
+ "mx.ebay.com",
370
+ "ebay.com.au",
371
+ "co.ebay.com",
372
+ "ebay.com/b/Auto-Parts-and-Vehicles/6000/bn_1865334",
373
+ "signin.ebay.de/signin",
374
+ "ebay.com/b/Clothing-Shoes-Accessories/11450/bn_1852545",
375
+ "br.ebay.com",
376
+ "ar.ebay.com",
377
+ "cl.ebay.com",
378
+ "ebay.com/splashui/captcha"
379
+ ]
380
+ },
381
+ {
382
+ "query": "spotify",
383
+ "top20": [
384
+ "open.spotify.com",
385
+ "open.spotify.com/intl-es",
386
+ "open.spotify.com/intl-pt",
387
+ "open.spotify.com/intl-fr",
388
+ "open.spotify.com/intl-tr",
389
+ "open.spotify.com/intl-de",
390
+ "open.spotify.com/intl-it",
391
+ "open.spotify.com/intl-id",
392
+ "open.spotify.com/download",
393
+ "spotify.com/br-pt/premium",
394
+ "open.spotify.com/intl-ja",
395
+ "open.spotify.com/intl-es/artist/4i0SjpbBjUgLY2QLzYliOP",
396
+ "spotify.com/us/premium",
397
+ "accounts.spotify.com/es-ES/login",
398
+ "open.spotify.com/genre/0JQ5DAqbMKFSi39LMRT0Cy",
399
+ "spotify.com/mx/premium",
400
+ "spotify.com/es/premium",
401
+ "open.spotify.com/intl-es/artist/13Aw4kvMgRhqQQndVGx9dc",
402
+ "spotify.app.link?$fallback_url=https://www.spotify.com&$full_url=https://open.spotify.com/forever-favorites&feature=organic&product=open",
403
+ "open.spotify.com/section/0JQ5DAuChZYPe9iDhh2mJz"
404
+ ]
405
+ },
406
+ {
407
+ "query": "zoom",
408
+ "top20": [
409
+ "zoom.com",
410
+ "zoom.us/es/signin",
411
+ "zoom.com/es",
412
+ "zoom.us/ja/signin",
413
+ "app.zoom.us/wc",
414
+ "zoom.us/profile",
415
+ "zoom.us/pt/signin",
416
+ "zoom.us/myhome",
417
+ "support.zoom.com/hc/en/article?id=<PERSONAL_INFO>&sysparm_article=KB0060732",
418
+ "zoom.us/signin",
419
+ "zoom.us/vi/signin",
420
+ "support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0060732",
421
+ "support.zoom.com/hc/en",
422
+ "support.zoom.com/hc/ja/article?id=zm_kb&sysparm_article=KB0060745",
423
+ "app.zoom.us/wc/join",
424
+ "zoom.us/de/signin",
425
+ "zoom.us/id/signin",
426
+ "zoom.red",
427
+ "zoom.us/fr/signin",
428
+ "zoom.us/tr/signin"
429
+ ]
430
+ },
431
+ {
432
+ "query": "chatgpt",
433
+ "top20": [
434
+ "chatgpt.com",
435
+ "openai.com/index/chatgpt",
436
+ "chatgpt.com/auth/login",
437
+ "en.wikipedia.org/wiki/ChatGPT",
438
+ "chatgpt.com/download",
439
+ "chatgpt.com/ja-JP",
440
+ "chatgpt.com/chat",
441
+ "chatgpt.com/c",
442
+ "chatgpt.com/overview",
443
+ "openai.com",
444
+ "chatgpt.com/pricing",
445
+ "chat.openai.com/chat",
446
+ "chatgpt.com/es-419",
447
+ "openai.com/index/gpt-4",
448
+ "chatgpt.com/gpts",
449
+ "deepai.org/chat/gpt-chat",
450
+ "es.wikipedia.org/wiki/ChatGPT",
451
+ "openai.com/ja-JP",
452
+ "chatgpt.com/images",
453
+ "chatgpt.com/es-ES"
454
+ ]
455
+ },
456
+ {
457
+ "query": "hugging face",
458
+ "top20": [
459
+ "huggingface.co",
460
+ "huggingface.co/login",
461
+ "en.wikipedia.org/wiki/Hugging_Face",
462
+ "huggingface.co/spaces",
463
+ "youtube.com/watch?v=3xLTD5wSBEs",
464
+ "huggingface.co/models",
465
+ "youtube.com/watch?v=qP9mbY3wuWk",
466
+ "youtube.com/watch?v=1AUjKfpRZVo",
467
+ "huggingface.co/datasets",
468
+ "huggingface.co/docs",
469
+ "huggingface.co/chat",
470
+ "github.com/huggingface",
471
+ "avast.com/de-de/c-what-is-hugging-face",
472
+ "x.com/ai_study_dev/status/1892011282255183964",
473
+ "huggingface.co/learn",
474
+ "fr.wikipedia.org/wiki/Hugging_Face",
475
+ "huggingface.co/huggingface",
476
+ "x.com/huggingface?lang=en",
477
+ "dev.to/ajmal_hasan/using-hugging-face-models-in-google-colab-a-beginners-35ll",
478
+ "github.com/huggingface/huggingface_hub"
479
+ ]
480
+ },
481
+ {
482
+ "query": "python documentation",
483
+ "top20": [
484
+ "docs.python.org/3",
485
+ "docs.python.org/3/tutorial/index.html",
486
+ "docs.python.org",
487
+ "python.org/doc",
488
+ "python.org",
489
+ "docs.python.org/3/download.html",
490
+ "docs.python.org/3/library/index.html",
491
+ "docs.python.org/3/reference/index.html",
492
+ "python.org/doc/versions",
493
+ "w3schools.com/python/python_reference.asp",
494
+ "pythia8.web.cern.ch/manuals/pythia8317/PythonInterface.html",
495
+ "wikidocs.net/16050",
496
+ "devguide.python.org/contrib/doc",
497
+ "realpython.com/documenting-python-code",
498
+ "ja.wikipedia.org/wiki/Pygame",
499
+ "docs.python.org/3/c-api/init.html",
500
+ "numpydoc.readthedocs.io/en/latest",
501
+ "geeksforgeeks.org/python/python-docstrings",
502
+ "halvorsen.blog/documents/programming/python/resources/Python Programming.pdf",
503
+ "pyglet.readthedocs.io"
504
+ ]
505
+ },
506
+ {
507
+ "query": "arxiv",
508
+ "top20": [
509
+ "arxiv.org",
510
+ "en.wikipedia.org/wiki/ArXiv",
511
+ "info.arxiv.org/about/index.html",
512
+ "arxiv.org/login",
513
+ "arxiv.org/search",
514
+ "onlinelibrary.wiley.com/doi/full/10.1002/nha3.20209",
515
+ "reddit.com/r/PhD/comments/10k2w7f/arxiv_what_is_it",
516
+ "alphaxiv.org",
517
+ "arxiv.org/search/advanced",
518
+ "info.arxiv.org/help/submit/index.html",
519
+ "reddit.com/r/AskAcademia/comments/nx91ig/how_do_you_go_about_publishing_your_first_paper",
520
+ "info.arxiv.org/help/availability.html",
521
+ "reddit.com/r/zotero/comments/1j3xyk4/can_i_use_zotero_for_work_related_research_so_not",
522
+ "library.fun.ac.jp",
523
+ "arxiv.org/archive/math",
524
+ "math.stackexchange.com/questions/149541/how-to-cite-preprints-from-arxiv",
525
+ "jmlr.org",
526
+ "science.org/content/blog-post/pnas-read-it-or-not",
527
+ "arxiv.org/list/cs.AI/recent",
528
+ "semanticscholar.org"
529
+ ]
530
+ },
531
+ {
532
+ "query": "imdb",
533
+ "top20": [
534
+ "imdb.com",
535
+ "en.wikipedia.org/wiki/IMDb",
536
+ "imdb.com/chart/top",
537
+ "imdb.com/pt",
538
+ "imdb.com/chart/moviemeter",
539
+ "youtube.com/imdb",
540
+ "facebook.com/imdb",
541
+ "imdb.com/es",
542
+ "imdb.com/it",
543
+ "imdb.com/es-es",
544
+ "imdb.com/es-es/chart/top",
545
+ "es.wikipedia.org/wiki/Internet_Movie_Database",
546
+ "imdb.com/search",
547
+ "imdb.com/chart/toptv",
548
+ "imdb.com/interest/all",
549
+ "imdb.com/de",
550
+ "instagram.com/imdb",
551
+ "imdb.com/what-to-watch/watch-guides",
552
+ "pro.imdb.com",
553
+ "instagram.com/imdb?hl=en"
554
+ ]
555
+ },
556
+ {
557
+ "query": "booking.com",
558
+ "top20": [
559
+ "booking.com",
560
+ "en.wikipedia.org/wiki/Booking.com",
561
+ "booking.com/index.de.html",
562
+ "booking.com/index.ja.html",
563
+ "booking.com/index.en-gb.html",
564
+ "booking.com/apps.html",
565
+ "booking.com/hotel/index.html",
566
+ "booking.com/index.pl.html",
567
+ "booking.com/customer-service.html",
568
+ "booking.com/index.ru.html",
569
+ "trustpilot.com/review/www.booking.com",
570
+ "apps.apple.com/us/app/booking-com-hotels-travel/id367003839",
571
+ "booking.com/index.pt-br.html",
572
+ "booking.com/hotel/index.de.html",
573
+ "booking.com/index.fr.html",
574
+ "booking.com/index.it.html",
575
+ "reddit.com/r/travel/comments/1dpn7bg/is_bookingcom_legit",
576
+ "booking.com/index.tr.html",
577
+ "booking.com/signin.ja.html",
578
+ "booking.com/hotel/index.en-gb.html"
579
+ ]
580
+ },
581
+ {
582
+ "query": "paypal",
583
+ "top20": [
584
+ "paypal.com",
585
+ "paypal.com/de/home",
586
+ "paypal.com/us/home",
587
+ "paypal.com/fr/home",
588
+ "paypal.com/es/home",
589
+ "paypal.com/uk/signin",
590
+ "paypal.com/uk/home",
591
+ "paypal.com/mx/home",
592
+ "paypal.com/jp/home",
593
+ "paypal.com/it/home",
594
+ "paypal.com/ca/home",
595
+ "en.wikipedia.org/wiki/PayPal",
596
+ "paypal.com/myaccount/summary",
597
+ "paypal.com/us/signin",
598
+ "paypal.com/br/home",
599
+ "paypal.com/co/home",
600
+ "paypal.com/pe/home",
601
+ "paypal.com/mep/dashboard",
602
+ "paypal.com/signin",
603
+ "paypal.com/in/home"
604
+ ]
605
+ },
606
+ {
607
+ "query": "apple support",
608
+ "top20": [
609
+ "support.apple.com",
610
+ "support.apple.com/contact",
611
+ "support.apple.com/en-in",
612
+ "support.apple.com/en-ca",
613
+ "apps.apple.com/us/app/apple-support/id1130498044",
614
+ "support.apple.com/en-au",
615
+ "support.apple.com/iphone",
616
+ "support.apple.com/en-ca/contact",
617
+ "support.apple.com/en-gb/contact",
618
+ "support.apple.com/en-us/106932",
619
+ "support.apple.com/en-gb",
620
+ "support.apple.com/en-lamr/contact",
621
+ "support.apple.com/es-es",
622
+ "support.apple.com/de-de",
623
+ "support.apple.com/en-au/contact",
624
+ "ecommerce.apple.com/content/b2b/static/en/us/edu-hied/contact_internal.html",
625
+ "support.apple.com/es-mx",
626
+ "support.apple.com/en-kg/contact",
627
+ "support.apple.com/nl-nl",
628
+ "support.apple.com/es-co"
629
+ ]
630
+ },
631
+ {
632
+ "query": "nasa",
633
+ "top20": [
634
+ "nasa.gov",
635
+ "nasa.gov/es",
636
+ "plus.nasa.gov",
637
+ "nasa.gov/images",
638
+ "nasa.gov/live",
639
+ "spaceplace.nasa.gov",
640
+ "science.nasa.gov",
641
+ "x.com/NASA",
642
+ "nasa.gov/humans-in-space/artemis",
643
+ "en.wikipedia.org/wiki/NASA",
644
+ "de.wikipedia.org/wiki/NASA",
645
+ "instagram.com/l_spaceprogram",
646
+ "science.nasa.gov/mission/webb",
647
+ "naasasecurities.com.np",
648
+ "facebook.com/NASAJSC",
649
+ "youtube.com/NASA",
650
+ "translate.google.com/translate?client=srp&hl=es&sl=en&tl=es&u=https://www.nasa.gov/",
651
+ "apod.nasa.gov/apod/astropix.html",
652
+ "en.wikipedia.org/wiki/Jet_Propulsion_Laboratory",
653
+ "nasa.gov/learning-resources"
654
+ ]
655
+ },
656
+ {
657
+ "query": "whatsapp web",
658
+ "top20": [
659
+ "web.whatsapp.com",
660
+ "faq.whatsapp.com/668538004658079",
661
+ "wa.me",
662
+ "blog.whatsapp.com/whats-app-web",
663
+ "whato.app/blog/whatsapp-web-en-mi-celular-como-abrirlo-paso-a-paso",
664
+ "whatsapp.com",
665
+ "api.whatsapp.com",
666
+ "blog.whatsapp.com/whats-app-web?lang=da",
667
+ "whatsapp.com?lang=es",
668
+ "whatsapp.com/download/desktop",
669
+ "whatsapp.com/download/desktop?lang=es",
670
+ "whatsapp.com/download",
671
+ "youtube.com/watch?v=0IhBi9FBFFw",
672
+ "youtube.com/watch?v=sos6k5WWgEQ",
673
+ "blog.whatsapp.com/whats-app-web?lang=it",
674
+ "whatsapp.com/download?lang=es",
675
+ "whatsapp-web.softonic.com/aplicaciones-web",
676
+ "whatsapp.com/download?lang=pt",
677
+ "whatsapp.com?lang=tr",
678
+ "facebook.com/login.php?next=https://web.whatsapp.com"
679
+ ]
680
+ },
681
+ {
682
+ "query": "百度",
683
+ "top20": [
684
+ "baidu.com",
685
+ "wuu.wikipedia.org/wiki/百度",
686
+ "zh-classical.wikipedia.org/wiki/百度",
687
+ "zh.wikipedia.org/zh-tw/靚足100分",
688
+ "xbox.m.baidu.com",
689
+ "zh.wikipedia.org/wiki/百度",
690
+ "map.baidu.com",
691
+ "facebook.com/help/259468828226154?locale=zh_CN",
692
+ "passport.baidu.com/v2",
693
+ "baidu.com/s",
694
+ "ai.baidu.com",
695
+ "pan.baidu.com/disk/main",
696
+ "m.baidu.com",
697
+ "facebook.com/BaiduIncOfficial",
698
+ "xueshu.baidu.com",
699
+ "facebook.com/search/top?q=王俊傑",
700
+ "play.google.com/store/apps?hl=zh",
701
+ "baike.baidu.com/item/100年润发/14822502",
702
+ "news.baidu.com",
703
+ "facebook.com/baibai0810"
704
+ ]
705
+ },
706
+ {
707
+ "query": "yahoo japan",
708
+ "top20": [
709
+ "yahoo.co.jp",
710
+ "play.google.com/store/apps/dev?hl=ja&id=9059031076674808747",
711
+ "news.yahoo.co.jp",
712
+ "sports.yahoo.co.jp",
713
+ "play.google.com/store/apps/details?hl=ja&id=jp.co.yahoo.android.yjtop",
714
+ "shopping.yahoo.co.jp",
715
+ "play.google.com/store/apps/details?id=jp.co.yahoo.android.yjtop",
716
+ "apps.apple.com/jp/app/yahoo-japan/id299147843",
717
+ "m.yahoo.co.jp/tools",
718
+ "ja.wikipedia.org/wiki/Yahoo!_JAPAN",
719
+ "facebook.com/yahoojapan",
720
+ "apps.apple.com/jp/app/yahoo-乗換案内/id291676451",
721
+ "search.yahoo.co.jp",
722
+ "youtube.com/@YahooJAPANPR",
723
+ "finance.yahoo.co.jp",
724
+ "support.yahoo-net.jp/PccLogin/s",
725
+ "services.yahoo.co.jp",
726
+ "play.google.com/store/apps/details?hl=ja&id=jp.co.yahoo.android.finance",
727
+ "en.wikipedia.org/wiki/Yahoo_Japan",
728
+ "mail.yahoo.co.jp/promo"
729
+ ]
730
+ },
731
+ {
732
+ "query": "mercado libre",
733
+ "top20": [
734
+ "mercadolibre.com.ar",
735
+ "mercadolibre.com.mx",
736
+ "mercadolibre.com.co",
737
+ "mercadolibre.com.pe",
738
+ "mercadolibre.com.ve",
739
+ "es.wikipedia.org/wiki/MercadoLibre",
740
+ "mercadolibre.cl",
741
+ "mercadolibre.com.mx/ofertas",
742
+ "es.wikipedia.org/wiki/Mercado_Libre",
743
+ "mercadolibre.com.uy",
744
+ "instagram.com/mercadolibre.arg?hl=es-la",
745
+ "mercadolibre.com.ec",
746
+ "instagram.com/mercadolibre.mex?hl=es",
747
+ "careers-meli.mercadolibre.com",
748
+ "mercadolibre.com.ar/l/emprendedores",
749
+ "mercadolibre.com",
750
+ "listado.mercadolibre.com.mx/tepotzotlan",
751
+ "en.wikipedia.org/wiki/MercadoLibre",
752
+ "mercadolibre.com.ar/c/autos-motos-y-otros",
753
+ "facebook.com/mex.mercadolibre?locale=es_LA"
754
+ ]
755
+ },
756
+ {
757
+ "query": "boeing internship",
758
+ "top20": [
759
+ "jobs.boeing.com/internships",
760
+ "jobs.boeing.com/finance-internships",
761
+ "au.prosple.com/graduate-employers/boeing-australia/jobs-internships",
762
+ "jobs.boeing.com/software-engineering-internships",
763
+ "jobs.boeing.com/employment/australia-internship-jobs/185-18469/9287/2077456/2",
764
+ "jobs.boeing.com/category/internship-jobs/185/9287/1",
765
+ "boehringer-ingelheim.com/us/careers/discover-our-career-areas/summer-internship-program",
766
+ "reddit.com/r/boeing/comments/1rv3udi/applied_to_boeing_summer_2026_internship_still",
767
+ "careers.bankofamerica.com/en-us/students/programs/sustainable-finance-research",
768
+ "reddit.com/r/boeing/comments/1cvdzmj/advice_on_getting_an_internship",
769
+ "jobs.boeing.com/entry-level",
770
+ "reddit.com/r/boeing/comments/1kmvgq3/maximizing_chance_to_obtain_a_fulltime_offer",
771
+ "aci.aero/wp-content/uploads/2022/04/Aiport-Internship-Summer-2022-Job-Announcement_Final.pdf",
772
+ "au.prosple.com/graduate-employers/boeing-australia/jobs-internships/engineering-university-summer-internship-2",
773
+ "jobs.boeing.com/BTAP",
774
+ "jobs.boeing.com/location/india-country-jobs/185/1269750/2",
775
+ "search-careers.gm.com/en/gm-apprenticeship-program",
776
+ "extern.com/post/boeing-internship-guide",
777
+ "boq.com.au/about-us/careers/internship-program",
778
+ "jobs.baesystems.com/global/en/studentsandgraduates"
779
+ ]
780
+ }
781
+ ]
782
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|endoftext|>",
233
+ "errors": "replace",
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "split_special_tokens": false,
237
+ "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null
239
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff