Yanqing0327 commited on
Commit
15d8aa1
·
verified ·
1 Parent(s): 8aeeea1

OpenEmbed-2B: weights, model card, model code and licenses (private upload)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-NonCommercial 4.0 International Public
58
+ License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-NonCommercial 4.0 International Public License ("Public
63
+ License"). To the extent this Public License may be interpreted as a
64
+ contract, You are granted the Licensed Rights in consideration of Your
65
+ acceptance of these terms and conditions, and the Licensor grants You
66
+ such rights in consideration of benefits the Licensor receives from
67
+ making the Licensed Material available under these terms and
68
+ conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. Copyright and Similar Rights means copyright and/or similar rights
88
+ closely related to copyright including, without limitation,
89
+ performance, broadcast, sound recording, and Sui Generis Database
90
+ Rights, without regard to how the rights are labeled or
91
+ categorized. For purposes of this Public License, the rights
92
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
93
+ Rights.
94
+ d. Effective Technological Measures means those measures that, in the
95
+ absence of proper authority, may not be circumvented under laws
96
+ fulfilling obligations under Article 11 of the WIPO Copyright
97
+ Treaty adopted on December 20, 1996, and/or similar international
98
+ agreements.
99
+
100
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
101
+ any other exception or limitation to Copyright and Similar Rights
102
+ that applies to Your use of the Licensed Material.
103
+
104
+ f. Licensed Material means the artistic or literary work, database,
105
+ or other material to which the Licensor applied this Public
106
+ License.
107
+
108
+ g. Licensed Rights means the rights granted to You subject to the
109
+ terms and conditions of this Public License, which are limited to
110
+ all Copyright and Similar Rights that apply to Your use of the
111
+ Licensed Material and that the Licensor has authority to license.
112
+
113
+ h. Licensor means the individual(s) or entity(ies) granting rights
114
+ under this Public License.
115
+
116
+ i. NonCommercial means not primarily intended for or directed towards
117
+ commercial advantage or monetary compensation. For purposes of
118
+ this Public License, the exchange of the Licensed Material for
119
+ other material subject to Copyright and Similar Rights by digital
120
+ file-sharing or similar means is NonCommercial provided there is
121
+ no payment of monetary compensation in connection with the
122
+ exchange.
123
+
124
+ j. Share means to provide material to the public by any means or
125
+ process that requires permission under the Licensed Rights, such
126
+ as reproduction, public display, public performance, distribution,
127
+ dissemination, communication, or importation, and to make material
128
+ available to the public including in ways that members of the
129
+ public may access the material from a place and at a time
130
+ individually chosen by them.
131
+
132
+ k. Sui Generis Database Rights means rights other than copyright
133
+ resulting from Directive 96/9/EC of the European Parliament and of
134
+ the Council of 11 March 1996 on the legal protection of databases,
135
+ as amended and/or succeeded, as well as other essentially
136
+ equivalent rights anywhere in the world.
137
+
138
+ l. You means the individual or entity exercising the Licensed Rights
139
+ under this Public License. Your has a corresponding meaning.
140
+
141
+
142
+ Section 2 -- Scope.
143
+
144
+ a. License grant.
145
+
146
+ 1. Subject to the terms and conditions of this Public License,
147
+ the Licensor hereby grants You a worldwide, royalty-free,
148
+ non-sublicensable, non-exclusive, irrevocable license to
149
+ exercise the Licensed Rights in the Licensed Material to:
150
+
151
+ a. reproduce and Share the Licensed Material, in whole or
152
+ in part, for NonCommercial purposes only; and
153
+
154
+ b. produce, reproduce, and Share Adapted Material for
155
+ NonCommercial purposes only.
156
+
157
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
158
+ Exceptions and Limitations apply to Your use, this Public
159
+ License does not apply, and You do not need to comply with
160
+ its terms and conditions.
161
+
162
+ 3. Term. The term of this Public License is specified in Section
163
+ 6(a).
164
+
165
+ 4. Media and formats; technical modifications allowed. The
166
+ Licensor authorizes You to exercise the Licensed Rights in
167
+ all media and formats whether now known or hereafter created,
168
+ and to make technical modifications necessary to do so. The
169
+ Licensor waives and/or agrees not to assert any right or
170
+ authority to forbid You from making technical modifications
171
+ necessary to exercise the Licensed Rights, including
172
+ technical modifications necessary to circumvent Effective
173
+ Technological Measures. For purposes of this Public License,
174
+ simply making modifications authorized by this Section 2(a)
175
+ (4) never produces Adapted Material.
176
+
177
+ 5. Downstream recipients.
178
+
179
+ a. Offer from the Licensor -- Licensed Material. Every
180
+ recipient of the Licensed Material automatically
181
+ receives an offer from the Licensor to exercise the
182
+ Licensed Rights under the terms and conditions of this
183
+ Public License.
184
+
185
+ b. No downstream restrictions. You may not offer or impose
186
+ any additional or different terms or conditions on, or
187
+ apply any Effective Technological Measures to, the
188
+ Licensed Material if doing so restricts exercise of the
189
+ Licensed Rights by any recipient of the Licensed
190
+ Material.
191
+
192
+ 6. No endorsement. Nothing in this Public License constitutes or
193
+ may be construed as permission to assert or imply that You
194
+ are, or that Your use of the Licensed Material is, connected
195
+ with, or sponsored, endorsed, or granted official status by,
196
+ the Licensor or others designated to receive attribution as
197
+ provided in Section 3(a)(1)(A)(i).
198
+
199
+ b. Other rights.
200
+
201
+ 1. Moral rights, such as the right of integrity, are not
202
+ licensed under this Public License, nor are publicity,
203
+ privacy, and/or other similar personality rights; however, to
204
+ the extent possible, the Licensor waives and/or agrees not to
205
+ assert any such rights held by the Licensor to the limited
206
+ extent necessary to allow You to exercise the Licensed
207
+ Rights, but not otherwise.
208
+
209
+ 2. Patent and trademark rights are not licensed under this
210
+ Public License.
211
+
212
+ 3. To the extent possible, the Licensor waives any right to
213
+ collect royalties from You for the exercise of the Licensed
214
+ Rights, whether directly or through a collecting society
215
+ under any voluntary or waivable statutory or compulsory
216
+ licensing scheme. In all other cases the Licensor expressly
217
+ reserves any right to collect such royalties, including when
218
+ the Licensed Material is used other than for NonCommercial
219
+ purposes.
220
+
221
+
222
+ Section 3 -- License Conditions.
223
+
224
+ Your exercise of the Licensed Rights is expressly made subject to the
225
+ following conditions.
226
+
227
+ a. Attribution.
228
+
229
+ 1. If You Share the Licensed Material (including in modified
230
+ form), You must:
231
+
232
+ a. retain the following if it is supplied by the Licensor
233
+ with the Licensed Material:
234
+
235
+ i. identification of the creator(s) of the Licensed
236
+ Material and any others designated to receive
237
+ attribution, in any reasonable manner requested by
238
+ the Licensor (including by pseudonym if
239
+ designated);
240
+
241
+ ii. a copyright notice;
242
+
243
+ iii. a notice that refers to this Public License;
244
+
245
+ iv. a notice that refers to the disclaimer of
246
+ warranties;
247
+
248
+ v. a URI or hyperlink to the Licensed Material to the
249
+ extent reasonably practicable;
250
+
251
+ b. indicate if You modified the Licensed Material and
252
+ retain an indication of any previous modifications; and
253
+
254
+ c. indicate the Licensed Material is licensed under this
255
+ Public License, and include the text of, or the URI or
256
+ hyperlink to, this Public License.
257
+
258
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
259
+ reasonable manner based on the medium, means, and context in
260
+ which You Share the Licensed Material. For example, it may be
261
+ reasonable to satisfy the conditions by providing a URI or
262
+ hyperlink to a resource that includes the required
263
+ information.
264
+
265
+ 3. If requested by the Licensor, You must remove any of the
266
+ information required by Section 3(a)(1)(A) to the extent
267
+ reasonably practicable.
268
+
269
+ 4. If You Share Adapted Material You produce, the Adapter's
270
+ License You apply must not prevent recipients of the Adapted
271
+ Material from complying with this Public License.
272
+
273
+
274
+ Section 4 -- Sui Generis Database Rights.
275
+
276
+ Where the Licensed Rights include Sui Generis Database Rights that
277
+ apply to Your use of the Licensed Material:
278
+
279
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
280
+ to extract, reuse, reproduce, and Share all or a substantial
281
+ portion of the contents of the database for NonCommercial purposes
282
+ only;
283
+
284
+ b. if You include all or a substantial portion of the database
285
+ contents in a database in which You have Sui Generis Database
286
+ Rights, then the database in which You have Sui Generis Database
287
+ Rights (but not its individual contents) is Adapted Material; and
288
+
289
+ c. You must comply with the conditions in Section 3(a) if You Share
290
+ all or a substantial portion of the contents of the database.
291
+
292
+ For the avoidance of doubt, this Section 4 supplements and does not
293
+ replace Your obligations under this Public License where the Licensed
294
+ Rights include other Copyright and Similar Rights.
295
+
296
+
297
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
298
+
299
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
300
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
301
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
302
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
303
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
304
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
305
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
306
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
307
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
308
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
309
+
310
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
311
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
312
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
313
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
314
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
315
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
316
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
317
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
318
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
319
+
320
+ c. The disclaimer of warranties and limitation of liability provided
321
+ above shall be interpreted in a manner that, to the extent
322
+ possible, most closely approximates an absolute disclaimer and
323
+ waiver of all liability.
324
+
325
+
326
+ Section 6 -- Term and Termination.
327
+
328
+ a. This Public License applies for the term of the Copyright and
329
+ Similar Rights licensed here. However, if You fail to comply with
330
+ this Public License, then Your rights under this Public License
331
+ terminate automatically.
332
+
333
+ b. Where Your right to use the Licensed Material has terminated under
334
+ Section 6(a), it reinstates:
335
+
336
+ 1. automatically as of the date the violation is cured, provided
337
+ it is cured within 30 days of Your discovery of the
338
+ violation; or
339
+
340
+ 2. upon express reinstatement by the Licensor.
341
+
342
+ For the avoidance of doubt, this Section 6(b) does not affect any
343
+ right the Licensor may have to seek remedies for Your violations
344
+ of this Public License.
345
+
346
+ c. For the avoidance of doubt, the Licensor may also offer the
347
+ Licensed Material under separate terms or conditions or stop
348
+ distributing the Licensed Material at any time; however, doing so
349
+ will not terminate this Public License.
350
+
351
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
352
+ License.
353
+
354
+
355
+ Section 7 -- Other Terms and Conditions.
356
+
357
+ a. The Licensor shall not be bound by any additional or different
358
+ terms or conditions communicated by You unless expressly agreed.
359
+
360
+ b. Any arrangements, understandings, or agreements regarding the
361
+ Licensed Material not stated herein are separate from and
362
+ independent of the terms and conditions of this Public License.
363
+
364
+
365
+ Section 8 -- Interpretation.
366
+
367
+ a. For the avoidance of doubt, this Public License does not, and
368
+ shall not be interpreted to, reduce, limit, restrict, or impose
369
+ conditions on any use of the Licensed Material that could lawfully
370
+ be made without permission under this Public License.
371
+
372
+ b. To the extent possible, if any provision of this Public License is
373
+ deemed unenforceable, it shall be automatically reformed to the
374
+ minimum extent necessary to make it enforceable. If the provision
375
+ cannot be reformed, it shall be severed from this Public License
376
+ without affecting the enforceability of the remaining terms and
377
+ conditions.
378
+
379
+ c. No term or condition of this Public License will be waived and no
380
+ failure to comply consented to unless expressly agreed to by the
381
+ Licensor.
382
+
383
+ d. Nothing in this Public License constitutes or may be interpreted
384
+ as a limitation upon, or waiver of, any privileges and immunities
385
+ that apply to the Licensor or You, including from the legal
386
+ processes of any jurisdiction or authority.
387
+
388
+ =======================================================================
389
+
390
+ Creative Commons is not a party to its public
391
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
392
+ its public licenses to material it publishes and in those instances
393
+ will be considered the “Licensor.” The text of the Creative Commons
394
+ public licenses is dedicated to the public domain under the CC0 Public
395
+ Domain Dedication. Except for the limited purpose of indicating that
396
+ material is shared under a Creative Commons public license or as
397
+ otherwise permitted by the Creative Commons policies published at
398
+ creativecommons.org/policies, Creative Commons does not authorize the
399
+ use of the trademark "Creative Commons" or any other trademark or logo
400
+ of Creative Commons without its prior written consent including,
401
+ without limitation, in connection with any unauthorized modifications
402
+ to any of its public licenses or any other arrangements,
403
+ understandings, or agreements concerning use of licensed material. For
404
+ the avoidance of doubt, this paragraph does not form part of the
405
+ public licenses.
406
+
407
+ Creative Commons may be contacted at creativecommons.org.
408
+
NOTICE ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ OpenEmbed-2B
2
+ Copyright 2026 The OpenEmbed authors.
3
+
4
+ The model weights in this repository (model.safetensors) are licensed under the
5
+ Creative Commons Attribution-NonCommercial 4.0 International License (LICENSE).
6
+
7
+ This repository includes, or is derived from, the following components licensed
8
+ under the Apache License, Version 2.0:
9
+
10
+ 1. Qwen/Qwen3.5-2B-Base (Qwen team, Alibaba Cloud)
11
+ https://huggingface.co/Qwen/Qwen3.5-2B-Base, revision b1485b2fa6dfa1287294f269f5fb618e03d52d7c
12
+ model.safetensors is fine-tuned from this model: LoRA adapters trained by the
13
+ OpenEmbed authors are merged into its weights.
14
+ License: third_party/LICENSE-Qwen3.5
15
+
16
+ 2. WeMM-Embedding (Tencent), https://huggingface.co/tencent/WeMM-Embedding-2B
17
+ Copyright (C) 2026 Tencent. Files taken from it:
18
+ modeling_wemm_embedding.py, tokenizer.json, tokenizer_config.json,
19
+ chat_template.jinja, embedding_chat_template.jinja, processor_config.json,
20
+ modules.json, sentence_bert_config.json,
21
+ additional_chat_templates/sentence_transformers.jinja
22
+ Modified by the OpenEmbed authors:
23
+ modeling_st_wemm.py (an image item without its own pixel bounds is resized
24
+ within 65,536 to 8,388,608 pixels, the bounds OpenEmbed was evaluated with),
25
+ config_sentence_transformers.json (the library versions it was tested with).
26
+ License: third_party/LICENSE-WeMM-Embedding
27
+
28
+ The two distillation teachers, Qwen3-VL-Embedding-8B (Qwen team) and
29
+ WeMM-Embedding-9B (Tencent), are licensed under Apache-2.0. Their weights are not
30
+ included in this repository.
README.md ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ library_name: transformers
4
+ pipeline_tag: feature-extraction
5
+ base_model:
6
+ - Qwen/Qwen3.5-2B-Base
7
+ tags:
8
+ - multimodal-embedding
9
+ - image-text-retrieval
10
+ - visual-document-retrieval
11
+ - sentence-transformers
12
+ language:
13
+ - en
14
+ ---
15
+
16
+ # OpenEmbed-2B
17
+
18
+ OpenEmbed is a family of multimodal embedding models at 0.8B, 2B, 4B, and 9B parameters, released with their post-training data, training code, and cached teacher embeddings. One model embeds text, images, visual documents, and image–text combinations into one space. Each input is formatted as a single user turn that ends with an `<embedding>` token, and the L2-normalized final hidden state at that token is the embedding (2,048 dimensions for OpenEmbed-2B).
19
+
20
+ OpenEmbed-2B is fine-tuned from [Qwen/Qwen3.5-2B-Base](https://huggingface.co/Qwen/Qwen3.5-2B-Base) in two stages. Stage 1 trains LoRA adapters on the language model and the vision tower with a contrastive loss over 109 curated datasets. Stage 2 widens the language-model adapters and adds decoupled distillation from cached embeddings of two open-weight teachers, Qwen3-VL-Embedding-8B and WeMM-Embedding-9B. The adapters are merged into the released weights.
21
+
22
+ - **Paper:** OpenEmbed: A Family of Frontier Multimodal Embedding Models with Open Data, Code, and Weights (link to be added)
23
+ - **Training data and teacher embeddings:** link to be added
24
+ - **Training and evaluation code:** link to be added
25
+ - **Models:** [OpenEmbed-0.8B](https://huggingface.co/UCSC-VLAA/OpenEmbed-0.8B) · [OpenEmbed-2B](https://huggingface.co/UCSC-VLAA/OpenEmbed-2B) · [OpenEmbed-4B](https://huggingface.co/UCSC-VLAA/OpenEmbed-4B) · [OpenEmbed-9B](https://huggingface.co/UCSC-VLAA/OpenEmbed-9B)
26
+
27
+ ## Results
28
+
29
+ MMEB-V2: 36 image tasks (Hit@1; CLS: classification, VQA: visual question answering, RET: retrieval, GRD: grounding) and 24 visual-document retrieval tasks (VisDoc, nDCG@5). Evaluated with the official Qwen3-VL-Embedding MMEB-V2 evaluation code and the input format described below; the patch that applies this format is part of the code release.
30
+
31
+ | Model | CLS | VQA | RET | GRD | Image | VisDoc |
32
+ |---|---:|---:|---:|---:|---:|---:|
33
+ | OpenEmbed-0.8B | 67.9 | 74.2 | 74.2 | 96.5 | 74.9 | 78.5 |
34
+ | **OpenEmbed-2B** | **74.1** | **77.8** | **78.1** | **97.5** | **79.1** | **80.5** |
35
+ | OpenEmbed-4B | 74.5 | 80.5 | 79.8 | 97.3 | 80.5 | 81.6 |
36
+ | OpenEmbed-9B | 75.7 | 81.0 | 80.1 | 97.6 | 81.1 | 82.4 |
37
+
38
+ ## Usage
39
+
40
+ Tested with torch 2.8.0, torchvision 0.23.0, transformers 5.2.0, qwen-vl-utils 0.0.14, and sentence-transformers 5.7.0. qwen-vl-utils needs torchvision, which it does not install by itself.
41
+
42
+ ```bash
43
+ pip install torch torchvision transformers==5.2.0 qwen-vl-utils==0.0.14 "sentence-transformers>=5.7.0"
44
+ ```
45
+
46
+ ### Input format
47
+
48
+ OpenEmbed was trained and evaluated with WeMM-Embedding's input format:
49
+
50
+ - Each input is one user turn with no system turn. Images come first, followed by one text item that holds the instruction and the text, joined by a space.
51
+ - The chat template is applied with `add_generation_prompt=False`. The tokenizer appends the `<embedding>` token.
52
+ - Images are resized to between 65,536 and 8,388,608 pixels (`min_pixels`, `max_pixels`), the bounds used in evaluation.
53
+ - Keep the tokenizer's default right padding: the embedding is read at the last non-padding position.
54
+
55
+ Instructions used in training and in MMEB-V2:
56
+
57
+ | Task | Query | Candidate |
58
+ |---|---|---|
59
+ | Caption → image | `Find me an everyday image that matches the given caption: <caption>` | image + `Represent the given image.` |
60
+ | Image → caption | image + `Find an image caption describing the given everyday image.` | caption text |
61
+ | Classification | image + `Represent the given image for classification` | class name |
62
+ | Visual question answering | image + `Represent the given image with the following question: <question>` | answer text |
63
+ | Composed image retrieval | image + `Given an image, find a similar everyday image with the described changes: <modification>` | image + `Represent the given image.` |
64
+ | Document page retrieval | `Find a document image that matches the given query. <query>` | page image, no text |
65
+
66
+ ### Transformers
67
+
68
+ ```python
69
+ import torch
70
+ from qwen_vl_utils import process_vision_info
71
+ from transformers import AutoModel, AutoProcessor
72
+
73
+ model_id = "UCSC-VLAA/OpenEmbed-2B"
74
+ processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
75
+ model = AutoModel.from_pretrained(model_id, trust_remote_code=True, dtype=torch.bfloat16).cuda().eval()
76
+
77
+ MIN_PIXELS, MAX_PIXELS = 65536, 8388608
78
+
79
+
80
+ def embed(inputs):
81
+ """inputs: dicts with an optional "image" (path, URL, or PIL.Image) and an optional "text"."""
82
+ conversations = []
83
+ for x in inputs:
84
+ content = []
85
+ if x.get("image") is not None:
86
+ content.append({"type": "image", "image": x["image"],
87
+ "min_pixels": MIN_PIXELS, "max_pixels": MAX_PIXELS})
88
+ if x.get("text") or not content:
89
+ content.append({"type": "text", "text": x.get("text", "")})
90
+ conversations.append([{"role": "user", "content": content}])
91
+ texts = [processor.apply_chat_template(c, tokenize=False, add_generation_prompt=False)
92
+ for c in conversations]
93
+ images, _ = process_vision_info(conversations, image_patch_size=16)
94
+ batch = processor(text=texts, images=images, padding=True, do_resize=False,
95
+ return_tensors="pt").to(model.device)
96
+ with torch.inference_mode():
97
+ return model.embedding(**batch) # shape (len(inputs), 2048), L2-normalized
98
+
99
+
100
+ queries = embed([
101
+ {"text": "Find me an everyday image that matches the given caption: A brown dog running on a beach."},
102
+ {"text": "Find a document image that matches the given query. What was the revenue in 2023?"},
103
+ ])
104
+ candidates = embed([
105
+ {"image": "dog.jpg", "text": "Represent the given image."},
106
+ {"image": "annual_report_page.png"},
107
+ ])
108
+ print(queries @ candidates.T)
109
+ ```
110
+
111
+ ### Sentence Transformers
112
+
113
+ ```python
114
+ from sentence_transformers import SentenceTransformer
115
+
116
+ model = SentenceTransformer("UCSC-VLAA/OpenEmbed-2B", trust_remote_code=True)
117
+ queries = model.encode([
118
+ "Find me an everyday image that matches the given caption: A brown dog running on a beach.",
119
+ "Find a document image that matches the given query. What was the revenue in 2023?",
120
+ ])
121
+ candidates = model.encode([
122
+ {"image": "dog.jpg", "text": "Represent the given image."},
123
+ {"image": "annual_report_page.png"},
124
+ ])
125
+ print(model.similarity(queries, candidates))
126
+ ```
127
+
128
+ ## Training
129
+
130
+ | | |
131
+ |---|---|
132
+ | Base model | [Qwen/Qwen3.5-2B-Base](https://huggingface.co/Qwen/Qwen3.5-2B-Base) (revision `b1485b2f`) |
133
+ | Parameters | 2.21B (bfloat16) |
134
+ | Embedding dimension | 2,048 |
135
+ | Stage 1 | contrastive learning, LoRA (rank 64) on the language model and the vision tower, 109 curated datasets |
136
+ | Stage 2 | language-model LoRA widened to rank 256, decoupled distillation from cached teacher embeddings (Qwen3-VL-Embedding-8B for 51 datasets, WeMM-Embedding-9B for 24) |
137
+ | Hardware | TPU v5p, JAX |
138
+
139
+ Training images were capped at 1,024 visual tokens (1,280 for document pages); evaluation allows up to 8,192. The recipe files of all four sizes are in the code release.
140
+
141
+ ## Limitations
142
+
143
+ - Encodes text, images, and document pages; not video or audio.
144
+ - Trails other models on MIEB's compositionality tasks; the training mixture includes no synthetic text-perturbed negatives.
145
+ - Stage 2 distills from open-weight teachers whose own post-training data are not public.
146
+ - Much of the training data comes from datasets licensed for non-commercial or research use only, or with no stated license (49% of the 2B model's stage-1 pairs); the weights are released for non-commercial use.
147
+
148
+ ## License
149
+
150
+ The weights are licensed under [CC BY-NC 4.0](LICENSE). The model code, tokenizer, and processor files come from WeMM-Embedding (Apache-2.0), and the weights are derived from Qwen/Qwen3.5-2B-Base (Apache-2.0); see [NOTICE](NOTICE) and [third_party/](third_party).
151
+
152
+ ## Citation
153
+
154
+ To be added with the paper.
additional_chat_templates/sentence_transformers.jinja ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- Embedding template used by Sentence Transformers.
2
+
3
+ Renders the same surface form as chat_template.jinja for text and images. Video
4
+ is the exception: it renders as a bare <|video_pad|>, because the processor
5
+ expands that token into one <seconds><|vision_start|>...<|vision_end|> block per
6
+ frame and, from transformers 5.3, no longer consumes a surrounding pair. The
7
+ wrapped form therefore gains a second, unwanted pair of vision boundaries there.
8
+ This matches embedding_chat_template.jinja, which is bare for the same reason.
9
+
10
+ The tokenizer normalizer drops the role newline before a leading image and the
11
+ newline after the final <|im_end|>, then the post-processor appends <embedding>. #}
12
+ {%- for message in messages %}
13
+ {{- '<|im_start|>' + message.role + '\n' }}
14
+ {%- if message.content is string %}
15
+ {{- message.content }}
16
+ {%- elif message.content is iterable and message.content is not mapping %}
17
+ {%- for item in message.content %}
18
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
19
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
20
+ {%- elif 'video' in item or item.type == 'video' %}
21
+ {{- '<|video_pad|>' }}
22
+ {%- elif 'text' in item %}
23
+ {{- item.text }}
24
+ {%- else %}
25
+ {{- raise_exception('Unexpected item type in content.') }}
26
+ {%- endif %}
27
+ {%- endfor %}
28
+ {%- elif message.content is not none %}
29
+ {{- raise_exception('Unexpected content type.') }}
30
+ {%- endif %}
31
+ {{- '<|im_end|>\n' }}
32
+ {%- endfor %}
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 true %}
150
+ {{- '<think>\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n\n</think>\n\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 248056,
6
+ "model_type": "qwen3_5",
7
+ "text_config": {
8
+ "attention_bias": false,
9
+ "attention_dropout": 0.0,
10
+ "attn_output_gate": true,
11
+ "dtype": "bfloat16",
12
+ "eos_token_id": 248044,
13
+ "full_attention_interval": 4,
14
+ "head_dim": 256,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 2048,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 6144,
19
+ "layer_types": [
20
+ "linear_attention",
21
+ "linear_attention",
22
+ "linear_attention",
23
+ "full_attention",
24
+ "linear_attention",
25
+ "linear_attention",
26
+ "linear_attention",
27
+ "full_attention",
28
+ "linear_attention",
29
+ "linear_attention",
30
+ "linear_attention",
31
+ "full_attention",
32
+ "linear_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "full_attention",
36
+ "linear_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "full_attention",
40
+ "linear_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "full_attention"
44
+ ],
45
+ "linear_conv_kernel_dim": 4,
46
+ "linear_key_head_dim": 128,
47
+ "linear_num_key_heads": 16,
48
+ "linear_num_value_heads": 16,
49
+ "linear_value_head_dim": 128,
50
+ "max_position_embeddings": 262144,
51
+ "mlp_only_layers": [],
52
+ "model_type": "qwen3_5_text",
53
+ "mtp_num_hidden_layers": 1,
54
+ "mtp_use_dedicated_embeddings": false,
55
+ "num_attention_heads": 8,
56
+ "num_hidden_layers": 24,
57
+ "num_key_value_heads": 2,
58
+ "rms_norm_eps": 1e-06,
59
+ "tie_word_embeddings": true,
60
+ "use_cache": true,
61
+ "vocab_size": 248320,
62
+ "mamba_ssm_dtype": "float32",
63
+ "rope_parameters": {
64
+ "mrope_interleaved": true,
65
+ "mrope_section": [
66
+ 11,
67
+ 11,
68
+ 10
69
+ ],
70
+ "rope_type": "default",
71
+ "rope_theta": 10000000,
72
+ "partial_rotary_factor": 0.25
73
+ }
74
+ },
75
+ "tie_word_embeddings": true,
76
+ "transformers_version": "5.2.0",
77
+ "video_token_id": 248057,
78
+ "vision_config": {
79
+ "deepstack_visual_indexes": [],
80
+ "depth": 24,
81
+ "hidden_act": "gelu_pytorch_tanh",
82
+ "hidden_size": 1024,
83
+ "in_channels": 3,
84
+ "initializer_range": 0.02,
85
+ "intermediate_size": 4096,
86
+ "model_type": "qwen3_5",
87
+ "num_heads": 16,
88
+ "num_position_embeddings": 2304,
89
+ "out_hidden_size": 2048,
90
+ "patch_size": 16,
91
+ "spatial_merge_size": 2,
92
+ "temporal_patch_size": 2
93
+ },
94
+ "vision_end_token_id": 248054,
95
+ "vision_start_token_id": 248053,
96
+ "auto_map": {
97
+ "AutoModel": "modeling_wemm_embedding.WeMMEmbedding",
98
+ "AutoModelForCausalLM": "modeling_wemm_embedding.WeMMEmbedding"
99
+ },
100
+ "dtype": "bfloat16",
101
+ "openembed": {
102
+ "name": "OpenEmbed-2B",
103
+ "base_model": "Qwen/Qwen3.5-2B-Base",
104
+ "base_revision": "b1485b2fa6dfa1287294f269f5fb618e03d52d7c",
105
+ "model_safetensors_sha256": "d8540a53c9ebb8dcb6eb6eace98f898f15d6fff84c544dad8345c51a1a7e6b9e"
106
+ }
107
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.8.0",
4
+ "sentence_transformers": "5.7.0",
5
+ "transformers": "5.2.0"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {},
10
+ "similarity_fn_name": "cosine"
11
+ }
embedding_chat_template.jinja ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {# Direct-tokenization template for vLLM 0.27 embedding requests.
2
+ Qwen's processor post-processor removes the role newline before images,
3
+ keeps it before text/video, and appends <embedding> without a preceding
4
+ newline. vLLM 0.27 adds each frame's vision boundaries itself, so video
5
+ uses a bare <video_pad> placeholder. #}
6
+ {%- for message in messages %}
7
+ {{- '<|im_start|>' + message.role }}
8
+ {%- if message.content is string %}
9
+ {{- '\n' + message.content }}
10
+ {%- else %}
11
+ {%- for item in message.content %}
12
+ {%- if item.type in ['image', 'image_url'] or 'image' in item or 'image_url' in item %}
13
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
14
+ {%- elif item.type in ['video', 'video_url'] or 'video' in item or 'video_url' in item %}
15
+ {{- '\n<|video_pad|>' }}
16
+ {%- elif item.type == 'text' or 'text' in item %}
17
+ {{- ('\n' if loop.first else '') + item.text }}
18
+ {%- else %}
19
+ {{- raise_exception('Unsupported embedding content type') }}
20
+ {%- endif %}
21
+ {%- endfor %}
22
+ {%- endif %}
23
+ {{- '<|im_end|>' }}
24
+ {%- if not loop.last %}
25
+ {{- '\n' }}
26
+ {%- endif %}
27
+ {%- endfor %}
28
+ {{- '<embedding>' }}
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8540a53c9ebb8dcb6eb6eace98f898f15d6fff84c544dad8345c51a1a7e6b9e
3
+ size 4426564008
modeling_st_wemm.py ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Sentence Transformers module for WeMM-Embedding.
2
+
3
+ Reproduces the `transformers` usage from the model card inside a Sentence Transformers
4
+ pipeline: vision inputs are prepared with `qwen_vl_utils.process_vision_info` and the
5
+ embedding is read from `WeMMEmbedding.embedding`, which pools the `<embedding>` position and
6
+ L2-normalizes. Everything else (batching, prompts, truncation, `encode_query` /
7
+ `encode_document`, similarity) comes from the stock `Transformer` module.
8
+
9
+ Modified by the OpenEmbed authors (2026-11-18) from tencent/WeMM-Embedding-2B (Apache-2.0):
10
+ an image item without its own `min_pixels` / `max_pixels` is resized within 65,536 to
11
+ 8,388,608 pixels, the image budget OpenEmbed was evaluated with. Nothing else changes.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import inspect
17
+ from typing import Any
18
+
19
+ from sentence_transformers.models import Transformer
20
+
21
+ OPENEMBED_MIN_PIXELS = 65536
22
+ OPENEMBED_MAX_PIXELS = 8388608
23
+
24
+
25
+ def _with_pixel_budget(conversation):
26
+ """A copy of one conversation whose image items carry the OpenEmbed pixel bounds."""
27
+ out = []
28
+ for message in conversation:
29
+ content = message.get("content") if isinstance(message, dict) else None
30
+ if isinstance(content, (list, tuple)):
31
+ items = []
32
+ for item in content:
33
+ if isinstance(item, dict) and ("image" in item or "image_url" in item or item.get("type") == "image"):
34
+ item = {"min_pixels": OPENEMBED_MIN_PIXELS, "max_pixels": OPENEMBED_MAX_PIXELS, **item}
35
+ items.append(item)
36
+ message = {**message, "content": items}
37
+ out.append(message)
38
+ return out
39
+
40
+
41
+ class WeMMTransformer(Transformer):
42
+ """`Transformer` that prepares images and videos the way the model card's snippet does."""
43
+
44
+ def __init__(self, model_name_or_path: str, **kwargs: Any) -> None:
45
+ super().__init__(model_name_or_path, **kwargs)
46
+ vision_config = getattr(self.config, "vision_config", None)
47
+ self.image_patch_size = int(getattr(vision_config, "patch_size", 16))
48
+
49
+ # `embedding` hands its **kwargs to the inner model, so filtering on its own signature
50
+ # would drop `pixel_values`. Filter on the inner model's parameters instead, plus the
51
+ # processor's input names for anything the model only accepts as **kwargs.
52
+ inner_model = getattr(self.model, "model", self.model)
53
+ signature = set(inspect.signature(inner_model.forward).parameters)
54
+ signature |= set(getattr(self.processor, "model_input_names", ()))
55
+ for modality_params in self.modality_config.values():
56
+ method_name = modality_params["method"]
57
+ if method_name != "forward":
58
+ self._method_signature_cache.setdefault(method_name, signature)
59
+
60
+ def _apply_chat_template(
61
+ self,
62
+ messages: list[list[dict[str, Any]]],
63
+ modality_kwargs: dict[str, dict[str, Any]],
64
+ common_kwargs: dict[str, Any],
65
+ chat_template_kwargs: dict[str, Any],
66
+ ) -> dict[str, Any]:
67
+ """Render the chat template and prepare images / videos exactly as the model card does."""
68
+ from qwen_vl_utils import process_vision_info
69
+
70
+ chat_template_kwargs = {"add_generation_prompt": False, **chat_template_kwargs}
71
+ texts = [
72
+ self.processor.apply_chat_template(conversation, tokenize=False, **chat_template_kwargs)
73
+ for conversation in messages
74
+ ]
75
+ images, videos, video_kwargs = process_vision_info(
76
+ [_with_pixel_budget(list(conversation)) for conversation in messages],
77
+ image_patch_size=self.image_patch_size,
78
+ return_video_kwargs=True,
79
+ return_video_metadata=True,
80
+ )
81
+ if videos is not None:
82
+ videos, video_metadata = (list(part) for part in zip(*videos))
83
+ video_kwargs = {**video_kwargs, "video_metadata": video_metadata}
84
+
85
+ return self.processor(
86
+ text=texts,
87
+ images=images,
88
+ videos=videos,
89
+ text_kwargs=modality_kwargs["text"],
90
+ images_kwargs=modality_kwargs["image"],
91
+ videos_kwargs={**modality_kwargs["video"], **video_kwargs},
92
+ common_kwargs=common_kwargs,
93
+ )
modeling_wemm_embedding.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import torch.nn.functional as F
3
+ from transformers import Qwen3_5ForConditionalGeneration
4
+
5
+
6
+ class WeMMEmbedding(Qwen3_5ForConditionalGeneration):
7
+ def embedding(self, input_ids=None, attention_mask=None, **kwargs):
8
+ # transformers < 5.15 reuses the rope_deltas cached by the previous multimodal
9
+ # forward for a text-only one, which shifts its position ids.
10
+ self.model.rope_deltas = None
11
+
12
+ outputs = self.model(
13
+ input_ids=input_ids,
14
+ attention_mask=attention_mask,
15
+ **kwargs
16
+ )
17
+
18
+ last_hidden_state = outputs.last_hidden_state
19
+
20
+ if attention_mask is not None:
21
+ eos_positions = attention_mask.sum(dim=1) - 1
22
+ else:
23
+ eos_positions = torch.full((last_hidden_state.shape[0],), last_hidden_state.shape[1] - 1, device=last_hidden_state.device)
24
+
25
+ eos_positions = eos_positions.clamp(min=0)
26
+
27
+ batch_indices = torch.arange(last_hidden_state.size(0), device=last_hidden_state.device)
28
+
29
+ embeddings = last_hidden_state[batch_indices, eos_positions]
30
+
31
+ embeddings = F.normalize(embeddings, dim=-1)
32
+
33
+ return embeddings
modules.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "modeling_st_wemm.WeMMTransformer"
7
+ }
8
+ ]
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": 234881024,
55
+ "shortest_edge": 4096
56
+ },
57
+ "temporal_patch_size": 2,
58
+ "video_processor_type": "Qwen3VLVideoProcessor"
59
+ }
60
+ }
sentence_bert_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformer_task": "feature-extraction",
3
+ "modality_config": {
4
+ "text": {
5
+ "method": "embedding",
6
+ "method_output_name": null
7
+ },
8
+ "image": {
9
+ "method": "embedding",
10
+ "method_output_name": null
11
+ },
12
+ "video": {
13
+ "method": "embedding",
14
+ "method_output_name": null
15
+ },
16
+ "image+text": {
17
+ "method": "embedding",
18
+ "method_output_name": null
19
+ },
20
+ "text+video": {
21
+ "method": "embedding",
22
+ "method_output_name": null
23
+ },
24
+ "message": {
25
+ "method": "embedding",
26
+ "method_output_name": null,
27
+ "format": "structured"
28
+ }
29
+ },
30
+ "module_output_name": "sentence_embedding",
31
+ "processing_kwargs": {
32
+ "chat_template": {
33
+ "chat_template": "sentence_transformers"
34
+ }
35
+ },
36
+ "unpad_inputs": false
37
+ }
third_party/LICENSE-Qwen3.5 ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Alibaba Cloud
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
third_party/LICENSE-WeMM-Embedding ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Tencent is pleased to support the open source community by making WeMM-Embedding-2B available.
2
+
3
+ Copyright (C) 2026 Tencent. All rights reserved.
4
+
5
+ The open-source software and/or models included in this distribution may have been modified by Tencent (“Tencent Modifications”). All Tencent Modifications are Copyright (C) Tencent.
6
+
7
+ WeMM-Embedding-2B is licensed under Apache-2.0, except for the third-party components listed below, which remain licensed under their respective original terms. WeMM-Embedding-2B does not impose any additional restrictions beyond those specified in the original licenses of these third-party components. Users are required to comply with all applicable terms and conditions of the original licenses and to ensure that the use of these third-party components conforms to all relevant laws and regulations.
8
+
9
+ For the avoidance of doubt, WeMM-Embedding-2B refers to code, parameters, and weights made publicly available by Tencent in accordance with Apache-2.0.
10
+
11
+ Terms of Apache-2.0:
12
+ --------------------------------------------------------------------
13
+ Apache License
14
+ Version 2.0, January 2004
15
+ http://www.apache.org/licenses/
16
+
17
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
18
+
19
+ 1. Definitions.
20
+
21
+ "License" shall mean the terms and conditions for use, reproduction,
22
+ and distribution as defined by Sections 1 through 9 of this document.
23
+
24
+ "Licensor" shall mean the copyright owner or entity authorized by
25
+ the copyright owner that is granting the License.
26
+
27
+ "Legal Entity" shall mean the union of the acting entity and all
28
+ other entities that control, are controlled by, or are under common
29
+ control with that entity. For the purposes of this definition,
30
+ "control" means (i) the power, direct or indirect, to cause the
31
+ direction or management of such entity, whether by contract or
32
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
33
+ outstanding shares, or (iii) beneficial ownership of such entity.
34
+
35
+ "You" (or "Your") shall mean an individual or Legal Entity
36
+ exercising permissions granted by this License.
37
+
38
+ "Source" form shall mean the preferred form for making modifications,
39
+ including but not limited to software source code, documentation
40
+ source, and configuration files.
41
+
42
+ "Object" form shall mean any form resulting from mechanical
43
+ transformation or translation of a Source form, including but
44
+ not limited to compiled object code, generated documentation,
45
+ and conversions to other media types.
46
+
47
+ "Work" shall mean the work of authorship, whether in Source or
48
+ Object form, made available under the License, as indicated by a
49
+ copyright notice that is included in or attached to the work
50
+ (an example is provided in the Appendix below).
51
+
52
+ "Derivative Works" shall mean any work, whether in Source or Object
53
+ form, that is based on (or derived from) the Work and for which the
54
+ editorial revisions, annotations, elaborations, or other modifications
55
+ represent, as a whole, an original work of authorship. For the purposes
56
+ of this License, Derivative Works shall not include works that remain
57
+ separable from, or merely link (or bind by name) to the interfaces of,
58
+ the Work and Derivative Works thereof.
59
+
60
+ "Contribution" shall mean any work of authorship, including
61
+ the original version of the Work and any modifications or additions
62
+ to that Work or Derivative Works thereof, that is intentionally
63
+ submitted to Licensor for inclusion in the Work by the copyright owner
64
+ or by an individual or Legal Entity authorized to submit on behalf of
65
+ the copyright owner. For the purposes of this definition, "submitted"
66
+ means any form of electronic, verbal, or written communication sent
67
+ to the Licensor or its representatives, including but not limited to
68
+ communication on electronic mailing lists, source code control systems,
69
+ and issue tracking systems that are managed by, or on behalf of, the
70
+ Licensor for the purpose of discussing and improving the Work, but
71
+ excluding communication that is conspicuously marked or otherwise
72
+ designated in writing by the copyright owner as "Not a Contribution."
73
+
74
+ "Contributor" shall mean Licensor and any individual or Legal Entity
75
+ on behalf of whom a Contribution has been received by Licensor and
76
+ subsequently incorporated within the Work.
77
+
78
+ 2. Grant of Copyright License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ copyright license to reproduce, prepare Derivative Works of,
82
+ publicly display, publicly perform, sublicense, and distribute the
83
+ Work and such Derivative Works in Source or Object form.
84
+
85
+ 3. Grant of Patent License. Subject to the terms and conditions of
86
+ this License, each Contributor hereby grants to You a perpetual,
87
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
88
+ (except as stated in this section) patent license to make, have made,
89
+ use, offer to sell, sell, import, and otherwise transfer the Work,
90
+ where such license applies only to those patent claims licensable
91
+ by such Contributor that are necessarily infringed by their
92
+ Contribution(s) alone or by combination of their Contribution(s)
93
+ with the Work to which such Contribution(s) was submitted. If You
94
+ institute patent litigation against any entity (including a
95
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
96
+ or a Contribution incorporated within the Work constitutes direct
97
+ or contributory patent infringement, then any patent licenses
98
+ granted to You under this License for that Work shall terminate
99
+ as of the date such litigation is filed.
100
+
101
+ 4. Redistribution. You may reproduce and distribute copies of the
102
+ Work or Derivative Works thereof in any medium, with or without
103
+ modifications, and in Source or Object form, provided that You
104
+ meet the following conditions:
105
+
106
+ (a) You must give any other recipients of the Work or
107
+ Derivative Works a copy of this License; and
108
+
109
+ (b) You must cause any modified files to carry prominent notices
110
+ stating that You changed the files; and
111
+
112
+ (c) You must retain, in the Source form of any Derivative Works
113
+ that You distribute, all copyright, patent, trademark, and
114
+ attribution notices from the Source form of the Work,
115
+ excluding those notices that do not pertain to any part of
116
+ the Derivative Works; and
117
+
118
+ (d) If the Work includes a "NOTICE" text file as part of its
119
+ distribution, then any Derivative Works that You distribute must
120
+ include a readable copy of the attribution notices contained
121
+ within such NOTICE file, excluding those notices that do not
122
+ pertain to any part of the Derivative Works, in at least one
123
+ of the following places: within a NOTICE text file distributed
124
+ as part of the Derivative Works; within the Source form or
125
+ documentation, if provided along with the Derivative Works; or,
126
+ within a display generated by the Derivative Works, if and
127
+ wherever such third-party notices normally appear. The contents
128
+ of the NOTICE file are for informational purposes only and
129
+ do not modify the License. You may add Your own attribution
130
+ notices within Derivative Works that You distribute, alongside
131
+ or as an addendum to the NOTICE text from the Work, provided
132
+ that such additional attribution notices cannot be construed
133
+ as modifying the License.
134
+
135
+ You may add Your own copyright statement to Your modifications and
136
+ may provide additional or different license terms and conditions
137
+ for use, reproduction, or distribution of Your modifications, or
138
+ for any such Derivative Works as a whole, provided Your use,
139
+ reproduction, and distribution of the Work otherwise complies with
140
+ the conditions stated in this License.
141
+
142
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
143
+ any Contribution intentionally submitted for inclusion in the Work
144
+ by You to the Licensor shall be under the terms and conditions of
145
+ this License, without any additional terms or conditions.
146
+ Notwithstanding the above, nothing herein shall supersede or modify
147
+ the terms of any separate license agreement you may have executed
148
+ with Licensor regarding such Contributions.
149
+
150
+ 6. Trademarks. This License does not grant permission to use the trade
151
+ names, trademarks, service marks, or product names of the Licensor,
152
+ except as required for reasonable and customary use in describing the
153
+ origin of the Work and reproducing the content of the NOTICE file.
154
+
155
+ 7. Disclaimer of Warranty. Unless required by applicable law or
156
+ agreed to in writing, Licensor provides the Work (and each
157
+ Contributor provides its Contributions) on an "AS IS" BASIS,
158
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
159
+ implied, including, without limitation, any warranties or conditions
160
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
161
+ PARTICULAR PURPOSE. You are solely responsible for determining the
162
+ appropriateness of using or redistributing the Work and assume any
163
+ risks associated with Your exercise of permissions under this License.
164
+
165
+ 8. Limitation of Liability. In no event and under no legal theory,
166
+ whether in tort (including negligence), contract, or otherwise,
167
+ unless required by applicable law (such as deliberate and grossly
168
+ negligent acts) or agreed to in writing, shall any Contributor be
169
+ liable to You for damages, including any direct, indirect, special,
170
+ incidental, or consequential damages of any character arising as a
171
+ result of this License or out of the use or inability to use the
172
+ Work (including but not limited to damages for loss of goodwill,
173
+ work stoppage, computer failure or malfunction, or any and all
174
+ other commercial damages or losses), even if such Contributor
175
+ has been advised of the possibility of such damages.
176
+
177
+ 9. Accepting Warranty or Additional Liability. While redistributing
178
+ the Work or Derivative Works thereof, You may choose to offer,
179
+ and charge a fee for, acceptance of support, warranty, indemnity,
180
+ or other liability obligations and/or rights consistent with this
181
+ License. However, in accepting such obligations, You may act only
182
+ on Your own behalf and on Your sole responsibility, not on behalf
183
+ of any other Contributor, and only if You agree to indemnify,
184
+ defend, and hold each Contributor harmless for any liability
185
+ incurred by, or claims asserted against, such Contributor by reason
186
+ of your accepting any such warranty or additional liability.
187
+
188
+ END OF TERMS AND CONDITIONS
189
+
190
+ APPENDIX: How to apply the Apache License to your work.
191
+
192
+ To apply the Apache License to your work, attach the following
193
+ boilerplate notice, with the fields enclosed by brackets "[]"
194
+ replaced with your own identifying information. (Don't include
195
+ the brackets!) The text should be enclosed in the appropriate
196
+ comment syntax for the file format. We also recommend that a
197
+ file or class name and description of purpose be included on the
198
+ same "printed page" as the copyright notice for easier
199
+ identification within third-party archives.
200
+
201
+ Copyright [yyyy] [name of copyright owner]
202
+
203
+ Licensed under the Apache License, Version 2.0 (the "License");
204
+ you may not use this file except in compliance with the License.
205
+ You may obtain a copy of the License at
206
+
207
+ http://www.apache.org/licenses/LICENSE-2.0
208
+
209
+ Unless required by applicable law or agreed to in writing, software
210
+ distributed under the License is distributed on an "AS IS" BASIS,
211
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
212
+ See the License for the specific language governing permissions and
213
+ limitations under the License.
214
+
215
+
216
+ Dependencies and Licenses:
217
+
218
+ This open-source project, WeMM-Embedding-2B, builds upon the following open-source models and/or software components, each of which remains licensed under its original license. Certain models or software may include modifications made by Tencent (“Tencent Modifications”), which are Copyright (C) Tencent.
219
+
220
+ In case you believe there have been errors in the attribution below, you may submit the concerns to us for review and correction.
221
+
222
+
223
+ Open Source Model Licensed under the Apache-2.0:
224
+ --------------------------------------------------------------------
225
+ 1. Qwen3.5-2B
226
+ Copyright 2026 Alibaba Cloud
227
+ Please note this model has been modified by Tencent in this distribution.
228
+
229
+
230
+
231
+ Terms of the Apache-2.0:
232
+ --------------------------------------------------------------------
233
+ Apache License
234
+ Version 2.0, January 2004
235
+ http://www.apache.org/licenses/
236
+
237
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
238
+
239
+ 1. Definitions.
240
+
241
+ "License" shall mean the terms and conditions for use, reproduction,
242
+ and distribution as defined by Sections 1 through 9 of this document.
243
+
244
+ "Licensor" shall mean the copyright owner or entity authorized by
245
+ the copyright owner that is granting the License.
246
+
247
+ "Legal Entity" shall mean the union of the acting entity and all
248
+ other entities that control, are controlled by, or are under common
249
+ control with that entity. For the purposes of this definition,
250
+ "control" means (i) the power, direct or indirect, to cause the
251
+ direction or management of such entity, whether by contract or
252
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
253
+ outstanding shares, or (iii) beneficial ownership of such entity.
254
+
255
+ "You" (or "Your") shall mean an individual or Legal Entity
256
+ exercising permissions granted by this License.
257
+
258
+ "Source" form shall mean the preferred form for making modifications,
259
+ including but not limited to software source code, documentation
260
+ source, and configuration files.
261
+
262
+ "Object" form shall mean any form resulting from mechanical
263
+ transformation or translation of a Source form, including but
264
+ not limited to compiled object code, generated documentation,
265
+ and conversions to other media types.
266
+
267
+ "Work" shall mean the work of authorship, whether in Source or
268
+ Object form, made available under the License, as indicated by a
269
+ copyright notice that is included in or attached to the work
270
+ (an example is provided in the Appendix below).
271
+
272
+ "Derivative Works" shall mean any work, whether in Source or Object
273
+ form, that is based on (or derived from) the Work and for which the
274
+ editorial revisions, annotations, elaborations, or other modifications
275
+ represent, as a whole, an original work of authorship. For the purposes
276
+ of this License, Derivative Works shall not include works that remain
277
+ separable from, or merely link (or bind by name) to the interfaces of,
278
+ the Work and Derivative Works thereof.
279
+
280
+ "Contribution" shall mean any work of authorship, including
281
+ the original version of the Work and any modifications or additions
282
+ to that Work or Derivative Works thereof, that is intentionally
283
+ submitted to Licensor for inclusion in the Work by the copyright owner
284
+ or by an individual or Legal Entity authorized to submit on behalf of
285
+ the copyright owner. For the purposes of this definition, "submitted"
286
+ means any form of electronic, verbal, or written communication sent
287
+ to the Licensor or its representatives, including but not limited to
288
+ communication on electronic mailing lists, source code control systems,
289
+ and issue tracking systems that are managed by, or on behalf of, the
290
+ Licensor for the purpose of discussing and improving the Work, but
291
+ excluding communication that is conspicuously marked or otherwise
292
+ designated in writing by the copyright owner as "Not a Contribution."
293
+
294
+ "Contributor" shall mean Licensor and any individual or Legal Entity
295
+ on behalf of whom a Contribution has been received by Licensor and
296
+ subsequently incorporated within the Work.
297
+
298
+ 2. Grant of Copyright License. Subject to the terms and conditions of
299
+ this License, each Contributor hereby grants to You a perpetual,
300
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
301
+ copyright license to reproduce, prepare Derivative Works of,
302
+ publicly display, publicly perform, sublicense, and distribute the
303
+ Work and such Derivative Works in Source or Object form.
304
+
305
+ 3. Grant of Patent License. Subject to the terms and conditions of
306
+ this License, each Contributor hereby grants to You a perpetual,
307
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
308
+ (except as stated in this section) patent license to make, have made,
309
+ use, offer to sell, sell, import, and otherwise transfer the Work,
310
+ where such license applies only to those patent claims licensable
311
+ by such Contributor that are necessarily infringed by their
312
+ Contribution(s) alone or by combination of their Contribution(s)
313
+ with the Work to which such Contribution(s) was submitted. If You
314
+ institute patent litigation against any entity (including a
315
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
316
+ or a Contribution incorporated within the Work constitutes direct
317
+ or contributory patent infringement, then any patent licenses
318
+ granted to You under this License for that Work shall terminate
319
+ as of the date such litigation is filed.
320
+
321
+ 4. Redistribution. You may reproduce and distribute copies of the
322
+ Work or Derivative Works thereof in any medium, with or without
323
+ modifications, and in Source or Object form, provided that You
324
+ meet the following conditions:
325
+
326
+ (a) You must give any other recipients of the Work or
327
+ Derivative Works a copy of this License; and
328
+
329
+ (b) You must cause any modified files to carry prominent notices
330
+ stating that You changed the files; and
331
+
332
+ (c) You must retain, in the Source form of any Derivative Works
333
+ that You distribute, all copyright, patent, trademark, and
334
+ attribution notices from the Source form of the Work,
335
+ excluding those notices that do not pertain to any part of
336
+ the Derivative Works; and
337
+
338
+ (d) If the Work includes a "NOTICE" text file as part of its
339
+ distribution, then any Derivative Works that You distribute must
340
+ include a readable copy of the attribution notices contained
341
+ within such NOTICE file, excluding those notices that do not
342
+ pertain to any part of the Derivative Works, in at least one
343
+ of the following places: within a NOTICE text file distributed
344
+ as part of the Derivative Works; within the Source form or
345
+ documentation, if provided along with the Derivative Works; or,
346
+ within a display generated by the Derivative Works, if and
347
+ wherever such third-party notices normally appear. The contents
348
+ of the NOTICE file are for informational purposes only and
349
+ do not modify the License. You may add Your own attribution
350
+ notices within Derivative Works that You distribute, alongside
351
+ or as an addendum to the NOTICE text from the Work, provided
352
+ that such additional attribution notices cannot be construed
353
+ as modifying the License.
354
+
355
+ You may add Your own copyright statement to Your modifications and
356
+ may provide additional or different license terms and conditions
357
+ for use, reproduction, or distribution of Your modifications, or
358
+ for any such Derivative Works as a whole, provided Your use,
359
+ reproduction, and distribution of the Work otherwise complies with
360
+ the conditions stated in this License.
361
+
362
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
363
+ any Contribution intentionally submitted for inclusion in the Work
364
+ by You to the Licensor shall be under the terms and conditions of
365
+ this License, without any additional terms or conditions.
366
+ Notwithstanding the above, nothing herein shall supersede or modify
367
+ the terms of any separate license agreement you may have executed
368
+ with Licensor regarding such Contributions.
369
+
370
+ 6. Trademarks. This License does not grant permission to use the trade
371
+ names, trademarks, service marks, or product names of the Licensor,
372
+ except as required for reasonable and customary use in describing the
373
+ origin of the Work and reproducing the content of the NOTICE file.
374
+
375
+ 7. Disclaimer of Warranty. Unless required by applicable law or
376
+ agreed to in writing, Licensor provides the Work (and each
377
+ Contributor provides its Contributions) on an "AS IS" BASIS,
378
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
379
+ implied, including, without limitation, any warranties or conditions
380
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
381
+ PARTICULAR PURPOSE. You are solely responsible for determining the
382
+ appropriateness of using or redistributing the Work and assume any
383
+ risks associated with Your exercise of permissions under this License.
384
+
385
+ 8. Limitation of Liability. In no event and under no legal theory,
386
+ whether in tort (including negligence), contract, or otherwise,
387
+ unless required by applicable law (such as deliberate and grossly
388
+ negligent acts) or agreed to in writing, shall any Contributor be
389
+ liable to You for damages, including any direct, indirect, special,
390
+ incidental, or consequential damages of any character arising as a
391
+ result of this License or out of the use or inability to use the
392
+ Work (including but not limited to damages for loss of goodwill,
393
+ work stoppage, computer failure or malfunction, or any and all
394
+ other commercial damages or losses), even if such Contributor
395
+ has been advised of the possibility of such damages.
396
+
397
+ 9. Accepting Warranty or Additional Liability. While redistributing
398
+ the Work or Derivative Works thereof, You may choose to offer,
399
+ and charge a fee for, acceptance of support, warranty, indemnity,
400
+ or other liability obligations and/or rights consistent with this
401
+ License. However, in accepting such obligations, You may act only
402
+ on Your own behalf and on Your sole responsibility, not on behalf
403
+ of any other Contributor, and only if You agree to indemnify,
404
+ defend, and hold each Contributor harmless for any liability
405
+ incurred by, or claims asserted against, such Contributor by reason
406
+ of your accepting any such warranty or additional liability.
407
+
408
+ END OF TERMS AND CONDITIONS
409
+
410
+ APPENDIX: How to apply the Apache License to your work.
411
+
412
+ To apply the Apache License to your work, attach the following
413
+ boilerplate notice, with the fields enclosed by brackets "[]"
414
+ replaced with your own identifying information. (Don't include
415
+ the brackets!) The text should be enclosed in the appropriate
416
+ comment syntax for the file format. We also recommend that a
417
+ file or class name and description of purpose be included on the
418
+ same "printed page" as the copyright notice for easier
419
+ identification within third-party archives.
420
+
421
+ Copyright [yyyy] [name of copyright owner]
422
+
423
+ Licensed under the Apache License, Version 2.0 (the "License");
424
+ you may not use this file except in compliance with the License.
425
+ You may obtain a copy of the License at
426
+
427
+ http://www.apache.org/licenses/LICENSE-2.0
428
+
429
+ Unless required by applicable law or agreed to in writing, software
430
+ distributed under the License is distributed on an "AS IS" BASIS,
431
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
432
+ See the License for the specific language governing permissions and
433
+ limitations under the License.
434
+
435
+
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40e444c744512f423da4c8443c47c21e22ff76056ba4e9796a81c04c13a9daf0
3
+ size 19990378
tokenizer_config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<|endoftext|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "model_max_length": 262144,
14
+ "model_specific_special_tokens": {
15
+ "audio_bos_token": "<|audio_start|>",
16
+ "audio_eos_token": "<|audio_end|>",
17
+ "audio_token": "<|audio_pad|>",
18
+ "image_token": "<|image_pad|>",
19
+ "video_token": "<|video_pad|>",
20
+ "vision_bos_token": "<|vision_start|>",
21
+ "vision_eos_token": "<|vision_end|>"
22
+ },
23
+ "pad_token": "<|endoftext|>",
24
+ "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+",
25
+ "processor_class": "Qwen3VLProcessor",
26
+ "split_special_tokens": false,
27
+ "tokenizer_class": "PreTrainedTokenizerFast",
28
+ "unk_token": null,
29
+ "video_token": "<|video_pad|>",
30
+ "vision_bos_token": "<|vision_start|>",
31
+ "vision_eos_token": "<|vision_end|>"
32
+ }