Feature Extraction
Transformers
Safetensors
mistral_contrastive
video-text-retrieval
text-to-video-retrieval
image-text-retrieval
zero-shot-classification
contrastive
embeddings
multilingual
custom_code
Instructions to use mistralai/Mistral-Multimodal-Embed-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mistralai/Mistral-Multimodal-Embed-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mistralai/Mistral-Multimodal-Embed-1B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mistralai/Mistral-Multimodal-Embed-1B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
06ba5d8
0
Parent(s):
Mistral Multimodal Embed 1B
Browse filesCo-authored-by: juliendenize <juliendenize@users.noreply.huggingface.co>
- .gitattributes +41 -0
- LICENSE +202 -0
- README.md +264 -0
- config.json +35 -0
- configuration_mistral_contrastive.py +94 -0
- image_processing_mistral_contrastive.py +97 -0
- image_transforms.py +162 -0
- model.safetensors +3 -0
- modeling_mistral_contrastive.py +582 -0
- preprocessor_config.json +8 -0
- special_tokens_map.json +1008 -0
- tokenizer.json +3 -0
- tokenizer_config.json +1010 -0
.gitattributes
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz 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
|
| 37 |
+
assets/pull_figure.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/images/image_00.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
assets/images/image_01.jpg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
assets/videos/video_02.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
assets/larger_models.png filter=lfs diff=lfs merge=lfs -text
|
LICENSE
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 Mistral AI
|
| 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.
|
README.md
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: feature-extraction
|
| 5 |
+
tags:
|
| 6 |
+
- video-text-retrieval
|
| 7 |
+
- text-to-video-retrieval
|
| 8 |
+
- image-text-retrieval
|
| 9 |
+
- zero-shot-classification
|
| 10 |
+
- contrastive
|
| 11 |
+
- embeddings
|
| 12 |
+
- multilingual
|
| 13 |
+
- custom_code
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Mistral Multimodal Embed - Clipstral
|
| 17 |
+
|
| 18 |
+
📄 [Paper](https://arxiv.org/abs/TODO) |
|
| 19 |
+
📝 [Blog post](https://mistral.ai/news/mistral-multimodal-embed) |
|
| 20 |
+
💻 [GitHub](https://github.com/mistralai/mistral-multimodal-embed)
|
| 21 |
+
|
| 22 |
+
<p align="center">
|
| 23 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/69b0227fc166b6aed8902115/yO7LgHa-aUUQ0-tXS4LQh.png" alt="Clipstral maps multilingual text, images and videos into one shared embedding space, used for retrieval, zero-shot classification and deduplication" width="800">
|
| 24 |
+
</p>
|
| 25 |
+
|
| 26 |
+
Mistral Multimodal Embed (codename Clipstral) is a 1.24B-parameter
|
| 27 |
+
open-weight dual encoder that embeds **images, videos and multilingual text**
|
| 28 |
+
into one shared 1,024-dimensional space. Matching text and visuals lie close together, so the same
|
| 29 |
+
embeddings serve text-to-image and text-to-video search (and the reverse),
|
| 30 |
+
visual search with an image or video as the query,
|
| 31 |
+
zero-shot image and video classification,
|
| 32 |
+
and dataset curation such as deduplication and filtering of mismatched pairs.
|
| 33 |
+
|
| 34 |
+
- **Native resolution and aspect ratio.**
|
| 35 |
+
The vision transformer processes each image at its native size and aspect ratio, and
|
| 36 |
+
accuracy stays stable from 224 to 1036 px.
|
| 37 |
+
- **Video.**
|
| 38 |
+
A lightweight spatio-temporal encoder attends jointly to the patch tokens of all frames
|
| 39 |
+
(16 frames per clip in training and evaluation).
|
| 40 |
+
- **Long, multilingual text.**
|
| 41 |
+
The text tower has a 131k-entry multilingual tokenizer and no fixed context limit.
|
| 42 |
+
- **Compact and fast.**
|
| 43 |
+
1.24B parameters in total. Videos add only a 4-layer encoder on top of the per-frame vision transformer,
|
| 44 |
+
so large image and video collections can be indexed on a single NVIDIA H100.
|
| 45 |
+
|
| 46 |
+
This repository is a self-contained package: the weights, tokenizer, image processor and all custom
|
| 47 |
+
inference code are included.
|
| 48 |
+
The [GitHub repository](https://github.com/mistralai/mistral-multimodal-embed) adds a Gradio demo, an example notebook and the example media used below.
|
| 49 |
+
|
| 50 |
+
## Results
|
| 51 |
+
|
| 52 |
+
We compared Clipstral with 13 open-weight encoders up to 4B parameters, plus Qwen3-VL-Embedding-8B as a
|
| 53 |
+
larger reference, under one zero-shot protocol: 37 benchmarks (6 image retrieval, 18 image classification,
|
| 54 |
+
5 video retrieval, 8 video classification), each model evaluated at 224, 336, 672 and 1036 px with three
|
| 55 |
+
input transforms, keeping its best score per dataset (best over resolutions and transforms).
|
| 56 |
+
Retrieval is recall at rank 1 (R@1), averaged over both directions; classification is top-1 accuracy.
|
| 57 |
+
|
| 58 |
+
Among models up to 4B parameters, Clipstral is the best image and video
|
| 59 |
+
retriever and ranks second on image and video classification, behind models 1.7–2x its size.
|
| 60 |
+
|
| 61 |
+
| Model | Params | Image retrieval | Image classification | Video retrieval | Video classification |
|
| 62 |
+
| ----------------------------------- | ------: | --------------: | -------------------: | --------------: | -------------------: |
|
| 63 |
+
| **Clipstral** | 1.24B | **80.2** | <ins>79.2</ins> | **64.0** | <ins>57.0</ins> |
|
| 64 |
+
| PE-Core-L | 0.67B | 67.9 | 78.8 | 55.4 | 52.5 |
|
| 65 |
+
| PE-Core-G | 2.42B | 71.0 | **81.6** | 60.9 | 55.1 |
|
| 66 |
+
| MetaCLIP 2-H | 1.86B | 74.0 | 76.2 | 46.0 | 48.1 |
|
| 67 |
+
| MetaCLIP 2-bigG | 3.63B | 75.5 | 79.1 | 46.6 | 49.7 |
|
| 68 |
+
| SigLIP2-So400m | 1.14B | 73.1 | 77.9 | 46.7 | 49.3 |
|
| 69 |
+
| SigLIP2-g | 1.87B | 73.4 | 78.4 | 47.4 | 50.0 |
|
| 70 |
+
| TIPSv2-L | 0.49B | 60.1 | 67.4 | 43.6 | 39.2 |
|
| 71 |
+
| TIPSv2-g | 1.53B | 62.3 | 69.7 | 47.4 | 41.2 |
|
| 72 |
+
| VideoPrism-LvT-L | 0.58B | – | – | 58.5 | 51.5 |
|
| 73 |
+
| EmbeddingGemma 2 | 0.44B | 75.8 | 69.0 | 61.0 | 49.9 |
|
| 74 |
+
| C-RADIOv4-So400m | 1.15B | 75.1 | 76.1 | 46.4 | 46.8 |
|
| 75 |
+
| C-RADIOv4-H | 1.37B | 75.6 | 77.3 | 47.5 | 47.6 |
|
| 76 |
+
| Qwen3-VL-Embedding-2B | 2.13B | <ins>77.5</ins> | 69.5 | <ins>61.9</ins> | **57.8** |
|
| 77 |
+
| *Qwen3-VL-Embedding-8B (reference)* | *8.14B* | *82.7* | *72.9* | *66.2* | *61.7* |
|
| 78 |
+
|
| 79 |
+
Bold: best, underlined: second best among models up to 4B parameters. Qwen3-VL-Embedding and EmbeddingGemma 2 use task-tuned
|
| 80 |
+
instructions. Per-benchmark results, the evaluation protocol and the throughput measurements are in the
|
| 81 |
+
paper.
|
| 82 |
+
|
| 83 |
+
**Focused evaluations:**
|
| 84 |
+
|
| 85 |
+
- **Long captions.** On a long-caption retrieval suite (DOCCI, ActivityNet Captions, PVD and DiDeMo),
|
| 86 |
+
Clipstral has the highest mean R@1 among models up to 4B parameters (<ins>71.2</ins>, vs 69.8 for
|
| 87 |
+
Qwen3-VL-Embedding-2B and 69.7 for EmbeddingGemma 2).
|
| 88 |
+
- **Multilingual retrieval.** On XM3600 (36 languages), Clipstral reaches <ins>59.7</ins> R@1 over all languages, the
|
| 89 |
+
best among models up to 4B parameters, and <ins>59.7</ins> on the 35 non-English languages vs <ins>57.8</ins> in English.
|
| 90 |
+
- **Resolution robustness.** Clipstral's performance remains consistent across resolutions, from 224 to 1036 pixels.
|
| 91 |
+
For instance, on video retrieval, its mean R@1 varies by less than one point (<ins>62.9 to 63.8</ins>).
|
| 92 |
+
Other models lose accuracy significantly at high or low resolutions:
|
| 93 |
+
PE-Core-L drops by 17 points at 1036 px (from 55.2 to 38.2) and
|
| 94 |
+
VideoPrism-LvT-L by 11 (from 58.3 to 47.3), while
|
| 95 |
+
TIPSv2-g drops by 16 points at 224 px (from 47.4 to 31.8) and
|
| 96 |
+
EmbeddingGemma 2 by 8 (from 61.0 to 52.7).
|
| 97 |
+
|
| 98 |
+
## Installation
|
| 99 |
+
|
| 100 |
+
The package is tested with python 3.13, transformers 4.57 / 5.8 / 5.18 / 5.23,
|
| 101 |
+
on CPU (float32) and on NVIDIA GPU (bfloat16).
|
| 102 |
+
|
| 103 |
+
To run the demos of the [GitHub repository](https://github.com/mistralai/mistral-multimodal-embed), use [uv](https://docs.astral.sh/uv/) from the repository root:
|
| 104 |
+
|
| 105 |
+
```bash
|
| 106 |
+
uv sync
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
The torch build is selected automatically via environment markers (see `[tool.uv.sources]` in
|
| 110 |
+
`pyproject.toml`): CUDA 13.0 on Linux, CPU-only on macOS and Windows, so plain `uv sync` and
|
| 111 |
+
`uv run python app.py` always install the right build for the current platform.
|
| 112 |
+
For other accelerators, follow the [uv PyTorch guide](https://docs.astral.sh/uv/guides/integration/pytorch/).
|
| 113 |
+
|
| 114 |
+
## Quick start
|
| 115 |
+
|
| 116 |
+
The model code ships with the weights and loads with `trust_remote_code=True`. The snippets below run in order
|
| 117 |
+
as one script, from any folder: the three example files (under 1 MB) are downloaded from the
|
| 118 |
+
[GitHub repository](https://github.com/mistralai/mistral-multimodal-embed). Replace them with your own files to embed your data.
|
| 119 |
+
|
| 120 |
+
```python
|
| 121 |
+
import urllib.request
|
| 122 |
+
|
| 123 |
+
import cv2
|
| 124 |
+
import numpy as np
|
| 125 |
+
import torch
|
| 126 |
+
from PIL import Image
|
| 127 |
+
from transformers import AutoImageProcessor, AutoModel, AutoTokenizer
|
| 128 |
+
|
| 129 |
+
repo_id = "mistralai/mistral-multimodal-embed-1B"
|
| 130 |
+
assets = "https://raw.githubusercontent.com/mistralai/mistral-multimodal-embed/main/assets"
|
| 131 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 132 |
+
dtype = torch.bfloat16 if device == "cuda" else torch.float32
|
| 133 |
+
|
| 134 |
+
model = AutoModel.from_pretrained(repo_id, trust_remote_code=True, dtype=dtype).eval().to(device)
|
| 135 |
+
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
|
| 136 |
+
processor = AutoImageProcessor.from_pretrained(repo_id, trust_remote_code=True)
|
| 137 |
+
|
| 138 |
+
# --- text ---
|
| 139 |
+
texts = ["iconic windmill", "a gothic cathedral", "a statue in a sunny square"]
|
| 140 |
+
tok = tokenizer(texts, padding=True, return_tensors="pt")
|
| 141 |
+
with torch.inference_mode():
|
| 142 |
+
text_features = model.get_text_features(tok.input_ids.to(device), tok.attention_mask.to(device))
|
| 143 |
+
|
| 144 |
+
# --- images ---
|
| 145 |
+
image_paths = [urllib.request.urlretrieve(f"{assets}/images/image_0{i}.jpg", f"image_0{i}.jpg")[0] for i in (0, 1)]
|
| 146 |
+
images = [Image.open(path).convert("RGB") for path in image_paths]
|
| 147 |
+
pixel_values = [p.to(device=device, dtype=dtype) for p in processor(images)["pixel_values"]]
|
| 148 |
+
with torch.inference_mode():
|
| 149 |
+
image_features = model.get_image_features(pixel_values)
|
| 150 |
+
|
| 151 |
+
print(image_features @ text_features.T) # (num_images, num_texts) cosine similarities
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
The default `keep_ratio` transform preserves each image's aspect ratio, so images can have different shapes
|
| 155 |
+
and the processor returns a list of tensors (with `squash` or `center_crop`, it returns one stacked tensor).
|
| 156 |
+
All returned features are L2-normalized 1,024-dimensional float32 tensors, so a dot product is a cosine
|
| 157 |
+
similarity.
|
| 158 |
+
|
| 159 |
+
### Videos
|
| 160 |
+
|
| 161 |
+
A video is embedded from 16 evenly spaced frames, here decoded with OpenCV and encoded at 224 px:
|
| 162 |
+
|
| 163 |
+
```python
|
| 164 |
+
def read_frames(path: str, num_frames: int = 16) -> list[Image.Image]:
|
| 165 |
+
capture = cv2.VideoCapture(path)
|
| 166 |
+
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|
| 167 |
+
assert frame_count > 0, f"could not read the frame count of {path}"
|
| 168 |
+
frames = []
|
| 169 |
+
for index in np.linspace(0, frame_count - 1, num_frames).round().astype(int):
|
| 170 |
+
capture.set(cv2.CAP_PROP_POS_FRAMES, int(index))
|
| 171 |
+
ok, bgr = capture.read()
|
| 172 |
+
assert ok, f"could not decode frame {index} of {path}"
|
| 173 |
+
frames.append(Image.fromarray(cv2.cvtColor(bgr, cv2.COLOR_BGR2RGB)))
|
| 174 |
+
capture.release()
|
| 175 |
+
return frames
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
video_path = urllib.request.urlretrieve(f"{assets}/videos/video_02.mp4", "video_02.mp4")[0]
|
| 179 |
+
video_processor = AutoImageProcessor.from_pretrained(repo_id, trust_remote_code=True, size=224)
|
| 180 |
+
frames = video_processor(read_frames(video_path))["pixel_values"]
|
| 181 |
+
video = torch.stack(frames).to(device=device, dtype=dtype) # (16, 3, H, W)
|
| 182 |
+
with torch.inference_mode():
|
| 183 |
+
video_features = model.get_video_features([video]) # (1, 1024)
|
| 184 |
+
|
| 185 |
+
print(video_features @ text_features.T) # (num_videos, num_texts)
|
| 186 |
+
```
|
| 187 |
+
|
| 188 |
+
Frame order matters. `get_video_features` accepts either a `(B, T, 3, H, W)` tensor or a list of
|
| 189 |
+
`(T, 3, H, W)` clips; use a list when your videos have different frame counts or sizes. The processor also
|
| 190 |
+
accepts decoded uint8 frame tensors, for example from [torchcodec](https://github.com/pytorch/torchcodec).
|
| 191 |
+
|
| 192 |
+
## Demos
|
| 193 |
+
|
| 194 |
+
The [GitHub repository](https://github.com/mistralai/mistral-multimodal-embed) includes:
|
| 195 |
+
|
| 196 |
+
- **Gradio app** (`app.py`): run `uv run python app.py` and open http://localhost:7860. One tab searches the
|
| 197 |
+
example images and videos with text; the other classifies example photos by city, zero-shot.
|
| 198 |
+
- **Notebook** (`example.ipynb`): text-to-image/video and image-to-image retrieval and zero-shot
|
| 199 |
+
classification, to run locally or on Colab.
|
| 200 |
+
|
| 201 |
+
## Model details
|
| 202 |
+
|
| 203 |
+
- **Parameters:** 1.24B in total: vision transformer 409M, spatio-temporal encoder 50M, text tower 783M.
|
| 204 |
+
- **Embedding:** 1,024 dimensions, shared by text, images, and videos.
|
| 205 |
+
- **Vision tower:** 24-layer ViT, hidden size 1,024, patch size 14, 2D RoPE,
|
| 206 |
+
and 2x2 patch merging. Images are pooled with a global max (`amax`).
|
| 207 |
+
- **Video path:** each frame goes through the vision tower. A 4-layer temporal
|
| 208 |
+
encoder with 3D RoPE then attends across all frames' tokens jointly, and a
|
| 209 |
+
global max pool produces one embedding per clip.
|
| 210 |
+
- **Text tower:** 14 layers, hidden size 1,792, causal attention with RoPE. The
|
| 211 |
+
text embedding is taken at the end-of-sequence token.
|
| 212 |
+
|
| 213 |
+
The exact settings are in `config.json`.
|
| 214 |
+
|
| 215 |
+
## Preprocessing details
|
| 216 |
+
|
| 217 |
+
- **Default transform: `keep_ratio` at 448 px.** The longer side is resized to
|
| 218 |
+
448 and the aspect ratio is preserved. Each side is rounded to a multiple of
|
| 219 |
+
28 (patch size 14 x patch merge 2). Resizing uses OpenCV `INTER_AREA`.
|
| 220 |
+
- **Other transforms:** `squash` resizes to a square and ignores the aspect
|
| 221 |
+
ratio. `center_crop` takes a square center crop. Both return
|
| 222 |
+
`size x size` tensors, and `size` must be a multiple of 28.
|
| 223 |
+
- **Normalization:** mean `(0.48145466, 0.4578275, 0.40821073)` and
|
| 224 |
+
standard deviation `(0.26862954, 0.26130258, 0.27577711)`.
|
| 225 |
+
- **Without OpenCV:** pass `use_cv2_resize=False` to resize with torchvision
|
| 226 |
+
instead. The resulting pixels differ slightly from the default OpenCV resize.
|
| 227 |
+
- **Text:** the tokenizer adds the begin- and end-of-sequence tokens
|
| 228 |
+
automatically. The end-of-sequence token is required, because the text
|
| 229 |
+
embedding is read from it. Padding is on the right.
|
| 230 |
+
|
| 231 |
+
## Scope
|
| 232 |
+
|
| 233 |
+
- **Short videos.** Video training uses clips of up to about one minute, represented by 16 frames. Longer
|
| 234 |
+
videos likely need more frames or segment-level aggregation.
|
| 235 |
+
- **One input at a time.** Each input is embedded on its own (an image, a video, or a text); mixed inputs such
|
| 236 |
+
as image plus text are not encoded jointly. Late fusion is possible: embed each input separately and combine
|
| 237 |
+
the embeddings, for example by averaging them.
|
| 238 |
+
- **Content.** The model targets natural images and videos. Documents, OCR-heavy content and code are out of
|
| 239 |
+
scope for this release.
|
| 240 |
+
|
| 241 |
+
## Files
|
| 242 |
+
|
| 243 |
+
| File | Purpose |
|
| 244 |
+
| --- | --- |
|
| 245 |
+
| `model.safetensors`, `config.json` | Weights and model configuration |
|
| 246 |
+
| `modeling_mistral_contrastive.py`, `configuration_mistral_contrastive.py` | Model code, loaded by `AutoModel` |
|
| 247 |
+
| `image_processing_mistral_contrastive.py`, `image_transforms.py` | Image processor, loaded by `AutoImageProcessor` |
|
| 248 |
+
| `preprocessor_config.json` | Default transform and resolution |
|
| 249 |
+
| `tokenizer.json`, `tokenizer_config.json`, `special_tokens_map.json` | Tokenizer |
|
| 250 |
+
|
| 251 |
+
## Citation
|
| 252 |
+
|
| 253 |
+
```bibtex
|
| 254 |
+
@misc{clipstral2026,
|
| 255 |
+
title = {Clipstral: Image, Video, and Multilingual Text Embedder},
|
| 256 |
+
author = {Mistral AI},
|
| 257 |
+
year = {2026},
|
| 258 |
+
note = {TODO: arXiv identifier}
|
| 259 |
+
}
|
| 260 |
+
```
|
| 261 |
+
|
| 262 |
+
## License
|
| 263 |
+
|
| 264 |
+
Apache License 2.0 - see [LICENSE](https://huggingface.co/mistralai/mistral-multimodal-embed-1B/blob/main/LICENSE).
|
config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"auto_map": {
|
| 3 |
+
"AutoConfig": "configuration_mistral_contrastive.MistralContrastiveConfig",
|
| 4 |
+
"AutoImageProcessor": "image_processing_mistral_contrastive.MistralContrastiveImageProcessor",
|
| 5 |
+
"AutoModel": "modeling_mistral_contrastive.MistralContrastiveModel"
|
| 6 |
+
},
|
| 7 |
+
"eos_token_id": 2,
|
| 8 |
+
"ln_pre": true,
|
| 9 |
+
"logit_scale_init": 2.659260036932778,
|
| 10 |
+
"model_type": "mistral_contrastive",
|
| 11 |
+
"num_channels": 3,
|
| 12 |
+
"patch_size": 14,
|
| 13 |
+
"projection_dim": 1024,
|
| 14 |
+
"spatial_merge_size": 2,
|
| 15 |
+
"temporal_mlp_ratio": 4,
|
| 16 |
+
"temporal_num_attention_heads": 8,
|
| 17 |
+
"temporal_num_hidden_layers": 4,
|
| 18 |
+
"temporal_rope_theta": 10000.0,
|
| 19 |
+
"text_dim": 1792,
|
| 20 |
+
"text_head_dim": 128,
|
| 21 |
+
"text_intermediate_size": 4864,
|
| 22 |
+
"text_norm_eps": 1e-05,
|
| 23 |
+
"text_num_attention_heads": 14,
|
| 24 |
+
"text_num_hidden_layers": 14,
|
| 25 |
+
"text_rope_theta": 1000000.0,
|
| 26 |
+
"text_vocab_size": 131072,
|
| 27 |
+
"transformers_version": "5.8.0",
|
| 28 |
+
"vision_dim": 1024,
|
| 29 |
+
"vision_head_dim": 128,
|
| 30 |
+
"vision_intermediate_size": 4096,
|
| 31 |
+
"vision_norm_eps": 1e-05,
|
| 32 |
+
"vision_num_attention_heads": 8,
|
| 33 |
+
"vision_num_hidden_layers": 24,
|
| 34 |
+
"vision_rope_theta": 10000.0
|
| 35 |
+
}
|
configuration_mistral_contrastive.py
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""HuggingFace config for the Mistral two-encoder contrastive model.
|
| 2 |
+
|
| 3 |
+
This file is self-contained (only depends on ``transformers``) so it can be shipped
|
| 4 |
+
alongside the weights and loaded via ``trust_remote_code=True``.
|
| 5 |
+
|
| 6 |
+
The model is a dual encoder where both towers are Mistral-style transformers
|
| 7 |
+
(RoPE + SwiGLU + RMSNorm, no biases):
|
| 8 |
+
|
| 9 |
+
- text tower: causal transformer, EOS-token pooling, then a linear projection.
|
| 10 |
+
- vision tower: bidirectional ViT with 2D RoPE, 2x2 patch merging, ``amax`` pooling
|
| 11 |
+
over the merged tokens, then a linear projection.
|
| 12 |
+
- optional video path: a post-merge temporal transformer with joint 3D RoPE and
|
| 13 |
+
``amax`` pooling across all clip tokens before the shared vision projection.
|
| 14 |
+
|
| 15 |
+
Image and text embeddings are L2-normalized; ``logits_per_image`` is
|
| 16 |
+
``logit_scale.exp() * image_embeds @ text_embeds.T``.
|
| 17 |
+
"""
|
| 18 |
+
|
| 19 |
+
import math
|
| 20 |
+
from typing import Any
|
| 21 |
+
|
| 22 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
class MistralContrastiveConfig(PretrainedConfig):
|
| 26 |
+
model_type = "mistral_contrastive"
|
| 27 |
+
|
| 28 |
+
def __init__(
|
| 29 |
+
self,
|
| 30 |
+
# --- text tower ---
|
| 31 |
+
text_vocab_size: int = 131072,
|
| 32 |
+
text_dim: int = 1792,
|
| 33 |
+
text_num_hidden_layers: int = 14,
|
| 34 |
+
text_num_attention_heads: int = 14,
|
| 35 |
+
text_head_dim: int = 128,
|
| 36 |
+
text_intermediate_size: int = 4864,
|
| 37 |
+
text_rope_theta: float = 1_000_000.0,
|
| 38 |
+
text_norm_eps: float = 1e-5,
|
| 39 |
+
eos_token_id: int = 2,
|
| 40 |
+
# --- vision tower ---
|
| 41 |
+
vision_dim: int = 1024,
|
| 42 |
+
vision_num_hidden_layers: int = 24,
|
| 43 |
+
vision_num_attention_heads: int = 8,
|
| 44 |
+
vision_head_dim: int = 128,
|
| 45 |
+
vision_intermediate_size: int = 4096,
|
| 46 |
+
vision_rope_theta: float = 10_000.0,
|
| 47 |
+
vision_norm_eps: float = 1e-5,
|
| 48 |
+
num_channels: int = 3,
|
| 49 |
+
patch_size: int = 14,
|
| 50 |
+
spatial_merge_size: int = 2,
|
| 51 |
+
ln_pre: bool = True,
|
| 52 |
+
# --- optional post-ViT video encoder ---
|
| 53 |
+
temporal_num_hidden_layers: int = 0,
|
| 54 |
+
temporal_num_attention_heads: int = 8,
|
| 55 |
+
temporal_mlp_ratio: float = 4,
|
| 56 |
+
temporal_rope_theta: float = 10_000.0,
|
| 57 |
+
# --- shared / contrastive head ---
|
| 58 |
+
projection_dim: int = 1024,
|
| 59 |
+
logit_scale_init: float = math.log(1 / 0.07),
|
| 60 |
+
**kwargs: Any,
|
| 61 |
+
) -> None:
|
| 62 |
+
self.text_vocab_size = text_vocab_size
|
| 63 |
+
self.text_dim = text_dim
|
| 64 |
+
self.text_num_hidden_layers = text_num_hidden_layers
|
| 65 |
+
self.text_num_attention_heads = text_num_attention_heads
|
| 66 |
+
self.text_head_dim = text_head_dim
|
| 67 |
+
self.text_intermediate_size = text_intermediate_size
|
| 68 |
+
self.text_rope_theta = text_rope_theta
|
| 69 |
+
self.text_norm_eps = text_norm_eps
|
| 70 |
+
|
| 71 |
+
self.vision_dim = vision_dim
|
| 72 |
+
self.vision_num_hidden_layers = vision_num_hidden_layers
|
| 73 |
+
self.vision_num_attention_heads = vision_num_attention_heads
|
| 74 |
+
self.vision_head_dim = vision_head_dim
|
| 75 |
+
self.vision_intermediate_size = vision_intermediate_size
|
| 76 |
+
self.vision_rope_theta = vision_rope_theta
|
| 77 |
+
self.vision_norm_eps = vision_norm_eps
|
| 78 |
+
self.num_channels = num_channels
|
| 79 |
+
self.patch_size = patch_size
|
| 80 |
+
self.spatial_merge_size = spatial_merge_size
|
| 81 |
+
self.ln_pre = ln_pre
|
| 82 |
+
self.temporal_num_hidden_layers = temporal_num_hidden_layers
|
| 83 |
+
self.temporal_num_attention_heads = temporal_num_attention_heads
|
| 84 |
+
self.temporal_mlp_ratio = temporal_mlp_ratio
|
| 85 |
+
self.temporal_rope_theta = temporal_rope_theta
|
| 86 |
+
|
| 87 |
+
self.projection_dim = projection_dim
|
| 88 |
+
self.logit_scale_init = logit_scale_init
|
| 89 |
+
|
| 90 |
+
# `eos_token_id` is consumed by PretrainedConfig too; pass it through.
|
| 91 |
+
super().__init__(eos_token_id=eos_token_id, **kwargs)
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
__all__ = ["MistralContrastiveConfig"]
|
image_processing_mistral_contrastive.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""HuggingFace image processor for the Mistral two-encoder contrastive model.
|
| 2 |
+
|
| 3 |
+
The default transform is ``keep_ratio``, which preserves each image's aspect ratio, since the model
|
| 4 |
+
accepts variable resolutions. This processor wraps :func:`image_transforms.build_transform` so the
|
| 5 |
+
three transforms (``squash`` / ``center_crop`` / ``keep_ratio``), any resolution, and the cv2 /
|
| 6 |
+
bicubic resampler choice are all reachable through the standard ``AutoImageProcessor`` API, and the
|
| 7 |
+
choice round-trips through ``preprocessor_config.json``.
|
| 8 |
+
|
| 9 |
+
``keep_ratio`` yields a rectangular, per-image-varying tensor, so ``preprocess`` returns the
|
| 10 |
+
batch as an unstacked list of tensors (the model's packed path consumes
|
| 11 |
+
``get_image_features([...])``). ``squash`` / ``center_crop`` are fixed-size and return a stacked
|
| 12 |
+
``(N, 3, size, size)`` tensor.
|
| 13 |
+
"""
|
| 14 |
+
|
| 15 |
+
from collections.abc import Callable
|
| 16 |
+
from functools import cache
|
| 17 |
+
from typing import Any, ClassVar
|
| 18 |
+
|
| 19 |
+
import torch
|
| 20 |
+
from PIL import Image
|
| 21 |
+
from transformers.image_processing_base import BatchFeature
|
| 22 |
+
from transformers.image_processing_utils import BaseImageProcessor
|
| 23 |
+
from transformers.processing_utils import ImagesKwargs
|
| 24 |
+
|
| 25 |
+
from .image_transforms import GRID_UNIT, TransformKind, build_transform
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class MistralContrastiveImageProcessorKwargs(ImagesKwargs, total=False):
|
| 29 |
+
"""Declares the custom init kwargs so transformers>=5 routes them through ``__init__``
|
| 30 |
+
(validated) instead of setting them afterwards with a backward-compatibility warning."""
|
| 31 |
+
|
| 32 |
+
transform: str
|
| 33 |
+
use_cv2_resize: bool
|
| 34 |
+
|
| 35 |
+
_VALID_TRANSFORMS = tuple(TransformKind)
|
| 36 |
+
# squash / center_crop emit exactly size x size; the side must tile the ViT (multiple of
|
| 37 |
+
# patch_size * spatial_merge_size). keep_ratio rounds each side to GRID_UNIT internally, so any
|
| 38 |
+
# size is fine for it.
|
| 39 |
+
_FIXED_SIZE_TRANSFORMS = frozenset({"squash", "center_crop"})
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
@cache
|
| 43 |
+
def _cached_build_transform(transform: str, size: int, use_cv2_resize: bool) -> Callable[[Image.Image | torch.Tensor], torch.Tensor]:
|
| 44 |
+
"""Built transforms are stateless and reusable, so cache one per unique config rather than
|
| 45 |
+
rebuilding the torchvision Compose on every ``preprocess`` call. Kept module-level (not on the
|
| 46 |
+
instance) so it never leaks into ``__dict__`` / ``preprocessor_config.json``."""
|
| 47 |
+
return build_transform(TransformKind(transform), size, use_cv2_resize)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
class MistralContrastiveImageProcessor(BaseImageProcessor):
|
| 51 |
+
model_input_names: ClassVar[list[str]] = ["pixel_values"]
|
| 52 |
+
valid_kwargs = MistralContrastiveImageProcessorKwargs
|
| 53 |
+
|
| 54 |
+
def __init__(
|
| 55 |
+
self,
|
| 56 |
+
transform: str = "keep_ratio",
|
| 57 |
+
size: int = 448,
|
| 58 |
+
use_cv2_resize: bool = True,
|
| 59 |
+
**kwargs: Any,
|
| 60 |
+
) -> None:
|
| 61 |
+
super().__init__(**kwargs)
|
| 62 |
+
assert transform in _VALID_TRANSFORMS, f"Unknown transform {transform!r}; expected one of {_VALID_TRANSFORMS}"
|
| 63 |
+
if transform in _FIXED_SIZE_TRANSFORMS:
|
| 64 |
+
assert size % GRID_UNIT == 0, (
|
| 65 |
+
f"{transform} emits {size}x{size}, which must be a multiple of {GRID_UNIT} "
|
| 66 |
+
f"(patch_size * spatial_merge_size) to tile the ViT; got size={size}"
|
| 67 |
+
)
|
| 68 |
+
self.transform = transform
|
| 69 |
+
self.size = size
|
| 70 |
+
self.use_cv2_resize = use_cv2_resize
|
| 71 |
+
|
| 72 |
+
def preprocess(
|
| 73 |
+
self,
|
| 74 |
+
images: Image.Image | list[Image.Image] | torch.Tensor | list[torch.Tensor],
|
| 75 |
+
return_tensors: str | None = None,
|
| 76 |
+
) -> BatchFeature:
|
| 77 |
+
# Accepts PIL images or uint8 RGB tensors: one (3, H, W) frame, or a (T, 3, H, W)
|
| 78 |
+
# stack such as torchcodec's ``get_frames_at(...).data``.
|
| 79 |
+
if isinstance(images, Image.Image):
|
| 80 |
+
images = [images]
|
| 81 |
+
elif isinstance(images, torch.Tensor):
|
| 82 |
+
assert images.ndim in (3, 4), (
|
| 83 |
+
f"Expected a (3, H, W) or (T, 3, H, W) tensor, got shape {tuple(images.shape)}"
|
| 84 |
+
)
|
| 85 |
+
images = [images] if images.ndim == 3 else list(images)
|
| 86 |
+
transform = _cached_build_transform(self.transform, self.size, self.use_cv2_resize)
|
| 87 |
+
pixel_values = [transform(image) for image in images]
|
| 88 |
+
|
| 89 |
+
# keep_ratio produces per-image-varying sizes that cannot be stacked or coerced by
|
| 90 |
+
# BatchFeature; keep them as a list and skip tensor conversion.
|
| 91 |
+
if self.transform == "keep_ratio":
|
| 92 |
+
return BatchFeature(data={"pixel_values": pixel_values}, tensor_type=None)
|
| 93 |
+
stacked = torch.stack(pixel_values)
|
| 94 |
+
return BatchFeature(data={"pixel_values": stacked}, tensor_type=return_tensors)
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
MistralContrastiveImageProcessor.register_for_auto_class("AutoImageProcessor")
|
image_transforms.py
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Image preprocessing for the Mistral two-encoder contrastive model.
|
| 2 |
+
|
| 3 |
+
The model is variable-resolution (2D RoPE, no learned position embeddings), so it
|
| 4 |
+
accepts square *or* rectangular inputs as long as height and width are multiples of
|
| 5 |
+
``patch_size * spatial_merge_size`` (= 14 * 2 = 28).
|
| 6 |
+
|
| 7 |
+
Three transforms, matching the training/eval pipeline. Pick one via ``build_transform``:
|
| 8 |
+
|
| 9 |
+
- ``squash`` — resize directly to ``size x size`` (aspect ratio distorted, no crop). Good for
|
| 10 |
+
low / fixed resolution (e.g. 224, 336). Fixed-size output -> dense batching.
|
| 11 |
+
- ``center_crop`` — resize the shortest edge to ``size`` keeping aspect ratio, then
|
| 12 |
+
center-crop ``size x size``. Fixed-size output -> dense batching.
|
| 13 |
+
- ``keep_ratio`` — resize the longest side to ``size`` keeping aspect ratio, rounding both sides
|
| 14 |
+
**up** to a multiple of 28 so the ViT tiles exactly. Output is rectangular and variable-size, so
|
| 15 |
+
pass the images as a list to ``get_image_features([...])``.
|
| 16 |
+
|
| 17 |
+
NOTE on keep_ratio rounding: sides are rounded **up** to a multiple of 28, as in training
|
| 18 |
+
(e.g. 200x900 at 672 px -> 168x672, not 140x672 as rounding down would give).
|
| 19 |
+
|
| 20 |
+
Normalization uses the per-channel mean and standard deviation in ``IMAGE_MEAN`` and ``IMAGE_STD``.
|
| 21 |
+
|
| 22 |
+
Training used cv2 ``INTER_AREA`` resize; set ``use_cv2_resize=True`` to match it exactly,
|
| 23 |
+
otherwise torchvision bicubic is used (a close approximation).
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
from collections.abc import Callable
|
| 27 |
+
from enum import StrEnum
|
| 28 |
+
|
| 29 |
+
import torch
|
| 30 |
+
import torchvision.transforms.functional as TF
|
| 31 |
+
from PIL import Image
|
| 32 |
+
from torchvision import transforms
|
| 33 |
+
from torchvision.transforms import InterpolationMode
|
| 34 |
+
|
| 35 |
+
IMAGE_MEAN = (0.48145466, 0.4578275, 0.40821073)
|
| 36 |
+
IMAGE_STD = (0.26862954, 0.26130258, 0.27577711)
|
| 37 |
+
|
| 38 |
+
PATCH_SIZE = 14
|
| 39 |
+
SPATIAL_MERGE_SIZE = 2
|
| 40 |
+
GRID_UNIT = PATCH_SIZE * SPATIAL_MERGE_SIZE # 28: H and W must be multiples of this
|
| 41 |
+
|
| 42 |
+
class TransformKind(StrEnum):
|
| 43 |
+
squash = "squash"
|
| 44 |
+
center_crop = "center_crop"
|
| 45 |
+
keep_ratio = "keep_ratio"
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def _cv2_resize(img: torch.Tensor, new_h: int, new_w: int) -> torch.Tensor:
|
| 49 |
+
import cv2 # local import so cv2 is only required when use_cv2_resize=True
|
| 50 |
+
|
| 51 |
+
np_img = img.permute(1, 2, 0).numpy()
|
| 52 |
+
np_img = cv2.resize(np_img, (new_w, new_h), interpolation=cv2.INTER_AREA)
|
| 53 |
+
return torch.from_numpy(np_img).permute(2, 0, 1).contiguous()
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def _resize(img: torch.Tensor, new_h: int, new_w: int, use_cv2_resize: bool) -> torch.Tensor:
|
| 57 |
+
if use_cv2_resize:
|
| 58 |
+
return _cv2_resize(img, new_h, new_w)
|
| 59 |
+
return TF.resize(img, [new_h, new_w], interpolation=InterpolationMode.BICUBIC, antialias=True)
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
class _SquashResize(torch.nn.Module):
|
| 63 |
+
def __init__(self, size: int, use_cv2_resize: bool) -> None:
|
| 64 |
+
super().__init__()
|
| 65 |
+
self.size = size
|
| 66 |
+
self.use_cv2_resize = use_cv2_resize
|
| 67 |
+
|
| 68 |
+
def forward(self, img: torch.Tensor) -> torch.Tensor:
|
| 69 |
+
return _resize(img, self.size, self.size, self.use_cv2_resize)
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
class _KeepRatioResize(torch.nn.Module):
|
| 73 |
+
def __init__(self, max_size: int, use_cv2_resize: bool) -> None:
|
| 74 |
+
super().__init__()
|
| 75 |
+
self.max_size = max_size
|
| 76 |
+
self.use_cv2_resize = use_cv2_resize
|
| 77 |
+
|
| 78 |
+
def forward(self, img: torch.Tensor) -> torch.Tensor:
|
| 79 |
+
_, h, w = img.shape
|
| 80 |
+
# Match the training transform: scale the longest side to max_size, then round each
|
| 81 |
+
# side UP to a multiple of GRID_UNIT so the ViT tiles exactly (rounding up, not down,
|
| 82 |
+
# is what the model was trained on; e.g. 200x900 at 672 px -> 168x672, not 140x672).
|
| 83 |
+
scale = self.max_size / max(h, w)
|
| 84 |
+
new_h = max(round(h * scale), 1)
|
| 85 |
+
new_w = max(round(w * scale), 1)
|
| 86 |
+
new_h = ((new_h - 1) // GRID_UNIT + 1) * GRID_UNIT
|
| 87 |
+
new_w = ((new_w - 1) // GRID_UNIT + 1) * GRID_UNIT
|
| 88 |
+
return _resize(img, new_h, new_w, self.use_cv2_resize)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
class _CenterCropResize(torch.nn.Module):
|
| 92 |
+
"""Resize shortest edge to ``size`` (keep aspect), then center-crop ``size x size``."""
|
| 93 |
+
|
| 94 |
+
def __init__(self, size: int, use_cv2_resize: bool) -> None:
|
| 95 |
+
super().__init__()
|
| 96 |
+
self.size = size
|
| 97 |
+
self.use_cv2_resize = use_cv2_resize
|
| 98 |
+
|
| 99 |
+
def forward(self, img: torch.Tensor) -> torch.Tensor:
|
| 100 |
+
_, h, w = img.shape
|
| 101 |
+
scale = self.size / min(h, w)
|
| 102 |
+
img = _resize(img, round(h * scale), round(w * scale), self.use_cv2_resize)
|
| 103 |
+
return TF.center_crop(img, [self.size, self.size])
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
def _to_float_tensor(image: Image.Image | torch.Tensor) -> torch.Tensor:
|
| 107 |
+
"""PIL image or uint8 ``(3, H, W)`` RGB tensor (e.g. a decoded video frame) -> float
|
| 108 |
+
``(3, H, W)`` in [0, 1]. Both paths are pixel-identical: ``to_tensor`` on an RGB image is
|
| 109 |
+
exactly ``uint8 / 255``."""
|
| 110 |
+
if isinstance(image, torch.Tensor):
|
| 111 |
+
assert image.dtype == torch.uint8 and image.ndim == 3 and image.shape[0] == 3, (
|
| 112 |
+
f"Expected a uint8 (3, H, W) RGB tensor, got dtype={image.dtype}, "
|
| 113 |
+
f"shape={tuple(image.shape)}"
|
| 114 |
+
)
|
| 115 |
+
return image.float().div(255)
|
| 116 |
+
return TF.to_tensor(image.convert("RGB"))
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def _compose(resize_op: torch.nn.Module) -> Callable[[Image.Image | torch.Tensor], torch.Tensor]:
|
| 120 |
+
return transforms.Compose(
|
| 121 |
+
[
|
| 122 |
+
transforms.Lambda(_to_float_tensor),
|
| 123 |
+
resize_op,
|
| 124 |
+
transforms.Normalize(mean=IMAGE_MEAN, std=IMAGE_STD),
|
| 125 |
+
]
|
| 126 |
+
)
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def build_squash_transform(size: int = 448, use_cv2_resize: bool = False) -> Callable[[Image.Image | torch.Tensor], torch.Tensor]:
|
| 130 |
+
"""Resize to ``size x size`` (aspect distorted) then normalize. Returns (3, size, size)."""
|
| 131 |
+
return _compose(_SquashResize(size, use_cv2_resize))
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
def build_center_crop_transform(size: int = 448, use_cv2_resize: bool = False) -> Callable[[Image.Image | torch.Tensor], torch.Tensor]:
|
| 135 |
+
"""Resize shortest edge to ``size`` then center-crop ``size x size`` and normalize."""
|
| 136 |
+
return _compose(_CenterCropResize(size, use_cv2_resize))
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
def build_keep_ratio_transform(size: int = 448, use_cv2_resize: bool = False) -> Callable[[Image.Image | torch.Tensor], torch.Tensor]:
|
| 140 |
+
"""Resize longest side to ``size`` (rounded to multiples of 28) then normalize.
|
| 141 |
+
|
| 142 |
+
Output is rectangular and varies per image, so pass the images as a list to ``get_image_features``.
|
| 143 |
+
"""
|
| 144 |
+
return _compose(_KeepRatioResize(size, use_cv2_resize))
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
def build_transform(
|
| 148 |
+
kind: TransformKind = "keep_ratio", size: int = 448, use_cv2_resize: bool = False
|
| 149 |
+
) -> Callable[[Image.Image | torch.Tensor], torch.Tensor]:
|
| 150 |
+
"""Single entry point: select the image transform by name.
|
| 151 |
+
|
| 152 |
+
Defaults to ``keep_ratio`` at 448 px, as in ``preprocessor_config.json``. ``use_cv2_resize``
|
| 153 |
+
defaults to ``False`` here so this function never requires cv2; ``MistralContrastiveImageProcessor``
|
| 154 |
+
defaults to ``True`` to match the training resize.
|
| 155 |
+
"""
|
| 156 |
+
if kind == "squash":
|
| 157 |
+
return build_squash_transform(size, use_cv2_resize)
|
| 158 |
+
if kind == "center_crop":
|
| 159 |
+
return build_center_crop_transform(size, use_cv2_resize)
|
| 160 |
+
if kind == "keep_ratio":
|
| 161 |
+
return build_keep_ratio_transform(size, use_cv2_resize)
|
| 162 |
+
raise ValueError(f"Unknown transform kind {kind!r}; expected squash | center_crop | keep_ratio")
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1ce98fbbe92b6110f5ce54a6e3dcc80d045f0b85409c63fae2358eb36e00641
|
| 3 |
+
size 2483290508
|
modeling_mistral_contrastive.py
ADDED
|
@@ -0,0 +1,582 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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contained (only depends on ``torch`` and ``transformers``) so it can be shipped
|
| 4 |
+
alongside the weights and loaded via ``trust_remote_code=True``.
|
| 5 |
+
|
| 6 |
+
The forward passes match the training implementation:
|
| 7 |
+
|
| 8 |
+
- RoPE uses the ``view_as_complex`` (interleaved adjacent-pair) convention.
|
| 9 |
+
- RMSNorm normalizes in fp32, casts back, then scales by ``weight``.
|
| 10 |
+
- SwiGLU FFN: ``down(silu(gate(x)) * up(x))``.
|
| 11 |
+
- Text tower: causal attention, final RMSNorm, EOS-token pooling, linear projection.
|
| 12 |
+
- Vision tower: bidirectional 2D-RoPE ViT, ``pre_mm_projector_norm``, 2x2 patch merge,
|
| 13 |
+
``contrastive_pre_norm``, ``amax`` over merged tokens, linear projection.
|
| 14 |
+
- Video path: the same per-frame ViT and patch merge, followed by post-ViT joint 3D
|
| 15 |
+
attention with rotate-half RoPE, then ``amax`` across the entire clip.
|
| 16 |
+
|
| 17 |
+
Text, image and video embeddings are L2-normalized in float32, even when the encoder
|
| 18 |
+
weights use bfloat16.
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
from collections import OrderedDict
|
| 22 |
+
from dataclasses import dataclass
|
| 23 |
+
from typing import ClassVar
|
| 24 |
+
|
| 25 |
+
import torch
|
| 26 |
+
import torch.nn.functional as F
|
| 27 |
+
from torch import nn
|
| 28 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 29 |
+
from transformers.utils.generic import ModelOutput
|
| 30 |
+
|
| 31 |
+
from .configuration_mistral_contrastive import MistralContrastiveConfig
|
| 32 |
+
|
| 33 |
+
try:
|
| 34 |
+
# Best packed kernel where available: the one used in training, and fp32-capable.
|
| 35 |
+
# If xformers is not installed, fall back to flash-attn / dense below.
|
| 36 |
+
from xformers.ops import memory_efficient_attention as _xops_mea
|
| 37 |
+
from xformers.ops.fmha.attn_bias import BlockDiagonalMask as _BlockDiagonalMask
|
| 38 |
+
except ImportError: # pragma: no cover - xformers is an optional accelerator
|
| 39 |
+
_xops_mea = None
|
| 40 |
+
_BlockDiagonalMask = None
|
| 41 |
+
|
| 42 |
+
try:
|
| 43 |
+
# Optional accelerator; fp16/bf16 only.
|
| 44 |
+
from flash_attn import flash_attn_varlen_func as _flash_attn_varlen_func
|
| 45 |
+
except ImportError: # pragma: no cover - flash-attn is an optional accelerator
|
| 46 |
+
_flash_attn_varlen_func = None
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def _packed_attention(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, seqlens: list[int]) -> torch.Tensor:
|
| 50 |
+
"""Block-diagonal attention over concatenated variable-length images.
|
| 51 |
+
|
| 52 |
+
q/k/v are (1, total_tokens, n_heads, head_dim); each image attends only to its
|
| 53 |
+
own patches. Tries, in order: xformers ``BlockDiagonalMask`` (matches training,
|
| 54 |
+
fp32-capable) -> flash-attn varlen (fp16/bf16) -> dense
|
| 55 |
+
SDPA block-diagonal mask (always correct, fp32/CPU-safe, O(total^2)).
|
| 56 |
+
"""
|
| 57 |
+
if _xops_mea is not None and _BlockDiagonalMask is not None:
|
| 58 |
+
try:
|
| 59 |
+
attn_bias = _BlockDiagonalMask.from_seqlens(seqlens)
|
| 60 |
+
return _xops_mea(q, k, v, attn_bias=attn_bias) # (1, total, n_heads, head_dim)
|
| 61 |
+
except (NotImplementedError, RuntimeError):
|
| 62 |
+
pass # no kernel for this config (CPU / fp32 on some GPUs / head_dim<32)
|
| 63 |
+
|
| 64 |
+
if _flash_attn_varlen_func is not None and q.dtype in (torch.float16, torch.bfloat16):
|
| 65 |
+
seqlens_t = torch.tensor(seqlens, dtype=torch.int32, device=q.device)
|
| 66 |
+
cu_seqlens = F.pad(seqlens_t.cumsum(0, dtype=torch.int32), (1, 0))
|
| 67 |
+
max_seqlen = int(seqlens_t.max())
|
| 68 |
+
out = _flash_attn_varlen_func(
|
| 69 |
+
q[0], k[0], v[0], cu_seqlens, cu_seqlens, max_seqlen, max_seqlen, dropout_p=0.0, causal=False
|
| 70 |
+
)
|
| 71 |
+
return out.unsqueeze(0) # (1, total, n_heads, head_dim)
|
| 72 |
+
|
| 73 |
+
seg = torch.repeat_interleave(
|
| 74 |
+
torch.arange(len(seqlens), device=q.device),
|
| 75 |
+
torch.tensor(seqlens, device=q.device),
|
| 76 |
+
)
|
| 77 |
+
block_mask = (seg[:, None] == seg[None, :])[None, None] # (1, 1, total, total)
|
| 78 |
+
qh, kh, vh = (t.transpose(1, 2) for t in (q, k, v)) # (1, n_heads, total, head_dim)
|
| 79 |
+
out = F.scaled_dot_product_attention(qh, kh, vh, attn_mask=block_mask)
|
| 80 |
+
return out.transpose(1, 2) # (1, total, n_heads, head_dim)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def precompute_freqs_cis_1d(dim: int, end: int, theta: float, device: torch.device) -> torch.Tensor:
|
| 84 |
+
"""1D RoPE frequencies, shape (end, dim // 2), complex64."""
|
| 85 |
+
freqs = 1.0 / (theta ** (torch.arange(0, dim, 2, device=device, dtype=torch.float32) / dim))
|
| 86 |
+
t = torch.arange(end, device=device, dtype=torch.float32)
|
| 87 |
+
freqs = torch.outer(t, freqs)
|
| 88 |
+
return torch.polar(torch.ones_like(freqs), freqs)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def precompute_freqs_cis_2d(dim: int, height: int, width: int, theta: float, device: torch.device) -> torch.Tensor:
|
| 92 |
+
"""2D RoPE frequencies flattened to (height * width, dim // 2), complex64.
|
| 93 |
+
|
| 94 |
+
The first ``dim // 4`` frequencies index the height axis, the next ``dim // 4``
|
| 95 |
+
index the width axis. Tokens are ordered row-major (height outer, width inner),
|
| 96 |
+
matching the patch-conv ``flatten(2)`` order.
|
| 97 |
+
"""
|
| 98 |
+
freqs = 1.0 / (theta ** (torch.arange(0, dim, 2, device=device, dtype=torch.float32) / dim))
|
| 99 |
+
h = torch.arange(height, device=device, dtype=torch.float32)
|
| 100 |
+
w = torch.arange(width, device=device, dtype=torch.float32)
|
| 101 |
+
freqs_h = torch.outer(h, freqs[::2])
|
| 102 |
+
freqs_w = torch.outer(w, freqs[1::2])
|
| 103 |
+
freqs_2d = torch.cat(
|
| 104 |
+
[
|
| 105 |
+
freqs_h[:, None, :].repeat(1, width, 1),
|
| 106 |
+
freqs_w[None, :, :].repeat(height, 1, 1),
|
| 107 |
+
],
|
| 108 |
+
dim=-1,
|
| 109 |
+
)
|
| 110 |
+
freqs_cis = torch.polar(torch.ones_like(freqs_2d), freqs_2d)
|
| 111 |
+
return freqs_cis.reshape(height * width, dim // 2)
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def apply_rotary_emb(x: torch.Tensor, freqs_cis: torch.Tensor) -> torch.Tensor:
|
| 115 |
+
"""Apply RoPE to a (batch, seq, n_heads, head_dim) tensor. ``freqs_cis`` is (seq, head_dim // 2)."""
|
| 116 |
+
x_ = torch.view_as_complex(x.float().reshape(*x.shape[:-1], x.shape[-1] // 2, 2))
|
| 117 |
+
freqs_cis = freqs_cis.view(1, x.shape[1], 1, x.shape[-1] // 2)
|
| 118 |
+
x_out = torch.view_as_real(x_ * freqs_cis).flatten(3)
|
| 119 |
+
return x_out.type_as(x)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
def precompute_temporal_rope3d(
|
| 123 |
+
n_frames: int,
|
| 124 |
+
grid_h: int,
|
| 125 |
+
grid_w: int,
|
| 126 |
+
head_dim: int,
|
| 127 |
+
theta: float,
|
| 128 |
+
device: torch.device,
|
| 129 |
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
| 130 |
+
"""Match the post-merge, rotate-half 3D RoPE used by TemporalTokenEncoder."""
|
| 131 |
+
half = head_dim // 2
|
| 132 |
+
n_h = half // 3
|
| 133 |
+
n_w = half // 3
|
| 134 |
+
n_t = half - n_h - n_w
|
| 135 |
+
n_patches = grid_h * grid_w
|
| 136 |
+
patch_index = torch.arange(n_patches, device=device)
|
| 137 |
+
t_pos = torch.arange(n_frames, device=device).repeat_interleave(n_patches)
|
| 138 |
+
h_pos = (patch_index // grid_w).repeat(n_frames)
|
| 139 |
+
w_pos = (patch_index % grid_w).repeat(n_frames)
|
| 140 |
+
|
| 141 |
+
def angles(positions: torch.Tensor, n_freqs: int) -> torch.Tensor:
|
| 142 |
+
freqs = theta ** (-torch.arange(n_freqs, device=device, dtype=torch.float32) / max(n_freqs, 1))
|
| 143 |
+
return positions.float()[:, None] * freqs
|
| 144 |
+
|
| 145 |
+
phases = torch.cat([angles(t_pos, n_t), angles(h_pos, n_h), angles(w_pos, n_w)], dim=-1)
|
| 146 |
+
return phases.cos()[None, None], phases.sin()[None, None]
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
def apply_temporal_rope(x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor) -> torch.Tensor:
|
| 150 |
+
"""The temporal encoder rotates the first and second halves of each head."""
|
| 151 |
+
half = x.shape[-1] // 2
|
| 152 |
+
first, second = x[..., :half], x[..., half:]
|
| 153 |
+
cos, sin = cos.to(x.dtype), sin.to(x.dtype)
|
| 154 |
+
return torch.cat([first * cos - second * sin, first * sin + second * cos], dim=-1)
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
class RMSNorm(nn.Module):
|
| 158 |
+
def __init__(self, dim: int, eps: float) -> None:
|
| 159 |
+
super().__init__()
|
| 160 |
+
self.eps = eps
|
| 161 |
+
self.weight = nn.Parameter(torch.ones(dim))
|
| 162 |
+
|
| 163 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 164 |
+
# Same fp32 math as the reference implementation; F.rms_norm runs it as one fused kernel, which makes
|
| 165 |
+
# eager (uncompiled) video encoding ~1.4x faster on GPU.
|
| 166 |
+
if hasattr(F, "rms_norm"): # torch >= 2.4
|
| 167 |
+
output = F.rms_norm(x.float(), (x.shape[-1],), eps=self.eps).type_as(x)
|
| 168 |
+
else:
|
| 169 |
+
x_float = x.float()
|
| 170 |
+
output = (x_float * torch.rsqrt(x_float.pow(2).mean(-1, keepdim=True) + self.eps)).type_as(x)
|
| 171 |
+
return output * self.weight
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
class SwiGLUMLP(nn.Module):
|
| 175 |
+
def __init__(self, dim: int, hidden_dim: int) -> None:
|
| 176 |
+
super().__init__()
|
| 177 |
+
self.gate_proj = nn.Linear(dim, hidden_dim, bias=False) # w1
|
| 178 |
+
self.up_proj = nn.Linear(dim, hidden_dim, bias=False) # w3
|
| 179 |
+
self.down_proj = nn.Linear(hidden_dim, dim, bias=False) # w2
|
| 180 |
+
|
| 181 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 182 |
+
return self.down_proj(F.silu(self.gate_proj(x)) * self.up_proj(x))
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
class Attention(nn.Module):
|
| 186 |
+
def __init__(self, dim: int, n_heads: int, head_dim: int) -> None:
|
| 187 |
+
super().__init__()
|
| 188 |
+
self.n_heads = n_heads
|
| 189 |
+
self.head_dim = head_dim
|
| 190 |
+
self.q_proj = nn.Linear(dim, n_heads * head_dim, bias=False)
|
| 191 |
+
self.k_proj = nn.Linear(dim, n_heads * head_dim, bias=False)
|
| 192 |
+
self.v_proj = nn.Linear(dim, n_heads * head_dim, bias=False)
|
| 193 |
+
self.o_proj = nn.Linear(n_heads * head_dim, dim, bias=False)
|
| 194 |
+
|
| 195 |
+
def forward(
|
| 196 |
+
self,
|
| 197 |
+
x: torch.Tensor,
|
| 198 |
+
freqs_cis: torch.Tensor,
|
| 199 |
+
is_causal: bool,
|
| 200 |
+
attn_mask: torch.Tensor | None = None,
|
| 201 |
+
seqlens: list[int] | None = None,
|
| 202 |
+
) -> torch.Tensor:
|
| 203 |
+
bsz, seqlen, _ = x.shape
|
| 204 |
+
q = self.q_proj(x).view(bsz, seqlen, self.n_heads, self.head_dim)
|
| 205 |
+
k = self.k_proj(x).view(bsz, seqlen, self.n_heads, self.head_dim)
|
| 206 |
+
v = self.v_proj(x).view(bsz, seqlen, self.n_heads, self.head_dim)
|
| 207 |
+
|
| 208 |
+
q = apply_rotary_emb(q, freqs_cis)
|
| 209 |
+
k = apply_rotary_emb(k, freqs_cis)
|
| 210 |
+
|
| 211 |
+
if seqlens is not None:
|
| 212 |
+
# Packed variable-length images (bsz == 1): block-diagonal attention.
|
| 213 |
+
assert bsz == 1, "packed mode expects bsz==1"
|
| 214 |
+
out = _packed_attention(q, k, v, seqlens) # (1, total, n_heads, head_dim)
|
| 215 |
+
out = out.reshape(bsz, seqlen, self.n_heads * self.head_dim)
|
| 216 |
+
return self.o_proj(out)
|
| 217 |
+
|
| 218 |
+
q = q.transpose(1, 2)
|
| 219 |
+
k = k.transpose(1, 2)
|
| 220 |
+
v = v.transpose(1, 2)
|
| 221 |
+
|
| 222 |
+
# sdpa does not allow both is_causal and an explicit mask; an explicit mask
|
| 223 |
+
# (used when padding is present) already encodes causality.
|
| 224 |
+
out = F.scaled_dot_product_attention(q, k, v, attn_mask=attn_mask, is_causal=is_causal and attn_mask is None)
|
| 225 |
+
out = out.transpose(1, 2).reshape(bsz, seqlen, self.n_heads * self.head_dim)
|
| 226 |
+
return self.o_proj(out)
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
class TransformerBlock(nn.Module):
|
| 230 |
+
def __init__(self, dim: int, n_heads: int, head_dim: int, hidden_dim: int, eps: float) -> None:
|
| 231 |
+
super().__init__()
|
| 232 |
+
self.input_layernorm = RMSNorm(dim, eps)
|
| 233 |
+
self.self_attn = Attention(dim, n_heads, head_dim)
|
| 234 |
+
self.post_attention_layernorm = RMSNorm(dim, eps)
|
| 235 |
+
self.mlp = SwiGLUMLP(dim, hidden_dim)
|
| 236 |
+
|
| 237 |
+
def forward(
|
| 238 |
+
self,
|
| 239 |
+
x: torch.Tensor,
|
| 240 |
+
freqs_cis: torch.Tensor,
|
| 241 |
+
is_causal: bool,
|
| 242 |
+
attn_mask: torch.Tensor | None = None,
|
| 243 |
+
seqlens: list[int] | None = None,
|
| 244 |
+
) -> torch.Tensor:
|
| 245 |
+
x = x + self.self_attn(self.input_layernorm(x), freqs_cis, is_causal, attn_mask, seqlens)
|
| 246 |
+
x = x + self.mlp(self.post_attention_layernorm(x))
|
| 247 |
+
return x
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
class TemporalAttentionBlock(nn.Module):
|
| 251 |
+
def __init__(self, dim: int, n_heads: int, mlp_ratio: float) -> None:
|
| 252 |
+
super().__init__()
|
| 253 |
+
self.n_heads = n_heads
|
| 254 |
+
self.head_dim = dim // n_heads
|
| 255 |
+
mlp_dim = int(dim * mlp_ratio)
|
| 256 |
+
self.norm1 = nn.LayerNorm(dim)
|
| 257 |
+
self.q_proj = nn.Linear(dim, dim)
|
| 258 |
+
self.k_proj = nn.Linear(dim, dim)
|
| 259 |
+
self.v_proj = nn.Linear(dim, dim)
|
| 260 |
+
self.out_proj = nn.Linear(dim, dim)
|
| 261 |
+
self.norm2 = nn.LayerNorm(dim)
|
| 262 |
+
self.mlp = nn.Sequential(
|
| 263 |
+
OrderedDict(
|
| 264 |
+
[
|
| 265 |
+
("c_fc", nn.Linear(dim, mlp_dim)),
|
| 266 |
+
("gelu", nn.GELU()),
|
| 267 |
+
("c_proj", nn.Linear(mlp_dim, dim)),
|
| 268 |
+
]
|
| 269 |
+
)
|
| 270 |
+
)
|
| 271 |
+
|
| 272 |
+
def forward(self, x: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor) -> torch.Tensor:
|
| 273 |
+
bsz, seqlen, dim = x.shape
|
| 274 |
+
h = self.norm1(x)
|
| 275 |
+
|
| 276 |
+
def heads(proj: nn.Linear) -> torch.Tensor:
|
| 277 |
+
return proj(h).view(bsz, seqlen, self.n_heads, self.head_dim).transpose(1, 2)
|
| 278 |
+
|
| 279 |
+
q = apply_temporal_rope(heads(self.q_proj), cos, sin)
|
| 280 |
+
k = apply_temporal_rope(heads(self.k_proj), cos, sin)
|
| 281 |
+
v = heads(self.v_proj)
|
| 282 |
+
attn = F.scaled_dot_product_attention(q, k, v)
|
| 283 |
+
x = x + self.out_proj(attn.transpose(1, 2).reshape(bsz, seqlen, dim))
|
| 284 |
+
return x + self.mlp(self.norm2(x))
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
class TemporalTokenEncoder(nn.Module):
|
| 288 |
+
def __init__(self, config: MistralContrastiveConfig) -> None:
|
| 289 |
+
super().__init__()
|
| 290 |
+
assert config.vision_dim % config.temporal_num_attention_heads == 0, (
|
| 291 |
+
"Vision dimension must be divisible by temporal attention heads"
|
| 292 |
+
)
|
| 293 |
+
self.head_dim = config.vision_dim // config.temporal_num_attention_heads
|
| 294 |
+
assert self.head_dim % 2 == 0, f"Expected even temporal head dim, got {self.head_dim}"
|
| 295 |
+
self.rope_theta = config.temporal_rope_theta
|
| 296 |
+
self.blocks = nn.ModuleList(
|
| 297 |
+
TemporalAttentionBlock(
|
| 298 |
+
config.vision_dim,
|
| 299 |
+
config.temporal_num_attention_heads,
|
| 300 |
+
config.temporal_mlp_ratio,
|
| 301 |
+
)
|
| 302 |
+
for _ in range(config.temporal_num_hidden_layers)
|
| 303 |
+
)
|
| 304 |
+
self.norm = nn.LayerNorm(config.vision_dim)
|
| 305 |
+
|
| 306 |
+
def forward(self, x: torch.Tensor, grid_h: int, grid_w: int) -> torch.Tensor:
|
| 307 |
+
n_frames, n_patches, dim = x.shape
|
| 308 |
+
assert n_frames > 0, "A video must contain at least one frame"
|
| 309 |
+
assert grid_h * grid_w == n_patches, f"Post-merge grid {grid_h}x{grid_w} does not match {n_patches} tokens"
|
| 310 |
+
cos, sin = precompute_temporal_rope3d(n_frames, grid_h, grid_w, self.head_dim, self.rope_theta, x.device)
|
| 311 |
+
sequence = x.reshape(1, n_frames * n_patches, dim)
|
| 312 |
+
for block in self.blocks:
|
| 313 |
+
sequence = block(sequence, cos, sin)
|
| 314 |
+
return self.norm(sequence).reshape(n_frames * n_patches, dim)
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
class MistralContrastiveTextModel(nn.Module):
|
| 318 |
+
def __init__(self, config: MistralContrastiveConfig) -> None:
|
| 319 |
+
super().__init__()
|
| 320 |
+
self.config = config
|
| 321 |
+
assert config.eos_token_id is not None, "eos_token_id is required for EOS pooling"
|
| 322 |
+
self.eos_token_id: int = config.eos_token_id
|
| 323 |
+
self.head_dim: int = config.text_head_dim
|
| 324 |
+
self.rope_theta: float = config.text_rope_theta
|
| 325 |
+
|
| 326 |
+
self.embed_tokens = nn.Embedding(config.text_vocab_size, config.text_dim)
|
| 327 |
+
self.layers = nn.ModuleList(
|
| 328 |
+
TransformerBlock(
|
| 329 |
+
config.text_dim,
|
| 330 |
+
config.text_num_attention_heads,
|
| 331 |
+
config.text_head_dim,
|
| 332 |
+
config.text_intermediate_size,
|
| 333 |
+
config.text_norm_eps,
|
| 334 |
+
)
|
| 335 |
+
for _ in range(config.text_num_hidden_layers)
|
| 336 |
+
)
|
| 337 |
+
self.norm = RMSNorm(config.text_dim, config.text_norm_eps)
|
| 338 |
+
self.text_projection = nn.Linear(config.text_dim, config.projection_dim, bias=False)
|
| 339 |
+
|
| 340 |
+
def forward(
|
| 341 |
+
self,
|
| 342 |
+
input_ids: torch.Tensor,
|
| 343 |
+
attention_mask: torch.Tensor | None = None,
|
| 344 |
+
*,
|
| 345 |
+
normalize: bool = True,
|
| 346 |
+
) -> torch.Tensor:
|
| 347 |
+
bsz, seqlen = input_ids.shape
|
| 348 |
+
x = self.embed_tokens(input_ids)
|
| 349 |
+
freqs_cis = precompute_freqs_cis_1d(self.head_dim, seqlen, self.rope_theta, x.device)
|
| 350 |
+
|
| 351 |
+
attn_mask: torch.Tensor | None = None
|
| 352 |
+
if attention_mask is not None:
|
| 353 |
+
causal = torch.tril(torch.ones(seqlen, seqlen, dtype=torch.bool, device=x.device))
|
| 354 |
+
key_pad = attention_mask.to(torch.bool)[:, None, None, :]
|
| 355 |
+
attn_mask = causal[None, None, :, :] & key_pad
|
| 356 |
+
|
| 357 |
+
for layer in self.layers:
|
| 358 |
+
x = layer(x, freqs_cis, is_causal=True, attn_mask=attn_mask)
|
| 359 |
+
|
| 360 |
+
x = self.norm(x)
|
| 361 |
+
|
| 362 |
+
# EOS pooling: take the hidden state at the first eos token of each row.
|
| 363 |
+
matches = input_ids == self.eos_token_id
|
| 364 |
+
# Checked on device (no host sync), so the check does not break torch.compile graphs.
|
| 365 |
+
torch._assert_async(
|
| 366 |
+
matches.any(dim=-1).all(), f"every row must contain eos_token_id={self.eos_token_id} for EOS pooling"
|
| 367 |
+
)
|
| 368 |
+
eos_idx = matches.int().argmax(dim=-1)
|
| 369 |
+
pooled = x[torch.arange(bsz, device=x.device), eos_idx]
|
| 370 |
+
|
| 371 |
+
embeds = self.text_projection(pooled)
|
| 372 |
+
if not normalize:
|
| 373 |
+
return embeds
|
| 374 |
+
return F.normalize(embeds.float(), p=2, dim=-1)
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
class PatchMerger(nn.Module):
|
| 378 |
+
def __init__(self, dim: int, spatial_merge_size: int) -> None:
|
| 379 |
+
super().__init__()
|
| 380 |
+
self.spatial_merge_size = spatial_merge_size
|
| 381 |
+
self.merging_layer = nn.Linear(dim * spatial_merge_size**2, dim, bias=False)
|
| 382 |
+
|
| 383 |
+
def forward(self, x: torch.Tensor, grid_h: int, grid_w: int) -> torch.Tensor:
|
| 384 |
+
"""x: (batch, grid_h * grid_w, dim) -> (batch, merged_tokens, dim)."""
|
| 385 |
+
bsz, _, dim = x.shape
|
| 386 |
+
s = self.spatial_merge_size
|
| 387 |
+
img = x.view(bsz, grid_h, grid_w, dim).permute(0, 3, 1, 2) # (B, dim, H, W)
|
| 388 |
+
# F.unfold channel order is (dim, kh, kw) flattened as dim*kh*kw, which matches
|
| 389 |
+
# the patch-merge ordering used in training.
|
| 390 |
+
unfolded = F.unfold(img, kernel_size=s, stride=s) # (B, dim * s * s, L)
|
| 391 |
+
unfolded = unfolded.transpose(1, 2) # (B, L, dim * s * s)
|
| 392 |
+
return self.merging_layer(unfolded)
|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
class MistralContrastiveVisionModel(nn.Module):
|
| 396 |
+
def __init__(self, config: MistralContrastiveConfig) -> None:
|
| 397 |
+
super().__init__()
|
| 398 |
+
self.config = config
|
| 399 |
+
self.patch_size: int = config.patch_size
|
| 400 |
+
self.head_dim: int = config.vision_head_dim
|
| 401 |
+
self.rope_theta: float = config.vision_rope_theta
|
| 402 |
+
self.spatial_merge_size: int = config.spatial_merge_size
|
| 403 |
+
|
| 404 |
+
self.patch_conv = nn.Conv2d(
|
| 405 |
+
config.num_channels,
|
| 406 |
+
config.vision_dim,
|
| 407 |
+
kernel_size=config.patch_size,
|
| 408 |
+
stride=config.patch_size,
|
| 409 |
+
bias=False,
|
| 410 |
+
)
|
| 411 |
+
self.ln_pre: nn.Module = RMSNorm(config.vision_dim, config.vision_norm_eps) if config.ln_pre else nn.Identity()
|
| 412 |
+
self.layers = nn.ModuleList(
|
| 413 |
+
TransformerBlock(
|
| 414 |
+
config.vision_dim,
|
| 415 |
+
config.vision_num_attention_heads,
|
| 416 |
+
config.vision_head_dim,
|
| 417 |
+
config.vision_intermediate_size,
|
| 418 |
+
config.vision_norm_eps,
|
| 419 |
+
)
|
| 420 |
+
for _ in range(config.vision_num_hidden_layers)
|
| 421 |
+
)
|
| 422 |
+
self.pre_mm_projector_norm = RMSNorm(config.vision_dim, config.vision_norm_eps)
|
| 423 |
+
self.patch_merger = PatchMerger(config.vision_dim, config.spatial_merge_size)
|
| 424 |
+
self.contrastive_pre_norm = RMSNorm(config.vision_dim, config.vision_norm_eps)
|
| 425 |
+
self.visual_projection = nn.Linear(config.vision_dim, config.projection_dim, bias=False)
|
| 426 |
+
|
| 427 |
+
def encode_patches(self, pixel_values: torch.Tensor) -> tuple[torch.Tensor, int, int]:
|
| 428 |
+
x = self.patch_conv(pixel_values) # (B, dim, gh, gw)
|
| 429 |
+
grid_h, grid_w = x.shape[-2], x.shape[-1]
|
| 430 |
+
x = x.flatten(2).transpose(1, 2) # (B, gh * gw, dim)
|
| 431 |
+
x = self.ln_pre(x)
|
| 432 |
+
|
| 433 |
+
freqs_cis = precompute_freqs_cis_2d(self.head_dim, grid_h, grid_w, self.rope_theta, x.device)
|
| 434 |
+
for layer in self.layers:
|
| 435 |
+
x = layer(x, freqs_cis, is_causal=False)
|
| 436 |
+
|
| 437 |
+
x = self.pre_mm_projector_norm(x)
|
| 438 |
+
x = self.patch_merger(x, grid_h, grid_w)
|
| 439 |
+
return x, grid_h // self.spatial_merge_size, grid_w // self.spatial_merge_size
|
| 440 |
+
|
| 441 |
+
def forward(self, pixel_values: torch.Tensor) -> torch.Tensor:
|
| 442 |
+
x, _, _ = self.encode_patches(pixel_values)
|
| 443 |
+
x = self.contrastive_pre_norm(x)
|
| 444 |
+
x = x.amax(dim=1) # amax pooling over the merged tokens
|
| 445 |
+
|
| 446 |
+
embeds = self.visual_projection(x)
|
| 447 |
+
return F.normalize(embeds.float(), p=2, dim=-1)
|
| 448 |
+
|
| 449 |
+
def forward_packed(self, images: list[torch.Tensor]) -> torch.Tensor:
|
| 450 |
+
"""Encode variable-resolution images without padding (e.g. keep_ratio).
|
| 451 |
+
|
| 452 |
+
Each image attends only to its own patches (block-diagonal attention, as in the
|
| 453 |
+
packed-sequence vision encoder used in training). Images with the same patch grid are therefore batched
|
| 454 |
+
together and run through the dense path, which is the same computation without a variable-length
|
| 455 |
+
attention kernel, so the whole encoder compiles without graph breaks. Embeddings are returned in
|
| 456 |
+
input order. Every image's height/width must be a multiple of ``patch_size * spatial_merge_size``.
|
| 457 |
+
"""
|
| 458 |
+
assert len(images) > 0, "forward_packed requires at least one image"
|
| 459 |
+
images = [img.unsqueeze(0) if img.dim() == 3 else img for img in images] # each (1, 3, H, W)
|
| 460 |
+
groups: dict[tuple[int, int], list[int]] = {}
|
| 461 |
+
for i, img in enumerate(images):
|
| 462 |
+
groups.setdefault((img.shape[-2], img.shape[-1]), []).append(i)
|
| 463 |
+
|
| 464 |
+
embeds: list[torch.Tensor | None] = [None] * len(images)
|
| 465 |
+
for idx in groups.values():
|
| 466 |
+
x, _, _ = self.encode_patches(torch.cat([images[i] for i in idx], dim=0)) # (n, merged, dim)
|
| 467 |
+
x = self.contrastive_pre_norm(x).amax(dim=1)
|
| 468 |
+
for i, e in zip(idx, self.visual_projection(x).unbind(0), strict=True):
|
| 469 |
+
embeds[i] = e
|
| 470 |
+
return F.normalize(torch.stack(embeds).float(), p=2, dim=-1)
|
| 471 |
+
|
| 472 |
+
|
| 473 |
+
@dataclass
|
| 474 |
+
class MistralContrastiveOutput(ModelOutput):
|
| 475 |
+
logits_per_image: torch.Tensor | None = None
|
| 476 |
+
logits_per_text: torch.Tensor | None = None
|
| 477 |
+
image_embeds: torch.Tensor | None = None
|
| 478 |
+
logits_per_video: torch.Tensor | None = None
|
| 479 |
+
video_embeds: torch.Tensor | None = None
|
| 480 |
+
text_embeds: torch.Tensor | None = None
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
class MistralContrastiveModel(PreTrainedModel):
|
| 484 |
+
config_class = MistralContrastiveConfig
|
| 485 |
+
base_model_prefix = "mistral_contrastive"
|
| 486 |
+
main_input_name = "pixel_values"
|
| 487 |
+
_no_split_modules: ClassVar[list[str]] = ["TransformerBlock"]
|
| 488 |
+
supports_gradient_checkpointing = False
|
| 489 |
+
|
| 490 |
+
def __init__(self, config: MistralContrastiveConfig) -> None:
|
| 491 |
+
super().__init__(config)
|
| 492 |
+
self.text_model = MistralContrastiveTextModel(config)
|
| 493 |
+
self.vision_model = MistralContrastiveVisionModel(config)
|
| 494 |
+
self.temporal_encoder = TemporalTokenEncoder(config) if config.temporal_num_hidden_layers > 0 else None
|
| 495 |
+
self.logit_scale = nn.Parameter(torch.tensor([config.logit_scale_init], dtype=torch.float32))
|
| 496 |
+
self.post_init()
|
| 497 |
+
|
| 498 |
+
def _init_weights(self, module: nn.Module) -> None:
|
| 499 |
+
if isinstance(module, (nn.Linear, nn.Conv2d)):
|
| 500 |
+
module.weight.data.normal_(mean=0.0, std=0.02)
|
| 501 |
+
bias = getattr(module, "bias", None)
|
| 502 |
+
if bias is not None:
|
| 503 |
+
bias.data.zero_()
|
| 504 |
+
elif isinstance(module, nn.Embedding):
|
| 505 |
+
module.weight.data.normal_(mean=0.0, std=0.02)
|
| 506 |
+
elif isinstance(module, RMSNorm):
|
| 507 |
+
module.weight.data.fill_(1.0)
|
| 508 |
+
|
| 509 |
+
def get_text_features(
|
| 510 |
+
self,
|
| 511 |
+
input_ids: torch.Tensor,
|
| 512 |
+
attention_mask: torch.Tensor | None = None,
|
| 513 |
+
*,
|
| 514 |
+
normalize: bool = True,
|
| 515 |
+
) -> torch.Tensor:
|
| 516 |
+
# Class prototypes in the native zero-shot evaluator average raw prompt
|
| 517 |
+
# projections before their final L2 normalization.
|
| 518 |
+
return self.text_model(input_ids, attention_mask, normalize=normalize)
|
| 519 |
+
|
| 520 |
+
def get_image_features(self, pixel_values: torch.Tensor | list[torch.Tensor]) -> torch.Tensor:
|
| 521 |
+
# A list of (3, H, W) tensors -> packed variable-resolution path (keep_ratio).
|
| 522 |
+
# A single (B, 3, H, W) tensor -> dense path (squash / center_crop).
|
| 523 |
+
if isinstance(pixel_values, (list, tuple)):
|
| 524 |
+
return self.vision_model.forward_packed(list(pixel_values))
|
| 525 |
+
return self.vision_model(pixel_values)
|
| 526 |
+
|
| 527 |
+
def get_video_features(self, videos: torch.Tensor | list[torch.Tensor]) -> torch.Tensor:
|
| 528 |
+
"""Encode (B,T,C,H,W) or a list of (T,C,H,W) clips, one embedding per clip."""
|
| 529 |
+
assert self.temporal_encoder is not None, (
|
| 530 |
+
"This checkpoint has no temporal encoder; video features are unavailable"
|
| 531 |
+
)
|
| 532 |
+
clips = list(videos) if isinstance(videos, (list, tuple)) else list(videos.unbind(0))
|
| 533 |
+
assert len(clips) > 0, "get_video_features requires at least one video"
|
| 534 |
+
embeddings = []
|
| 535 |
+
for frames in clips:
|
| 536 |
+
assert frames.ndim == 4 and frames.shape[0] > 0, (
|
| 537 |
+
f"Each video must have shape (T,C,H,W) with T>0, got {tuple(frames.shape)}"
|
| 538 |
+
)
|
| 539 |
+
x, grid_h, grid_w = self.vision_model.encode_patches(frames)
|
| 540 |
+
x = self.temporal_encoder(x, grid_h, grid_w)
|
| 541 |
+
x = self.vision_model.contrastive_pre_norm(x)
|
| 542 |
+
pooled = x.amax(dim=0)
|
| 543 |
+
embeddings.append(self.vision_model.visual_projection(pooled))
|
| 544 |
+
return F.normalize(torch.stack(embeddings).float(), p=2, dim=-1)
|
| 545 |
+
|
| 546 |
+
def forward(
|
| 547 |
+
self,
|
| 548 |
+
input_ids: torch.Tensor | None = None,
|
| 549 |
+
pixel_values: torch.Tensor | list[torch.Tensor] | None = None,
|
| 550 |
+
attention_mask: torch.Tensor | None = None,
|
| 551 |
+
video_pixel_values: torch.Tensor | list[torch.Tensor] | None = None,
|
| 552 |
+
) -> MistralContrastiveOutput:
|
| 553 |
+
assert input_ids is not None, "MistralContrastiveModel.forward requires input_ids"
|
| 554 |
+
assert (pixel_values is None) != (video_pixel_values is None), (
|
| 555 |
+
"Pass exactly one of pixel_values or video_pixel_values"
|
| 556 |
+
)
|
| 557 |
+
text_embeds = self.get_text_features(input_ids, attention_mask)
|
| 558 |
+
if video_pixel_values is not None:
|
| 559 |
+
video_embeds = self.get_video_features(video_pixel_values)
|
| 560 |
+
logits_per_text = self.logit_scale.float().exp() * (text_embeds.float() @ video_embeds.float().t())
|
| 561 |
+
return MistralContrastiveOutput(
|
| 562 |
+
logits_per_text=logits_per_text,
|
| 563 |
+
logits_per_video=logits_per_text.t(),
|
| 564 |
+
video_embeds=video_embeds,
|
| 565 |
+
text_embeds=text_embeds,
|
| 566 |
+
)
|
| 567 |
+
|
| 568 |
+
assert pixel_values is not None
|
| 569 |
+
image_embeds = self.get_image_features(pixel_values)
|
| 570 |
+
logits_per_text = self.logit_scale.float().exp() * (text_embeds.float() @ image_embeds.float().t())
|
| 571 |
+
return MistralContrastiveOutput(
|
| 572 |
+
logits_per_image=logits_per_text.t(),
|
| 573 |
+
logits_per_text=logits_per_text,
|
| 574 |
+
image_embeds=image_embeds,
|
| 575 |
+
text_embeds=text_embeds,
|
| 576 |
+
)
|
| 577 |
+
|
| 578 |
+
|
| 579 |
+
MistralContrastiveConfig.register_for_auto_class()
|
| 580 |
+
MistralContrastiveModel.register_for_auto_class("AutoModel")
|
| 581 |
+
|
| 582 |
+
__all__ = ["MistralContrastiveModel", "MistralContrastiveOutput"]
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"auto_map": {
|
| 3 |
+
"AutoImageProcessor": "image_processing_mistral_contrastive.MistralContrastiveImageProcessor"
|
| 4 |
+
},
|
| 5 |
+
"size": 448,
|
| 6 |
+
"transform": "keep_ratio",
|
| 7 |
+
"use_cv2_resize": true
|
| 8 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,1008 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"eos_token": "</s>",
|
| 4 |
+
"unk_token": "<unk>",
|
| 5 |
+
"pad_token": "<pad>",
|
| 6 |
+
"additional_special_tokens": [
|
| 7 |
+
"<unk>",
|
| 8 |
+
"<s>",
|
| 9 |
+
"</s>",
|
| 10 |
+
"[INST]",
|
| 11 |
+
"[/INST]",
|
| 12 |
+
"[AVAILABLE_TOOLS]",
|
| 13 |
+
"[/AVAILABLE_TOOLS]",
|
| 14 |
+
"[TOOL_RESULTS]",
|
| 15 |
+
"[/TOOL_RESULTS]",
|
| 16 |
+
"[TOOL_CALLS]",
|
| 17 |
+
"[IMG]",
|
| 18 |
+
"<pad>",
|
| 19 |
+
"[IMG_BREAK]",
|
| 20 |
+
"[IMG_END]",
|
| 21 |
+
"[PREFIX]",
|
| 22 |
+
"[MIDDLE]",
|
| 23 |
+
"[SUFFIX]",
|
| 24 |
+
"[SYSTEM_PROMPT]",
|
| 25 |
+
"[/SYSTEM_PROMPT]",
|
| 26 |
+
"[TOOL_CONTENT]",
|
| 27 |
+
"[BBOX]",
|
| 28 |
+
"[/BBOX]",
|
| 29 |
+
"[STEP]",
|
| 30 |
+
"[/STEP]",
|
| 31 |
+
"[AUDIO]",
|
| 32 |
+
"[BEGIN_AUDIO]",
|
| 33 |
+
"[END_AUDIO]",
|
| 34 |
+
"[REF]",
|
| 35 |
+
"[/REF]",
|
| 36 |
+
"[REASONING]",
|
| 37 |
+
"[VERIFICATION]",
|
| 38 |
+
"[SCORE]",
|
| 39 |
+
"[ARGS]",
|
| 40 |
+
"[CALL_ID]",
|
| 41 |
+
"[THINK]",
|
| 42 |
+
"[/THINK]",
|
| 43 |
+
"[MODEL_SETTINGS]",
|
| 44 |
+
"[/MODEL_SETTINGS]",
|
| 45 |
+
"[DROPOUT]",
|
| 46 |
+
"[DROPOUT_IMG]",
|
| 47 |
+
"<SPECIAL_40>",
|
| 48 |
+
"<SPECIAL_41>",
|
| 49 |
+
"<SPECIAL_42>",
|
| 50 |
+
"<SPECIAL_43>",
|
| 51 |
+
"<SPECIAL_44>",
|
| 52 |
+
"<SPECIAL_45>",
|
| 53 |
+
"<SPECIAL_46>",
|
| 54 |
+
"<SPECIAL_47>",
|
| 55 |
+
"<SPECIAL_48>",
|
| 56 |
+
"<SPECIAL_49>",
|
| 57 |
+
"<SPECIAL_50>",
|
| 58 |
+
"<SPECIAL_51>",
|
| 59 |
+
"<SPECIAL_52>",
|
| 60 |
+
"<SPECIAL_53>",
|
| 61 |
+
"<SPECIAL_54>",
|
| 62 |
+
"<SPECIAL_55>",
|
| 63 |
+
"<SPECIAL_56>",
|
| 64 |
+
"<SPECIAL_57>",
|
| 65 |
+
"<SPECIAL_58>",
|
| 66 |
+
"<SPECIAL_59>",
|
| 67 |
+
"<SPECIAL_60>",
|
| 68 |
+
"<SPECIAL_61>",
|
| 69 |
+
"<SPECIAL_62>",
|
| 70 |
+
"<SPECIAL_63>",
|
| 71 |
+
"<SPECIAL_64>",
|
| 72 |
+
"<SPECIAL_65>",
|
| 73 |
+
"<SPECIAL_66>",
|
| 74 |
+
"<SPECIAL_67>",
|
| 75 |
+
"<SPECIAL_68>",
|
| 76 |
+
"<SPECIAL_69>",
|
| 77 |
+
"<SPECIAL_70>",
|
| 78 |
+
"<SPECIAL_71>",
|
| 79 |
+
"<SPECIAL_72>",
|
| 80 |
+
"<SPECIAL_73>",
|
| 81 |
+
"<SPECIAL_74>",
|
| 82 |
+
"<SPECIAL_75>",
|
| 83 |
+
"<SPECIAL_76>",
|
| 84 |
+
"<SPECIAL_77>",
|
| 85 |
+
"<SPECIAL_78>",
|
| 86 |
+
"<SPECIAL_79>",
|
| 87 |
+
"<SPECIAL_80>",
|
| 88 |
+
"<SPECIAL_81>",
|
| 89 |
+
"<SPECIAL_82>",
|
| 90 |
+
"<SPECIAL_83>",
|
| 91 |
+
"<SPECIAL_84>",
|
| 92 |
+
"<SPECIAL_85>",
|
| 93 |
+
"<SPECIAL_86>",
|
| 94 |
+
"<SPECIAL_87>",
|
| 95 |
+
"<SPECIAL_88>",
|
| 96 |
+
"<SPECIAL_89>",
|
| 97 |
+
"<SPECIAL_90>",
|
| 98 |
+
"<SPECIAL_91>",
|
| 99 |
+
"<SPECIAL_92>",
|
| 100 |
+
"<SPECIAL_93>",
|
| 101 |
+
"<SPECIAL_94>",
|
| 102 |
+
"<SPECIAL_95>",
|
| 103 |
+
"<SPECIAL_96>",
|
| 104 |
+
"<SPECIAL_97>",
|
| 105 |
+
"<SPECIAL_98>",
|
| 106 |
+
"<SPECIAL_99>",
|
| 107 |
+
"<SPECIAL_100>",
|
| 108 |
+
"<SPECIAL_101>",
|
| 109 |
+
"<SPECIAL_102>",
|
| 110 |
+
"<SPECIAL_103>",
|
| 111 |
+
"<SPECIAL_104>",
|
| 112 |
+
"<SPECIAL_105>",
|
| 113 |
+
"<SPECIAL_106>",
|
| 114 |
+
"<SPECIAL_107>",
|
| 115 |
+
"<SPECIAL_108>",
|
| 116 |
+
"<SPECIAL_109>",
|
| 117 |
+
"<SPECIAL_110>",
|
| 118 |
+
"<SPECIAL_111>",
|
| 119 |
+
"<SPECIAL_112>",
|
| 120 |
+
"<SPECIAL_113>",
|
| 121 |
+
"<SPECIAL_114>",
|
| 122 |
+
"<SPECIAL_115>",
|
| 123 |
+
"<SPECIAL_116>",
|
| 124 |
+
"<SPECIAL_117>",
|
| 125 |
+
"<SPECIAL_118>",
|
| 126 |
+
"<SPECIAL_119>",
|
| 127 |
+
"<SPECIAL_120>",
|
| 128 |
+
"<SPECIAL_121>",
|
| 129 |
+
"<SPECIAL_122>",
|
| 130 |
+
"<SPECIAL_123>",
|
| 131 |
+
"<SPECIAL_124>",
|
| 132 |
+
"<SPECIAL_125>",
|
| 133 |
+
"<SPECIAL_126>",
|
| 134 |
+
"<SPECIAL_127>",
|
| 135 |
+
"<SPECIAL_128>",
|
| 136 |
+
"<SPECIAL_129>",
|
| 137 |
+
"<SPECIAL_130>",
|
| 138 |
+
"<SPECIAL_131>",
|
| 139 |
+
"<SPECIAL_132>",
|
| 140 |
+
"<SPECIAL_133>",
|
| 141 |
+
"<SPECIAL_134>",
|
| 142 |
+
"<SPECIAL_135>",
|
| 143 |
+
"<SPECIAL_136>",
|
| 144 |
+
"<SPECIAL_137>",
|
| 145 |
+
"<SPECIAL_138>",
|
| 146 |
+
"<SPECIAL_139>",
|
| 147 |
+
"<SPECIAL_140>",
|
| 148 |
+
"<SPECIAL_141>",
|
| 149 |
+
"<SPECIAL_142>",
|
| 150 |
+
"<SPECIAL_143>",
|
| 151 |
+
"<SPECIAL_144>",
|
| 152 |
+
"<SPECIAL_145>",
|
| 153 |
+
"<SPECIAL_146>",
|
| 154 |
+
"<SPECIAL_147>",
|
| 155 |
+
"<SPECIAL_148>",
|
| 156 |
+
"<SPECIAL_149>",
|
| 157 |
+
"<SPECIAL_150>",
|
| 158 |
+
"<SPECIAL_151>",
|
| 159 |
+
"<SPECIAL_152>",
|
| 160 |
+
"<SPECIAL_153>",
|
| 161 |
+
"<SPECIAL_154>",
|
| 162 |
+
"<SPECIAL_155>",
|
| 163 |
+
"<SPECIAL_156>",
|
| 164 |
+
"<SPECIAL_157>",
|
| 165 |
+
"<SPECIAL_158>",
|
| 166 |
+
"<SPECIAL_159>",
|
| 167 |
+
"<SPECIAL_160>",
|
| 168 |
+
"<SPECIAL_161>",
|
| 169 |
+
"<SPECIAL_162>",
|
| 170 |
+
"<SPECIAL_163>",
|
| 171 |
+
"<SPECIAL_164>",
|
| 172 |
+
"<SPECIAL_165>",
|
| 173 |
+
"<SPECIAL_166>",
|
| 174 |
+
"<SPECIAL_167>",
|
| 175 |
+
"<SPECIAL_168>",
|
| 176 |
+
"<SPECIAL_169>",
|
| 177 |
+
"<SPECIAL_170>",
|
| 178 |
+
"<SPECIAL_171>",
|
| 179 |
+
"<SPECIAL_172>",
|
| 180 |
+
"<SPECIAL_173>",
|
| 181 |
+
"<SPECIAL_174>",
|
| 182 |
+
"<SPECIAL_175>",
|
| 183 |
+
"<SPECIAL_176>",
|
| 184 |
+
"<SPECIAL_177>",
|
| 185 |
+
"<SPECIAL_178>",
|
| 186 |
+
"<SPECIAL_179>",
|
| 187 |
+
"<SPECIAL_180>",
|
| 188 |
+
"<SPECIAL_181>",
|
| 189 |
+
"<SPECIAL_182>",
|
| 190 |
+
"<SPECIAL_183>",
|
| 191 |
+
"<SPECIAL_184>",
|
| 192 |
+
"<SPECIAL_185>",
|
| 193 |
+
"<SPECIAL_186>",
|
| 194 |
+
"<SPECIAL_187>",
|
| 195 |
+
"<SPECIAL_188>",
|
| 196 |
+
"<SPECIAL_189>",
|
| 197 |
+
"<SPECIAL_190>",
|
| 198 |
+
"<SPECIAL_191>",
|
| 199 |
+
"<SPECIAL_192>",
|
| 200 |
+
"<SPECIAL_193>",
|
| 201 |
+
"<SPECIAL_194>",
|
| 202 |
+
"<SPECIAL_195>",
|
| 203 |
+
"<SPECIAL_196>",
|
| 204 |
+
"<SPECIAL_197>",
|
| 205 |
+
"<SPECIAL_198>",
|
| 206 |
+
"<SPECIAL_199>",
|
| 207 |
+
"<SPECIAL_200>",
|
| 208 |
+
"<SPECIAL_201>",
|
| 209 |
+
"<SPECIAL_202>",
|
| 210 |
+
"<SPECIAL_203>",
|
| 211 |
+
"<SPECIAL_204>",
|
| 212 |
+
"<SPECIAL_205>",
|
| 213 |
+
"<SPECIAL_206>",
|
| 214 |
+
"<SPECIAL_207>",
|
| 215 |
+
"<SPECIAL_208>",
|
| 216 |
+
"<SPECIAL_209>",
|
| 217 |
+
"<SPECIAL_210>",
|
| 218 |
+
"<SPECIAL_211>",
|
| 219 |
+
"<SPECIAL_212>",
|
| 220 |
+
"<SPECIAL_213>",
|
| 221 |
+
"<SPECIAL_214>",
|
| 222 |
+
"<SPECIAL_215>",
|
| 223 |
+
"<SPECIAL_216>",
|
| 224 |
+
"<SPECIAL_217>",
|
| 225 |
+
"<SPECIAL_218>",
|
| 226 |
+
"<SPECIAL_219>",
|
| 227 |
+
"<SPECIAL_220>",
|
| 228 |
+
"<SPECIAL_221>",
|
| 229 |
+
"<SPECIAL_222>",
|
| 230 |
+
"<SPECIAL_223>",
|
| 231 |
+
"<SPECIAL_224>",
|
| 232 |
+
"<SPECIAL_225>",
|
| 233 |
+
"<SPECIAL_226>",
|
| 234 |
+
"<SPECIAL_227>",
|
| 235 |
+
"<SPECIAL_228>",
|
| 236 |
+
"<SPECIAL_229>",
|
| 237 |
+
"<SPECIAL_230>",
|
| 238 |
+
"<SPECIAL_231>",
|
| 239 |
+
"<SPECIAL_232>",
|
| 240 |
+
"<SPECIAL_233>",
|
| 241 |
+
"<SPECIAL_234>",
|
| 242 |
+
"<SPECIAL_235>",
|
| 243 |
+
"<SPECIAL_236>",
|
| 244 |
+
"<SPECIAL_237>",
|
| 245 |
+
"<SPECIAL_238>",
|
| 246 |
+
"<SPECIAL_239>",
|
| 247 |
+
"<SPECIAL_240>",
|
| 248 |
+
"<SPECIAL_241>",
|
| 249 |
+
"<SPECIAL_242>",
|
| 250 |
+
"<SPECIAL_243>",
|
| 251 |
+
"<SPECIAL_244>",
|
| 252 |
+
"<SPECIAL_245>",
|
| 253 |
+
"<SPECIAL_246>",
|
| 254 |
+
"<SPECIAL_247>",
|
| 255 |
+
"<SPECIAL_248>",
|
| 256 |
+
"<SPECIAL_249>",
|
| 257 |
+
"<SPECIAL_250>",
|
| 258 |
+
"<SPECIAL_251>",
|
| 259 |
+
"<SPECIAL_252>",
|
| 260 |
+
"<SPECIAL_253>",
|
| 261 |
+
"<SPECIAL_254>",
|
| 262 |
+
"<SPECIAL_255>",
|
| 263 |
+
"<SPECIAL_256>",
|
| 264 |
+
"<SPECIAL_257>",
|
| 265 |
+
"<SPECIAL_258>",
|
| 266 |
+
"<SPECIAL_259>",
|
| 267 |
+
"<SPECIAL_260>",
|
| 268 |
+
"<SPECIAL_261>",
|
| 269 |
+
"<SPECIAL_262>",
|
| 270 |
+
"<SPECIAL_263>",
|
| 271 |
+
"<SPECIAL_264>",
|
| 272 |
+
"<SPECIAL_265>",
|
| 273 |
+
"<SPECIAL_266>",
|
| 274 |
+
"<SPECIAL_267>",
|
| 275 |
+
"<SPECIAL_268>",
|
| 276 |
+
"<SPECIAL_269>",
|
| 277 |
+
"<SPECIAL_270>",
|
| 278 |
+
"<SPECIAL_271>",
|
| 279 |
+
"<SPECIAL_272>",
|
| 280 |
+
"<SPECIAL_273>",
|
| 281 |
+
"<SPECIAL_274>",
|
| 282 |
+
"<SPECIAL_275>",
|
| 283 |
+
"<SPECIAL_276>",
|
| 284 |
+
"<SPECIAL_277>",
|
| 285 |
+
"<SPECIAL_278>",
|
| 286 |
+
"<SPECIAL_279>",
|
| 287 |
+
"<SPECIAL_280>",
|
| 288 |
+
"<SPECIAL_281>",
|
| 289 |
+
"<SPECIAL_282>",
|
| 290 |
+
"<SPECIAL_283>",
|
| 291 |
+
"<SPECIAL_284>",
|
| 292 |
+
"<SPECIAL_285>",
|
| 293 |
+
"<SPECIAL_286>",
|
| 294 |
+
"<SPECIAL_287>",
|
| 295 |
+
"<SPECIAL_288>",
|
| 296 |
+
"<SPECIAL_289>",
|
| 297 |
+
"<SPECIAL_290>",
|
| 298 |
+
"<SPECIAL_291>",
|
| 299 |
+
"<SPECIAL_292>",
|
| 300 |
+
"<SPECIAL_293>",
|
| 301 |
+
"<SPECIAL_294>",
|
| 302 |
+
"<SPECIAL_295>",
|
| 303 |
+
"<SPECIAL_296>",
|
| 304 |
+
"<SPECIAL_297>",
|
| 305 |
+
"<SPECIAL_298>",
|
| 306 |
+
"<SPECIAL_299>",
|
| 307 |
+
"<SPECIAL_300>",
|
| 308 |
+
"<SPECIAL_301>",
|
| 309 |
+
"<SPECIAL_302>",
|
| 310 |
+
"<SPECIAL_303>",
|
| 311 |
+
"<SPECIAL_304>",
|
| 312 |
+
"<SPECIAL_305>",
|
| 313 |
+
"<SPECIAL_306>",
|
| 314 |
+
"<SPECIAL_307>",
|
| 315 |
+
"<SPECIAL_308>",
|
| 316 |
+
"<SPECIAL_309>",
|
| 317 |
+
"<SPECIAL_310>",
|
| 318 |
+
"<SPECIAL_311>",
|
| 319 |
+
"<SPECIAL_312>",
|
| 320 |
+
"<SPECIAL_313>",
|
| 321 |
+
"<SPECIAL_314>",
|
| 322 |
+
"<SPECIAL_315>",
|
| 323 |
+
"<SPECIAL_316>",
|
| 324 |
+
"<SPECIAL_317>",
|
| 325 |
+
"<SPECIAL_318>",
|
| 326 |
+
"<SPECIAL_319>",
|
| 327 |
+
"<SPECIAL_320>",
|
| 328 |
+
"<SPECIAL_321>",
|
| 329 |
+
"<SPECIAL_322>",
|
| 330 |
+
"<SPECIAL_323>",
|
| 331 |
+
"<SPECIAL_324>",
|
| 332 |
+
"<SPECIAL_325>",
|
| 333 |
+
"<SPECIAL_326>",
|
| 334 |
+
"<SPECIAL_327>",
|
| 335 |
+
"<SPECIAL_328>",
|
| 336 |
+
"<SPECIAL_329>",
|
| 337 |
+
"<SPECIAL_330>",
|
| 338 |
+
"<SPECIAL_331>",
|
| 339 |
+
"<SPECIAL_332>",
|
| 340 |
+
"<SPECIAL_333>",
|
| 341 |
+
"<SPECIAL_334>",
|
| 342 |
+
"<SPECIAL_335>",
|
| 343 |
+
"<SPECIAL_336>",
|
| 344 |
+
"<SPECIAL_337>",
|
| 345 |
+
"<SPECIAL_338>",
|
| 346 |
+
"<SPECIAL_339>",
|
| 347 |
+
"<SPECIAL_340>",
|
| 348 |
+
"<SPECIAL_341>",
|
| 349 |
+
"<SPECIAL_342>",
|
| 350 |
+
"<SPECIAL_343>",
|
| 351 |
+
"<SPECIAL_344>",
|
| 352 |
+
"<SPECIAL_345>",
|
| 353 |
+
"<SPECIAL_346>",
|
| 354 |
+
"<SPECIAL_347>",
|
| 355 |
+
"<SPECIAL_348>",
|
| 356 |
+
"<SPECIAL_349>",
|
| 357 |
+
"<SPECIAL_350>",
|
| 358 |
+
"<SPECIAL_351>",
|
| 359 |
+
"<SPECIAL_352>",
|
| 360 |
+
"<SPECIAL_353>",
|
| 361 |
+
"<SPECIAL_354>",
|
| 362 |
+
"<SPECIAL_355>",
|
| 363 |
+
"<SPECIAL_356>",
|
| 364 |
+
"<SPECIAL_357>",
|
| 365 |
+
"<SPECIAL_358>",
|
| 366 |
+
"<SPECIAL_359>",
|
| 367 |
+
"<SPECIAL_360>",
|
| 368 |
+
"<SPECIAL_361>",
|
| 369 |
+
"<SPECIAL_362>",
|
| 370 |
+
"<SPECIAL_363>",
|
| 371 |
+
"<SPECIAL_364>",
|
| 372 |
+
"<SPECIAL_365>",
|
| 373 |
+
"<SPECIAL_366>",
|
| 374 |
+
"<SPECIAL_367>",
|
| 375 |
+
"<SPECIAL_368>",
|
| 376 |
+
"<SPECIAL_369>",
|
| 377 |
+
"<SPECIAL_370>",
|
| 378 |
+
"<SPECIAL_371>",
|
| 379 |
+
"<SPECIAL_372>",
|
| 380 |
+
"<SPECIAL_373>",
|
| 381 |
+
"<SPECIAL_374>",
|
| 382 |
+
"<SPECIAL_375>",
|
| 383 |
+
"<SPECIAL_376>",
|
| 384 |
+
"<SPECIAL_377>",
|
| 385 |
+
"<SPECIAL_378>",
|
| 386 |
+
"<SPECIAL_379>",
|
| 387 |
+
"<SPECIAL_380>",
|
| 388 |
+
"<SPECIAL_381>",
|
| 389 |
+
"<SPECIAL_382>",
|
| 390 |
+
"<SPECIAL_383>",
|
| 391 |
+
"<SPECIAL_384>",
|
| 392 |
+
"<SPECIAL_385>",
|
| 393 |
+
"<SPECIAL_386>",
|
| 394 |
+
"<SPECIAL_387>",
|
| 395 |
+
"<SPECIAL_388>",
|
| 396 |
+
"<SPECIAL_389>",
|
| 397 |
+
"<SPECIAL_390>",
|
| 398 |
+
"<SPECIAL_391>",
|
| 399 |
+
"<SPECIAL_392>",
|
| 400 |
+
"<SPECIAL_393>",
|
| 401 |
+
"<SPECIAL_394>",
|
| 402 |
+
"<SPECIAL_395>",
|
| 403 |
+
"<SPECIAL_396>",
|
| 404 |
+
"<SPECIAL_397>",
|
| 405 |
+
"<SPECIAL_398>",
|
| 406 |
+
"<SPECIAL_399>",
|
| 407 |
+
"<SPECIAL_400>",
|
| 408 |
+
"<SPECIAL_401>",
|
| 409 |
+
"<SPECIAL_402>",
|
| 410 |
+
"<SPECIAL_403>",
|
| 411 |
+
"<SPECIAL_404>",
|
| 412 |
+
"<SPECIAL_405>",
|
| 413 |
+
"<SPECIAL_406>",
|
| 414 |
+
"<SPECIAL_407>",
|
| 415 |
+
"<SPECIAL_408>",
|
| 416 |
+
"<SPECIAL_409>",
|
| 417 |
+
"<SPECIAL_410>",
|
| 418 |
+
"<SPECIAL_411>",
|
| 419 |
+
"<SPECIAL_412>",
|
| 420 |
+
"<SPECIAL_413>",
|
| 421 |
+
"<SPECIAL_414>",
|
| 422 |
+
"<SPECIAL_415>",
|
| 423 |
+
"<SPECIAL_416>",
|
| 424 |
+
"<SPECIAL_417>",
|
| 425 |
+
"<SPECIAL_418>",
|
| 426 |
+
"<SPECIAL_419>",
|
| 427 |
+
"<SPECIAL_420>",
|
| 428 |
+
"<SPECIAL_421>",
|
| 429 |
+
"<SPECIAL_422>",
|
| 430 |
+
"<SPECIAL_423>",
|
| 431 |
+
"<SPECIAL_424>",
|
| 432 |
+
"<SPECIAL_425>",
|
| 433 |
+
"<SPECIAL_426>",
|
| 434 |
+
"<SPECIAL_427>",
|
| 435 |
+
"<SPECIAL_428>",
|
| 436 |
+
"<SPECIAL_429>",
|
| 437 |
+
"<SPECIAL_430>",
|
| 438 |
+
"<SPECIAL_431>",
|
| 439 |
+
"<SPECIAL_432>",
|
| 440 |
+
"<SPECIAL_433>",
|
| 441 |
+
"<SPECIAL_434>",
|
| 442 |
+
"<SPECIAL_435>",
|
| 443 |
+
"<SPECIAL_436>",
|
| 444 |
+
"<SPECIAL_437>",
|
| 445 |
+
"<SPECIAL_438>",
|
| 446 |
+
"<SPECIAL_439>",
|
| 447 |
+
"<SPECIAL_440>",
|
| 448 |
+
"<SPECIAL_441>",
|
| 449 |
+
"<SPECIAL_442>",
|
| 450 |
+
"<SPECIAL_443>",
|
| 451 |
+
"<SPECIAL_444>",
|
| 452 |
+
"<SPECIAL_445>",
|
| 453 |
+
"<SPECIAL_446>",
|
| 454 |
+
"<SPECIAL_447>",
|
| 455 |
+
"<SPECIAL_448>",
|
| 456 |
+
"<SPECIAL_449>",
|
| 457 |
+
"<SPECIAL_450>",
|
| 458 |
+
"<SPECIAL_451>",
|
| 459 |
+
"<SPECIAL_452>",
|
| 460 |
+
"<SPECIAL_453>",
|
| 461 |
+
"<SPECIAL_454>",
|
| 462 |
+
"<SPECIAL_455>",
|
| 463 |
+
"<SPECIAL_456>",
|
| 464 |
+
"<SPECIAL_457>",
|
| 465 |
+
"<SPECIAL_458>",
|
| 466 |
+
"<SPECIAL_459>",
|
| 467 |
+
"<SPECIAL_460>",
|
| 468 |
+
"<SPECIAL_461>",
|
| 469 |
+
"<SPECIAL_462>",
|
| 470 |
+
"<SPECIAL_463>",
|
| 471 |
+
"<SPECIAL_464>",
|
| 472 |
+
"<SPECIAL_465>",
|
| 473 |
+
"<SPECIAL_466>",
|
| 474 |
+
"<SPECIAL_467>",
|
| 475 |
+
"<SPECIAL_468>",
|
| 476 |
+
"<SPECIAL_469>",
|
| 477 |
+
"<SPECIAL_470>",
|
| 478 |
+
"<SPECIAL_471>",
|
| 479 |
+
"<SPECIAL_472>",
|
| 480 |
+
"<SPECIAL_473>",
|
| 481 |
+
"<SPECIAL_474>",
|
| 482 |
+
"<SPECIAL_475>",
|
| 483 |
+
"<SPECIAL_476>",
|
| 484 |
+
"<SPECIAL_477>",
|
| 485 |
+
"<SPECIAL_478>",
|
| 486 |
+
"<SPECIAL_479>",
|
| 487 |
+
"<SPECIAL_480>",
|
| 488 |
+
"<SPECIAL_481>",
|
| 489 |
+
"<SPECIAL_482>",
|
| 490 |
+
"<SPECIAL_483>",
|
| 491 |
+
"<SPECIAL_484>",
|
| 492 |
+
"<SPECIAL_485>",
|
| 493 |
+
"<SPECIAL_486>",
|
| 494 |
+
"<SPECIAL_487>",
|
| 495 |
+
"<SPECIAL_488>",
|
| 496 |
+
"<SPECIAL_489>",
|
| 497 |
+
"<SPECIAL_490>",
|
| 498 |
+
"<SPECIAL_491>",
|
| 499 |
+
"<SPECIAL_492>",
|
| 500 |
+
"<SPECIAL_493>",
|
| 501 |
+
"<SPECIAL_494>",
|
| 502 |
+
"<SPECIAL_495>",
|
| 503 |
+
"<SPECIAL_496>",
|
| 504 |
+
"<SPECIAL_497>",
|
| 505 |
+
"<SPECIAL_498>",
|
| 506 |
+
"<SPECIAL_499>",
|
| 507 |
+
"<SPECIAL_500>",
|
| 508 |
+
"<SPECIAL_501>",
|
| 509 |
+
"<SPECIAL_502>",
|
| 510 |
+
"<SPECIAL_503>",
|
| 511 |
+
"<SPECIAL_504>",
|
| 512 |
+
"<SPECIAL_505>",
|
| 513 |
+
"<SPECIAL_506>",
|
| 514 |
+
"<SPECIAL_507>",
|
| 515 |
+
"<SPECIAL_508>",
|
| 516 |
+
"<SPECIAL_509>",
|
| 517 |
+
"<SPECIAL_510>",
|
| 518 |
+
"<SPECIAL_511>",
|
| 519 |
+
"<SPECIAL_512>",
|
| 520 |
+
"<SPECIAL_513>",
|
| 521 |
+
"<SPECIAL_514>",
|
| 522 |
+
"<SPECIAL_515>",
|
| 523 |
+
"<SPECIAL_516>",
|
| 524 |
+
"<SPECIAL_517>",
|
| 525 |
+
"<SPECIAL_518>",
|
| 526 |
+
"<SPECIAL_519>",
|
| 527 |
+
"<SPECIAL_520>",
|
| 528 |
+
"<SPECIAL_521>",
|
| 529 |
+
"<SPECIAL_522>",
|
| 530 |
+
"<SPECIAL_523>",
|
| 531 |
+
"<SPECIAL_524>",
|
| 532 |
+
"<SPECIAL_525>",
|
| 533 |
+
"<SPECIAL_526>",
|
| 534 |
+
"<SPECIAL_527>",
|
| 535 |
+
"<SPECIAL_528>",
|
| 536 |
+
"<SPECIAL_529>",
|
| 537 |
+
"<SPECIAL_530>",
|
| 538 |
+
"<SPECIAL_531>",
|
| 539 |
+
"<SPECIAL_532>",
|
| 540 |
+
"<SPECIAL_533>",
|
| 541 |
+
"<SPECIAL_534>",
|
| 542 |
+
"<SPECIAL_535>",
|
| 543 |
+
"<SPECIAL_536>",
|
| 544 |
+
"<SPECIAL_537>",
|
| 545 |
+
"<SPECIAL_538>",
|
| 546 |
+
"<SPECIAL_539>",
|
| 547 |
+
"<SPECIAL_540>",
|
| 548 |
+
"<SPECIAL_541>",
|
| 549 |
+
"<SPECIAL_542>",
|
| 550 |
+
"<SPECIAL_543>",
|
| 551 |
+
"<SPECIAL_544>",
|
| 552 |
+
"<SPECIAL_545>",
|
| 553 |
+
"<SPECIAL_546>",
|
| 554 |
+
"<SPECIAL_547>",
|
| 555 |
+
"<SPECIAL_548>",
|
| 556 |
+
"<SPECIAL_549>",
|
| 557 |
+
"<SPECIAL_550>",
|
| 558 |
+
"<SPECIAL_551>",
|
| 559 |
+
"<SPECIAL_552>",
|
| 560 |
+
"<SPECIAL_553>",
|
| 561 |
+
"<SPECIAL_554>",
|
| 562 |
+
"<SPECIAL_555>",
|
| 563 |
+
"<SPECIAL_556>",
|
| 564 |
+
"<SPECIAL_557>",
|
| 565 |
+
"<SPECIAL_558>",
|
| 566 |
+
"<SPECIAL_559>",
|
| 567 |
+
"<SPECIAL_560>",
|
| 568 |
+
"<SPECIAL_561>",
|
| 569 |
+
"<SPECIAL_562>",
|
| 570 |
+
"<SPECIAL_563>",
|
| 571 |
+
"<SPECIAL_564>",
|
| 572 |
+
"<SPECIAL_565>",
|
| 573 |
+
"<SPECIAL_566>",
|
| 574 |
+
"<SPECIAL_567>",
|
| 575 |
+
"<SPECIAL_568>",
|
| 576 |
+
"<SPECIAL_569>",
|
| 577 |
+
"<SPECIAL_570>",
|
| 578 |
+
"<SPECIAL_571>",
|
| 579 |
+
"<SPECIAL_572>",
|
| 580 |
+
"<SPECIAL_573>",
|
| 581 |
+
"<SPECIAL_574>",
|
| 582 |
+
"<SPECIAL_575>",
|
| 583 |
+
"<SPECIAL_576>",
|
| 584 |
+
"<SPECIAL_577>",
|
| 585 |
+
"<SPECIAL_578>",
|
| 586 |
+
"<SPECIAL_579>",
|
| 587 |
+
"<SPECIAL_580>",
|
| 588 |
+
"<SPECIAL_581>",
|
| 589 |
+
"<SPECIAL_582>",
|
| 590 |
+
"<SPECIAL_583>",
|
| 591 |
+
"<SPECIAL_584>",
|
| 592 |
+
"<SPECIAL_585>",
|
| 593 |
+
"<SPECIAL_586>",
|
| 594 |
+
"<SPECIAL_587>",
|
| 595 |
+
"<SPECIAL_588>",
|
| 596 |
+
"<SPECIAL_589>",
|
| 597 |
+
"<SPECIAL_590>",
|
| 598 |
+
"<SPECIAL_591>",
|
| 599 |
+
"<SPECIAL_592>",
|
| 600 |
+
"<SPECIAL_593>",
|
| 601 |
+
"<SPECIAL_594>",
|
| 602 |
+
"<SPECIAL_595>",
|
| 603 |
+
"<SPECIAL_596>",
|
| 604 |
+
"<SPECIAL_597>",
|
| 605 |
+
"<SPECIAL_598>",
|
| 606 |
+
"<SPECIAL_599>",
|
| 607 |
+
"<SPECIAL_600>",
|
| 608 |
+
"<SPECIAL_601>",
|
| 609 |
+
"<SPECIAL_602>",
|
| 610 |
+
"<SPECIAL_603>",
|
| 611 |
+
"<SPECIAL_604>",
|
| 612 |
+
"<SPECIAL_605>",
|
| 613 |
+
"<SPECIAL_606>",
|
| 614 |
+
"<SPECIAL_607>",
|
| 615 |
+
"<SPECIAL_608>",
|
| 616 |
+
"<SPECIAL_609>",
|
| 617 |
+
"<SPECIAL_610>",
|
| 618 |
+
"<SPECIAL_611>",
|
| 619 |
+
"<SPECIAL_612>",
|
| 620 |
+
"<SPECIAL_613>",
|
| 621 |
+
"<SPECIAL_614>",
|
| 622 |
+
"<SPECIAL_615>",
|
| 623 |
+
"<SPECIAL_616>",
|
| 624 |
+
"<SPECIAL_617>",
|
| 625 |
+
"<SPECIAL_618>",
|
| 626 |
+
"<SPECIAL_619>",
|
| 627 |
+
"<SPECIAL_620>",
|
| 628 |
+
"<SPECIAL_621>",
|
| 629 |
+
"<SPECIAL_622>",
|
| 630 |
+
"<SPECIAL_623>",
|
| 631 |
+
"<SPECIAL_624>",
|
| 632 |
+
"<SPECIAL_625>",
|
| 633 |
+
"<SPECIAL_626>",
|
| 634 |
+
"<SPECIAL_627>",
|
| 635 |
+
"<SPECIAL_628>",
|
| 636 |
+
"<SPECIAL_629>",
|
| 637 |
+
"<SPECIAL_630>",
|
| 638 |
+
"<SPECIAL_631>",
|
| 639 |
+
"<SPECIAL_632>",
|
| 640 |
+
"<SPECIAL_633>",
|
| 641 |
+
"<SPECIAL_634>",
|
| 642 |
+
"<SPECIAL_635>",
|
| 643 |
+
"<SPECIAL_636>",
|
| 644 |
+
"<SPECIAL_637>",
|
| 645 |
+
"<SPECIAL_638>",
|
| 646 |
+
"<SPECIAL_639>",
|
| 647 |
+
"<SPECIAL_640>",
|
| 648 |
+
"<SPECIAL_641>",
|
| 649 |
+
"<SPECIAL_642>",
|
| 650 |
+
"<SPECIAL_643>",
|
| 651 |
+
"<SPECIAL_644>",
|
| 652 |
+
"<SPECIAL_645>",
|
| 653 |
+
"<SPECIAL_646>",
|
| 654 |
+
"<SPECIAL_647>",
|
| 655 |
+
"<SPECIAL_648>",
|
| 656 |
+
"<SPECIAL_649>",
|
| 657 |
+
"<SPECIAL_650>",
|
| 658 |
+
"<SPECIAL_651>",
|
| 659 |
+
"<SPECIAL_652>",
|
| 660 |
+
"<SPECIAL_653>",
|
| 661 |
+
"<SPECIAL_654>",
|
| 662 |
+
"<SPECIAL_655>",
|
| 663 |
+
"<SPECIAL_656>",
|
| 664 |
+
"<SPECIAL_657>",
|
| 665 |
+
"<SPECIAL_658>",
|
| 666 |
+
"<SPECIAL_659>",
|
| 667 |
+
"<SPECIAL_660>",
|
| 668 |
+
"<SPECIAL_661>",
|
| 669 |
+
"<SPECIAL_662>",
|
| 670 |
+
"<SPECIAL_663>",
|
| 671 |
+
"<SPECIAL_664>",
|
| 672 |
+
"<SPECIAL_665>",
|
| 673 |
+
"<SPECIAL_666>",
|
| 674 |
+
"<SPECIAL_667>",
|
| 675 |
+
"<SPECIAL_668>",
|
| 676 |
+
"<SPECIAL_669>",
|
| 677 |
+
"<SPECIAL_670>",
|
| 678 |
+
"<SPECIAL_671>",
|
| 679 |
+
"<SPECIAL_672>",
|
| 680 |
+
"<SPECIAL_673>",
|
| 681 |
+
"<SPECIAL_674>",
|
| 682 |
+
"<SPECIAL_675>",
|
| 683 |
+
"<SPECIAL_676>",
|
| 684 |
+
"<SPECIAL_677>",
|
| 685 |
+
"<SPECIAL_678>",
|
| 686 |
+
"<SPECIAL_679>",
|
| 687 |
+
"<SPECIAL_680>",
|
| 688 |
+
"<SPECIAL_681>",
|
| 689 |
+
"<SPECIAL_682>",
|
| 690 |
+
"<SPECIAL_683>",
|
| 691 |
+
"<SPECIAL_684>",
|
| 692 |
+
"<SPECIAL_685>",
|
| 693 |
+
"<SPECIAL_686>",
|
| 694 |
+
"<SPECIAL_687>",
|
| 695 |
+
"<SPECIAL_688>",
|
| 696 |
+
"<SPECIAL_689>",
|
| 697 |
+
"<SPECIAL_690>",
|
| 698 |
+
"<SPECIAL_691>",
|
| 699 |
+
"<SPECIAL_692>",
|
| 700 |
+
"<SPECIAL_693>",
|
| 701 |
+
"<SPECIAL_694>",
|
| 702 |
+
"<SPECIAL_695>",
|
| 703 |
+
"<SPECIAL_696>",
|
| 704 |
+
"<SPECIAL_697>",
|
| 705 |
+
"<SPECIAL_698>",
|
| 706 |
+
"<SPECIAL_699>",
|
| 707 |
+
"<SPECIAL_700>",
|
| 708 |
+
"<SPECIAL_701>",
|
| 709 |
+
"<SPECIAL_702>",
|
| 710 |
+
"<SPECIAL_703>",
|
| 711 |
+
"<SPECIAL_704>",
|
| 712 |
+
"<SPECIAL_705>",
|
| 713 |
+
"<SPECIAL_706>",
|
| 714 |
+
"<SPECIAL_707>",
|
| 715 |
+
"<SPECIAL_708>",
|
| 716 |
+
"<SPECIAL_709>",
|
| 717 |
+
"<SPECIAL_710>",
|
| 718 |
+
"<SPECIAL_711>",
|
| 719 |
+
"<SPECIAL_712>",
|
| 720 |
+
"<SPECIAL_713>",
|
| 721 |
+
"<SPECIAL_714>",
|
| 722 |
+
"<SPECIAL_715>",
|
| 723 |
+
"<SPECIAL_716>",
|
| 724 |
+
"<SPECIAL_717>",
|
| 725 |
+
"<SPECIAL_718>",
|
| 726 |
+
"<SPECIAL_719>",
|
| 727 |
+
"<SPECIAL_720>",
|
| 728 |
+
"<SPECIAL_721>",
|
| 729 |
+
"<SPECIAL_722>",
|
| 730 |
+
"<SPECIAL_723>",
|
| 731 |
+
"<SPECIAL_724>",
|
| 732 |
+
"<SPECIAL_725>",
|
| 733 |
+
"<SPECIAL_726>",
|
| 734 |
+
"<SPECIAL_727>",
|
| 735 |
+
"<SPECIAL_728>",
|
| 736 |
+
"<SPECIAL_729>",
|
| 737 |
+
"<SPECIAL_730>",
|
| 738 |
+
"<SPECIAL_731>",
|
| 739 |
+
"<SPECIAL_732>",
|
| 740 |
+
"<SPECIAL_733>",
|
| 741 |
+
"<SPECIAL_734>",
|
| 742 |
+
"<SPECIAL_735>",
|
| 743 |
+
"<SPECIAL_736>",
|
| 744 |
+
"<SPECIAL_737>",
|
| 745 |
+
"<SPECIAL_738>",
|
| 746 |
+
"<SPECIAL_739>",
|
| 747 |
+
"<SPECIAL_740>",
|
| 748 |
+
"<SPECIAL_741>",
|
| 749 |
+
"<SPECIAL_742>",
|
| 750 |
+
"<SPECIAL_743>",
|
| 751 |
+
"<SPECIAL_744>",
|
| 752 |
+
"<SPECIAL_745>",
|
| 753 |
+
"<SPECIAL_746>",
|
| 754 |
+
"<SPECIAL_747>",
|
| 755 |
+
"<SPECIAL_748>",
|
| 756 |
+
"<SPECIAL_749>",
|
| 757 |
+
"<SPECIAL_750>",
|
| 758 |
+
"<SPECIAL_751>",
|
| 759 |
+
"<SPECIAL_752>",
|
| 760 |
+
"<SPECIAL_753>",
|
| 761 |
+
"<SPECIAL_754>",
|
| 762 |
+
"<SPECIAL_755>",
|
| 763 |
+
"<SPECIAL_756>",
|
| 764 |
+
"<SPECIAL_757>",
|
| 765 |
+
"<SPECIAL_758>",
|
| 766 |
+
"<SPECIAL_759>",
|
| 767 |
+
"<SPECIAL_760>",
|
| 768 |
+
"<SPECIAL_761>",
|
| 769 |
+
"<SPECIAL_762>",
|
| 770 |
+
"<SPECIAL_763>",
|
| 771 |
+
"<SPECIAL_764>",
|
| 772 |
+
"<SPECIAL_765>",
|
| 773 |
+
"<SPECIAL_766>",
|
| 774 |
+
"<SPECIAL_767>",
|
| 775 |
+
"<SPECIAL_768>",
|
| 776 |
+
"<SPECIAL_769>",
|
| 777 |
+
"<SPECIAL_770>",
|
| 778 |
+
"<SPECIAL_771>",
|
| 779 |
+
"<SPECIAL_772>",
|
| 780 |
+
"<SPECIAL_773>",
|
| 781 |
+
"<SPECIAL_774>",
|
| 782 |
+
"<SPECIAL_775>",
|
| 783 |
+
"<SPECIAL_776>",
|
| 784 |
+
"<SPECIAL_777>",
|
| 785 |
+
"<SPECIAL_778>",
|
| 786 |
+
"<SPECIAL_779>",
|
| 787 |
+
"<SPECIAL_780>",
|
| 788 |
+
"<SPECIAL_781>",
|
| 789 |
+
"<SPECIAL_782>",
|
| 790 |
+
"<SPECIAL_783>",
|
| 791 |
+
"<SPECIAL_784>",
|
| 792 |
+
"<SPECIAL_785>",
|
| 793 |
+
"<SPECIAL_786>",
|
| 794 |
+
"<SPECIAL_787>",
|
| 795 |
+
"<SPECIAL_788>",
|
| 796 |
+
"<SPECIAL_789>",
|
| 797 |
+
"<SPECIAL_790>",
|
| 798 |
+
"<SPECIAL_791>",
|
| 799 |
+
"<SPECIAL_792>",
|
| 800 |
+
"<SPECIAL_793>",
|
| 801 |
+
"<SPECIAL_794>",
|
| 802 |
+
"<SPECIAL_795>",
|
| 803 |
+
"<SPECIAL_796>",
|
| 804 |
+
"<SPECIAL_797>",
|
| 805 |
+
"<SPECIAL_798>",
|
| 806 |
+
"<SPECIAL_799>",
|
| 807 |
+
"<SPECIAL_800>",
|
| 808 |
+
"<SPECIAL_801>",
|
| 809 |
+
"<SPECIAL_802>",
|
| 810 |
+
"<SPECIAL_803>",
|
| 811 |
+
"<SPECIAL_804>",
|
| 812 |
+
"<SPECIAL_805>",
|
| 813 |
+
"<SPECIAL_806>",
|
| 814 |
+
"<SPECIAL_807>",
|
| 815 |
+
"<SPECIAL_808>",
|
| 816 |
+
"<SPECIAL_809>",
|
| 817 |
+
"<SPECIAL_810>",
|
| 818 |
+
"<SPECIAL_811>",
|
| 819 |
+
"<SPECIAL_812>",
|
| 820 |
+
"<SPECIAL_813>",
|
| 821 |
+
"<SPECIAL_814>",
|
| 822 |
+
"<SPECIAL_815>",
|
| 823 |
+
"<SPECIAL_816>",
|
| 824 |
+
"<SPECIAL_817>",
|
| 825 |
+
"<SPECIAL_818>",
|
| 826 |
+
"<SPECIAL_819>",
|
| 827 |
+
"<SPECIAL_820>",
|
| 828 |
+
"<SPECIAL_821>",
|
| 829 |
+
"<SPECIAL_822>",
|
| 830 |
+
"<SPECIAL_823>",
|
| 831 |
+
"<SPECIAL_824>",
|
| 832 |
+
"<SPECIAL_825>",
|
| 833 |
+
"<SPECIAL_826>",
|
| 834 |
+
"<SPECIAL_827>",
|
| 835 |
+
"<SPECIAL_828>",
|
| 836 |
+
"<SPECIAL_829>",
|
| 837 |
+
"<SPECIAL_830>",
|
| 838 |
+
"<SPECIAL_831>",
|
| 839 |
+
"<SPECIAL_832>",
|
| 840 |
+
"<SPECIAL_833>",
|
| 841 |
+
"<SPECIAL_834>",
|
| 842 |
+
"<SPECIAL_835>",
|
| 843 |
+
"<SPECIAL_836>",
|
| 844 |
+
"<SPECIAL_837>",
|
| 845 |
+
"<SPECIAL_838>",
|
| 846 |
+
"<SPECIAL_839>",
|
| 847 |
+
"<SPECIAL_840>",
|
| 848 |
+
"<SPECIAL_841>",
|
| 849 |
+
"<SPECIAL_842>",
|
| 850 |
+
"<SPECIAL_843>",
|
| 851 |
+
"<SPECIAL_844>",
|
| 852 |
+
"<SPECIAL_845>",
|
| 853 |
+
"<SPECIAL_846>",
|
| 854 |
+
"<SPECIAL_847>",
|
| 855 |
+
"<SPECIAL_848>",
|
| 856 |
+
"<SPECIAL_849>",
|
| 857 |
+
"<SPECIAL_850>",
|
| 858 |
+
"<SPECIAL_851>",
|
| 859 |
+
"<SPECIAL_852>",
|
| 860 |
+
"<SPECIAL_853>",
|
| 861 |
+
"<SPECIAL_854>",
|
| 862 |
+
"<SPECIAL_855>",
|
| 863 |
+
"<SPECIAL_856>",
|
| 864 |
+
"<SPECIAL_857>",
|
| 865 |
+
"<SPECIAL_858>",
|
| 866 |
+
"<SPECIAL_859>",
|
| 867 |
+
"<SPECIAL_860>",
|
| 868 |
+
"<SPECIAL_861>",
|
| 869 |
+
"<SPECIAL_862>",
|
| 870 |
+
"<SPECIAL_863>",
|
| 871 |
+
"<SPECIAL_864>",
|
| 872 |
+
"<SPECIAL_865>",
|
| 873 |
+
"<SPECIAL_866>",
|
| 874 |
+
"<SPECIAL_867>",
|
| 875 |
+
"<SPECIAL_868>",
|
| 876 |
+
"<SPECIAL_869>",
|
| 877 |
+
"<SPECIAL_870>",
|
| 878 |
+
"<SPECIAL_871>",
|
| 879 |
+
"<SPECIAL_872>",
|
| 880 |
+
"<SPECIAL_873>",
|
| 881 |
+
"<SPECIAL_874>",
|
| 882 |
+
"<SPECIAL_875>",
|
| 883 |
+
"<SPECIAL_876>",
|
| 884 |
+
"<SPECIAL_877>",
|
| 885 |
+
"<SPECIAL_878>",
|
| 886 |
+
"<SPECIAL_879>",
|
| 887 |
+
"<SPECIAL_880>",
|
| 888 |
+
"<SPECIAL_881>",
|
| 889 |
+
"<SPECIAL_882>",
|
| 890 |
+
"<SPECIAL_883>",
|
| 891 |
+
"<SPECIAL_884>",
|
| 892 |
+
"<SPECIAL_885>",
|
| 893 |
+
"<SPECIAL_886>",
|
| 894 |
+
"<SPECIAL_887>",
|
| 895 |
+
"<SPECIAL_888>",
|
| 896 |
+
"<SPECIAL_889>",
|
| 897 |
+
"<SPECIAL_890>",
|
| 898 |
+
"<SPECIAL_891>",
|
| 899 |
+
"<SPECIAL_892>",
|
| 900 |
+
"<SPECIAL_893>",
|
| 901 |
+
"<SPECIAL_894>",
|
| 902 |
+
"<SPECIAL_895>",
|
| 903 |
+
"<SPECIAL_896>",
|
| 904 |
+
"<SPECIAL_897>",
|
| 905 |
+
"<SPECIAL_898>",
|
| 906 |
+
"<SPECIAL_899>",
|
| 907 |
+
"<SPECIAL_900>",
|
| 908 |
+
"<SPECIAL_901>",
|
| 909 |
+
"<SPECIAL_902>",
|
| 910 |
+
"<SPECIAL_903>",
|
| 911 |
+
"<SPECIAL_904>",
|
| 912 |
+
"<SPECIAL_905>",
|
| 913 |
+
"<SPECIAL_906>",
|
| 914 |
+
"<SPECIAL_907>",
|
| 915 |
+
"<SPECIAL_908>",
|
| 916 |
+
"<SPECIAL_909>",
|
| 917 |
+
"<SPECIAL_910>",
|
| 918 |
+
"<SPECIAL_911>",
|
| 919 |
+
"<SPECIAL_912>",
|
| 920 |
+
"<SPECIAL_913>",
|
| 921 |
+
"<SPECIAL_914>",
|
| 922 |
+
"<SPECIAL_915>",
|
| 923 |
+
"<SPECIAL_916>",
|
| 924 |
+
"<SPECIAL_917>",
|
| 925 |
+
"<SPECIAL_918>",
|
| 926 |
+
"<SPECIAL_919>",
|
| 927 |
+
"<SPECIAL_920>",
|
| 928 |
+
"<SPECIAL_921>",
|
| 929 |
+
"<SPECIAL_922>",
|
| 930 |
+
"<SPECIAL_923>",
|
| 931 |
+
"<SPECIAL_924>",
|
| 932 |
+
"<SPECIAL_925>",
|
| 933 |
+
"<SPECIAL_926>",
|
| 934 |
+
"<SPECIAL_927>",
|
| 935 |
+
"<SPECIAL_928>",
|
| 936 |
+
"<SPECIAL_929>",
|
| 937 |
+
"<SPECIAL_930>",
|
| 938 |
+
"<SPECIAL_931>",
|
| 939 |
+
"<SPECIAL_932>",
|
| 940 |
+
"<SPECIAL_933>",
|
| 941 |
+
"<SPECIAL_934>",
|
| 942 |
+
"<SPECIAL_935>",
|
| 943 |
+
"<SPECIAL_936>",
|
| 944 |
+
"<SPECIAL_937>",
|
| 945 |
+
"<SPECIAL_938>",
|
| 946 |
+
"<SPECIAL_939>",
|
| 947 |
+
"<SPECIAL_940>",
|
| 948 |
+
"<SPECIAL_941>",
|
| 949 |
+
"<SPECIAL_942>",
|
| 950 |
+
"<SPECIAL_943>",
|
| 951 |
+
"<SPECIAL_944>",
|
| 952 |
+
"<SPECIAL_945>",
|
| 953 |
+
"<SPECIAL_946>",
|
| 954 |
+
"<SPECIAL_947>",
|
| 955 |
+
"<SPECIAL_948>",
|
| 956 |
+
"<SPECIAL_949>",
|
| 957 |
+
"<SPECIAL_950>",
|
| 958 |
+
"<SPECIAL_951>",
|
| 959 |
+
"<SPECIAL_952>",
|
| 960 |
+
"<SPECIAL_953>",
|
| 961 |
+
"<SPECIAL_954>",
|
| 962 |
+
"<SPECIAL_955>",
|
| 963 |
+
"<SPECIAL_956>",
|
| 964 |
+
"<SPECIAL_957>",
|
| 965 |
+
"<SPECIAL_958>",
|
| 966 |
+
"<SPECIAL_959>",
|
| 967 |
+
"<SPECIAL_960>",
|
| 968 |
+
"<SPECIAL_961>",
|
| 969 |
+
"<SPECIAL_962>",
|
| 970 |
+
"<SPECIAL_963>",
|
| 971 |
+
"<SPECIAL_964>",
|
| 972 |
+
"<SPECIAL_965>",
|
| 973 |
+
"<SPECIAL_966>",
|
| 974 |
+
"<SPECIAL_967>",
|
| 975 |
+
"<SPECIAL_968>",
|
| 976 |
+
"<SPECIAL_969>",
|
| 977 |
+
"<SPECIAL_970>",
|
| 978 |
+
"<SPECIAL_971>",
|
| 979 |
+
"<SPECIAL_972>",
|
| 980 |
+
"<SPECIAL_973>",
|
| 981 |
+
"<SPECIAL_974>",
|
| 982 |
+
"<SPECIAL_975>",
|
| 983 |
+
"<SPECIAL_976>",
|
| 984 |
+
"<SPECIAL_977>",
|
| 985 |
+
"<SPECIAL_978>",
|
| 986 |
+
"<SPECIAL_979>",
|
| 987 |
+
"<SPECIAL_980>",
|
| 988 |
+
"<SPECIAL_981>",
|
| 989 |
+
"<SPECIAL_982>",
|
| 990 |
+
"<SPECIAL_983>",
|
| 991 |
+
"<SPECIAL_984>",
|
| 992 |
+
"<SPECIAL_985>",
|
| 993 |
+
"<SPECIAL_986>",
|
| 994 |
+
"<SPECIAL_987>",
|
| 995 |
+
"<SPECIAL_988>",
|
| 996 |
+
"<SPECIAL_989>",
|
| 997 |
+
"<SPECIAL_990>",
|
| 998 |
+
"<SPECIAL_991>",
|
| 999 |
+
"<SPECIAL_992>",
|
| 1000 |
+
"<SPECIAL_993>",
|
| 1001 |
+
"<SPECIAL_994>",
|
| 1002 |
+
"<SPECIAL_995>",
|
| 1003 |
+
"<SPECIAL_996>",
|
| 1004 |
+
"<SPECIAL_997>",
|
| 1005 |
+
"<SPECIAL_998>",
|
| 1006 |
+
"<SPECIAL_999>"
|
| 1007 |
+
]
|
| 1008 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cf03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
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"eos_token": "</s>",
|
| 4 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 5 |
+
"pad_token": "<pad>",
|
| 6 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 7 |
+
"unk_token": "<unk>",
|
| 8 |
+
"additional_special_tokens": [
|
| 9 |
+
"<unk>",
|
| 10 |
+
"<s>",
|
| 11 |
+
"</s>",
|
| 12 |
+
"[INST]",
|
| 13 |
+
"[/INST]",
|
| 14 |
+
"[AVAILABLE_TOOLS]",
|
| 15 |
+
"[/AVAILABLE_TOOLS]",
|
| 16 |
+
"[TOOL_RESULTS]",
|
| 17 |
+
"[/TOOL_RESULTS]",
|
| 18 |
+
"[TOOL_CALLS]",
|
| 19 |
+
"[IMG]",
|
| 20 |
+
"<pad>",
|
| 21 |
+
"[IMG_BREAK]",
|
| 22 |
+
"[IMG_END]",
|
| 23 |
+
"[PREFIX]",
|
| 24 |
+
"[MIDDLE]",
|
| 25 |
+
"[SUFFIX]",
|
| 26 |
+
"[SYSTEM_PROMPT]",
|
| 27 |
+
"[/SYSTEM_PROMPT]",
|
| 28 |
+
"[TOOL_CONTENT]",
|
| 29 |
+
"[BBOX]",
|
| 30 |
+
"[/BBOX]",
|
| 31 |
+
"[STEP]",
|
| 32 |
+
"[/STEP]",
|
| 33 |
+
"[AUDIO]",
|
| 34 |
+
"[BEGIN_AUDIO]",
|
| 35 |
+
"[END_AUDIO]",
|
| 36 |
+
"[REF]",
|
| 37 |
+
"[/REF]",
|
| 38 |
+
"[REASONING]",
|
| 39 |
+
"[VERIFICATION]",
|
| 40 |
+
"[SCORE]",
|
| 41 |
+
"[ARGS]",
|
| 42 |
+
"[CALL_ID]",
|
| 43 |
+
"[THINK]",
|
| 44 |
+
"[/THINK]",
|
| 45 |
+
"[MODEL_SETTINGS]",
|
| 46 |
+
"[/MODEL_SETTINGS]",
|
| 47 |
+
"[DROPOUT]",
|
| 48 |
+
"[DROPOUT_IMG]",
|
| 49 |
+
"<SPECIAL_40>",
|
| 50 |
+
"<SPECIAL_41>",
|
| 51 |
+
"<SPECIAL_42>",
|
| 52 |
+
"<SPECIAL_43>",
|
| 53 |
+
"<SPECIAL_44>",
|
| 54 |
+
"<SPECIAL_45>",
|
| 55 |
+
"<SPECIAL_46>",
|
| 56 |
+
"<SPECIAL_47>",
|
| 57 |
+
"<SPECIAL_48>",
|
| 58 |
+
"<SPECIAL_49>",
|
| 59 |
+
"<SPECIAL_50>",
|
| 60 |
+
"<SPECIAL_51>",
|
| 61 |
+
"<SPECIAL_52>",
|
| 62 |
+
"<SPECIAL_53>",
|
| 63 |
+
"<SPECIAL_54>",
|
| 64 |
+
"<SPECIAL_55>",
|
| 65 |
+
"<SPECIAL_56>",
|
| 66 |
+
"<SPECIAL_57>",
|
| 67 |
+
"<SPECIAL_58>",
|
| 68 |
+
"<SPECIAL_59>",
|
| 69 |
+
"<SPECIAL_60>",
|
| 70 |
+
"<SPECIAL_61>",
|
| 71 |
+
"<SPECIAL_62>",
|
| 72 |
+
"<SPECIAL_63>",
|
| 73 |
+
"<SPECIAL_64>",
|
| 74 |
+
"<SPECIAL_65>",
|
| 75 |
+
"<SPECIAL_66>",
|
| 76 |
+
"<SPECIAL_67>",
|
| 77 |
+
"<SPECIAL_68>",
|
| 78 |
+
"<SPECIAL_69>",
|
| 79 |
+
"<SPECIAL_70>",
|
| 80 |
+
"<SPECIAL_71>",
|
| 81 |
+
"<SPECIAL_72>",
|
| 82 |
+
"<SPECIAL_73>",
|
| 83 |
+
"<SPECIAL_74>",
|
| 84 |
+
"<SPECIAL_75>",
|
| 85 |
+
"<SPECIAL_76>",
|
| 86 |
+
"<SPECIAL_77>",
|
| 87 |
+
"<SPECIAL_78>",
|
| 88 |
+
"<SPECIAL_79>",
|
| 89 |
+
"<SPECIAL_80>",
|
| 90 |
+
"<SPECIAL_81>",
|
| 91 |
+
"<SPECIAL_82>",
|
| 92 |
+
"<SPECIAL_83>",
|
| 93 |
+
"<SPECIAL_84>",
|
| 94 |
+
"<SPECIAL_85>",
|
| 95 |
+
"<SPECIAL_86>",
|
| 96 |
+
"<SPECIAL_87>",
|
| 97 |
+
"<SPECIAL_88>",
|
| 98 |
+
"<SPECIAL_89>",
|
| 99 |
+
"<SPECIAL_90>",
|
| 100 |
+
"<SPECIAL_91>",
|
| 101 |
+
"<SPECIAL_92>",
|
| 102 |
+
"<SPECIAL_93>",
|
| 103 |
+
"<SPECIAL_94>",
|
| 104 |
+
"<SPECIAL_95>",
|
| 105 |
+
"<SPECIAL_96>",
|
| 106 |
+
"<SPECIAL_97>",
|
| 107 |
+
"<SPECIAL_98>",
|
| 108 |
+
"<SPECIAL_99>",
|
| 109 |
+
"<SPECIAL_100>",
|
| 110 |
+
"<SPECIAL_101>",
|
| 111 |
+
"<SPECIAL_102>",
|
| 112 |
+
"<SPECIAL_103>",
|
| 113 |
+
"<SPECIAL_104>",
|
| 114 |
+
"<SPECIAL_105>",
|
| 115 |
+
"<SPECIAL_106>",
|
| 116 |
+
"<SPECIAL_107>",
|
| 117 |
+
"<SPECIAL_108>",
|
| 118 |
+
"<SPECIAL_109>",
|
| 119 |
+
"<SPECIAL_110>",
|
| 120 |
+
"<SPECIAL_111>",
|
| 121 |
+
"<SPECIAL_112>",
|
| 122 |
+
"<SPECIAL_113>",
|
| 123 |
+
"<SPECIAL_114>",
|
| 124 |
+
"<SPECIAL_115>",
|
| 125 |
+
"<SPECIAL_116>",
|
| 126 |
+
"<SPECIAL_117>",
|
| 127 |
+
"<SPECIAL_118>",
|
| 128 |
+
"<SPECIAL_119>",
|
| 129 |
+
"<SPECIAL_120>",
|
| 130 |
+
"<SPECIAL_121>",
|
| 131 |
+
"<SPECIAL_122>",
|
| 132 |
+
"<SPECIAL_123>",
|
| 133 |
+
"<SPECIAL_124>",
|
| 134 |
+
"<SPECIAL_125>",
|
| 135 |
+
"<SPECIAL_126>",
|
| 136 |
+
"<SPECIAL_127>",
|
| 137 |
+
"<SPECIAL_128>",
|
| 138 |
+
"<SPECIAL_129>",
|
| 139 |
+
"<SPECIAL_130>",
|
| 140 |
+
"<SPECIAL_131>",
|
| 141 |
+
"<SPECIAL_132>",
|
| 142 |
+
"<SPECIAL_133>",
|
| 143 |
+
"<SPECIAL_134>",
|
| 144 |
+
"<SPECIAL_135>",
|
| 145 |
+
"<SPECIAL_136>",
|
| 146 |
+
"<SPECIAL_137>",
|
| 147 |
+
"<SPECIAL_138>",
|
| 148 |
+
"<SPECIAL_139>",
|
| 149 |
+
"<SPECIAL_140>",
|
| 150 |
+
"<SPECIAL_141>",
|
| 151 |
+
"<SPECIAL_142>",
|
| 152 |
+
"<SPECIAL_143>",
|
| 153 |
+
"<SPECIAL_144>",
|
| 154 |
+
"<SPECIAL_145>",
|
| 155 |
+
"<SPECIAL_146>",
|
| 156 |
+
"<SPECIAL_147>",
|
| 157 |
+
"<SPECIAL_148>",
|
| 158 |
+
"<SPECIAL_149>",
|
| 159 |
+
"<SPECIAL_150>",
|
| 160 |
+
"<SPECIAL_151>",
|
| 161 |
+
"<SPECIAL_152>",
|
| 162 |
+
"<SPECIAL_153>",
|
| 163 |
+
"<SPECIAL_154>",
|
| 164 |
+
"<SPECIAL_155>",
|
| 165 |
+
"<SPECIAL_156>",
|
| 166 |
+
"<SPECIAL_157>",
|
| 167 |
+
"<SPECIAL_158>",
|
| 168 |
+
"<SPECIAL_159>",
|
| 169 |
+
"<SPECIAL_160>",
|
| 170 |
+
"<SPECIAL_161>",
|
| 171 |
+
"<SPECIAL_162>",
|
| 172 |
+
"<SPECIAL_163>",
|
| 173 |
+
"<SPECIAL_164>",
|
| 174 |
+
"<SPECIAL_165>",
|
| 175 |
+
"<SPECIAL_166>",
|
| 176 |
+
"<SPECIAL_167>",
|
| 177 |
+
"<SPECIAL_168>",
|
| 178 |
+
"<SPECIAL_169>",
|
| 179 |
+
"<SPECIAL_170>",
|
| 180 |
+
"<SPECIAL_171>",
|
| 181 |
+
"<SPECIAL_172>",
|
| 182 |
+
"<SPECIAL_173>",
|
| 183 |
+
"<SPECIAL_174>",
|
| 184 |
+
"<SPECIAL_175>",
|
| 185 |
+
"<SPECIAL_176>",
|
| 186 |
+
"<SPECIAL_177>",
|
| 187 |
+
"<SPECIAL_178>",
|
| 188 |
+
"<SPECIAL_179>",
|
| 189 |
+
"<SPECIAL_180>",
|
| 190 |
+
"<SPECIAL_181>",
|
| 191 |
+
"<SPECIAL_182>",
|
| 192 |
+
"<SPECIAL_183>",
|
| 193 |
+
"<SPECIAL_184>",
|
| 194 |
+
"<SPECIAL_185>",
|
| 195 |
+
"<SPECIAL_186>",
|
| 196 |
+
"<SPECIAL_187>",
|
| 197 |
+
"<SPECIAL_188>",
|
| 198 |
+
"<SPECIAL_189>",
|
| 199 |
+
"<SPECIAL_190>",
|
| 200 |
+
"<SPECIAL_191>",
|
| 201 |
+
"<SPECIAL_192>",
|
| 202 |
+
"<SPECIAL_193>",
|
| 203 |
+
"<SPECIAL_194>",
|
| 204 |
+
"<SPECIAL_195>",
|
| 205 |
+
"<SPECIAL_196>",
|
| 206 |
+
"<SPECIAL_197>",
|
| 207 |
+
"<SPECIAL_198>",
|
| 208 |
+
"<SPECIAL_199>",
|
| 209 |
+
"<SPECIAL_200>",
|
| 210 |
+
"<SPECIAL_201>",
|
| 211 |
+
"<SPECIAL_202>",
|
| 212 |
+
"<SPECIAL_203>",
|
| 213 |
+
"<SPECIAL_204>",
|
| 214 |
+
"<SPECIAL_205>",
|
| 215 |
+
"<SPECIAL_206>",
|
| 216 |
+
"<SPECIAL_207>",
|
| 217 |
+
"<SPECIAL_208>",
|
| 218 |
+
"<SPECIAL_209>",
|
| 219 |
+
"<SPECIAL_210>",
|
| 220 |
+
"<SPECIAL_211>",
|
| 221 |
+
"<SPECIAL_212>",
|
| 222 |
+
"<SPECIAL_213>",
|
| 223 |
+
"<SPECIAL_214>",
|
| 224 |
+
"<SPECIAL_215>",
|
| 225 |
+
"<SPECIAL_216>",
|
| 226 |
+
"<SPECIAL_217>",
|
| 227 |
+
"<SPECIAL_218>",
|
| 228 |
+
"<SPECIAL_219>",
|
| 229 |
+
"<SPECIAL_220>",
|
| 230 |
+
"<SPECIAL_221>",
|
| 231 |
+
"<SPECIAL_222>",
|
| 232 |
+
"<SPECIAL_223>",
|
| 233 |
+
"<SPECIAL_224>",
|
| 234 |
+
"<SPECIAL_225>",
|
| 235 |
+
"<SPECIAL_226>",
|
| 236 |
+
"<SPECIAL_227>",
|
| 237 |
+
"<SPECIAL_228>",
|
| 238 |
+
"<SPECIAL_229>",
|
| 239 |
+
"<SPECIAL_230>",
|
| 240 |
+
"<SPECIAL_231>",
|
| 241 |
+
"<SPECIAL_232>",
|
| 242 |
+
"<SPECIAL_233>",
|
| 243 |
+
"<SPECIAL_234>",
|
| 244 |
+
"<SPECIAL_235>",
|
| 245 |
+
"<SPECIAL_236>",
|
| 246 |
+
"<SPECIAL_237>",
|
| 247 |
+
"<SPECIAL_238>",
|
| 248 |
+
"<SPECIAL_239>",
|
| 249 |
+
"<SPECIAL_240>",
|
| 250 |
+
"<SPECIAL_241>",
|
| 251 |
+
"<SPECIAL_242>",
|
| 252 |
+
"<SPECIAL_243>",
|
| 253 |
+
"<SPECIAL_244>",
|
| 254 |
+
"<SPECIAL_245>",
|
| 255 |
+
"<SPECIAL_246>",
|
| 256 |
+
"<SPECIAL_247>",
|
| 257 |
+
"<SPECIAL_248>",
|
| 258 |
+
"<SPECIAL_249>",
|
| 259 |
+
"<SPECIAL_250>",
|
| 260 |
+
"<SPECIAL_251>",
|
| 261 |
+
"<SPECIAL_252>",
|
| 262 |
+
"<SPECIAL_253>",
|
| 263 |
+
"<SPECIAL_254>",
|
| 264 |
+
"<SPECIAL_255>",
|
| 265 |
+
"<SPECIAL_256>",
|
| 266 |
+
"<SPECIAL_257>",
|
| 267 |
+
"<SPECIAL_258>",
|
| 268 |
+
"<SPECIAL_259>",
|
| 269 |
+
"<SPECIAL_260>",
|
| 270 |
+
"<SPECIAL_261>",
|
| 271 |
+
"<SPECIAL_262>",
|
| 272 |
+
"<SPECIAL_263>",
|
| 273 |
+
"<SPECIAL_264>",
|
| 274 |
+
"<SPECIAL_265>",
|
| 275 |
+
"<SPECIAL_266>",
|
| 276 |
+
"<SPECIAL_267>",
|
| 277 |
+
"<SPECIAL_268>",
|
| 278 |
+
"<SPECIAL_269>",
|
| 279 |
+
"<SPECIAL_270>",
|
| 280 |
+
"<SPECIAL_271>",
|
| 281 |
+
"<SPECIAL_272>",
|
| 282 |
+
"<SPECIAL_273>",
|
| 283 |
+
"<SPECIAL_274>",
|
| 284 |
+
"<SPECIAL_275>",
|
| 285 |
+
"<SPECIAL_276>",
|
| 286 |
+
"<SPECIAL_277>",
|
| 287 |
+
"<SPECIAL_278>",
|
| 288 |
+
"<SPECIAL_279>",
|
| 289 |
+
"<SPECIAL_280>",
|
| 290 |
+
"<SPECIAL_281>",
|
| 291 |
+
"<SPECIAL_282>",
|
| 292 |
+
"<SPECIAL_283>",
|
| 293 |
+
"<SPECIAL_284>",
|
| 294 |
+
"<SPECIAL_285>",
|
| 295 |
+
"<SPECIAL_286>",
|
| 296 |
+
"<SPECIAL_287>",
|
| 297 |
+
"<SPECIAL_288>",
|
| 298 |
+
"<SPECIAL_289>",
|
| 299 |
+
"<SPECIAL_290>",
|
| 300 |
+
"<SPECIAL_291>",
|
| 301 |
+
"<SPECIAL_292>",
|
| 302 |
+
"<SPECIAL_293>",
|
| 303 |
+
"<SPECIAL_294>",
|
| 304 |
+
"<SPECIAL_295>",
|
| 305 |
+
"<SPECIAL_296>",
|
| 306 |
+
"<SPECIAL_297>",
|
| 307 |
+
"<SPECIAL_298>",
|
| 308 |
+
"<SPECIAL_299>",
|
| 309 |
+
"<SPECIAL_300>",
|
| 310 |
+
"<SPECIAL_301>",
|
| 311 |
+
"<SPECIAL_302>",
|
| 312 |
+
"<SPECIAL_303>",
|
| 313 |
+
"<SPECIAL_304>",
|
| 314 |
+
"<SPECIAL_305>",
|
| 315 |
+
"<SPECIAL_306>",
|
| 316 |
+
"<SPECIAL_307>",
|
| 317 |
+
"<SPECIAL_308>",
|
| 318 |
+
"<SPECIAL_309>",
|
| 319 |
+
"<SPECIAL_310>",
|
| 320 |
+
"<SPECIAL_311>",
|
| 321 |
+
"<SPECIAL_312>",
|
| 322 |
+
"<SPECIAL_313>",
|
| 323 |
+
"<SPECIAL_314>",
|
| 324 |
+
"<SPECIAL_315>",
|
| 325 |
+
"<SPECIAL_316>",
|
| 326 |
+
"<SPECIAL_317>",
|
| 327 |
+
"<SPECIAL_318>",
|
| 328 |
+
"<SPECIAL_319>",
|
| 329 |
+
"<SPECIAL_320>",
|
| 330 |
+
"<SPECIAL_321>",
|
| 331 |
+
"<SPECIAL_322>",
|
| 332 |
+
"<SPECIAL_323>",
|
| 333 |
+
"<SPECIAL_324>",
|
| 334 |
+
"<SPECIAL_325>",
|
| 335 |
+
"<SPECIAL_326>",
|
| 336 |
+
"<SPECIAL_327>",
|
| 337 |
+
"<SPECIAL_328>",
|
| 338 |
+
"<SPECIAL_329>",
|
| 339 |
+
"<SPECIAL_330>",
|
| 340 |
+
"<SPECIAL_331>",
|
| 341 |
+
"<SPECIAL_332>",
|
| 342 |
+
"<SPECIAL_333>",
|
| 343 |
+
"<SPECIAL_334>",
|
| 344 |
+
"<SPECIAL_335>",
|
| 345 |
+
"<SPECIAL_336>",
|
| 346 |
+
"<SPECIAL_337>",
|
| 347 |
+
"<SPECIAL_338>",
|
| 348 |
+
"<SPECIAL_339>",
|
| 349 |
+
"<SPECIAL_340>",
|
| 350 |
+
"<SPECIAL_341>",
|
| 351 |
+
"<SPECIAL_342>",
|
| 352 |
+
"<SPECIAL_343>",
|
| 353 |
+
"<SPECIAL_344>",
|
| 354 |
+
"<SPECIAL_345>",
|
| 355 |
+
"<SPECIAL_346>",
|
| 356 |
+
"<SPECIAL_347>",
|
| 357 |
+
"<SPECIAL_348>",
|
| 358 |
+
"<SPECIAL_349>",
|
| 359 |
+
"<SPECIAL_350>",
|
| 360 |
+
"<SPECIAL_351>",
|
| 361 |
+
"<SPECIAL_352>",
|
| 362 |
+
"<SPECIAL_353>",
|
| 363 |
+
"<SPECIAL_354>",
|
| 364 |
+
"<SPECIAL_355>",
|
| 365 |
+
"<SPECIAL_356>",
|
| 366 |
+
"<SPECIAL_357>",
|
| 367 |
+
"<SPECIAL_358>",
|
| 368 |
+
"<SPECIAL_359>",
|
| 369 |
+
"<SPECIAL_360>",
|
| 370 |
+
"<SPECIAL_361>",
|
| 371 |
+
"<SPECIAL_362>",
|
| 372 |
+
"<SPECIAL_363>",
|
| 373 |
+
"<SPECIAL_364>",
|
| 374 |
+
"<SPECIAL_365>",
|
| 375 |
+
"<SPECIAL_366>",
|
| 376 |
+
"<SPECIAL_367>",
|
| 377 |
+
"<SPECIAL_368>",
|
| 378 |
+
"<SPECIAL_369>",
|
| 379 |
+
"<SPECIAL_370>",
|
| 380 |
+
"<SPECIAL_371>",
|
| 381 |
+
"<SPECIAL_372>",
|
| 382 |
+
"<SPECIAL_373>",
|
| 383 |
+
"<SPECIAL_374>",
|
| 384 |
+
"<SPECIAL_375>",
|
| 385 |
+
"<SPECIAL_376>",
|
| 386 |
+
"<SPECIAL_377>",
|
| 387 |
+
"<SPECIAL_378>",
|
| 388 |
+
"<SPECIAL_379>",
|
| 389 |
+
"<SPECIAL_380>",
|
| 390 |
+
"<SPECIAL_381>",
|
| 391 |
+
"<SPECIAL_382>",
|
| 392 |
+
"<SPECIAL_383>",
|
| 393 |
+
"<SPECIAL_384>",
|
| 394 |
+
"<SPECIAL_385>",
|
| 395 |
+
"<SPECIAL_386>",
|
| 396 |
+
"<SPECIAL_387>",
|
| 397 |
+
"<SPECIAL_388>",
|
| 398 |
+
"<SPECIAL_389>",
|
| 399 |
+
"<SPECIAL_390>",
|
| 400 |
+
"<SPECIAL_391>",
|
| 401 |
+
"<SPECIAL_392>",
|
| 402 |
+
"<SPECIAL_393>",
|
| 403 |
+
"<SPECIAL_394>",
|
| 404 |
+
"<SPECIAL_395>",
|
| 405 |
+
"<SPECIAL_396>",
|
| 406 |
+
"<SPECIAL_397>",
|
| 407 |
+
"<SPECIAL_398>",
|
| 408 |
+
"<SPECIAL_399>",
|
| 409 |
+
"<SPECIAL_400>",
|
| 410 |
+
"<SPECIAL_401>",
|
| 411 |
+
"<SPECIAL_402>",
|
| 412 |
+
"<SPECIAL_403>",
|
| 413 |
+
"<SPECIAL_404>",
|
| 414 |
+
"<SPECIAL_405>",
|
| 415 |
+
"<SPECIAL_406>",
|
| 416 |
+
"<SPECIAL_407>",
|
| 417 |
+
"<SPECIAL_408>",
|
| 418 |
+
"<SPECIAL_409>",
|
| 419 |
+
"<SPECIAL_410>",
|
| 420 |
+
"<SPECIAL_411>",
|
| 421 |
+
"<SPECIAL_412>",
|
| 422 |
+
"<SPECIAL_413>",
|
| 423 |
+
"<SPECIAL_414>",
|
| 424 |
+
"<SPECIAL_415>",
|
| 425 |
+
"<SPECIAL_416>",
|
| 426 |
+
"<SPECIAL_417>",
|
| 427 |
+
"<SPECIAL_418>",
|
| 428 |
+
"<SPECIAL_419>",
|
| 429 |
+
"<SPECIAL_420>",
|
| 430 |
+
"<SPECIAL_421>",
|
| 431 |
+
"<SPECIAL_422>",
|
| 432 |
+
"<SPECIAL_423>",
|
| 433 |
+
"<SPECIAL_424>",
|
| 434 |
+
"<SPECIAL_425>",
|
| 435 |
+
"<SPECIAL_426>",
|
| 436 |
+
"<SPECIAL_427>",
|
| 437 |
+
"<SPECIAL_428>",
|
| 438 |
+
"<SPECIAL_429>",
|
| 439 |
+
"<SPECIAL_430>",
|
| 440 |
+
"<SPECIAL_431>",
|
| 441 |
+
"<SPECIAL_432>",
|
| 442 |
+
"<SPECIAL_433>",
|
| 443 |
+
"<SPECIAL_434>",
|
| 444 |
+
"<SPECIAL_435>",
|
| 445 |
+
"<SPECIAL_436>",
|
| 446 |
+
"<SPECIAL_437>",
|
| 447 |
+
"<SPECIAL_438>",
|
| 448 |
+
"<SPECIAL_439>",
|
| 449 |
+
"<SPECIAL_440>",
|
| 450 |
+
"<SPECIAL_441>",
|
| 451 |
+
"<SPECIAL_442>",
|
| 452 |
+
"<SPECIAL_443>",
|
| 453 |
+
"<SPECIAL_444>",
|
| 454 |
+
"<SPECIAL_445>",
|
| 455 |
+
"<SPECIAL_446>",
|
| 456 |
+
"<SPECIAL_447>",
|
| 457 |
+
"<SPECIAL_448>",
|
| 458 |
+
"<SPECIAL_449>",
|
| 459 |
+
"<SPECIAL_450>",
|
| 460 |
+
"<SPECIAL_451>",
|
| 461 |
+
"<SPECIAL_452>",
|
| 462 |
+
"<SPECIAL_453>",
|
| 463 |
+
"<SPECIAL_454>",
|
| 464 |
+
"<SPECIAL_455>",
|
| 465 |
+
"<SPECIAL_456>",
|
| 466 |
+
"<SPECIAL_457>",
|
| 467 |
+
"<SPECIAL_458>",
|
| 468 |
+
"<SPECIAL_459>",
|
| 469 |
+
"<SPECIAL_460>",
|
| 470 |
+
"<SPECIAL_461>",
|
| 471 |
+
"<SPECIAL_462>",
|
| 472 |
+
"<SPECIAL_463>",
|
| 473 |
+
"<SPECIAL_464>",
|
| 474 |
+
"<SPECIAL_465>",
|
| 475 |
+
"<SPECIAL_466>",
|
| 476 |
+
"<SPECIAL_467>",
|
| 477 |
+
"<SPECIAL_468>",
|
| 478 |
+
"<SPECIAL_469>",
|
| 479 |
+
"<SPECIAL_470>",
|
| 480 |
+
"<SPECIAL_471>",
|
| 481 |
+
"<SPECIAL_472>",
|
| 482 |
+
"<SPECIAL_473>",
|
| 483 |
+
"<SPECIAL_474>",
|
| 484 |
+
"<SPECIAL_475>",
|
| 485 |
+
"<SPECIAL_476>",
|
| 486 |
+
"<SPECIAL_477>",
|
| 487 |
+
"<SPECIAL_478>",
|
| 488 |
+
"<SPECIAL_479>",
|
| 489 |
+
"<SPECIAL_480>",
|
| 490 |
+
"<SPECIAL_481>",
|
| 491 |
+
"<SPECIAL_482>",
|
| 492 |
+
"<SPECIAL_483>",
|
| 493 |
+
"<SPECIAL_484>",
|
| 494 |
+
"<SPECIAL_485>",
|
| 495 |
+
"<SPECIAL_486>",
|
| 496 |
+
"<SPECIAL_487>",
|
| 497 |
+
"<SPECIAL_488>",
|
| 498 |
+
"<SPECIAL_489>",
|
| 499 |
+
"<SPECIAL_490>",
|
| 500 |
+
"<SPECIAL_491>",
|
| 501 |
+
"<SPECIAL_492>",
|
| 502 |
+
"<SPECIAL_493>",
|
| 503 |
+
"<SPECIAL_494>",
|
| 504 |
+
"<SPECIAL_495>",
|
| 505 |
+
"<SPECIAL_496>",
|
| 506 |
+
"<SPECIAL_497>",
|
| 507 |
+
"<SPECIAL_498>",
|
| 508 |
+
"<SPECIAL_499>",
|
| 509 |
+
"<SPECIAL_500>",
|
| 510 |
+
"<SPECIAL_501>",
|
| 511 |
+
"<SPECIAL_502>",
|
| 512 |
+
"<SPECIAL_503>",
|
| 513 |
+
"<SPECIAL_504>",
|
| 514 |
+
"<SPECIAL_505>",
|
| 515 |
+
"<SPECIAL_506>",
|
| 516 |
+
"<SPECIAL_507>",
|
| 517 |
+
"<SPECIAL_508>",
|
| 518 |
+
"<SPECIAL_509>",
|
| 519 |
+
"<SPECIAL_510>",
|
| 520 |
+
"<SPECIAL_511>",
|
| 521 |
+
"<SPECIAL_512>",
|
| 522 |
+
"<SPECIAL_513>",
|
| 523 |
+
"<SPECIAL_514>",
|
| 524 |
+
"<SPECIAL_515>",
|
| 525 |
+
"<SPECIAL_516>",
|
| 526 |
+
"<SPECIAL_517>",
|
| 527 |
+
"<SPECIAL_518>",
|
| 528 |
+
"<SPECIAL_519>",
|
| 529 |
+
"<SPECIAL_520>",
|
| 530 |
+
"<SPECIAL_521>",
|
| 531 |
+
"<SPECIAL_522>",
|
| 532 |
+
"<SPECIAL_523>",
|
| 533 |
+
"<SPECIAL_524>",
|
| 534 |
+
"<SPECIAL_525>",
|
| 535 |
+
"<SPECIAL_526>",
|
| 536 |
+
"<SPECIAL_527>",
|
| 537 |
+
"<SPECIAL_528>",
|
| 538 |
+
"<SPECIAL_529>",
|
| 539 |
+
"<SPECIAL_530>",
|
| 540 |
+
"<SPECIAL_531>",
|
| 541 |
+
"<SPECIAL_532>",
|
| 542 |
+
"<SPECIAL_533>",
|
| 543 |
+
"<SPECIAL_534>",
|
| 544 |
+
"<SPECIAL_535>",
|
| 545 |
+
"<SPECIAL_536>",
|
| 546 |
+
"<SPECIAL_537>",
|
| 547 |
+
"<SPECIAL_538>",
|
| 548 |
+
"<SPECIAL_539>",
|
| 549 |
+
"<SPECIAL_540>",
|
| 550 |
+
"<SPECIAL_541>",
|
| 551 |
+
"<SPECIAL_542>",
|
| 552 |
+
"<SPECIAL_543>",
|
| 553 |
+
"<SPECIAL_544>",
|
| 554 |
+
"<SPECIAL_545>",
|
| 555 |
+
"<SPECIAL_546>",
|
| 556 |
+
"<SPECIAL_547>",
|
| 557 |
+
"<SPECIAL_548>",
|
| 558 |
+
"<SPECIAL_549>",
|
| 559 |
+
"<SPECIAL_550>",
|
| 560 |
+
"<SPECIAL_551>",
|
| 561 |
+
"<SPECIAL_552>",
|
| 562 |
+
"<SPECIAL_553>",
|
| 563 |
+
"<SPECIAL_554>",
|
| 564 |
+
"<SPECIAL_555>",
|
| 565 |
+
"<SPECIAL_556>",
|
| 566 |
+
"<SPECIAL_557>",
|
| 567 |
+
"<SPECIAL_558>",
|
| 568 |
+
"<SPECIAL_559>",
|
| 569 |
+
"<SPECIAL_560>",
|
| 570 |
+
"<SPECIAL_561>",
|
| 571 |
+
"<SPECIAL_562>",
|
| 572 |
+
"<SPECIAL_563>",
|
| 573 |
+
"<SPECIAL_564>",
|
| 574 |
+
"<SPECIAL_565>",
|
| 575 |
+
"<SPECIAL_566>",
|
| 576 |
+
"<SPECIAL_567>",
|
| 577 |
+
"<SPECIAL_568>",
|
| 578 |
+
"<SPECIAL_569>",
|
| 579 |
+
"<SPECIAL_570>",
|
| 580 |
+
"<SPECIAL_571>",
|
| 581 |
+
"<SPECIAL_572>",
|
| 582 |
+
"<SPECIAL_573>",
|
| 583 |
+
"<SPECIAL_574>",
|
| 584 |
+
"<SPECIAL_575>",
|
| 585 |
+
"<SPECIAL_576>",
|
| 586 |
+
"<SPECIAL_577>",
|
| 587 |
+
"<SPECIAL_578>",
|
| 588 |
+
"<SPECIAL_579>",
|
| 589 |
+
"<SPECIAL_580>",
|
| 590 |
+
"<SPECIAL_581>",
|
| 591 |
+
"<SPECIAL_582>",
|
| 592 |
+
"<SPECIAL_583>",
|
| 593 |
+
"<SPECIAL_584>",
|
| 594 |
+
"<SPECIAL_585>",
|
| 595 |
+
"<SPECIAL_586>",
|
| 596 |
+
"<SPECIAL_587>",
|
| 597 |
+
"<SPECIAL_588>",
|
| 598 |
+
"<SPECIAL_589>",
|
| 599 |
+
"<SPECIAL_590>",
|
| 600 |
+
"<SPECIAL_591>",
|
| 601 |
+
"<SPECIAL_592>",
|
| 602 |
+
"<SPECIAL_593>",
|
| 603 |
+
"<SPECIAL_594>",
|
| 604 |
+
"<SPECIAL_595>",
|
| 605 |
+
"<SPECIAL_596>",
|
| 606 |
+
"<SPECIAL_597>",
|
| 607 |
+
"<SPECIAL_598>",
|
| 608 |
+
"<SPECIAL_599>",
|
| 609 |
+
"<SPECIAL_600>",
|
| 610 |
+
"<SPECIAL_601>",
|
| 611 |
+
"<SPECIAL_602>",
|
| 612 |
+
"<SPECIAL_603>",
|
| 613 |
+
"<SPECIAL_604>",
|
| 614 |
+
"<SPECIAL_605>",
|
| 615 |
+
"<SPECIAL_606>",
|
| 616 |
+
"<SPECIAL_607>",
|
| 617 |
+
"<SPECIAL_608>",
|
| 618 |
+
"<SPECIAL_609>",
|
| 619 |
+
"<SPECIAL_610>",
|
| 620 |
+
"<SPECIAL_611>",
|
| 621 |
+
"<SPECIAL_612>",
|
| 622 |
+
"<SPECIAL_613>",
|
| 623 |
+
"<SPECIAL_614>",
|
| 624 |
+
"<SPECIAL_615>",
|
| 625 |
+
"<SPECIAL_616>",
|
| 626 |
+
"<SPECIAL_617>",
|
| 627 |
+
"<SPECIAL_618>",
|
| 628 |
+
"<SPECIAL_619>",
|
| 629 |
+
"<SPECIAL_620>",
|
| 630 |
+
"<SPECIAL_621>",
|
| 631 |
+
"<SPECIAL_622>",
|
| 632 |
+
"<SPECIAL_623>",
|
| 633 |
+
"<SPECIAL_624>",
|
| 634 |
+
"<SPECIAL_625>",
|
| 635 |
+
"<SPECIAL_626>",
|
| 636 |
+
"<SPECIAL_627>",
|
| 637 |
+
"<SPECIAL_628>",
|
| 638 |
+
"<SPECIAL_629>",
|
| 639 |
+
"<SPECIAL_630>",
|
| 640 |
+
"<SPECIAL_631>",
|
| 641 |
+
"<SPECIAL_632>",
|
| 642 |
+
"<SPECIAL_633>",
|
| 643 |
+
"<SPECIAL_634>",
|
| 644 |
+
"<SPECIAL_635>",
|
| 645 |
+
"<SPECIAL_636>",
|
| 646 |
+
"<SPECIAL_637>",
|
| 647 |
+
"<SPECIAL_638>",
|
| 648 |
+
"<SPECIAL_639>",
|
| 649 |
+
"<SPECIAL_640>",
|
| 650 |
+
"<SPECIAL_641>",
|
| 651 |
+
"<SPECIAL_642>",
|
| 652 |
+
"<SPECIAL_643>",
|
| 653 |
+
"<SPECIAL_644>",
|
| 654 |
+
"<SPECIAL_645>",
|
| 655 |
+
"<SPECIAL_646>",
|
| 656 |
+
"<SPECIAL_647>",
|
| 657 |
+
"<SPECIAL_648>",
|
| 658 |
+
"<SPECIAL_649>",
|
| 659 |
+
"<SPECIAL_650>",
|
| 660 |
+
"<SPECIAL_651>",
|
| 661 |
+
"<SPECIAL_652>",
|
| 662 |
+
"<SPECIAL_653>",
|
| 663 |
+
"<SPECIAL_654>",
|
| 664 |
+
"<SPECIAL_655>",
|
| 665 |
+
"<SPECIAL_656>",
|
| 666 |
+
"<SPECIAL_657>",
|
| 667 |
+
"<SPECIAL_658>",
|
| 668 |
+
"<SPECIAL_659>",
|
| 669 |
+
"<SPECIAL_660>",
|
| 670 |
+
"<SPECIAL_661>",
|
| 671 |
+
"<SPECIAL_662>",
|
| 672 |
+
"<SPECIAL_663>",
|
| 673 |
+
"<SPECIAL_664>",
|
| 674 |
+
"<SPECIAL_665>",
|
| 675 |
+
"<SPECIAL_666>",
|
| 676 |
+
"<SPECIAL_667>",
|
| 677 |
+
"<SPECIAL_668>",
|
| 678 |
+
"<SPECIAL_669>",
|
| 679 |
+
"<SPECIAL_670>",
|
| 680 |
+
"<SPECIAL_671>",
|
| 681 |
+
"<SPECIAL_672>",
|
| 682 |
+
"<SPECIAL_673>",
|
| 683 |
+
"<SPECIAL_674>",
|
| 684 |
+
"<SPECIAL_675>",
|
| 685 |
+
"<SPECIAL_676>",
|
| 686 |
+
"<SPECIAL_677>",
|
| 687 |
+
"<SPECIAL_678>",
|
| 688 |
+
"<SPECIAL_679>",
|
| 689 |
+
"<SPECIAL_680>",
|
| 690 |
+
"<SPECIAL_681>",
|
| 691 |
+
"<SPECIAL_682>",
|
| 692 |
+
"<SPECIAL_683>",
|
| 693 |
+
"<SPECIAL_684>",
|
| 694 |
+
"<SPECIAL_685>",
|
| 695 |
+
"<SPECIAL_686>",
|
| 696 |
+
"<SPECIAL_687>",
|
| 697 |
+
"<SPECIAL_688>",
|
| 698 |
+
"<SPECIAL_689>",
|
| 699 |
+
"<SPECIAL_690>",
|
| 700 |
+
"<SPECIAL_691>",
|
| 701 |
+
"<SPECIAL_692>",
|
| 702 |
+
"<SPECIAL_693>",
|
| 703 |
+
"<SPECIAL_694>",
|
| 704 |
+
"<SPECIAL_695>",
|
| 705 |
+
"<SPECIAL_696>",
|
| 706 |
+
"<SPECIAL_697>",
|
| 707 |
+
"<SPECIAL_698>",
|
| 708 |
+
"<SPECIAL_699>",
|
| 709 |
+
"<SPECIAL_700>",
|
| 710 |
+
"<SPECIAL_701>",
|
| 711 |
+
"<SPECIAL_702>",
|
| 712 |
+
"<SPECIAL_703>",
|
| 713 |
+
"<SPECIAL_704>",
|
| 714 |
+
"<SPECIAL_705>",
|
| 715 |
+
"<SPECIAL_706>",
|
| 716 |
+
"<SPECIAL_707>",
|
| 717 |
+
"<SPECIAL_708>",
|
| 718 |
+
"<SPECIAL_709>",
|
| 719 |
+
"<SPECIAL_710>",
|
| 720 |
+
"<SPECIAL_711>",
|
| 721 |
+
"<SPECIAL_712>",
|
| 722 |
+
"<SPECIAL_713>",
|
| 723 |
+
"<SPECIAL_714>",
|
| 724 |
+
"<SPECIAL_715>",
|
| 725 |
+
"<SPECIAL_716>",
|
| 726 |
+
"<SPECIAL_717>",
|
| 727 |
+
"<SPECIAL_718>",
|
| 728 |
+
"<SPECIAL_719>",
|
| 729 |
+
"<SPECIAL_720>",
|
| 730 |
+
"<SPECIAL_721>",
|
| 731 |
+
"<SPECIAL_722>",
|
| 732 |
+
"<SPECIAL_723>",
|
| 733 |
+
"<SPECIAL_724>",
|
| 734 |
+
"<SPECIAL_725>",
|
| 735 |
+
"<SPECIAL_726>",
|
| 736 |
+
"<SPECIAL_727>",
|
| 737 |
+
"<SPECIAL_728>",
|
| 738 |
+
"<SPECIAL_729>",
|
| 739 |
+
"<SPECIAL_730>",
|
| 740 |
+
"<SPECIAL_731>",
|
| 741 |
+
"<SPECIAL_732>",
|
| 742 |
+
"<SPECIAL_733>",
|
| 743 |
+
"<SPECIAL_734>",
|
| 744 |
+
"<SPECIAL_735>",
|
| 745 |
+
"<SPECIAL_736>",
|
| 746 |
+
"<SPECIAL_737>",
|
| 747 |
+
"<SPECIAL_738>",
|
| 748 |
+
"<SPECIAL_739>",
|
| 749 |
+
"<SPECIAL_740>",
|
| 750 |
+
"<SPECIAL_741>",
|
| 751 |
+
"<SPECIAL_742>",
|
| 752 |
+
"<SPECIAL_743>",
|
| 753 |
+
"<SPECIAL_744>",
|
| 754 |
+
"<SPECIAL_745>",
|
| 755 |
+
"<SPECIAL_746>",
|
| 756 |
+
"<SPECIAL_747>",
|
| 757 |
+
"<SPECIAL_748>",
|
| 758 |
+
"<SPECIAL_749>",
|
| 759 |
+
"<SPECIAL_750>",
|
| 760 |
+
"<SPECIAL_751>",
|
| 761 |
+
"<SPECIAL_752>",
|
| 762 |
+
"<SPECIAL_753>",
|
| 763 |
+
"<SPECIAL_754>",
|
| 764 |
+
"<SPECIAL_755>",
|
| 765 |
+
"<SPECIAL_756>",
|
| 766 |
+
"<SPECIAL_757>",
|
| 767 |
+
"<SPECIAL_758>",
|
| 768 |
+
"<SPECIAL_759>",
|
| 769 |
+
"<SPECIAL_760>",
|
| 770 |
+
"<SPECIAL_761>",
|
| 771 |
+
"<SPECIAL_762>",
|
| 772 |
+
"<SPECIAL_763>",
|
| 773 |
+
"<SPECIAL_764>",
|
| 774 |
+
"<SPECIAL_765>",
|
| 775 |
+
"<SPECIAL_766>",
|
| 776 |
+
"<SPECIAL_767>",
|
| 777 |
+
"<SPECIAL_768>",
|
| 778 |
+
"<SPECIAL_769>",
|
| 779 |
+
"<SPECIAL_770>",
|
| 780 |
+
"<SPECIAL_771>",
|
| 781 |
+
"<SPECIAL_772>",
|
| 782 |
+
"<SPECIAL_773>",
|
| 783 |
+
"<SPECIAL_774>",
|
| 784 |
+
"<SPECIAL_775>",
|
| 785 |
+
"<SPECIAL_776>",
|
| 786 |
+
"<SPECIAL_777>",
|
| 787 |
+
"<SPECIAL_778>",
|
| 788 |
+
"<SPECIAL_779>",
|
| 789 |
+
"<SPECIAL_780>",
|
| 790 |
+
"<SPECIAL_781>",
|
| 791 |
+
"<SPECIAL_782>",
|
| 792 |
+
"<SPECIAL_783>",
|
| 793 |
+
"<SPECIAL_784>",
|
| 794 |
+
"<SPECIAL_785>",
|
| 795 |
+
"<SPECIAL_786>",
|
| 796 |
+
"<SPECIAL_787>",
|
| 797 |
+
"<SPECIAL_788>",
|
| 798 |
+
"<SPECIAL_789>",
|
| 799 |
+
"<SPECIAL_790>",
|
| 800 |
+
"<SPECIAL_791>",
|
| 801 |
+
"<SPECIAL_792>",
|
| 802 |
+
"<SPECIAL_793>",
|
| 803 |
+
"<SPECIAL_794>",
|
| 804 |
+
"<SPECIAL_795>",
|
| 805 |
+
"<SPECIAL_796>",
|
| 806 |
+
"<SPECIAL_797>",
|
| 807 |
+
"<SPECIAL_798>",
|
| 808 |
+
"<SPECIAL_799>",
|
| 809 |
+
"<SPECIAL_800>",
|
| 810 |
+
"<SPECIAL_801>",
|
| 811 |
+
"<SPECIAL_802>",
|
| 812 |
+
"<SPECIAL_803>",
|
| 813 |
+
"<SPECIAL_804>",
|
| 814 |
+
"<SPECIAL_805>",
|
| 815 |
+
"<SPECIAL_806>",
|
| 816 |
+
"<SPECIAL_807>",
|
| 817 |
+
"<SPECIAL_808>",
|
| 818 |
+
"<SPECIAL_809>",
|
| 819 |
+
"<SPECIAL_810>",
|
| 820 |
+
"<SPECIAL_811>",
|
| 821 |
+
"<SPECIAL_812>",
|
| 822 |
+
"<SPECIAL_813>",
|
| 823 |
+
"<SPECIAL_814>",
|
| 824 |
+
"<SPECIAL_815>",
|
| 825 |
+
"<SPECIAL_816>",
|
| 826 |
+
"<SPECIAL_817>",
|
| 827 |
+
"<SPECIAL_818>",
|
| 828 |
+
"<SPECIAL_819>",
|
| 829 |
+
"<SPECIAL_820>",
|
| 830 |
+
"<SPECIAL_821>",
|
| 831 |
+
"<SPECIAL_822>",
|
| 832 |
+
"<SPECIAL_823>",
|
| 833 |
+
"<SPECIAL_824>",
|
| 834 |
+
"<SPECIAL_825>",
|
| 835 |
+
"<SPECIAL_826>",
|
| 836 |
+
"<SPECIAL_827>",
|
| 837 |
+
"<SPECIAL_828>",
|
| 838 |
+
"<SPECIAL_829>",
|
| 839 |
+
"<SPECIAL_830>",
|
| 840 |
+
"<SPECIAL_831>",
|
| 841 |
+
"<SPECIAL_832>",
|
| 842 |
+
"<SPECIAL_833>",
|
| 843 |
+
"<SPECIAL_834>",
|
| 844 |
+
"<SPECIAL_835>",
|
| 845 |
+
"<SPECIAL_836>",
|
| 846 |
+
"<SPECIAL_837>",
|
| 847 |
+
"<SPECIAL_838>",
|
| 848 |
+
"<SPECIAL_839>",
|
| 849 |
+
"<SPECIAL_840>",
|
| 850 |
+
"<SPECIAL_841>",
|
| 851 |
+
"<SPECIAL_842>",
|
| 852 |
+
"<SPECIAL_843>",
|
| 853 |
+
"<SPECIAL_844>",
|
| 854 |
+
"<SPECIAL_845>",
|
| 855 |
+
"<SPECIAL_846>",
|
| 856 |
+
"<SPECIAL_847>",
|
| 857 |
+
"<SPECIAL_848>",
|
| 858 |
+
"<SPECIAL_849>",
|
| 859 |
+
"<SPECIAL_850>",
|
| 860 |
+
"<SPECIAL_851>",
|
| 861 |
+
"<SPECIAL_852>",
|
| 862 |
+
"<SPECIAL_853>",
|
| 863 |
+
"<SPECIAL_854>",
|
| 864 |
+
"<SPECIAL_855>",
|
| 865 |
+
"<SPECIAL_856>",
|
| 866 |
+
"<SPECIAL_857>",
|
| 867 |
+
"<SPECIAL_858>",
|
| 868 |
+
"<SPECIAL_859>",
|
| 869 |
+
"<SPECIAL_860>",
|
| 870 |
+
"<SPECIAL_861>",
|
| 871 |
+
"<SPECIAL_862>",
|
| 872 |
+
"<SPECIAL_863>",
|
| 873 |
+
"<SPECIAL_864>",
|
| 874 |
+
"<SPECIAL_865>",
|
| 875 |
+
"<SPECIAL_866>",
|
| 876 |
+
"<SPECIAL_867>",
|
| 877 |
+
"<SPECIAL_868>",
|
| 878 |
+
"<SPECIAL_869>",
|
| 879 |
+
"<SPECIAL_870>",
|
| 880 |
+
"<SPECIAL_871>",
|
| 881 |
+
"<SPECIAL_872>",
|
| 882 |
+
"<SPECIAL_873>",
|
| 883 |
+
"<SPECIAL_874>",
|
| 884 |
+
"<SPECIAL_875>",
|
| 885 |
+
"<SPECIAL_876>",
|
| 886 |
+
"<SPECIAL_877>",
|
| 887 |
+
"<SPECIAL_878>",
|
| 888 |
+
"<SPECIAL_879>",
|
| 889 |
+
"<SPECIAL_880>",
|
| 890 |
+
"<SPECIAL_881>",
|
| 891 |
+
"<SPECIAL_882>",
|
| 892 |
+
"<SPECIAL_883>",
|
| 893 |
+
"<SPECIAL_884>",
|
| 894 |
+
"<SPECIAL_885>",
|
| 895 |
+
"<SPECIAL_886>",
|
| 896 |
+
"<SPECIAL_887>",
|
| 897 |
+
"<SPECIAL_888>",
|
| 898 |
+
"<SPECIAL_889>",
|
| 899 |
+
"<SPECIAL_890>",
|
| 900 |
+
"<SPECIAL_891>",
|
| 901 |
+
"<SPECIAL_892>",
|
| 902 |
+
"<SPECIAL_893>",
|
| 903 |
+
"<SPECIAL_894>",
|
| 904 |
+
"<SPECIAL_895>",
|
| 905 |
+
"<SPECIAL_896>",
|
| 906 |
+
"<SPECIAL_897>",
|
| 907 |
+
"<SPECIAL_898>",
|
| 908 |
+
"<SPECIAL_899>",
|
| 909 |
+
"<SPECIAL_900>",
|
| 910 |
+
"<SPECIAL_901>",
|
| 911 |
+
"<SPECIAL_902>",
|
| 912 |
+
"<SPECIAL_903>",
|
| 913 |
+
"<SPECIAL_904>",
|
| 914 |
+
"<SPECIAL_905>",
|
| 915 |
+
"<SPECIAL_906>",
|
| 916 |
+
"<SPECIAL_907>",
|
| 917 |
+
"<SPECIAL_908>",
|
| 918 |
+
"<SPECIAL_909>",
|
| 919 |
+
"<SPECIAL_910>",
|
| 920 |
+
"<SPECIAL_911>",
|
| 921 |
+
"<SPECIAL_912>",
|
| 922 |
+
"<SPECIAL_913>",
|
| 923 |
+
"<SPECIAL_914>",
|
| 924 |
+
"<SPECIAL_915>",
|
| 925 |
+
"<SPECIAL_916>",
|
| 926 |
+
"<SPECIAL_917>",
|
| 927 |
+
"<SPECIAL_918>",
|
| 928 |
+
"<SPECIAL_919>",
|
| 929 |
+
"<SPECIAL_920>",
|
| 930 |
+
"<SPECIAL_921>",
|
| 931 |
+
"<SPECIAL_922>",
|
| 932 |
+
"<SPECIAL_923>",
|
| 933 |
+
"<SPECIAL_924>",
|
| 934 |
+
"<SPECIAL_925>",
|
| 935 |
+
"<SPECIAL_926>",
|
| 936 |
+
"<SPECIAL_927>",
|
| 937 |
+
"<SPECIAL_928>",
|
| 938 |
+
"<SPECIAL_929>",
|
| 939 |
+
"<SPECIAL_930>",
|
| 940 |
+
"<SPECIAL_931>",
|
| 941 |
+
"<SPECIAL_932>",
|
| 942 |
+
"<SPECIAL_933>",
|
| 943 |
+
"<SPECIAL_934>",
|
| 944 |
+
"<SPECIAL_935>",
|
| 945 |
+
"<SPECIAL_936>",
|
| 946 |
+
"<SPECIAL_937>",
|
| 947 |
+
"<SPECIAL_938>",
|
| 948 |
+
"<SPECIAL_939>",
|
| 949 |
+
"<SPECIAL_940>",
|
| 950 |
+
"<SPECIAL_941>",
|
| 951 |
+
"<SPECIAL_942>",
|
| 952 |
+
"<SPECIAL_943>",
|
| 953 |
+
"<SPECIAL_944>",
|
| 954 |
+
"<SPECIAL_945>",
|
| 955 |
+
"<SPECIAL_946>",
|
| 956 |
+
"<SPECIAL_947>",
|
| 957 |
+
"<SPECIAL_948>",
|
| 958 |
+
"<SPECIAL_949>",
|
| 959 |
+
"<SPECIAL_950>",
|
| 960 |
+
"<SPECIAL_951>",
|
| 961 |
+
"<SPECIAL_952>",
|
| 962 |
+
"<SPECIAL_953>",
|
| 963 |
+
"<SPECIAL_954>",
|
| 964 |
+
"<SPECIAL_955>",
|
| 965 |
+
"<SPECIAL_956>",
|
| 966 |
+
"<SPECIAL_957>",
|
| 967 |
+
"<SPECIAL_958>",
|
| 968 |
+
"<SPECIAL_959>",
|
| 969 |
+
"<SPECIAL_960>",
|
| 970 |
+
"<SPECIAL_961>",
|
| 971 |
+
"<SPECIAL_962>",
|
| 972 |
+
"<SPECIAL_963>",
|
| 973 |
+
"<SPECIAL_964>",
|
| 974 |
+
"<SPECIAL_965>",
|
| 975 |
+
"<SPECIAL_966>",
|
| 976 |
+
"<SPECIAL_967>",
|
| 977 |
+
"<SPECIAL_968>",
|
| 978 |
+
"<SPECIAL_969>",
|
| 979 |
+
"<SPECIAL_970>",
|
| 980 |
+
"<SPECIAL_971>",
|
| 981 |
+
"<SPECIAL_972>",
|
| 982 |
+
"<SPECIAL_973>",
|
| 983 |
+
"<SPECIAL_974>",
|
| 984 |
+
"<SPECIAL_975>",
|
| 985 |
+
"<SPECIAL_976>",
|
| 986 |
+
"<SPECIAL_977>",
|
| 987 |
+
"<SPECIAL_978>",
|
| 988 |
+
"<SPECIAL_979>",
|
| 989 |
+
"<SPECIAL_980>",
|
| 990 |
+
"<SPECIAL_981>",
|
| 991 |
+
"<SPECIAL_982>",
|
| 992 |
+
"<SPECIAL_983>",
|
| 993 |
+
"<SPECIAL_984>",
|
| 994 |
+
"<SPECIAL_985>",
|
| 995 |
+
"<SPECIAL_986>",
|
| 996 |
+
"<SPECIAL_987>",
|
| 997 |
+
"<SPECIAL_988>",
|
| 998 |
+
"<SPECIAL_989>",
|
| 999 |
+
"<SPECIAL_990>",
|
| 1000 |
+
"<SPECIAL_991>",
|
| 1001 |
+
"<SPECIAL_992>",
|
| 1002 |
+
"<SPECIAL_993>",
|
| 1003 |
+
"<SPECIAL_994>",
|
| 1004 |
+
"<SPECIAL_995>",
|
| 1005 |
+
"<SPECIAL_996>",
|
| 1006 |
+
"<SPECIAL_997>",
|
| 1007 |
+
"<SPECIAL_998>",
|
| 1008 |
+
"<SPECIAL_999>"
|
| 1009 |
+
]
|
| 1010 |
+
}
|