Kindred1000 commited on
Commit
7284b34
·
verified ·
1 Parent(s): 4639a15

Initial release: PepperOCR-VL weights, model card, prompt, orientation tool, MDPBench results

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ orientation/model/inference.pdiparams filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+
621
+ How to Apply These Terms to Your New Programs
622
+
623
+ If you develop a new program, and you want it to be of the greatest
624
+ possible use to the public, the best way to achieve this is to make it
625
+ free software which everyone can redistribute and change under these terms.
626
+
627
+ To do so, attach the following notices to the program. It is safest
628
+ to attach them to the start of each source file to most effectively
629
+ state the exclusion of warranty; and each file should have at least
630
+ the "copyright" line and a pointer to where the full notice is found.
631
+
632
+ <one line to give the program's name and a brief idea of what it does.>
633
+ Copyright (C) <year> <name of author>
634
+
635
+ This program is free software: you can redistribute it and/or modify
636
+ it under the terms of the GNU Affero General Public License as published by
637
+ the Free Software Foundation, either version 3 of the License, or
638
+ (at your option) any later version.
639
+
640
+ This program is distributed in the hope that it will be useful,
641
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
642
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
+ GNU Affero General Public License for more details.
644
+
645
+ You should have received a copy of the GNU Affero General Public License
646
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
647
+
648
+ Also add information on how to contact you by electronic and paper mail.
649
+
650
+ If your software can interact with users remotely through a computer
651
+ network, you should also make sure that it provides a way for users to
652
+ get its source. For example, if your program is a web application, its
653
+ interface could display a "Source" link that leads users to an archive
654
+ of the code. There are many ways you could offer source, and different
655
+ solutions will be better for different programs; see section 13 for the
656
+ specific requirements.
657
+
658
+ You should also get your employer (if you work as a programmer) or school,
659
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
660
+ For more information on this, and how to apply and follow the GNU AGPL, see
661
+ <https://www.gnu.org/licenses/>.
NOTICE ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PepperOCR-VL
2
+ Copyright 2026 Sionic AI Inc.
3
+
4
+ PepperOCR-VL is released under the GNU Affero General Public License v3.0 (see LICENSE).
5
+
6
+ This model is a fine-tune of Qwen3.5-4B (https://huggingface.co/Qwen/Qwen3.5-4B),
7
+ Copyright 2026 Alibaba Cloud, licensed under the Apache License, Version 2.0.
8
+ The Apache License 2.0 notice of the base model is preserved by this file.
9
+
10
+ The optional document-orientation classifier in orientation/ is PP-LCNet_x1_0_doc_ori
11
+ from PaddleOCR (https://github.com/PaddlePaddle/PaddleOCR), Copyright PaddlePaddle
12
+ Authors, licensed under the Apache License, Version 2.0.
13
+
14
+ Benchmark numbers are reported on MDPBench (https://github.com/Yuliang-Liu/MultimodalOCR,
15
+ MDPBench directory).
README.md ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: agpl-3.0
3
+ base_model: Qwen/Qwen3.5-4B
4
+ base_model_relation: finetune
5
+ pipeline_tag: image-text-to-text
6
+ library_name: transformers
7
+ tags:
8
+ - ocr
9
+ - document-parsing
10
+ - document-understanding
11
+ - markdown
12
+ - latex
13
+ - table-recognition
14
+ - multilingual
15
+ - vllm
16
+ - qwen3_5
17
+ language:
18
+ - en
19
+ - de
20
+ - es
21
+ - fr
22
+ - id
23
+ - it
24
+ - nl
25
+ - pt
26
+ - vi
27
+ - ar
28
+ - hi
29
+ - ja
30
+ - ko
31
+ - ru
32
+ - th
33
+ - zh
34
+ ---
35
+
36
+ # PepperOCR-VL
37
+
38
+ PepperOCR-VL turns a page image into clean Markdown. Point it at a scanned or
39
+ photographed document, an invoice, a paper, a textbook page or a slide, and it
40
+ returns the text in reading order with headings, lists, tables and formulas
41
+ preserved. It is a 4.5B-parameter vision-language model fine-tuned from
42
+ [Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) for 17 languages across
43
+ Latin and non-Latin scripts, with particular strength in Korean and Thai.
44
+
45
+ ## What it outputs
46
+
47
+ One page image in, one Markdown document out:
48
+
49
+ - **Text and layout**: headings (`#`), paragraphs, bullet and numbered lists,
50
+ in the original language and reading order. No translation, no summarizing,
51
+ no spelling correction.
52
+ - **Tables**: HTML `<table>` blocks with `rowspan`/`colspan`, which survive
53
+ merged cells better than Markdown pipe tables.
54
+ - **Mathematics**: LaTeX, `$x$` for inline formulas and `$$x$$` for display
55
+ formulas.
56
+ - Nothing else: no preamble, no explanation, just the transcription.
57
+
58
+ ## Prompt format
59
+
60
+ The model is trained to respond to a single user turn that contains the page
61
+ image followed by this instruction. Use it verbatim (also in
62
+ `prompt.txt`):
63
+
64
+ ```text
65
+ You are an advanced hybrid OCR engine capable of processing multilingual text mixed with mathematical notation. Your goal is to transcribe the content with high fidelity.Strict Rules: 1. Multilingual Precision: Transcribe text exactly as it appears in the original language. Do not translate, summarize, or correct original spelling errors. 2. Math Formatting: Identify all mathematical expressions and convert them into LaTeX. 3. Use single dollar signs ($x$) for inline math (formulas within a sentence). 4. Use double dollar signs ($$x$$) for display math (standalone formulas on their own lines). 5. Layout & Structure: Use Markdown to preserve the visual structure (headers, paragraphs, lists). 6. Output Only: Output the transcribed text directly without any conversational filler.
66
+ ```
67
+
68
+ Message layout:
69
+
70
+ ```json
71
+ {"role": "user", "content": [
72
+ {"type": "image", "image": "<page image>"},
73
+ {"type": "text", "text": "<the prompt above>"}
74
+ ]}
75
+ ```
76
+
77
+ Keep thinking mode off (`enable_thinking: false`); the model was tuned and
78
+ evaluated without it. Decode greedily (`temperature 0`) with a mild
79
+ `repetition_penalty` of 1.05 and `no_repeat_ngram_size` 30, and allow up to
80
+ 8192 new tokens for dense pages.
81
+
82
+ ## Quickstart
83
+
84
+ ### vLLM
85
+
86
+ ```bash
87
+ vllm serve sionic-ai/PepperOCR-VL --served-model-name pepperocr-vl --max-model-len 32768
88
+ ```
89
+
90
+ ```python
91
+ import base64, pathlib
92
+ from openai import OpenAI
93
+
94
+ client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
95
+ prompt = pathlib.Path("prompt.txt").read_text()
96
+ image = base64.b64encode(pathlib.Path("page.jpg").read_bytes()).decode()
97
+
98
+ response = client.chat.completions.create(
99
+ model="pepperocr-vl",
100
+ messages=[{"role": "user", "content": [
101
+ {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{image}"}},
102
+ {"type": "text", "text": prompt},
103
+ ]}],
104
+ temperature=0.0,
105
+ max_tokens=8192,
106
+ extra_body={
107
+ "repetition_penalty": 1.05,
108
+ "no_repeat_ngram_size": 30,
109
+ "chat_template_kwargs": {"enable_thinking": False},
110
+ },
111
+ )
112
+ print(response.choices[0].message.content)
113
+ ```
114
+
115
+ ### Transformers
116
+
117
+ ```python
118
+ import torch
119
+ from PIL import Image
120
+ from transformers import AutoModelForImageTextToText, AutoProcessor
121
+
122
+ model_id = "sionic-ai/PepperOCR-VL"
123
+ processor = AutoProcessor.from_pretrained(model_id)
124
+ model = AutoModelForImageTextToText.from_pretrained(
125
+ model_id, dtype=torch.bfloat16, device_map="cuda"
126
+ )
127
+
128
+ prompt = open("prompt.txt").read()
129
+ messages = [{"role": "user", "content": [
130
+ {"type": "image", "image": Image.open("page.jpg")},
131
+ {"type": "text", "text": prompt},
132
+ ]}]
133
+ inputs = processor.apply_chat_template(
134
+ messages, add_generation_prompt=True, tokenize=True,
135
+ return_dict=True, return_tensors="pt", enable_thinking=False,
136
+ ).to(model.device)
137
+
138
+ out = model.generate(
139
+ **inputs, max_new_tokens=8192, do_sample=False,
140
+ repetition_penalty=1.05, no_repeat_ngram_size=30,
141
+ )
142
+ print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
143
+ ```
144
+
145
+ Requirements: `transformers >= 5.10` or `vllm >= 0.24`, a GPU with 24 GB or
146
+ more for bf16. PDFs must be rasterized to page images first (around 150 to
147
+ 200 DPI works well).
148
+
149
+ ## Tips
150
+
151
+ - **Rotated photos.** The model expects upright pages. If your inputs may be
152
+ rotated, run an orientation check first. `orientation/` contains the small
153
+ CPU classifier (PP-LCNet_x1_0_doc_ori, 6.6 MB) and the script we use: rotate
154
+ only when the predicted angle has confidence 0.85 or higher.
155
+ - **Runaway output.** On rare pages with dense repeated structure the model can
156
+ keep generating until the token limit. If the output hits `max_tokens`,
157
+ regenerate with a slightly higher temperature (0.1 to 0.8) and keep the
158
+ shorter result.
159
+ - **Throughput.** One vLLM server per GPU with `--max-num-seqs 64` and 64
160
+ concurrent requests processes about 1.3 pages per second per GPU on
161
+ 80 GB-class hardware.
162
+
163
+ ## Model details
164
+
165
+ | | |
166
+ |---|---|
167
+ | Architecture | `Qwen3_5ForConditionalGeneration` |
168
+ | Parameters | 4.54 B |
169
+ | Weights | bf16 safetensors, 2 shards, 9.08 GB |
170
+ | Text decoder | 32 layers, hidden size 2560, vocabulary 248,320, context 262,144 |
171
+ | Vision encoder | 24 layers, patch 16, spatial merge 2 |
172
+ | Languages | de, en, es, fr, id, it, nl, pt, vi, ar, hi, ja, ko, ru, th, zh (Simplified and Traditional) |
173
+ | License | AGPL-3.0 (see `LICENSE`, `NOTICE`) |
174
+
175
+ ## Benchmark
176
+
177
+ Official [MDPBench](https://github.com/Yuliang-Liu/MultimodalOCR/tree/main/MDPBench)
178
+ re-evaluation by the benchmark team (public set 2,720 pages, 17 languages,
179
+ digital-born and photographed):
180
+
181
+ | | Score |
182
+ |---|---|
183
+ | Public set, overall | 82.3 |
184
+ | Digital-born / Photographed | 87.3 / 80.7 |
185
+ | Private set, overall | 85.7 |
186
+ | Korean / Thai | 92.6 / 83.3 |
187
+
188
+ Per-language scores and the evaluation conditions are in
189
+ `eval_results/mdpbench.md`.
190
+
191
+ ## Limitations
192
+
193
+ - Arabic, Japanese and French are the weakest of the supported languages.
194
+ - Tables come out as HTML, not Markdown pipe tables.
195
+ - One page per request; no multi-page or PDF input.
196
+ - Handwriting, very low-resolution scans and non-document photographs were not
197
+ part of training or evaluation targets.
198
+
199
+ ## License
200
+
201
+ The weights and the files in this repository are released under the GNU Affero
202
+ General Public License v3.0 (`LICENSE`). You may use, modify and redistribute
203
+ them, including in networked services, provided the complete corresponding
204
+ source of your service is made available under the same license. For use under
205
+ different terms, including closed commercial deployment, contact Sionic AI.
206
+
207
+ PepperOCR-VL is a fine-tune of Qwen3.5-4B (Apache-2.0, Alibaba Cloud); the
208
+ optional orientation classifier is PP-LCNet_x1_0_doc_ori from PaddleOCR
209
+ (Apache-2.0). Their notices are preserved in `NOTICE`.
210
+
211
+ ## About
212
+
213
+ Built by [Sionic AI](https://sionic.ai). <!-- TODO: one line about the company and, if applicable, the hosted or larger PepperOCR offering with a link -->
214
+
215
+ ## Citation
216
+
217
+ ```bibtex
218
+ @misc{pepperocr-vl-2026,
219
+ title = {PepperOCR-VL: Multilingual End-to-End Document Parsing},
220
+ author = {Sionic AI},
221
+ year = {2026},
222
+ howpublished = {\url{https://huggingface.co/sionic-ai/PepperOCR-VL}}
223
+ }
224
+ ```
chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "eos_token_id": 248046,
7
+ "hidden_size": 2560,
8
+ "image_token_id": 248056,
9
+ "model_type": "qwen3_5",
10
+ "pad_token_id": 248044,
11
+ "text_config": {
12
+ "attention_bias": false,
13
+ "attention_dropout": 0.0,
14
+ "attn_output_gate": true,
15
+ "bos_token_id": null,
16
+ "dtype": "bfloat16",
17
+ "eos_token_id": 248044,
18
+ "full_attention_interval": 4,
19
+ "head_dim": 256,
20
+ "hidden_act": "silu",
21
+ "hidden_size": 2560,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 9216,
24
+ "layer_types": [
25
+ "linear_attention",
26
+ "linear_attention",
27
+ "linear_attention",
28
+ "full_attention",
29
+ "linear_attention",
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "full_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "full_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "full_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "full_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "full_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "full_attention",
53
+ "linear_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "full_attention"
57
+ ],
58
+ "linear_conv_kernel_dim": 4,
59
+ "linear_key_head_dim": 128,
60
+ "linear_num_key_heads": 16,
61
+ "linear_num_value_heads": 32,
62
+ "linear_value_head_dim": 128,
63
+ "mamba_ssm_dtype": "float32",
64
+ "max_position_embeddings": 262144,
65
+ "mlp_only_layers": [],
66
+ "model_type": "qwen3_5_text",
67
+ "mtp_num_hidden_layers": 1,
68
+ "mtp_use_dedicated_embeddings": false,
69
+ "num_attention_heads": 16,
70
+ "num_hidden_layers": 32,
71
+ "num_key_value_heads": 4,
72
+ "pad_token_id": 248044,
73
+ "partial_rotary_factor": 0.25,
74
+ "rms_norm_eps": 1e-06,
75
+ "rope_parameters": {
76
+ "mrope_interleaved": true,
77
+ "mrope_section": [
78
+ 11,
79
+ 11,
80
+ 10
81
+ ],
82
+ "partial_rotary_factor": 0.25,
83
+ "rope_theta": 10000000,
84
+ "rope_type": "default"
85
+ },
86
+ "tie_word_embeddings": true,
87
+ "use_cache": false,
88
+ "vocab_size": 248320
89
+ },
90
+ "tie_word_embeddings": true,
91
+ "transformers_version": "5.10.2",
92
+ "use_cache": false,
93
+ "video_token_id": 248057,
94
+ "vision_config": {
95
+ "deepstack_visual_indexes": [],
96
+ "depth": 24,
97
+ "dtype": "bfloat16",
98
+ "hidden_act": "gelu_pytorch_tanh",
99
+ "hidden_size": 1024,
100
+ "in_channels": 3,
101
+ "initializer_range": 0.02,
102
+ "intermediate_size": 4096,
103
+ "model_type": "qwen3_5_vision",
104
+ "num_heads": 16,
105
+ "num_position_embeddings": 2304,
106
+ "out_hidden_size": 2560,
107
+ "patch_size": 16,
108
+ "spatial_merge_size": 2,
109
+ "temporal_patch_size": 2
110
+ },
111
+ "vision_end_token_id": 248054,
112
+ "vision_start_token_id": 248053
113
+ }
eval_results/mdpbench.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MDPBench results
2
+
3
+ Official re-evaluation by the MDPBench team (received 2026-10-04) on the public
4
+ set (2,720 pages, 17 languages) and the private set, using the offline Docker
5
+ runtime we supplied (vLLM 0.24.0, bf16 weights, prompt and settings as on the
6
+ model card).
7
+
8
+ ## Public set
9
+
10
+ | Metric | Score |
11
+ |---|---|
12
+ | Overall | 82.3 |
13
+ | Digital-born | 87.3 |
14
+ | Photographed | 80.7 |
15
+ | Latin languages (avg.) | 85.3 |
16
+ | Non-Latin languages (avg.) | 78.9 |
17
+
18
+ | Language | Score | Language | Score |
19
+ |---|---|---|---|
20
+ | German | 86.5 | Arabic | 59.9 |
21
+ | English | 85.2 | Hindi | 74.7 |
22
+ | Spanish | 81.0 | Japanese | 71.3 |
23
+ | French | 73.6 | Korean | 92.6 |
24
+ | Indonesian | 84.6 | Russian | 83.8 |
25
+ | Italian | 91.2 | Thai | 83.3 |
26
+ | Dutch | 90.3 | Simplified Chinese | 84.9 |
27
+ | Portuguese | 90.5 | Traditional Chinese | 80.5 |
28
+ | Vietnamese | 84.8 | | |
29
+
30
+ ## Private set
31
+
32
+ Overall: **85.7**
33
+
34
+ ## Evaluation conditions
35
+
36
+ - Inference: bf16 weights, vLLM 0.24.0, greedy decoding (temperature 0,
37
+ repetition_penalty 1.05, no_repeat_ngram_size 30, max_tokens 8192), thinking
38
+ disabled, prompt as in `../prompt.txt`.
39
+ - Preprocessing: PP-LCNet_x1_0_doc_ori orientation classification on CPU
40
+ (`../orientation/`); pages rotated only when confidence >= 0.85 (401 of the
41
+ 2,720 public pages).
42
+ - Degenerate-output retry: a page whose output ends with `finish_reason=length`
43
+ or compresses below a gzip ratio of 0.18 is regenerated at temperature 0.1,
44
+ 0.3, 0.5, 0.8 and the shortest non-degenerate output is kept.
45
+ - Scoring: official MDPBench evaluator (commit `cbf4b64`), `end2end` config
46
+ with `quick_match`.
47
+ - Our own run of the same package reproduced the public overall score (82.3).
48
+ Inference is not bit-for-bit deterministic across runs or GPU models;
49
+ repeated runs land within a few tenths of a point. The full reproduction
50
+ package (Docker image, runner, logs) is available on request.
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [
4
+ 248044,
5
+ 248046
6
+ ],
7
+ "transformers_version": "5.10.2",
8
+ "use_cache": true
9
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60d3079899ac302294303f2f0d7082cbda1ab9703609ec2a2d7a0e1ae1ab4995
3
+ size 4972947968
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e5ff1b7b5a44a28a0875be46d382d391d6aa1b977d5258b3ccb318b17d9a349
3
+ size 4105672464
model.safetensors.index.json ADDED
@@ -0,0 +1,731 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 4539265536,
4
+ "total_size": 9078531072
5
+ },
6
+ "weight_map": {
7
+ "model.language_model.embed_tokens.weight": "model-00001-of-00002.safetensors",
8
+ "model.language_model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
9
+ "model.language_model.layers.0.linear_attn.A_log": "model-00001-of-00002.safetensors",
10
+ "model.language_model.layers.0.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
11
+ "model.language_model.layers.0.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
12
+ "model.language_model.layers.0.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
13
+ "model.language_model.layers.0.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
14
+ "model.language_model.layers.0.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
15
+ "model.language_model.layers.0.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
16
+ "model.language_model.layers.0.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
17
+ "model.language_model.layers.0.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
18
+ "model.language_model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.language_model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
20
+ "model.language_model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
21
+ "model.language_model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
22
+ "model.language_model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
23
+ "model.language_model.layers.1.linear_attn.A_log": "model-00001-of-00002.safetensors",
24
+ "model.language_model.layers.1.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
25
+ "model.language_model.layers.1.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
26
+ "model.language_model.layers.1.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
27
+ "model.language_model.layers.1.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
28
+ "model.language_model.layers.1.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
29
+ "model.language_model.layers.1.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
30
+ "model.language_model.layers.1.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
31
+ "model.language_model.layers.1.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
32
+ "model.language_model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
33
+ "model.language_model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.language_model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
35
+ "model.language_model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
36
+ "model.language_model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
37
+ "model.language_model.layers.10.linear_attn.A_log": "model-00001-of-00002.safetensors",
38
+ "model.language_model.layers.10.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
39
+ "model.language_model.layers.10.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
40
+ "model.language_model.layers.10.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
41
+ "model.language_model.layers.10.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
42
+ "model.language_model.layers.10.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
43
+ "model.language_model.layers.10.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
44
+ "model.language_model.layers.10.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
45
+ "model.language_model.layers.10.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
46
+ "model.language_model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
47
+ "model.language_model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
48
+ "model.language_model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
49
+ "model.language_model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
50
+ "model.language_model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
51
+ "model.language_model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
52
+ "model.language_model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
53
+ "model.language_model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
54
+ "model.language_model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
55
+ "model.language_model.layers.11.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
56
+ "model.language_model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
57
+ "model.language_model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
58
+ "model.language_model.layers.11.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
59
+ "model.language_model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
60
+ "model.language_model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
61
+ "model.language_model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
62
+ "model.language_model.layers.12.linear_attn.A_log": "model-00001-of-00002.safetensors",
63
+ "model.language_model.layers.12.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
64
+ "model.language_model.layers.12.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
65
+ "model.language_model.layers.12.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
66
+ "model.language_model.layers.12.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
67
+ "model.language_model.layers.12.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
68
+ "model.language_model.layers.12.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
69
+ "model.language_model.layers.12.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
70
+ "model.language_model.layers.12.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
71
+ "model.language_model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
72
+ "model.language_model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
73
+ "model.language_model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
74
+ "model.language_model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
75
+ "model.language_model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
76
+ "model.language_model.layers.13.linear_attn.A_log": "model-00001-of-00002.safetensors",
77
+ "model.language_model.layers.13.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
78
+ "model.language_model.layers.13.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
79
+ "model.language_model.layers.13.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
80
+ "model.language_model.layers.13.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
81
+ "model.language_model.layers.13.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
82
+ "model.language_model.layers.13.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
83
+ "model.language_model.layers.13.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
84
+ "model.language_model.layers.13.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
85
+ "model.language_model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
86
+ "model.language_model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
87
+ "model.language_model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
88
+ "model.language_model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
89
+ "model.language_model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
90
+ "model.language_model.layers.14.linear_attn.A_log": "model-00001-of-00002.safetensors",
91
+ "model.language_model.layers.14.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
92
+ "model.language_model.layers.14.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
93
+ "model.language_model.layers.14.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
94
+ "model.language_model.layers.14.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
95
+ "model.language_model.layers.14.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
96
+ "model.language_model.layers.14.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
97
+ "model.language_model.layers.14.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
98
+ "model.language_model.layers.14.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
99
+ "model.language_model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
100
+ "model.language_model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
101
+ "model.language_model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
102
+ "model.language_model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
103
+ "model.language_model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
104
+ "model.language_model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
105
+ "model.language_model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
106
+ "model.language_model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
107
+ "model.language_model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
108
+ "model.language_model.layers.15.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
109
+ "model.language_model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
110
+ "model.language_model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
111
+ "model.language_model.layers.15.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
112
+ "model.language_model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
113
+ "model.language_model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
114
+ "model.language_model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
115
+ "model.language_model.layers.16.linear_attn.A_log": "model-00001-of-00002.safetensors",
116
+ "model.language_model.layers.16.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
117
+ "model.language_model.layers.16.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
118
+ "model.language_model.layers.16.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
119
+ "model.language_model.layers.16.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
120
+ "model.language_model.layers.16.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
121
+ "model.language_model.layers.16.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
122
+ "model.language_model.layers.16.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
123
+ "model.language_model.layers.16.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
124
+ "model.language_model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
125
+ "model.language_model.layers.16.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
126
+ "model.language_model.layers.16.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
127
+ "model.language_model.layers.16.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
128
+ "model.language_model.layers.17.input_layernorm.weight": "model-00002-of-00002.safetensors",
129
+ "model.language_model.layers.17.linear_attn.A_log": "model-00002-of-00002.safetensors",
130
+ "model.language_model.layers.17.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
131
+ "model.language_model.layers.17.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
132
+ "model.language_model.layers.17.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
133
+ "model.language_model.layers.17.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
134
+ "model.language_model.layers.17.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
135
+ "model.language_model.layers.17.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
136
+ "model.language_model.layers.17.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
137
+ "model.language_model.layers.17.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
138
+ "model.language_model.layers.17.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
139
+ "model.language_model.layers.17.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
140
+ "model.language_model.layers.17.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
141
+ "model.language_model.layers.17.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
142
+ "model.language_model.layers.18.input_layernorm.weight": "model-00002-of-00002.safetensors",
143
+ "model.language_model.layers.18.linear_attn.A_log": "model-00002-of-00002.safetensors",
144
+ "model.language_model.layers.18.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
145
+ "model.language_model.layers.18.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
146
+ "model.language_model.layers.18.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
147
+ "model.language_model.layers.18.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
148
+ "model.language_model.layers.18.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
149
+ "model.language_model.layers.18.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
150
+ "model.language_model.layers.18.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
151
+ "model.language_model.layers.18.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
152
+ "model.language_model.layers.18.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
153
+ "model.language_model.layers.18.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
154
+ "model.language_model.layers.18.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
155
+ "model.language_model.layers.18.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
156
+ "model.language_model.layers.19.input_layernorm.weight": "model-00002-of-00002.safetensors",
157
+ "model.language_model.layers.19.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
158
+ "model.language_model.layers.19.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
159
+ "model.language_model.layers.19.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
160
+ "model.language_model.layers.19.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
161
+ "model.language_model.layers.19.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
162
+ "model.language_model.layers.19.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
163
+ "model.language_model.layers.19.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
164
+ "model.language_model.layers.19.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
165
+ "model.language_model.layers.19.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
166
+ "model.language_model.layers.19.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
167
+ "model.language_model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
168
+ "model.language_model.layers.2.linear_attn.A_log": "model-00001-of-00002.safetensors",
169
+ "model.language_model.layers.2.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
170
+ "model.language_model.layers.2.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
171
+ "model.language_model.layers.2.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
172
+ "model.language_model.layers.2.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
173
+ "model.language_model.layers.2.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
174
+ "model.language_model.layers.2.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
175
+ "model.language_model.layers.2.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
176
+ "model.language_model.layers.2.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
177
+ "model.language_model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
178
+ "model.language_model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
179
+ "model.language_model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
180
+ "model.language_model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
181
+ "model.language_model.layers.20.input_layernorm.weight": "model-00002-of-00002.safetensors",
182
+ "model.language_model.layers.20.linear_attn.A_log": "model-00002-of-00002.safetensors",
183
+ "model.language_model.layers.20.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
184
+ "model.language_model.layers.20.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
185
+ "model.language_model.layers.20.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
186
+ "model.language_model.layers.20.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
187
+ "model.language_model.layers.20.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
188
+ "model.language_model.layers.20.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
189
+ "model.language_model.layers.20.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
190
+ "model.language_model.layers.20.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
191
+ "model.language_model.layers.20.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
192
+ "model.language_model.layers.20.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
193
+ "model.language_model.layers.20.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
194
+ "model.language_model.layers.20.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
195
+ "model.language_model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
196
+ "model.language_model.layers.21.linear_attn.A_log": "model-00002-of-00002.safetensors",
197
+ "model.language_model.layers.21.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
198
+ "model.language_model.layers.21.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
199
+ "model.language_model.layers.21.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
200
+ "model.language_model.layers.21.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
201
+ "model.language_model.layers.21.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
202
+ "model.language_model.layers.21.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
203
+ "model.language_model.layers.21.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
204
+ "model.language_model.layers.21.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
205
+ "model.language_model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
206
+ "model.language_model.layers.21.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
207
+ "model.language_model.layers.21.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
208
+ "model.language_model.layers.21.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
209
+ "model.language_model.layers.22.input_layernorm.weight": "model-00002-of-00002.safetensors",
210
+ "model.language_model.layers.22.linear_attn.A_log": "model-00002-of-00002.safetensors",
211
+ "model.language_model.layers.22.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
212
+ "model.language_model.layers.22.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
213
+ "model.language_model.layers.22.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
214
+ "model.language_model.layers.22.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
215
+ "model.language_model.layers.22.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
216
+ "model.language_model.layers.22.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
217
+ "model.language_model.layers.22.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
218
+ "model.language_model.layers.22.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
219
+ "model.language_model.layers.22.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
220
+ "model.language_model.layers.22.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
221
+ "model.language_model.layers.22.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
222
+ "model.language_model.layers.22.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
223
+ "model.language_model.layers.23.input_layernorm.weight": "model-00002-of-00002.safetensors",
224
+ "model.language_model.layers.23.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
225
+ "model.language_model.layers.23.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
226
+ "model.language_model.layers.23.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
227
+ "model.language_model.layers.23.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
228
+ "model.language_model.layers.23.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
229
+ "model.language_model.layers.23.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
230
+ "model.language_model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
231
+ "model.language_model.layers.23.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
232
+ "model.language_model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
233
+ "model.language_model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
234
+ "model.language_model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
235
+ "model.language_model.layers.24.linear_attn.A_log": "model-00002-of-00002.safetensors",
236
+ "model.language_model.layers.24.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
237
+ "model.language_model.layers.24.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
238
+ "model.language_model.layers.24.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
239
+ "model.language_model.layers.24.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
240
+ "model.language_model.layers.24.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
241
+ "model.language_model.layers.24.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
242
+ "model.language_model.layers.24.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
243
+ "model.language_model.layers.24.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
244
+ "model.language_model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
245
+ "model.language_model.layers.24.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
246
+ "model.language_model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
247
+ "model.language_model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
248
+ "model.language_model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
249
+ "model.language_model.layers.25.linear_attn.A_log": "model-00002-of-00002.safetensors",
250
+ "model.language_model.layers.25.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
251
+ "model.language_model.layers.25.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
252
+ "model.language_model.layers.25.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
253
+ "model.language_model.layers.25.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
254
+ "model.language_model.layers.25.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
255
+ "model.language_model.layers.25.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
256
+ "model.language_model.layers.25.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
257
+ "model.language_model.layers.25.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
258
+ "model.language_model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
259
+ "model.language_model.layers.25.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
260
+ "model.language_model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
261
+ "model.language_model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
262
+ "model.language_model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
263
+ "model.language_model.layers.26.linear_attn.A_log": "model-00002-of-00002.safetensors",
264
+ "model.language_model.layers.26.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
265
+ "model.language_model.layers.26.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
266
+ "model.language_model.layers.26.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
267
+ "model.language_model.layers.26.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
268
+ "model.language_model.layers.26.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
269
+ "model.language_model.layers.26.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
270
+ "model.language_model.layers.26.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
271
+ "model.language_model.layers.26.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
272
+ "model.language_model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
273
+ "model.language_model.layers.26.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
274
+ "model.language_model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
275
+ "model.language_model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
276
+ "model.language_model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
277
+ "model.language_model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
278
+ "model.language_model.layers.27.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
279
+ "model.language_model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
280
+ "model.language_model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
281
+ "model.language_model.layers.27.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
282
+ "model.language_model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
283
+ "model.language_model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
284
+ "model.language_model.layers.27.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
285
+ "model.language_model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
286
+ "model.language_model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
287
+ "model.language_model.layers.28.input_layernorm.weight": "model-00002-of-00002.safetensors",
288
+ "model.language_model.layers.28.linear_attn.A_log": "model-00002-of-00002.safetensors",
289
+ "model.language_model.layers.28.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
290
+ "model.language_model.layers.28.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
291
+ "model.language_model.layers.28.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
292
+ "model.language_model.layers.28.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
293
+ "model.language_model.layers.28.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
294
+ "model.language_model.layers.28.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
295
+ "model.language_model.layers.28.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
296
+ "model.language_model.layers.28.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
297
+ "model.language_model.layers.28.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
298
+ "model.language_model.layers.28.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
299
+ "model.language_model.layers.28.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
300
+ "model.language_model.layers.28.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
301
+ "model.language_model.layers.29.input_layernorm.weight": "model-00002-of-00002.safetensors",
302
+ "model.language_model.layers.29.linear_attn.A_log": "model-00002-of-00002.safetensors",
303
+ "model.language_model.layers.29.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
304
+ "model.language_model.layers.29.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
305
+ "model.language_model.layers.29.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
306
+ "model.language_model.layers.29.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
307
+ "model.language_model.layers.29.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
308
+ "model.language_model.layers.29.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
309
+ "model.language_model.layers.29.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
310
+ "model.language_model.layers.29.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
311
+ "model.language_model.layers.29.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
312
+ "model.language_model.layers.29.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
313
+ "model.language_model.layers.29.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
314
+ "model.language_model.layers.29.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
315
+ "model.language_model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
316
+ "model.language_model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
317
+ "model.language_model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
318
+ "model.language_model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
319
+ "model.language_model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
320
+ "model.language_model.layers.3.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
321
+ "model.language_model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
322
+ "model.language_model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
323
+ "model.language_model.layers.3.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
324
+ "model.language_model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
325
+ "model.language_model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
326
+ "model.language_model.layers.30.input_layernorm.weight": "model-00002-of-00002.safetensors",
327
+ "model.language_model.layers.30.linear_attn.A_log": "model-00002-of-00002.safetensors",
328
+ "model.language_model.layers.30.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
329
+ "model.language_model.layers.30.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
330
+ "model.language_model.layers.30.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
331
+ "model.language_model.layers.30.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
332
+ "model.language_model.layers.30.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
333
+ "model.language_model.layers.30.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
334
+ "model.language_model.layers.30.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
335
+ "model.language_model.layers.30.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
336
+ "model.language_model.layers.30.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
337
+ "model.language_model.layers.30.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
338
+ "model.language_model.layers.30.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
339
+ "model.language_model.layers.30.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
340
+ "model.language_model.layers.31.input_layernorm.weight": "model-00002-of-00002.safetensors",
341
+ "model.language_model.layers.31.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
342
+ "model.language_model.layers.31.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
343
+ "model.language_model.layers.31.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
344
+ "model.language_model.layers.31.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
345
+ "model.language_model.layers.31.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
346
+ "model.language_model.layers.31.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
347
+ "model.language_model.layers.31.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
348
+ "model.language_model.layers.31.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
349
+ "model.language_model.layers.31.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
350
+ "model.language_model.layers.31.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
351
+ "model.language_model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
352
+ "model.language_model.layers.4.linear_attn.A_log": "model-00001-of-00002.safetensors",
353
+ "model.language_model.layers.4.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
354
+ "model.language_model.layers.4.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
355
+ "model.language_model.layers.4.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
356
+ "model.language_model.layers.4.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
357
+ "model.language_model.layers.4.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
358
+ "model.language_model.layers.4.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
359
+ "model.language_model.layers.4.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
360
+ "model.language_model.layers.4.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
361
+ "model.language_model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
362
+ "model.language_model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
363
+ "model.language_model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
364
+ "model.language_model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
365
+ "model.language_model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
366
+ "model.language_model.layers.5.linear_attn.A_log": "model-00001-of-00002.safetensors",
367
+ "model.language_model.layers.5.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
368
+ "model.language_model.layers.5.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
369
+ "model.language_model.layers.5.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
370
+ "model.language_model.layers.5.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
371
+ "model.language_model.layers.5.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
372
+ "model.language_model.layers.5.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
373
+ "model.language_model.layers.5.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
374
+ "model.language_model.layers.5.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
375
+ "model.language_model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
376
+ "model.language_model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
377
+ "model.language_model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
378
+ "model.language_model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
379
+ "model.language_model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
380
+ "model.language_model.layers.6.linear_attn.A_log": "model-00001-of-00002.safetensors",
381
+ "model.language_model.layers.6.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
382
+ "model.language_model.layers.6.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
383
+ "model.language_model.layers.6.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
384
+ "model.language_model.layers.6.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
385
+ "model.language_model.layers.6.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
386
+ "model.language_model.layers.6.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
387
+ "model.language_model.layers.6.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
388
+ "model.language_model.layers.6.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
389
+ "model.language_model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
390
+ "model.language_model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
391
+ "model.language_model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
392
+ "model.language_model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
393
+ "model.language_model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
394
+ "model.language_model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
395
+ "model.language_model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
396
+ "model.language_model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
397
+ "model.language_model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
398
+ "model.language_model.layers.7.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
399
+ "model.language_model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
400
+ "model.language_model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
401
+ "model.language_model.layers.7.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
402
+ "model.language_model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
403
+ "model.language_model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
404
+ "model.language_model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
405
+ "model.language_model.layers.8.linear_attn.A_log": "model-00001-of-00002.safetensors",
406
+ "model.language_model.layers.8.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
407
+ "model.language_model.layers.8.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
408
+ "model.language_model.layers.8.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
409
+ "model.language_model.layers.8.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
410
+ "model.language_model.layers.8.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
411
+ "model.language_model.layers.8.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
412
+ "model.language_model.layers.8.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
413
+ "model.language_model.layers.8.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
414
+ "model.language_model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
415
+ "model.language_model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
416
+ "model.language_model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
417
+ "model.language_model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
418
+ "model.language_model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
419
+ "model.language_model.layers.9.linear_attn.A_log": "model-00001-of-00002.safetensors",
420
+ "model.language_model.layers.9.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
421
+ "model.language_model.layers.9.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
422
+ "model.language_model.layers.9.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
423
+ "model.language_model.layers.9.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
424
+ "model.language_model.layers.9.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
425
+ "model.language_model.layers.9.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
426
+ "model.language_model.layers.9.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
427
+ "model.language_model.layers.9.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
428
+ "model.language_model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
429
+ "model.language_model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
430
+ "model.language_model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
431
+ "model.language_model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
432
+ "model.language_model.norm.weight": "model-00002-of-00002.safetensors",
433
+ "model.visual.blocks.0.attn.proj.bias": "model-00002-of-00002.safetensors",
434
+ "model.visual.blocks.0.attn.proj.weight": "model-00002-of-00002.safetensors",
435
+ "model.visual.blocks.0.attn.qkv.bias": "model-00002-of-00002.safetensors",
436
+ "model.visual.blocks.0.attn.qkv.weight": "model-00002-of-00002.safetensors",
437
+ "model.visual.blocks.0.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
438
+ "model.visual.blocks.0.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
439
+ "model.visual.blocks.0.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
440
+ "model.visual.blocks.0.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
441
+ "model.visual.blocks.0.norm1.bias": "model-00002-of-00002.safetensors",
442
+ "model.visual.blocks.0.norm1.weight": "model-00002-of-00002.safetensors",
443
+ "model.visual.blocks.0.norm2.bias": "model-00002-of-00002.safetensors",
444
+ "model.visual.blocks.0.norm2.weight": "model-00002-of-00002.safetensors",
445
+ "model.visual.blocks.1.attn.proj.bias": "model-00002-of-00002.safetensors",
446
+ "model.visual.blocks.1.attn.proj.weight": "model-00002-of-00002.safetensors",
447
+ "model.visual.blocks.1.attn.qkv.bias": "model-00002-of-00002.safetensors",
448
+ "model.visual.blocks.1.attn.qkv.weight": "model-00002-of-00002.safetensors",
449
+ "model.visual.blocks.1.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
450
+ "model.visual.blocks.1.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
451
+ "model.visual.blocks.1.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
452
+ "model.visual.blocks.1.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
453
+ "model.visual.blocks.1.norm1.bias": "model-00002-of-00002.safetensors",
454
+ "model.visual.blocks.1.norm1.weight": "model-00002-of-00002.safetensors",
455
+ "model.visual.blocks.1.norm2.bias": "model-00002-of-00002.safetensors",
456
+ "model.visual.blocks.1.norm2.weight": "model-00002-of-00002.safetensors",
457
+ "model.visual.blocks.10.attn.proj.bias": "model-00002-of-00002.safetensors",
458
+ "model.visual.blocks.10.attn.proj.weight": "model-00002-of-00002.safetensors",
459
+ "model.visual.blocks.10.attn.qkv.bias": "model-00002-of-00002.safetensors",
460
+ "model.visual.blocks.10.attn.qkv.weight": "model-00002-of-00002.safetensors",
461
+ "model.visual.blocks.10.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
462
+ "model.visual.blocks.10.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
463
+ "model.visual.blocks.10.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
464
+ "model.visual.blocks.10.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
465
+ "model.visual.blocks.10.norm1.bias": "model-00002-of-00002.safetensors",
466
+ "model.visual.blocks.10.norm1.weight": "model-00002-of-00002.safetensors",
467
+ "model.visual.blocks.10.norm2.bias": "model-00002-of-00002.safetensors",
468
+ "model.visual.blocks.10.norm2.weight": "model-00002-of-00002.safetensors",
469
+ "model.visual.blocks.11.attn.proj.bias": "model-00002-of-00002.safetensors",
470
+ "model.visual.blocks.11.attn.proj.weight": "model-00002-of-00002.safetensors",
471
+ "model.visual.blocks.11.attn.qkv.bias": "model-00002-of-00002.safetensors",
472
+ "model.visual.blocks.11.attn.qkv.weight": "model-00002-of-00002.safetensors",
473
+ "model.visual.blocks.11.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
474
+ "model.visual.blocks.11.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
475
+ "model.visual.blocks.11.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
476
+ "model.visual.blocks.11.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
477
+ "model.visual.blocks.11.norm1.bias": "model-00002-of-00002.safetensors",
478
+ "model.visual.blocks.11.norm1.weight": "model-00002-of-00002.safetensors",
479
+ "model.visual.blocks.11.norm2.bias": "model-00002-of-00002.safetensors",
480
+ "model.visual.blocks.11.norm2.weight": "model-00002-of-00002.safetensors",
481
+ "model.visual.blocks.12.attn.proj.bias": "model-00002-of-00002.safetensors",
482
+ "model.visual.blocks.12.attn.proj.weight": "model-00002-of-00002.safetensors",
483
+ "model.visual.blocks.12.attn.qkv.bias": "model-00002-of-00002.safetensors",
484
+ "model.visual.blocks.12.attn.qkv.weight": "model-00002-of-00002.safetensors",
485
+ "model.visual.blocks.12.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
486
+ "model.visual.blocks.12.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
487
+ "model.visual.blocks.12.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
488
+ "model.visual.blocks.12.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
489
+ "model.visual.blocks.12.norm1.bias": "model-00002-of-00002.safetensors",
490
+ "model.visual.blocks.12.norm1.weight": "model-00002-of-00002.safetensors",
491
+ "model.visual.blocks.12.norm2.bias": "model-00002-of-00002.safetensors",
492
+ "model.visual.blocks.12.norm2.weight": "model-00002-of-00002.safetensors",
493
+ "model.visual.blocks.13.attn.proj.bias": "model-00002-of-00002.safetensors",
494
+ "model.visual.blocks.13.attn.proj.weight": "model-00002-of-00002.safetensors",
495
+ "model.visual.blocks.13.attn.qkv.bias": "model-00002-of-00002.safetensors",
496
+ "model.visual.blocks.13.attn.qkv.weight": "model-00002-of-00002.safetensors",
497
+ "model.visual.blocks.13.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
498
+ "model.visual.blocks.13.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
499
+ "model.visual.blocks.13.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
500
+ "model.visual.blocks.13.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
501
+ "model.visual.blocks.13.norm1.bias": "model-00002-of-00002.safetensors",
502
+ "model.visual.blocks.13.norm1.weight": "model-00002-of-00002.safetensors",
503
+ "model.visual.blocks.13.norm2.bias": "model-00002-of-00002.safetensors",
504
+ "model.visual.blocks.13.norm2.weight": "model-00002-of-00002.safetensors",
505
+ "model.visual.blocks.14.attn.proj.bias": "model-00002-of-00002.safetensors",
506
+ "model.visual.blocks.14.attn.proj.weight": "model-00002-of-00002.safetensors",
507
+ "model.visual.blocks.14.attn.qkv.bias": "model-00002-of-00002.safetensors",
508
+ "model.visual.blocks.14.attn.qkv.weight": "model-00002-of-00002.safetensors",
509
+ "model.visual.blocks.14.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
510
+ "model.visual.blocks.14.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
511
+ "model.visual.blocks.14.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
512
+ "model.visual.blocks.14.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
513
+ "model.visual.blocks.14.norm1.bias": "model-00002-of-00002.safetensors",
514
+ "model.visual.blocks.14.norm1.weight": "model-00002-of-00002.safetensors",
515
+ "model.visual.blocks.14.norm2.bias": "model-00002-of-00002.safetensors",
516
+ "model.visual.blocks.14.norm2.weight": "model-00002-of-00002.safetensors",
517
+ "model.visual.blocks.15.attn.proj.bias": "model-00002-of-00002.safetensors",
518
+ "model.visual.blocks.15.attn.proj.weight": "model-00002-of-00002.safetensors",
519
+ "model.visual.blocks.15.attn.qkv.bias": "model-00002-of-00002.safetensors",
520
+ "model.visual.blocks.15.attn.qkv.weight": "model-00002-of-00002.safetensors",
521
+ "model.visual.blocks.15.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
522
+ "model.visual.blocks.15.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
523
+ "model.visual.blocks.15.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
524
+ "model.visual.blocks.15.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
525
+ "model.visual.blocks.15.norm1.bias": "model-00002-of-00002.safetensors",
526
+ "model.visual.blocks.15.norm1.weight": "model-00002-of-00002.safetensors",
527
+ "model.visual.blocks.15.norm2.bias": "model-00002-of-00002.safetensors",
528
+ "model.visual.blocks.15.norm2.weight": "model-00002-of-00002.safetensors",
529
+ "model.visual.blocks.16.attn.proj.bias": "model-00002-of-00002.safetensors",
530
+ "model.visual.blocks.16.attn.proj.weight": "model-00002-of-00002.safetensors",
531
+ "model.visual.blocks.16.attn.qkv.bias": "model-00002-of-00002.safetensors",
532
+ "model.visual.blocks.16.attn.qkv.weight": "model-00002-of-00002.safetensors",
533
+ "model.visual.blocks.16.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
534
+ "model.visual.blocks.16.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
535
+ "model.visual.blocks.16.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
536
+ "model.visual.blocks.16.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
537
+ "model.visual.blocks.16.norm1.bias": "model-00002-of-00002.safetensors",
538
+ "model.visual.blocks.16.norm1.weight": "model-00002-of-00002.safetensors",
539
+ "model.visual.blocks.16.norm2.bias": "model-00002-of-00002.safetensors",
540
+ "model.visual.blocks.16.norm2.weight": "model-00002-of-00002.safetensors",
541
+ "model.visual.blocks.17.attn.proj.bias": "model-00002-of-00002.safetensors",
542
+ "model.visual.blocks.17.attn.proj.weight": "model-00002-of-00002.safetensors",
543
+ "model.visual.blocks.17.attn.qkv.bias": "model-00002-of-00002.safetensors",
544
+ "model.visual.blocks.17.attn.qkv.weight": "model-00002-of-00002.safetensors",
545
+ "model.visual.blocks.17.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
546
+ "model.visual.blocks.17.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
547
+ "model.visual.blocks.17.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
548
+ "model.visual.blocks.17.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
549
+ "model.visual.blocks.17.norm1.bias": "model-00002-of-00002.safetensors",
550
+ "model.visual.blocks.17.norm1.weight": "model-00002-of-00002.safetensors",
551
+ "model.visual.blocks.17.norm2.bias": "model-00002-of-00002.safetensors",
552
+ "model.visual.blocks.17.norm2.weight": "model-00002-of-00002.safetensors",
553
+ "model.visual.blocks.18.attn.proj.bias": "model-00002-of-00002.safetensors",
554
+ "model.visual.blocks.18.attn.proj.weight": "model-00002-of-00002.safetensors",
555
+ "model.visual.blocks.18.attn.qkv.bias": "model-00002-of-00002.safetensors",
556
+ "model.visual.blocks.18.attn.qkv.weight": "model-00002-of-00002.safetensors",
557
+ "model.visual.blocks.18.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
558
+ "model.visual.blocks.18.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
559
+ "model.visual.blocks.18.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
560
+ "model.visual.blocks.18.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
561
+ "model.visual.blocks.18.norm1.bias": "model-00002-of-00002.safetensors",
562
+ "model.visual.blocks.18.norm1.weight": "model-00002-of-00002.safetensors",
563
+ "model.visual.blocks.18.norm2.bias": "model-00002-of-00002.safetensors",
564
+ "model.visual.blocks.18.norm2.weight": "model-00002-of-00002.safetensors",
565
+ "model.visual.blocks.19.attn.proj.bias": "model-00002-of-00002.safetensors",
566
+ "model.visual.blocks.19.attn.proj.weight": "model-00002-of-00002.safetensors",
567
+ "model.visual.blocks.19.attn.qkv.bias": "model-00002-of-00002.safetensors",
568
+ "model.visual.blocks.19.attn.qkv.weight": "model-00002-of-00002.safetensors",
569
+ "model.visual.blocks.19.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
570
+ "model.visual.blocks.19.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
571
+ "model.visual.blocks.19.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
572
+ "model.visual.blocks.19.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
573
+ "model.visual.blocks.19.norm1.bias": "model-00002-of-00002.safetensors",
574
+ "model.visual.blocks.19.norm1.weight": "model-00002-of-00002.safetensors",
575
+ "model.visual.blocks.19.norm2.bias": "model-00002-of-00002.safetensors",
576
+ "model.visual.blocks.19.norm2.weight": "model-00002-of-00002.safetensors",
577
+ "model.visual.blocks.2.attn.proj.bias": "model-00002-of-00002.safetensors",
578
+ "model.visual.blocks.2.attn.proj.weight": "model-00002-of-00002.safetensors",
579
+ "model.visual.blocks.2.attn.qkv.bias": "model-00002-of-00002.safetensors",
580
+ "model.visual.blocks.2.attn.qkv.weight": "model-00002-of-00002.safetensors",
581
+ "model.visual.blocks.2.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
582
+ "model.visual.blocks.2.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
583
+ "model.visual.blocks.2.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
584
+ "model.visual.blocks.2.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
585
+ "model.visual.blocks.2.norm1.bias": "model-00002-of-00002.safetensors",
586
+ "model.visual.blocks.2.norm1.weight": "model-00002-of-00002.safetensors",
587
+ "model.visual.blocks.2.norm2.bias": "model-00002-of-00002.safetensors",
588
+ "model.visual.blocks.2.norm2.weight": "model-00002-of-00002.safetensors",
589
+ "model.visual.blocks.20.attn.proj.bias": "model-00002-of-00002.safetensors",
590
+ "model.visual.blocks.20.attn.proj.weight": "model-00002-of-00002.safetensors",
591
+ "model.visual.blocks.20.attn.qkv.bias": "model-00002-of-00002.safetensors",
592
+ "model.visual.blocks.20.attn.qkv.weight": "model-00002-of-00002.safetensors",
593
+ "model.visual.blocks.20.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
594
+ "model.visual.blocks.20.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
595
+ "model.visual.blocks.20.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
596
+ "model.visual.blocks.20.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
597
+ "model.visual.blocks.20.norm1.bias": "model-00002-of-00002.safetensors",
598
+ "model.visual.blocks.20.norm1.weight": "model-00002-of-00002.safetensors",
599
+ "model.visual.blocks.20.norm2.bias": "model-00002-of-00002.safetensors",
600
+ "model.visual.blocks.20.norm2.weight": "model-00002-of-00002.safetensors",
601
+ "model.visual.blocks.21.attn.proj.bias": "model-00002-of-00002.safetensors",
602
+ "model.visual.blocks.21.attn.proj.weight": "model-00002-of-00002.safetensors",
603
+ "model.visual.blocks.21.attn.qkv.bias": "model-00002-of-00002.safetensors",
604
+ "model.visual.blocks.21.attn.qkv.weight": "model-00002-of-00002.safetensors",
605
+ "model.visual.blocks.21.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
606
+ "model.visual.blocks.21.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
607
+ "model.visual.blocks.21.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
608
+ "model.visual.blocks.21.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
609
+ "model.visual.blocks.21.norm1.bias": "model-00002-of-00002.safetensors",
610
+ "model.visual.blocks.21.norm1.weight": "model-00002-of-00002.safetensors",
611
+ "model.visual.blocks.21.norm2.bias": "model-00002-of-00002.safetensors",
612
+ "model.visual.blocks.21.norm2.weight": "model-00002-of-00002.safetensors",
613
+ "model.visual.blocks.22.attn.proj.bias": "model-00002-of-00002.safetensors",
614
+ "model.visual.blocks.22.attn.proj.weight": "model-00002-of-00002.safetensors",
615
+ "model.visual.blocks.22.attn.qkv.bias": "model-00002-of-00002.safetensors",
616
+ "model.visual.blocks.22.attn.qkv.weight": "model-00002-of-00002.safetensors",
617
+ "model.visual.blocks.22.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
618
+ "model.visual.blocks.22.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
619
+ "model.visual.blocks.22.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
620
+ "model.visual.blocks.22.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
621
+ "model.visual.blocks.22.norm1.bias": "model-00002-of-00002.safetensors",
622
+ "model.visual.blocks.22.norm1.weight": "model-00002-of-00002.safetensors",
623
+ "model.visual.blocks.22.norm2.bias": "model-00002-of-00002.safetensors",
624
+ "model.visual.blocks.22.norm2.weight": "model-00002-of-00002.safetensors",
625
+ "model.visual.blocks.23.attn.proj.bias": "model-00002-of-00002.safetensors",
626
+ "model.visual.blocks.23.attn.proj.weight": "model-00002-of-00002.safetensors",
627
+ "model.visual.blocks.23.attn.qkv.bias": "model-00002-of-00002.safetensors",
628
+ "model.visual.blocks.23.attn.qkv.weight": "model-00002-of-00002.safetensors",
629
+ "model.visual.blocks.23.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
630
+ "model.visual.blocks.23.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
631
+ "model.visual.blocks.23.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
632
+ "model.visual.blocks.23.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
633
+ "model.visual.blocks.23.norm1.bias": "model-00002-of-00002.safetensors",
634
+ "model.visual.blocks.23.norm1.weight": "model-00002-of-00002.safetensors",
635
+ "model.visual.blocks.23.norm2.bias": "model-00002-of-00002.safetensors",
636
+ "model.visual.blocks.23.norm2.weight": "model-00002-of-00002.safetensors",
637
+ "model.visual.blocks.3.attn.proj.bias": "model-00002-of-00002.safetensors",
638
+ "model.visual.blocks.3.attn.proj.weight": "model-00002-of-00002.safetensors",
639
+ "model.visual.blocks.3.attn.qkv.bias": "model-00002-of-00002.safetensors",
640
+ "model.visual.blocks.3.attn.qkv.weight": "model-00002-of-00002.safetensors",
641
+ "model.visual.blocks.3.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
642
+ "model.visual.blocks.3.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
643
+ "model.visual.blocks.3.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
644
+ "model.visual.blocks.3.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
645
+ "model.visual.blocks.3.norm1.bias": "model-00002-of-00002.safetensors",
646
+ "model.visual.blocks.3.norm1.weight": "model-00002-of-00002.safetensors",
647
+ "model.visual.blocks.3.norm2.bias": "model-00002-of-00002.safetensors",
648
+ "model.visual.blocks.3.norm2.weight": "model-00002-of-00002.safetensors",
649
+ "model.visual.blocks.4.attn.proj.bias": "model-00002-of-00002.safetensors",
650
+ "model.visual.blocks.4.attn.proj.weight": "model-00002-of-00002.safetensors",
651
+ "model.visual.blocks.4.attn.qkv.bias": "model-00002-of-00002.safetensors",
652
+ "model.visual.blocks.4.attn.qkv.weight": "model-00002-of-00002.safetensors",
653
+ "model.visual.blocks.4.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
654
+ "model.visual.blocks.4.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
655
+ "model.visual.blocks.4.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
656
+ "model.visual.blocks.4.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
657
+ "model.visual.blocks.4.norm1.bias": "model-00002-of-00002.safetensors",
658
+ "model.visual.blocks.4.norm1.weight": "model-00002-of-00002.safetensors",
659
+ "model.visual.blocks.4.norm2.bias": "model-00002-of-00002.safetensors",
660
+ "model.visual.blocks.4.norm2.weight": "model-00002-of-00002.safetensors",
661
+ "model.visual.blocks.5.attn.proj.bias": "model-00002-of-00002.safetensors",
662
+ "model.visual.blocks.5.attn.proj.weight": "model-00002-of-00002.safetensors",
663
+ "model.visual.blocks.5.attn.qkv.bias": "model-00002-of-00002.safetensors",
664
+ "model.visual.blocks.5.attn.qkv.weight": "model-00002-of-00002.safetensors",
665
+ "model.visual.blocks.5.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
666
+ "model.visual.blocks.5.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
667
+ "model.visual.blocks.5.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
668
+ "model.visual.blocks.5.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
669
+ "model.visual.blocks.5.norm1.bias": "model-00002-of-00002.safetensors",
670
+ "model.visual.blocks.5.norm1.weight": "model-00002-of-00002.safetensors",
671
+ "model.visual.blocks.5.norm2.bias": "model-00002-of-00002.safetensors",
672
+ "model.visual.blocks.5.norm2.weight": "model-00002-of-00002.safetensors",
673
+ "model.visual.blocks.6.attn.proj.bias": "model-00002-of-00002.safetensors",
674
+ "model.visual.blocks.6.attn.proj.weight": "model-00002-of-00002.safetensors",
675
+ "model.visual.blocks.6.attn.qkv.bias": "model-00002-of-00002.safetensors",
676
+ "model.visual.blocks.6.attn.qkv.weight": "model-00002-of-00002.safetensors",
677
+ "model.visual.blocks.6.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
678
+ "model.visual.blocks.6.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
679
+ "model.visual.blocks.6.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
680
+ "model.visual.blocks.6.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
681
+ "model.visual.blocks.6.norm1.bias": "model-00002-of-00002.safetensors",
682
+ "model.visual.blocks.6.norm1.weight": "model-00002-of-00002.safetensors",
683
+ "model.visual.blocks.6.norm2.bias": "model-00002-of-00002.safetensors",
684
+ "model.visual.blocks.6.norm2.weight": "model-00002-of-00002.safetensors",
685
+ "model.visual.blocks.7.attn.proj.bias": "model-00002-of-00002.safetensors",
686
+ "model.visual.blocks.7.attn.proj.weight": "model-00002-of-00002.safetensors",
687
+ "model.visual.blocks.7.attn.qkv.bias": "model-00002-of-00002.safetensors",
688
+ "model.visual.blocks.7.attn.qkv.weight": "model-00002-of-00002.safetensors",
689
+ "model.visual.blocks.7.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
690
+ "model.visual.blocks.7.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
691
+ "model.visual.blocks.7.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
692
+ "model.visual.blocks.7.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
693
+ "model.visual.blocks.7.norm1.bias": "model-00002-of-00002.safetensors",
694
+ "model.visual.blocks.7.norm1.weight": "model-00002-of-00002.safetensors",
695
+ "model.visual.blocks.7.norm2.bias": "model-00002-of-00002.safetensors",
696
+ "model.visual.blocks.7.norm2.weight": "model-00002-of-00002.safetensors",
697
+ "model.visual.blocks.8.attn.proj.bias": "model-00002-of-00002.safetensors",
698
+ "model.visual.blocks.8.attn.proj.weight": "model-00002-of-00002.safetensors",
699
+ "model.visual.blocks.8.attn.qkv.bias": "model-00002-of-00002.safetensors",
700
+ "model.visual.blocks.8.attn.qkv.weight": "model-00002-of-00002.safetensors",
701
+ "model.visual.blocks.8.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
702
+ "model.visual.blocks.8.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
703
+ "model.visual.blocks.8.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
704
+ "model.visual.blocks.8.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
705
+ "model.visual.blocks.8.norm1.bias": "model-00002-of-00002.safetensors",
706
+ "model.visual.blocks.8.norm1.weight": "model-00002-of-00002.safetensors",
707
+ "model.visual.blocks.8.norm2.bias": "model-00002-of-00002.safetensors",
708
+ "model.visual.blocks.8.norm2.weight": "model-00002-of-00002.safetensors",
709
+ "model.visual.blocks.9.attn.proj.bias": "model-00002-of-00002.safetensors",
710
+ "model.visual.blocks.9.attn.proj.weight": "model-00002-of-00002.safetensors",
711
+ "model.visual.blocks.9.attn.qkv.bias": "model-00002-of-00002.safetensors",
712
+ "model.visual.blocks.9.attn.qkv.weight": "model-00002-of-00002.safetensors",
713
+ "model.visual.blocks.9.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
714
+ "model.visual.blocks.9.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
715
+ "model.visual.blocks.9.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
716
+ "model.visual.blocks.9.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
717
+ "model.visual.blocks.9.norm1.bias": "model-00002-of-00002.safetensors",
718
+ "model.visual.blocks.9.norm1.weight": "model-00002-of-00002.safetensors",
719
+ "model.visual.blocks.9.norm2.bias": "model-00002-of-00002.safetensors",
720
+ "model.visual.blocks.9.norm2.weight": "model-00002-of-00002.safetensors",
721
+ "model.visual.merger.linear_fc1.bias": "model-00002-of-00002.safetensors",
722
+ "model.visual.merger.linear_fc1.weight": "model-00002-of-00002.safetensors",
723
+ "model.visual.merger.linear_fc2.bias": "model-00002-of-00002.safetensors",
724
+ "model.visual.merger.linear_fc2.weight": "model-00002-of-00002.safetensors",
725
+ "model.visual.merger.norm.bias": "model-00002-of-00002.safetensors",
726
+ "model.visual.merger.norm.weight": "model-00002-of-00002.safetensors",
727
+ "model.visual.patch_embed.proj.bias": "model-00002-of-00002.safetensors",
728
+ "model.visual.patch_embed.proj.weight": "model-00002-of-00002.safetensors",
729
+ "model.visual.pos_embed.weight": "model-00002-of-00002.safetensors"
730
+ }
731
+ }
orientation/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Page orientation check
2
+
3
+ Small CPU preprocessor used before PepperOCR-VL on photographed pages. It runs
4
+ the PP-LCNet_x1_0_doc_ori classifier (PaddleOCR) on every image, predicts
5
+ 0/90/180/270 degrees, and writes an upright copy of each page to the output
6
+ directory. A page is rotated only when the predicted angle has confidence 0.85
7
+ or higher; otherwise it is copied unchanged.
8
+
9
+ ```bash
10
+ uv run --project . --frozen python orient.py \
11
+ --input-dir /path/to/pages \
12
+ --output-dir /path/to/upright_pages \
13
+ --model-dir ./model \
14
+ --record-path /path/to/orientation.jsonl # optional per-image log
15
+ ```
16
+
17
+ `pyproject.toml` and `uv.lock` pin PaddlePaddle CPU 3.2.2, OpenCV, Pillow and
18
+ NumPy; `uv` creates the environment on first run. `model.sha256` lists the
19
+ checksums of the two classifier files.
orientation/model.sha256 ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 3580978602f309c3554508dd85d4fe09b73a7e0d80d7f9e63258f5b72c390c69 inference.json
2
+ e8d6e7c5d264507e40e58a655779059d616b20d7441ea22047d829eb3931989c inference.pdiparams
orientation/model/inference.json ADDED
The diff for this file is too large to render. See raw diff
 
orientation/model/inference.pdiparams ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8d6e7c5d264507e40e58a655779059d616b20d7441ea22047d829eb3931989c
3
+ size 6754166
orientation/orient.py ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Apply the fixed PP-LCNet document-orientation policy on CPU."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import json
8
+ import os
9
+ import shutil
10
+ import time
11
+ from collections import Counter
12
+ from concurrent.futures import ThreadPoolExecutor
13
+ from pathlib import Path
14
+
15
+ import cv2
16
+ import numpy as np
17
+ import paddle.inference as paddle_infer
18
+ from PIL import Image, ImageOps
19
+
20
+
21
+ CLASSIFIER = "PP-LCNet_x1_0_doc_ori"
22
+ THRESHOLD = 0.85
23
+ LABELS = (0, 90, 180, 270)
24
+ EXTENSIONS = {".jpg", ".jpeg", ".png"}
25
+ MEAN = np.asarray((0.485, 0.456, 0.406), dtype=np.float32)
26
+ STD = np.asarray((0.229, 0.224, 0.225), dtype=np.float32)
27
+ TRANSPOSE = {
28
+ 90: Image.Transpose.ROTATE_90,
29
+ 180: Image.Transpose.ROTATE_180,
30
+ 270: Image.Transpose.ROTATE_270,
31
+ }
32
+ MODEL_FILES = ("inference.json", "inference.pdiparams")
33
+ MATERIALIZE_WORKERS = 8
34
+
35
+
36
+ def verify_model_files(model_dir: Path) -> None:
37
+ missing = [name for name in MODEL_FILES if not (model_dir / name).is_file()]
38
+ if missing:
39
+ raise RuntimeError(f"orientation model files are missing: {missing}")
40
+
41
+
42
+ def preprocess(path: Path) -> np.ndarray:
43
+ with Image.open(path) as opened:
44
+ image = np.asarray(ImageOps.exif_transpose(opened).convert("RGB"))
45
+ height, width = image.shape[:2]
46
+ scale = 256.0 / min(height, width)
47
+ resized = cv2.resize(
48
+ image,
49
+ (round(width * scale), round(height * scale)),
50
+ interpolation=cv2.INTER_LINEAR,
51
+ )
52
+ height, width = resized.shape[:2]
53
+ top = (height - 224) // 2
54
+ left = (width - 224) // 2
55
+ crop = resized[top : top + 224, left : left + 224].astype(np.float32)
56
+ crop = (crop / 255.0 - MEAN) / STD
57
+ return np.transpose(crop, (2, 0, 1))
58
+
59
+
60
+ class Predictor:
61
+ def __init__(self, model_dir: Path):
62
+ config = paddle_infer.Config(
63
+ str(model_dir / "inference.json"),
64
+ str(model_dir / "inference.pdiparams"),
65
+ )
66
+ config.disable_gpu()
67
+ config.set_cpu_math_library_num_threads(4)
68
+ config.disable_glog_info()
69
+ self.predictor = paddle_infer.create_predictor(config)
70
+ self.input_name = self.predictor.get_input_names()[0]
71
+ self.output_name = self.predictor.get_output_names()[0]
72
+
73
+ def predict(self, paths: list[Path]) -> list[tuple[Path, int, float]]:
74
+ rows: list[tuple[Path, int, float]] = []
75
+ with ThreadPoolExecutor(max_workers=4) as pool:
76
+ for start in range(0, len(paths), 8):
77
+ batch_paths = paths[start : start + 8]
78
+ batch = np.stack(list(pool.map(preprocess, batch_paths)))
79
+ input_handle = self.predictor.get_input_handle(self.input_name)
80
+ input_handle.reshape(batch.shape)
81
+ input_handle.copy_from_cpu(batch)
82
+ self.predictor.run()
83
+ values = self.predictor.get_output_handle(self.output_name).copy_to_cpu()
84
+ if values.ndim != 2 or values.shape[1] != len(LABELS):
85
+ raise RuntimeError(
86
+ f"unexpected classifier output shape: {values.shape}"
87
+ )
88
+ if np.any(values < 0) or not np.allclose(
89
+ values.sum(axis=1), 1.0, atol=1e-3
90
+ ):
91
+ values = np.exp(values - values.max(axis=1, keepdims=True))
92
+ values /= values.sum(axis=1, keepdims=True)
93
+ for path, probabilities in zip(batch_paths, values, strict=True):
94
+ index = int(np.argmax(probabilities))
95
+ rows.append((path, LABELS[index], float(probabilities[index])))
96
+ return rows
97
+
98
+
99
+ def materialize(
100
+ source: Path, angle: int, confidence: float, output_dir: Path
101
+ ) -> bool:
102
+ selected = angle in TRANSPOSE and confidence >= THRESHOLD
103
+ if selected:
104
+ target = output_dir / f"{source.stem}.png"
105
+ with Image.open(source) as opened:
106
+ image = ImageOps.exif_transpose(opened).convert("RGB")
107
+ image.transpose(TRANSPOSE[angle]).save(
108
+ target, format="PNG", optimize=False
109
+ )
110
+ else:
111
+ target = output_dir / source.name
112
+ try:
113
+ os.link(source, target)
114
+ except OSError:
115
+ shutil.copy2(source, target)
116
+ return selected
117
+
118
+
119
+ def main() -> int:
120
+ started = time.perf_counter()
121
+ parser = argparse.ArgumentParser(description=__doc__)
122
+ parser.add_argument("--input-dir", required=True, type=Path)
123
+ parser.add_argument("--output-dir", required=True, type=Path)
124
+ parser.add_argument("--model-dir", required=True, type=Path)
125
+ parser.add_argument(
126
+ "--record-path",
127
+ type=Path,
128
+ default=None,
129
+ help="Optional JSONL file recording label/confidence/rotated per image.",
130
+ )
131
+ args = parser.parse_args()
132
+
133
+ if not args.input_dir.is_dir():
134
+ parser.error(f"input directory not found: {args.input_dir}")
135
+ if not args.model_dir.is_dir():
136
+ parser.error(f"orientation model directory not found: {args.model_dir}")
137
+ if args.input_dir.resolve() == args.output_dir.resolve():
138
+ parser.error("input and output directories must differ")
139
+ if args.output_dir.is_dir() and any(args.output_dir.iterdir()):
140
+ parser.error(f"output directory must be empty: {args.output_dir}")
141
+
142
+ paths = sorted(
143
+ path
144
+ for path in args.input_dir.iterdir()
145
+ if path.is_file() and path.suffix.lower() in EXTENSIONS
146
+ )
147
+ if not paths:
148
+ parser.error(f"no supported images found in: {args.input_dir}")
149
+ duplicate_stems = [
150
+ stem for stem, count in Counter(path.stem for path in paths).items() if count > 1
151
+ ]
152
+ if duplicate_stems:
153
+ raise RuntimeError(f"duplicate input stems: {sorted(duplicate_stems)}")
154
+
155
+ verify_model_files(args.model_dir)
156
+ args.output_dir.mkdir(parents=True, exist_ok=True)
157
+ predictions = Predictor(args.model_dir).predict(paths)
158
+ classified = time.perf_counter()
159
+ with ThreadPoolExecutor(max_workers=MATERIALIZE_WORKERS) as pool:
160
+ futures = [
161
+ pool.submit(materialize, source, angle, confidence, args.output_dir)
162
+ for source, angle, confidence in predictions
163
+ ]
164
+ results = [future.result() for future in futures]
165
+ selected = sum(results)
166
+ if args.record_path is not None:
167
+ args.record_path.parent.mkdir(parents=True, exist_ok=True)
168
+ with args.record_path.open("w", encoding="utf-8") as handle:
169
+ for (source, angle, confidence), rotated in zip(predictions, results, strict=True):
170
+ handle.write(
171
+ json.dumps(
172
+ {
173
+ "image": source.name,
174
+ "label": angle,
175
+ "confidence": round(float(confidence), 6),
176
+ "rotated": bool(rotated),
177
+ }
178
+ )
179
+ + "\n"
180
+ )
181
+ finished = time.perf_counter()
182
+ print(
183
+ f"[orientation] classifier={CLASSIFIER} images={len(paths)} "
184
+ f"corrected={selected} workers={MATERIALIZE_WORKERS} "
185
+ f"classify_s={classified - started:.1f} "
186
+ f"materialize_s={finished - classified:.1f} "
187
+ f"total_s={finished - started:.1f} "
188
+ f"images_per_s={len(paths) / (finished - started):.2f}"
189
+ )
190
+ return 0
191
+
192
+
193
+ if __name__ == "__main__":
194
+ raise SystemExit(main())
orientation/pyproject.toml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "pepperocr-mdpbench-orientation"
3
+ version = "0.1.0"
4
+ description = "Pinned CPU document-orientation preprocessor for PepperOCR MDPBench inference"
5
+ requires-python = ">=3.12,<3.13"
6
+ dependencies = [
7
+ "numpy==2.2.6",
8
+ "opencv-python-headless==4.11.0.86",
9
+ "paddlepaddle==3.2.2",
10
+ "pillow==12.3.0",
11
+ "setuptools==80.9.0",
12
+ ]
13
+
14
+ [tool.uv]
15
+ package = false
orientation/uv.lock ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version = 1
2
+ revision = 2
3
+ requires-python = "==3.12.*"
4
+ resolution-markers = [
5
+ "sys_platform == 'darwin'",
6
+ "platform_machine == 'aarch64' and sys_platform == 'linux'",
7
+ "(platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')",
8
+ ]
9
+
10
+ [[package]]
11
+ name = "anyio"
12
+ version = "4.14.2"
13
+ source = { registry = "https://pypi.org/simple" }
14
+ dependencies = [
15
+ { name = "idna" },
16
+ { name = "typing-extensions" },
17
+ ]
18
+ sdist = { url = "https://files.pythonhosted.org/packages/61/cc/a381afa6efea9f496eff839d4a6a1aed3bfafc7b3ab4b0d1b243a12573dd/anyio-4.14.2.tar.gz", hash = "sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f", size = 260176, upload-time = "2026-07-12T20:29:07.082Z" }
19
+ wheels = [
20
+ { url = "https://files.pythonhosted.org/packages/da/35/f2287558c17e29fafc8ef3daf819bb9834061cfa43bff8014f7df7f63bdc/anyio-4.14.2-py3-none-any.whl", hash = "sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494", size = 125813, upload-time = "2026-07-12T20:29:05.763Z" },
21
+ ]
22
+
23
+ [[package]]
24
+ name = "certifi"
25
+ version = "2026.6.17"
26
+ source = { registry = "https://pypi.org/simple" }
27
+ sdist = { url = "https://files.pythonhosted.org/packages/c9/c7/424b75da314c1045981bd9777432fad05a9e0c69daa4ed7e308bbaffe405/certifi-2026.6.17.tar.gz", hash = "sha256:024c88eeec92ca068db80f02b8b07c9cef7b9fe261d1d535abfd5abd6f6af432", size = 134594, upload-time = "2026-06-17T10:31:07.894Z" }
28
+ wheels = [
29
+ { url = "https://files.pythonhosted.org/packages/ef/2f/c5464532e965badff2f4c4c1a3a83f5697f0d7c407ed0cda44aaa99bb451/certifi-2026.6.17-py3-none-any.whl", hash = "sha256:2227dcbaafe0d2f59279d1762ddddc37783ed4354594f194ffc31d20f41fc3db", size = 133289, upload-time = "2026-06-17T10:31:06.348Z" },
30
+ ]
31
+
32
+ [[package]]
33
+ name = "h11"
34
+ version = "0.16.0"
35
+ source = { registry = "https://pypi.org/simple" }
36
+ sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" }
37
+ wheels = [
38
+ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },
39
+ ]
40
+
41
+ [[package]]
42
+ name = "httpcore"
43
+ version = "1.0.9"
44
+ source = { registry = "https://pypi.org/simple" }
45
+ dependencies = [
46
+ { name = "certifi" },
47
+ { name = "h11" },
48
+ ]
49
+ sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }
50
+ wheels = [
51
+ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },
52
+ ]
53
+
54
+ [[package]]
55
+ name = "httpx"
56
+ version = "0.28.1"
57
+ source = { registry = "https://pypi.org/simple" }
58
+ dependencies = [
59
+ { name = "anyio" },
60
+ { name = "certifi" },
61
+ { name = "httpcore" },
62
+ { name = "idna" },
63
+ ]
64
+ sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" }
65
+ wheels = [
66
+ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },
67
+ ]
68
+
69
+ [[package]]
70
+ name = "idna"
71
+ version = "3.18"
72
+ source = { registry = "https://pypi.org/simple" }
73
+ sdist = { url = "https://files.pythonhosted.org/packages/cd/63/9496c57188a2ee585e0f1db071d75089a11e98aa86eb99d9d7618fc1edce/idna-3.18.tar.gz", hash = "sha256:ffb385a7e039654cef1ab9ef32c6fafe283c0c0467bba1d9029738ce4a14a848", size = 196711, upload-time = "2026-06-02T14:34:07.794Z" }
74
+ wheels = [
75
+ { url = "https://files.pythonhosted.org/packages/1e/5e/d4e9f1a599fb8e573b7b87160658329fbf28d19eac2718f51fc3def3aa5a/idna-3.18-py3-none-any.whl", hash = "sha256:7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2", size = 65455, upload-time = "2026-06-02T14:34:06.319Z" },
76
+ ]
77
+
78
+ [[package]]
79
+ name = "networkx"
80
+ version = "3.6.1"
81
+ source = { registry = "https://pypi.org/simple" }
82
+ sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" }
83
+ wheels = [
84
+ { url = "https://files.pythonhosted.org/packages/9e/c9/b2622292ea83fbb4ec318f5b9ab867d0a28ab43c5717bb85b0a5f6b3b0a4/networkx-3.6.1-py3-none-any.whl", hash = "sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762", size = 2068504, upload-time = "2025-12-08T17:02:38.159Z" },
85
+ ]
86
+
87
+ [[package]]
88
+ name = "numpy"
89
+ version = "2.2.6"
90
+ source = { registry = "https://pypi.org/simple" }
91
+ sdist = { url = "https://files.pythonhosted.org/packages/76/21/7d2a95e4bba9dc13d043ee156a356c0a8f0c6309dff6b21b4d71a073b8a8/numpy-2.2.6.tar.gz", hash = "sha256:e29554e2bef54a90aa5cc07da6ce955accb83f21ab5de01a62c8478897b264fd", size = 20276440, upload-time = "2025-05-17T22:38:04.611Z" }
92
+ wheels = [
93
+ { url = "https://files.pythonhosted.org/packages/82/5d/c00588b6cf18e1da539b45d3598d3557084990dcc4331960c15ee776ee41/numpy-2.2.6-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:41c5a21f4a04fa86436124d388f6ed60a9343a6f767fced1a8a71c3fbca038ff", size = 20875348, upload-time = "2025-05-17T21:34:39.648Z" },
94
+ { url = "https://files.pythonhosted.org/packages/66/ee/560deadcdde6c2f90200450d5938f63a34b37e27ebff162810f716f6a230/numpy-2.2.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:de749064336d37e340f640b05f24e9e3dd678c57318c7289d222a8a2f543e90c", size = 14119362, upload-time = "2025-05-17T21:35:01.241Z" },
95
+ { url = "https://files.pythonhosted.org/packages/3c/65/4baa99f1c53b30adf0acd9a5519078871ddde8d2339dc5a7fde80d9d87da/numpy-2.2.6-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:894b3a42502226a1cac872f840030665f33326fc3dac8e57c607905773cdcde3", size = 5084103, upload-time = "2025-05-17T21:35:10.622Z" },
96
+ { url = "https://files.pythonhosted.org/packages/cc/89/e5a34c071a0570cc40c9a54eb472d113eea6d002e9ae12bb3a8407fb912e/numpy-2.2.6-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:71594f7c51a18e728451bb50cc60a3ce4e6538822731b2933209a1f3614e9282", size = 6625382, upload-time = "2025-05-17T21:35:21.414Z" },
97
+ { url = "https://files.pythonhosted.org/packages/f8/35/8c80729f1ff76b3921d5c9487c7ac3de9b2a103b1cd05e905b3090513510/numpy-2.2.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2618db89be1b4e05f7a1a847a9c1c0abd63e63a1607d892dd54668dd92faf87", size = 14018462, upload-time = "2025-05-17T21:35:42.174Z" },
98
+ { url = "https://files.pythonhosted.org/packages/8c/3d/1e1db36cfd41f895d266b103df00ca5b3cbe965184df824dec5c08c6b803/numpy-2.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd83c01228a688733f1ded5201c678f0c53ecc1006ffbc404db9f7a899ac6249", size = 16527618, upload-time = "2025-05-17T21:36:06.711Z" },
99
+ { url = "https://files.pythonhosted.org/packages/61/c6/03ed30992602c85aa3cd95b9070a514f8b3c33e31124694438d88809ae36/numpy-2.2.6-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:37c0ca431f82cd5fa716eca9506aefcabc247fb27ba69c5062a6d3ade8cf8f49", size = 15505511, upload-time = "2025-05-17T21:36:29.965Z" },
100
+ { url = "https://files.pythonhosted.org/packages/b7/25/5761d832a81df431e260719ec45de696414266613c9ee268394dd5ad8236/numpy-2.2.6-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fe27749d33bb772c80dcd84ae7e8df2adc920ae8297400dabec45f0dedb3f6de", size = 18313783, upload-time = "2025-05-17T21:36:56.883Z" },
101
+ { url = "https://files.pythonhosted.org/packages/57/0a/72d5a3527c5ebffcd47bde9162c39fae1f90138c961e5296491ce778e682/numpy-2.2.6-cp312-cp312-win32.whl", hash = "sha256:4eeaae00d789f66c7a25ac5f34b71a7035bb474e679f410e5e1a94deb24cf2d4", size = 6246506, upload-time = "2025-05-17T21:37:07.368Z" },
102
+ { url = "https://files.pythonhosted.org/packages/36/fa/8c9210162ca1b88529ab76b41ba02d433fd54fecaf6feb70ef9f124683f1/numpy-2.2.6-cp312-cp312-win_amd64.whl", hash = "sha256:c1f9540be57940698ed329904db803cf7a402f3fc200bfe599334c9bd84a40b2", size = 12614190, upload-time = "2025-05-17T21:37:26.213Z" },
103
+ ]
104
+
105
+ [[package]]
106
+ name = "opencv-python-headless"
107
+ version = "4.11.0.86"
108
+ source = { registry = "https://pypi.org/simple" }
109
+ dependencies = [
110
+ { name = "numpy" },
111
+ ]
112
+ sdist = { url = "https://files.pythonhosted.org/packages/36/2f/5b2b3ba52c864848885ba988f24b7f105052f68da9ab0e693cc7c25b0b30/opencv-python-headless-4.11.0.86.tar.gz", hash = "sha256:996eb282ca4b43ec6a3972414de0e2331f5d9cda2b41091a49739c19fb843798", size = 95177929, upload-time = "2025-01-16T13:53:40.22Z" }
113
+ wheels = [
114
+ { url = "https://files.pythonhosted.org/packages/dc/53/2c50afa0b1e05ecdb4603818e85f7d174e683d874ef63a6abe3ac92220c8/opencv_python_headless-4.11.0.86-cp37-abi3-macosx_13_0_arm64.whl", hash = "sha256:48128188ade4a7e517237c8e1e11a9cdf5c282761473383e77beb875bb1e61ca", size = 37326460, upload-time = "2025-01-16T13:52:57.015Z" },
115
+ { url = "https://files.pythonhosted.org/packages/3b/43/68555327df94bb9b59a1fd645f63fafb0762515344d2046698762fc19d58/opencv_python_headless-4.11.0.86-cp37-abi3-macosx_13_0_x86_64.whl", hash = "sha256:a66c1b286a9de872c343ee7c3553b084244299714ebb50fbdcd76f07ebbe6c81", size = 56723330, upload-time = "2025-01-16T13:55:45.731Z" },
116
+ { url = "https://files.pythonhosted.org/packages/45/be/1438ce43ebe65317344a87e4b150865c5585f4c0db880a34cdae5ac46881/opencv_python_headless-4.11.0.86-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6efabcaa9df731f29e5ea9051776715b1bdd1845d7c9530065c7951d2a2899eb", size = 29487060, upload-time = "2025-01-16T13:51:59.625Z" },
117
+ { url = "https://files.pythonhosted.org/packages/dd/5c/c139a7876099916879609372bfa513b7f1257f7f1a908b0bdc1c2328241b/opencv_python_headless-4.11.0.86-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0e0a27c19dd1f40ddff94976cfe43066fbbe9dfbb2ec1907d66c19caef42a57b", size = 49969856, upload-time = "2025-01-16T13:53:29.654Z" },
118
+ { url = "https://files.pythonhosted.org/packages/95/dd/ed1191c9dc91abcc9f752b499b7928aacabf10567bb2c2535944d848af18/opencv_python_headless-4.11.0.86-cp37-abi3-win32.whl", hash = "sha256:f447d8acbb0b6f2808da71fddd29c1cdd448d2bc98f72d9bb78a7a898fc9621b", size = 29324425, upload-time = "2025-01-16T13:52:49.048Z" },
119
+ { url = "https://files.pythonhosted.org/packages/86/8a/69176a64335aed183529207ba8bc3d329c2999d852b4f3818027203f50e6/opencv_python_headless-4.11.0.86-cp37-abi3-win_amd64.whl", hash = "sha256:6c304df9caa7a6a5710b91709dd4786bf20a74d57672b3c31f7033cc638174ca", size = 39402386, upload-time = "2025-01-16T13:52:56.418Z" },
120
+ ]
121
+
122
+ [[package]]
123
+ name = "opt-einsum"
124
+ version = "3.3.0"
125
+ source = { registry = "https://pypi.org/simple" }
126
+ dependencies = [
127
+ { name = "numpy" },
128
+ ]
129
+ sdist = { url = "https://files.pythonhosted.org/packages/7d/bf/9257e53a0e7715bc1127e15063e831f076723c6cd60985333a1c18878fb8/opt_einsum-3.3.0.tar.gz", hash = "sha256:59f6475f77bbc37dcf7cd748519c0ec60722e91e63ca114e68821c0c54a46549", size = 73951, upload-time = "2020-07-19T22:40:32.141Z" }
130
+ wheels = [
131
+ { url = "https://files.pythonhosted.org/packages/bc/19/404708a7e54ad2798907210462fd950c3442ea51acc8790f3da48d2bee8b/opt_einsum-3.3.0-py3-none-any.whl", hash = "sha256:2455e59e3947d3c275477df7f5205b30635e266fe6dc300e3d9f9646bfcea147", size = 65486, upload-time = "2020-07-19T22:40:30.301Z" },
132
+ ]
133
+
134
+ [[package]]
135
+ name = "paddlepaddle"
136
+ version = "3.2.2"
137
+ source = { registry = "https://pypi.org/simple" }
138
+ dependencies = [
139
+ { name = "httpx" },
140
+ { name = "networkx" },
141
+ { name = "numpy" },
142
+ { name = "opt-einsum" },
143
+ { name = "pillow" },
144
+ { name = "protobuf" },
145
+ { name = "safetensors" },
146
+ { name = "typing-extensions" },
147
+ ]
148
+ wheels = [
149
+ { url = "https://files.pythonhosted.org/packages/2a/3a/84204351f84bc837c6bc95592f3b4bf71487f4a99e72a5bc7027d2fe1ba8/paddlepaddle-3.2.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c62dab0d4df6de2978960832f0015a145c23cd379418d932ddd8f546629d1fe4", size = 99510113, upload-time = "2025-11-14T13:27:27.71Z" },
150
+ { url = "https://files.pythonhosted.org/packages/7f/2d/f46a5f5464c7d31e9e067e173a449cff8c0d96f7f7282b9454650901fe3c/paddlepaddle-3.2.2-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:f6b3b73d47acc82cf545896e6e5c31b55a7f9a26dc0acb28abcc24069d9396dd", size = 189280697, upload-time = "2025-11-19T11:52:09.004Z" },
151
+ { url = "https://files.pythonhosted.org/packages/e8/e1/2f410bed4271df98ab2a720caa59ff408f8e8ca5daa6089b78b4326b8d10/paddlepaddle-3.2.2-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:a59d9020ba160fa7f5aefcb30e4a6329390a635d1a0b511f6458139376c03f99", size = 88147129, upload-time = "2025-11-19T11:18:34.59Z" },
152
+ { url = "https://files.pythonhosted.org/packages/ec/ff/ed7598e52e3ad2ebd8202076b4d2412e5e605a15b9ba03ab0cec6edf824e/paddlepaddle-3.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:883954ea41fb1cccd022ac351f164b7a9f5cbc94be24223ce8bd981ddee93eb3", size = 101725915, upload-time = "2025-11-14T13:15:13.643Z" },
153
+ ]
154
+
155
+ [[package]]
156
+ name = "pepperocr-mdpbench-orientation"
157
+ version = "0.1.0"
158
+ source = { virtual = "." }
159
+ dependencies = [
160
+ { name = "numpy" },
161
+ { name = "opencv-python-headless" },
162
+ { name = "paddlepaddle" },
163
+ { name = "pillow" },
164
+ { name = "setuptools" },
165
+ ]
166
+
167
+ [package.metadata]
168
+ requires-dist = [
169
+ { name = "numpy", specifier = "==2.2.6" },
170
+ { name = "opencv-python-headless", specifier = "==4.11.0.86" },
171
+ { name = "paddlepaddle", specifier = "==3.2.2" },
172
+ { name = "pillow", specifier = "==12.3.0" },
173
+ { name = "setuptools", specifier = "==80.9.0" },
174
+ ]
175
+
176
+ [[package]]
177
+ name = "pillow"
178
+ version = "12.3.0"
179
+ source = { registry = "https://pypi.org/simple" }
180
+ sdist = { url = "https://files.pythonhosted.org/packages/1c/3d/bb7fca845737cf9d7dbde16ed1843984665ff2e0a518f5db43e77ec540b9/pillow-12.3.0.tar.gz", hash = "sha256:3b8182a766685eaa002637e28b4ec8d6b18819a0c71f579bf0dbaa5830297cce", size = 47025035, upload-time = "2026-07-01T11:56:38.965Z" }
181
+ wheels = [
182
+ { url = "https://files.pythonhosted.org/packages/37/bf/fb3ebff8ddcb76aac5a01389251bbbb9519922a9b520d8247c1ca864a25d/pillow-12.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ba09209fbe443b4acccebe845d8a138b89a8f4fbaeedd44953490b5315d5e965", size = 5345969, upload-time = "2026-07-01T11:54:06.397Z" },
183
+ { url = "https://files.pythonhosted.org/packages/d8/66/9a386a92561f402389a4fc70c18838bf6d35eb5eb5c6850b4b2dc64f5048/pillow-12.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ffd0c5368496f41b0944be820fcb7a838aa6e623d250b01acf2643939c3f99d7", size = 4780323, upload-time = "2026-07-01T11:54:09.351Z" },
184
+ { url = "https://files.pythonhosted.org/packages/25/27/ac8f99618ffd3dde21db0f4d4b1d2ab00c0880595bfd17df103f7f39fd0c/pillow-12.3.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d9c7f76c0673154f044e9d78c8655fb4213f6ca31a836df48b40fe5d187717b9", size = 6266838, upload-time = "2026-07-01T11:54:11.71Z" },
185
+ { url = "https://files.pythonhosted.org/packages/84/21/a35af28dcc61f37ed850a2d64c65c701321dfbf25085e469d5559360cbbf/pillow-12.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:78cb2c6865a35ab8ff8b75fd122f6033b92a62c82801110e48ddd6c936a45d91", size = 6940830, upload-time = "2026-07-01T11:54:13.732Z" },
186
+ { url = "https://files.pythonhosted.org/packages/eb/51/8b08617af3ad95e33ce6d7dd2c99ed6c8298f7fb131636303956be022e25/pillow-12.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e491916b378fba47242221bb9ead245211b70d504f495d105d17b14a24b4907c", size = 6344383, upload-time = "2026-07-01T11:54:15.756Z" },
187
+ { url = "https://files.pythonhosted.org/packages/1d/72/cf78ac9780bb93c28328f408973845a309d4d145041665f734572ced1b52/pillow-12.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0dd2064cbc55aaec028ef5fbb60fa47bb6c3e7918e07ff17935284b227a9d2df", size = 7052934, upload-time = "2026-07-01T11:54:17.721Z" },
188
+ { url = "https://files.pythonhosted.org/packages/20/20/25e0f4dc178a6bc0696793720055519a0de89e7661dae886992decbd2f81/pillow-12.3.0-cp312-cp312-win32.whl", hash = "sha256:dbce0b29841537a2fa4a214c2bbf14de3587c9680caa9b4e217568472490b28f", size = 6472684, upload-time = "2026-07-01T11:54:19.839Z" },
189
+ { url = "https://files.pythonhosted.org/packages/45/89/da2f7971a317f83d807fdd4065c0af40208e59e692cc43d315a71a0e96d1/pillow-12.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:a2b55dd6b2a4c4b7d87ffa56bdb33fdc5fdb9a462173861a7bc097f17d91cb09", size = 7227137, upload-time = "2026-07-01T11:54:22.025Z" },
190
+ { url = "https://files.pythonhosted.org/packages/de/47/4845a0a6c0dbf1db8456bd9fc791f13c5ced7ced20606d08a0aacfd25b49/pillow-12.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:331b624368d4f1d069149002f25f44bc61c8919ce8ddb3c45bdad8f6e2d89510", size = 2568267, upload-time = "2026-07-01T11:54:24.051Z" },
191
+ ]
192
+
193
+ [[package]]
194
+ name = "protobuf"
195
+ version = "7.35.1"
196
+ source = { registry = "https://pypi.org/simple" }
197
+ sdist = { url = "https://files.pythonhosted.org/packages/da/01/9ef0afd7999eb9badb3a768b4aedd78c86d4c65cfaf1958ab276199e76b4/protobuf-7.35.1.tar.gz", hash = "sha256:ce115a26fe0c39a2c29973d914d327e516a6455464489fe3cd1e51a1b354f81a", size = 458717, upload-time = "2026-06-11T21:55:40.257Z" }
198
+ wheels = [
199
+ { url = "https://files.pythonhosted.org/packages/10/03/8aeeb7458d22546bf64b5250ca1daeb5ff757d900e8e4a7476c6f0db843e/protobuf-7.35.1-cp310-abi3-macosx_10_9_universal2.whl", hash = "sha256:24f857477359a85c0c235261b8ba905fd51b2562f4a64ca1df5473f29850cbf6", size = 433226, upload-time = "2026-06-11T21:55:31.719Z" },
200
+ { url = "https://files.pythonhosted.org/packages/37/4b/dfb89eb0e652a1ff073c39a59fb5e3a83cfe9b57a2c83fa6d78270101767/protobuf-7.35.1-cp310-abi3-manylinux2014_aarch64.whl", hash = "sha256:11d6b0ec246892d85215b0a13ca6e0233cf5284b68f0ac02646427f4ff88a799", size = 328847, upload-time = "2026-06-11T21:55:34.035Z" },
201
+ { url = "https://files.pythonhosted.org/packages/0f/58/dc12f2cd484951524af6e3382c785869b9b3fb5e52ee95ae23add53ee8f9/protobuf-7.35.1-cp310-abi3-manylinux2014_s390x.whl", hash = "sha256:b73f9489a4b8b1c9cb1f8ed951c736392592edb24b9d6819f36d2e10b171d5b4", size = 344030, upload-time = "2026-06-11T21:55:34.941Z" },
202
+ { url = "https://files.pythonhosted.org/packages/e4/be/5b3cfe508bfab6761414ff944e3366eb13be4fd71efcd69450f89ba39f43/protobuf-7.35.1-cp310-abi3-manylinux2014_x86_64.whl", hash = "sha256:74758715c53d7158fb76caf4f0cfdacc5329a4b1bb994f865d6cf302d413a1c4", size = 327130, upload-time = "2026-06-11T21:55:35.921Z" },
203
+ { url = "https://files.pythonhosted.org/packages/d8/bc/6d6c7ba8709c85f8f2c390b2b118d6fb08a783676a572271851bf45a7d22/protobuf-7.35.1-cp310-abi3-win32.whl", hash = "sha256:353652e4efd0bca5b5fc2656abf8307ef351f0cf938c9eba09f0e09c20a25c30", size = 428945, upload-time = "2026-06-11T21:55:37.034Z" },
204
+ { url = "https://files.pythonhosted.org/packages/0a/19/8d0cb6f20a1ef7b18f1c8986ad5783f22f84cce39c6ce9a6e645ea55192e/protobuf-7.35.1-cp310-abi3-win_amd64.whl", hash = "sha256:230a75ddfc2de4806e56696ce9640c1cdfdb6543b7cfce98d42a4c0a0e7bdb87", size = 439996, upload-time = "2026-06-11T21:55:38.123Z" },
205
+ { url = "https://files.pythonhosted.org/packages/19/c7/5f7c636ec43e0c545e28d1f1db71990108306f7bdcb89f069ba97e428e7f/protobuf-7.35.1-py3-none-any.whl", hash = "sha256:4bc97768d8fe4ad6743c8a19403e314511ed9f6d13205b687e52421c023ac1b9", size = 171659, upload-time = "2026-06-11T21:55:39.155Z" },
206
+ ]
207
+
208
+ [[package]]
209
+ name = "safetensors"
210
+ version = "0.8.0"
211
+ source = { registry = "https://pypi.org/simple" }
212
+ sdist = { url = "https://files.pythonhosted.org/packages/45/06/f955dbbb1859e3bd23c8ac6141af5106e7ad5fedec4a3a6e3d60f94b7001/safetensors-0.8.0.tar.gz", hash = "sha256:fabaf3e0f18a6618d9b36560682562157f77c2b71fcffc7b432be2baed9d753d", size = 325846, upload-time = "2026-06-09T07:52:25.563Z" }
213
+ wheels = [
214
+ { url = "https://files.pythonhosted.org/packages/39/a0/f718cda65b05407d228f97602cf60dca269c979867aa5beb25410de26cd3/safetensors-0.8.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:c554f85858e05226d3c2828e32395e677434685d6d94594a41643361c5e837f0", size = 473568, upload-time = "2026-06-09T07:52:18.829Z" },
215
+ { url = "https://files.pythonhosted.org/packages/f5/b1/fa7c600e7dceae12e9606c7578cbc9ff1e1ed55844883ee5c92205e86226/safetensors-0.8.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:c80201d22cbf405b80647a60ada77bba06c8fba2da2743ba1e89cdcc39a81f25", size = 484562, upload-time = "2026-06-09T07:52:17.518Z" },
216
+ { url = "https://files.pythonhosted.org/packages/09/7d/65a7de0af421317bb36a067241e4235fff194eed60b961ed6d3f59a3fc60/safetensors-0.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a46e5ff292c356d6991e60942ba7f79817682d3a2cef0702136448cb9c4d235", size = 502844, upload-time = "2026-06-09T07:52:07.624Z" },
217
+ { url = "https://files.pythonhosted.org/packages/91/4f/3175c9d75634e0e0dda0082794193521035edd7c70a6f212bf33ca06ddf4/safetensors-0.8.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4124502b78f03534117c848f87a39b8f31e577b15eff423bf8bfb95f2a8c30d0", size = 511823, upload-time = "2026-06-09T07:52:09.565Z" },
218
+ { url = "https://files.pythonhosted.org/packages/20/87/846c289e7aa2299eff406335717cf43ce8777194ece8aad75772e0411615/safetensors-0.8.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7bc0a787ba8a35be368ee3574edfa2b1ad389eebd0a72e482ae275490e3f6c98", size = 633461, upload-time = "2026-06-09T07:52:11.128Z" },
219
+ { url = "https://files.pythonhosted.org/packages/76/22/8d64d9df2c45d5ded401df889d0ad90882804ca172d79ec4f0df8f727fe0/safetensors-0.8.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:040070828e36dc8e122178bbbd5830ff9e97920affb84cbe0f46442497bed358", size = 545148, upload-time = "2026-06-09T07:52:13.603Z" },
220
+ { url = "https://files.pythonhosted.org/packages/28/50/f203ff3a3ddfe19308efc83c5a3a29ed02bf786732ec35e68bf9162f3365/safetensors-0.8.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd6f3f93c9a0a7cc2788ee63fb763353d4bd2e89b0751bc78fcf7dda00bea774", size = 516040, upload-time = "2026-06-09T07:52:16.29Z" },
221
+ { url = "https://files.pythonhosted.org/packages/46/fb/cdaed17ceb2948784fd9c36b6fd3e951b608547cea81a48e8ee6f8cfdfcb/safetensors-0.8.0-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:fcdd41ec4628fee5799f807c73c353629130fbd942aa23d83c623dd6c9d52d78", size = 513832, upload-time = "2026-06-09T07:52:12.37Z" },
222
+ { url = "https://files.pythonhosted.org/packages/0d/49/1e15de264dcc3b77943d2d0c56a95809956883b1c2d6d585c792523f180b/safetensors-0.8.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8e9f537aa183a38ace122d27303dcd986b26bd2a7591f9181d7f0c396f4677ca", size = 559930, upload-time = "2026-06-09T07:52:14.743Z" },
223
+ { url = "https://files.pythonhosted.org/packages/2a/43/bf38443278eab4b1be1fce2931e2b012ad9cb7df52ada751d0aab8f7659a/safetensors-0.8.0-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:87eec7ffed2b809f05a398a8becb7d013f19f7837cd15d9748580d6cf30dbaf4", size = 678670, upload-time = "2026-06-09T07:52:20.032Z" },
224
+ { url = "https://files.pythonhosted.org/packages/72/e3/68cd3fa5b48488e84add63e04cb12f3bc28ae4638c06d4508c6e88823d0e/safetensors-0.8.0-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:4a95ae2b05d7726d751da4ebf626a2ca782b706e101bd894c95bc2450b1cffcc", size = 786679, upload-time = "2026-06-09T07:52:21.322Z" },
225
+ { url = "https://files.pythonhosted.org/packages/29/4b/1c19c509d56e01f4fbb3d0a2e597450f6cc04d1d56cf52defb0a62dfd715/safetensors-0.8.0-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:3ae091f16662658bdc019a4ff6cb4c085bb7d725eb5978b183ffd265863b6d2d", size = 765683, upload-time = "2026-06-09T07:52:22.594Z" },
226
+ { url = "https://files.pythonhosted.org/packages/27/43/41c1621732edd934d868a00d1b891584c892a7b62a9aab82ea5a0a5623ee/safetensors-0.8.0-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:8e080062fcde23be189565e1c3305d16751a218ecf9412c8601e64204eb6f846", size = 722361, upload-time = "2026-06-09T07:52:23.924Z" },
227
+ { url = "https://files.pythonhosted.org/packages/8e/3f/73ccf82579412b4a71c4ca673f10b5f1f888d7cf5af7fe24f27d30307be4/safetensors-0.8.0-cp310-abi3-win32.whl", hash = "sha256:2ddf52eac562eda224f99acfa7889d02968c1fd59a5b011ae7d8137c37e9c02d", size = 342401, upload-time = "2026-06-09T07:52:28.895Z" },
228
+ { url = "https://files.pythonhosted.org/packages/1b/6d/3fba214c1e5e0f69991677ec3bc17023f0421776975e1de0c682dca475e2/safetensors-0.8.0-cp310-abi3-win_amd64.whl", hash = "sha256:096ec1a98435df7beb08853bb5aa9081a84f23d0adc67ed1a0a10550f608373f", size = 355540, upload-time = "2026-06-09T07:52:27.832Z" },
229
+ { url = "https://files.pythonhosted.org/packages/8d/fc/7eedc3510d97878876e32774eebbeb61c43f148a96e915c84229a3e967aa/safetensors-0.8.0-cp310-abi3-win_arm64.whl", hash = "sha256:f7838e5135a406ad3e02efdcb8cf2e5397d368b0154537c4fec682dbc544d452", size = 340500, upload-time = "2026-06-09T07:52:26.745Z" },
230
+ ]
231
+
232
+ [[package]]
233
+ name = "setuptools"
234
+ version = "80.9.0"
235
+ source = { registry = "https://pypi.org/simple" }
236
+ sdist = { url = "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c", size = 1319958, upload-time = "2025-05-27T00:56:51.443Z" }
237
+ wheels = [
238
+ { url = "https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922", size = 1201486, upload-time = "2025-05-27T00:56:49.664Z" },
239
+ ]
240
+
241
+ [[package]]
242
+ name = "typing-extensions"
243
+ version = "4.16.0"
244
+ source = { registry = "https://pypi.org/simple" }
245
+ sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }
246
+ wheels = [
247
+ { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" },
248
+ ]
preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
processor_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "merge_size": 2,
19
+ "patch_size": 16,
20
+ "resample": 3,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 16777216,
24
+ "shortest_edge": 65536
25
+ },
26
+ "temporal_patch_size": 2
27
+ },
28
+ "processor_class": "Qwen3VLProcessor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": true,
35
+ "fps": 2,
36
+ "image_mean": [
37
+ 0.5,
38
+ 0.5,
39
+ 0.5
40
+ ],
41
+ "image_std": [
42
+ 0.5,
43
+ 0.5,
44
+ 0.5
45
+ ],
46
+ "max_frames": 768,
47
+ "merge_size": 2,
48
+ "min_frames": 4,
49
+ "patch_size": 16,
50
+ "resample": 3,
51
+ "rescale_factor": 0.00392156862745098,
52
+ "return_metadata": false,
53
+ "size": {
54
+ "longest_edge": 25165824,
55
+ "shortest_edge": 4096
56
+ },
57
+ "temporal_patch_size": 2,
58
+ "video_processor_type": "Qwen3VLVideoProcessor"
59
+ }
60
+ }
prompt.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ You are an advanced hybrid OCR engine capable of processing multilingual text mixed with mathematical notation. Your goal is to transcribe the content with high fidelity.Strict Rules: 1. Multilingual Precision: Transcribe text exactly as it appears in the original language. Do not translate, summarize, or correct original spelling errors. 2. Math Formatting: Identify all mathematical expressions and convert them into LaTeX. 3. Use single dollar signs ($x$) for inline math (formulas within a sentence). 4. Use double dollar signs ($$x$$) for display math (standalone formulas on their own lines). 5. Layout & Structure: Use Markdown to preserve the visual structure (headers, paragraphs, lists). 6. Output Only: Output the transcribed text directly without any conversational filler.
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "local_files_only": true,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "processor_class": "Qwen3VLProcessor",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null,
30
+ "video_token": "<|video_pad|>",
31
+ "vision_bos_token": "<|vision_start|>",
32
+ "vision_eos_token": "<|vision_end|>"
33
+ }