Upload base_early
Browse filesFiles changed (15)
- LICENSEAdded+210
- LICENSE_LFMAdded+71
- README.mdAdded+159
- assets/loops.pngAdded
- config.jsonAdded+62
- model.safetensorsAdded+3
- modeling_loopmm.pyAdded+584
- onnx/coda.onnxAdded+3
- onnx/core.onnxAdded+3
- onnx/meta.jsonAdded+77
- onnx/prelude.onnxAdded+3
- onnx/stem.onnxAdded+3
- special_tokens_map.jsonAdded+27
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+4088
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210loopmm license summary
- Model weights (model.safetensors and the weights inside onnx/*.onnx): Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0), https://creativecommons.org/licenses/by-nc/4.0/legalcode- Model code (modeling_loopmm.py): Apache License 2.0, full text below.- Tokenizer files (tokenizer.json, tokenizer_config.json, special_tokens_map.json): Liquid AI, LFM Open License v1.0, see LICENSE_LFM.
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071LFM Open License v1.0
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by this document.
"Licensor" shall mean Liquid AI, Inc.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
"Commercial Use" shall mean any use of the Work for direct or indirect commercial advantage or monetary compensation.
"Qualified Non-Profit Organization" shall mean a Legal Entity that is organized and operated exclusively for religious, charitable, scientific, testing for public safety, literary, or educational purposes, and which is exempt from federal income tax under Section 501(c)(3) of the United States Internal Revenue Code of 1986, as amended, or any equivalent non-profit or charitable organization in a foreign jurisdiction.
"Non-Commercial or Research Purposes" shall mean purposes that do not involve any use of the Work or a Derivative Work for Commercial Use.
"Threshold" shall mean annual revenue of 10 million United States dollars ($10,000,000) or more.
2. Grant of Copyright License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Commercial Use Limitation.
(a) The rights granted under this License for Commercial Use are conditioned upon You or Your Legal Entity not exceeding the Threshold.
(b) Any Commercial Use of the Work or a Derivative Work by a Legal Entity that exceeds the Threshold is not licensed under this Agreement.
(c) The Threshold shall not apply to a Qualified Non-Profit Organization's use of the Work or a Derivative Work for Non-Commercial or Research Purposes.
6. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
7. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except for the reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
8. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
9. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
10. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
11. Termination. This License will terminate automatically and immediately if You fail to comply with any of its terms and conditions. Upon termination, You must cease all use of the Work and any Derivative Works and delete all copies in Your possession.
END OF TERMS AND CONDITIONS123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159---license: cc-by-nc-4.0language:- enpipeline_tag: image-text-to-textlibrary_name: pytorchtags:- looped- multimodal- early-fusion- lfm3-style- base-model- onnx- small-modeldatasets:- openbmb/Ultra-FineWeb- mlfoundations/dclm-baseline-1.0- common-pile/stackv2_edu_filtered- HuggingFaceFW/finepdfs-edu- HuggingFaceTB/finemath- HuggingFaceFW/finewiki- pixparse/pdfa-eng-wds- mlfoundations/MINT-1T-ArXiv- google/docci---
# loopmm base
> **Early checkpoint.** These weights come from step 500 of 8,869 (0.5B of the 9.3B tokens) of the training run, so they are still weak. The final weights will replace them when the run ends, around 10:30 UTC on 23 November 2026.
loopmm is a small language model that takes images and text as input. It has 189M parameters. Its 12 middle layers run three times for each token. It was trained from scratch on 9.3B tokens of text and image-text data.
This repo holds the pretrained base model. It continues text and writes captions for images, but it does not follow instructions. A chat version will be published later today.
**Try it:** [the playground Space](https://huggingface.co/spaces/MostLime/loopmm-playground) runs the model in your browser. [The Mac app](https://github.com/Mostlime12195/loopmm-app/releases/latest) runs it offline.
loopmm uses the LFM3 layer layout, but it is not a Liquid AI model. It contains none of Liquid AI's weights. All of the weights were trained from random init.
## Architecture
- **Layers.** 24 layers in the LFM3 order. There are 13 gated short-conv layers (kernel 7), 6 global attention layers and 5 sliding-window attention layers (window 256). The width is 640. Attention has 5 query heads and 1 key/value head of size 128, with QK RMSNorm, a sigmoid output gate for each head and a learned attention sink. Every operator and every MLP has an RMSNorm before it and after it. The MLP is SwiGLU with a hidden size of 2432.- **Loop.** Layers 0 to 5 run once. Layers 6 to 17 (the core) run 3 times with the same weights. Layers 18 to 23 run once at the end. So each token goes through 48 layers, but the model stores only 24. Each pass through the core starts from the output of layers 0 to 5. From the second pass on, a gate mixes in a summary of the previous pass (the "start" variant of the Inkling 2 Mini message gate). Each pass has its own key/value cache.- **No residual stream.** The model uses Block AttnRes ([arXiv 2603.15031](https://arxiv.org/abs/2603.15031)). The input of each sublayer is a learned softmax mix of the token embedding, the sums of earlier blocks of 6 sublayers, and the sum of the current block so far.- **Images.** There is no vision encoder. An image is resized so that it fits in at most 256 tokens of 32 x 32 pixels (576 in the late phases of training). A small MLP turns each patch into a token. Each row of patches ends with a row-end token. Tokens of the same image attend to each other in both directions. Everything else is causal.- **Tokenizer.** The LFM2-VL tokenizer from Liquid AI (65,536 tokens), unchanged. Input and output embeddings are tied.- **Size.** 188.7M parameters: 41.9M in the embedding, 2.2M in the image stem, 144.3M in the 24 layers (71.8M of them in the looped core) and 0.3M in the AttnRes queries and the loop gate. With 3 passes, each token uses 288M layer parameters.
## Training data
The model saw 9.3B tokens. About half of them come from text-only documents and half from documents with images. About a quarter of all tokens are image patches. The loss is computed on text tokens only.
Text-only data:- Web: [Ultra-FineWeb](https://huggingface.co/datasets/openbmb/Ultra-FineWeb) (English) and [DCLM baseline](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0)- Code: [Stack-Edu](https://huggingface.co/datasets/common-pile/stackv2_edu_filtered) (the Common Pile copy, openly licensed repos only)- PDFs: [FinePDFs-Edu](https://huggingface.co/datasets/HuggingFaceFW/finepdfs-edu) and [FinePDFs](https://huggingface.co/datasets/HuggingFaceFW/finepdfs)- Math: [FineMath](https://huggingface.co/datasets/HuggingFaceTB/finemath) and [MegaMath-Web-Pro](https://huggingface.co/datasets/LLM360/MegaMath)- Wikipedia: [FineWiki](https://huggingface.co/datasets/HuggingFaceFW/finewiki) (English)- STEM web pages from [EssentialWeb](https://huggingface.co/datasets/EssentialAI/eai-taxonomy-stem-w-dclm)- Long documents for the long-context phases: arXiv papers and pre-1929 books from the [Common Pile](https://huggingface.co/common-pile)
Image-text data:- Image-caption pairs: [i1](https://huggingface.co/zlab-princeton) (ImageNet-22k, Places365, iNaturalist, Pexels and rendered text), [BLIP3o long captions](https://huggingface.co/datasets/BLIP3o/BLIP3o-Pretrain-Long-Caption), [PixelProse](https://huggingface.co/datasets/pixelprose/pixelprose-shards) and [DOCCI](https://huggingface.co/datasets/google/docci)- Web pages with images: OBELICS (a high-quality 5M subset) and MMC4- Documents as page images with their text: [PDFA](https://huggingface.co/datasets/pixparse/pdfa-eng-wds) and [MINT-1T arXiv](https://huggingface.co/datasets/mlfoundations/MINT-1T-ArXiv)
## Training
- 9.3B tokens, 2^20 (about 1M) tokens per step.- Phases. 7.9B tokens at a context of 4,096 with a flat learning rate (after a 1,000-step warmup). Then the learning rate decays to 0 over the last 15% of the tokens: 0.84B tokens at 4k on higher-quality data, 0.42B at 32k and 0.14B at 64k.- Optimizer. Muon for the matrices inside the layers, and AdamW for the embedding, the image stem, the norms, the conv kernels, the AttnRes queries and the gate. Peak learning rate 2e-3, weight decay 0.1, gradient clipping at 1.0, bf16.- Hardware. One node of 8 B200 GPUs on Modal for about 2.5 hours.
## Results
The full evals come with the final weights. At step 500, the validation loss is 3.993 on Ultra-FineWeb text (8,192 tokens). On 8 DOCCI image descriptions it is 3.161 with the image and 3.234 without it. So the model already uses the image a little.
## Loop count
The model was trained with 3 passes through the core, but it can run with any number. At step 500, the text loss is 4.046 at 1 loop, 3.995 at 2 loops, 3.993 at 3 loops, 3.992 at 4 loops, 3.992 at 6 loops. So one pass costs about 0.05 in loss, and passes beyond 3 change nothing yet. This section will be updated with the final weights.

## How to run
### In the browser or on a Mac
- [Playground Space](https://huggingface.co/spaces/MostLime/loopmm-playground): runs in your browser, nothing is sent to a server.- [Mac app](https://github.com/Mostlime12195/loopmm-app/releases/latest): works offline after the download.
### PyTorch
You need `torch`, `safetensors`, `tokenizers`, `huggingface_hub` and `pillow`. The model code is one plain PyTorch file, `modeling_loopmm.py`. It does not need flash-attn.
```bashpip install torch safetensors tokenizers huggingface_hub pillowhf download MostLime/loopmm-base --local-dir loopmm-base --exclude "onnx/*"python loopmm-base/modeling_loopmm.py loopmm-base "The best way to learn a new language is"```
From Python:
```pythonimport syssys.path.insert(0, "loopmm-base")from modeling_loopmm import LoopMM
model, tok = LoopMM.from_pretrained("loopmm-base")print(model.complete(tok, "The best way to learn a new language is", max_new_tokens=40))print(model.complete(tok, "A photo of", image="cat.jpg", max_new_tokens=40)) # the image comes firstprint(model.complete(tok, "Photosynthesis is", n_loops=1)) # run the core once```
With transformers:
```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizermodel = AutoModelForCausalLM.from_pretrained("MostLime/loopmm-base", trust_remote_code=True)tok = AutoTokenizer.from_pretrained("MostLime/loopmm-base", trust_remote_code=True)print(model.complete(tok, "The best way to learn a new language is", max_new_tokens=40))```
`model(input_ids)` returns logits for every position. Generation goes through `complete()` and `generate_from()`, which keep a cache, so each new token costs one step. `transformers`' own `generate()` is not supported. Put token id 1 (`<|startoftext|>`) before your text; `complete()` does this for you.
The release code gives the same logits as the training code (largest difference 1e-5 in fp32, at 1, 2, 3, 4 and 6 loops).
### ONNX
`onnx/` holds four graphs with int8 weights. The Space and the Mac app use them with onnxruntime-web.
- `stem.onnx`: image patches to embeddings- `prelude.onnx`: layers 0 to 5- `core.onnx`: layers 6 to 17. Run it once per loop, and keep a separate cache for each loop.- `coda.onnx`: layers 18 to 23 and the output head
`onnx/meta.json` lists the inputs of each graph. The `engine.js` file of the Space shows how to call them. int8 costs little quality. On validation text, the loss goes from 4.629 (fp32) to 4.637 (int8). The four files take 241 MB.
## Limitations
- It is a small model, and it was trained on only 9.3B tokens. Its output often contains false facts and repeats itself.- It is a base model with no instruction tuning and no safety tuning.- Most of the training data is in English.- Its image skills are basic. Its captions name the main content of a photo, but they often get details, counts and text in the image wrong.- The model saw contexts longer than 4k tokens only at the end of training (0.56B tokens at 32k and 64k).
## Licenses
- **Weights**: CC BY-NC 4.0 (non-commercial). Some of the image data allows only non-commercial research use. This applies to SA-1B and JourneyDB images in the BLIP3o data, to ImageNet-22k and Places365 in i1, and to part of iNaturalist. So the weights are released for non-commercial use only.- **Model code** (`modeling_loopmm.py`) and the ONNX export code: Apache 2.0.- **Tokenizer files**: these are Liquid AI's files under the LFM Open License v1.0 (`LICENSE_LFM`). You need the tokenizer to use the model, so its terms also apply to you. It is close to Apache 2.0, but commercial use is not licensed for an organization with annual revenue of $10M or more.- **Training data**: each dataset has its own license, mostly ODC-By, CC BY and Apache 2.0. Wikipedia text is CC BY-SA. Images and PDFs from the web belong to their owners, and Common Crawl's terms of use apply to the data taken from it.- "LFM" and "Liquid" are names of Liquid AI. This model is not made, checked or endorsed by Liquid AI.
## Files
- `model.safetensors`: weights, fp32- `config.json`: model settings- `modeling_loopmm.py`: model code (plain PyTorch, plus a transformers wrapper)- `tokenizer.json`, `tokenizer_config.json`, `special_tokens_map.json`: the LFM2-VL tokenizer, unchanged, from [LiquidAI/LFM2-VL-450M](https://huggingface.co/LiquidAI/LFM2-VL-450M)- `onnx/`: int8 ONNX graphs and `meta.json`1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ "architectures": [ "LoopMMForCausalLM" ], "model_type": "loopmm", "auto_map": { "AutoConfig": "modeling_loopmm.LoopMMHFConfig", "AutoModelForCausalLM": "modeling_loopmm.LoopMMForCausalLM" }, "vocab_size": 65536, "hidden_size": 640, "layer_types": [ "conv", "conv", "full", "conv", "swa", "conv", "full", "conv", "swa", "conv", "full", "conv", "swa", "conv", "full", "conv", "swa", "conv", "full", "conv", "swa", "conv", "full", "conv" ], "num_attention_heads": 5, "num_key_value_heads": 1, "head_dim": 128, "intermediate_size": 2432, "conv_kernel": 7, "sliding_window": 256, "global_rope_theta": 1000000.0, "global_partial_rotary_factor": 0.5, "swa_rope_theta": 10000.0, "rms_norm_eps": 1e-05, "prelude_layers": 6, "core_layers": 12, "num_loops": 3, "message_mode": "start", "gate_rank": 64, "attnres_block": 6, "patch_size": 32, "max_grid": 64, "image_bidirectional": true, "attention_sink": true, "max_image_tokens": 256, "bos_token_id": 1, "tie_word_embeddings": true, "torch_dtype": "float32"}123version https://git-lfs.github.com/spec/v1oid sha256:adbefb9df36cb6660e43ffb69e863cfca24f4ff186700505f3a0c3504183ee69size 754789964123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584"""loopmm: a small looped, natively multimodal language model, in plain PyTorch.
Needs torch, safetensors and tokenizers (pillow for images, huggingface_hub to download). Runs on CPU or GPU.
from modeling_loopmm import LoopMM model, tok = LoopMM.from_pretrained("MostLime/loopmm-base") print(model.complete(tok, "The best way to learn a new language is", max_new_tokens=30))
It also loads through transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained("MostLime/loopmm-base", trust_remote_code=True)
Layout: 24 layers in the LFM3 order (c = gated short conv, G = global attention, S = sliding-window attention): prelude layers 0-5 c c G c S c run once core layers 6-17 G c S c G c S c G c S c run n_loops times (3 by default) with the same weights coda layers 18-23 S c G c S c ... (the rest) run onceThere is no running residual sum. Each sublayer reads a softmax mix over earlier "blocks" (Block AttnRes,arXiv 2603.15031): the token embedding, the sums of finished blocks of 6 sublayers, and the current block so far.Core pass r >= 2 starts from a gated mix of pass r-1's blocks. Images enter as raw 32 x 32 pixel patches througha small MLP stem; there is no separate vision encoder."""import jsonimport mathimport osfrom dataclasses import dataclass, field, fields, asdict
import torchimport torch.nn as nnimport torch.nn.functional as F
LAYER_TYPES = ['conv', 'conv', 'full', 'conv', 'swa', 'conv', 'full', 'conv', 'swa', 'conv', 'full', 'conv', 'swa', 'conv', 'full', 'conv', 'swa', 'conv', 'full', 'conv', 'swa', 'conv', 'full', 'conv']BOS, EOS, IM_START, IM_END = 1, 2, 6, 7IMG_NEWLINE, IMG_PATCH, IMG_START, IMG_END = 395, 396, 498, 499PIX_MEAN = (0.48145466, 0.4578275, 0.40821073)PIX_STD = (0.26862954, 0.26130258, 0.27577711)
@dataclassclass LoopMMConfig: vocab_size: int = 65536 hidden_size: int = 640 layer_types: list = field(default_factory=lambda: list(LAYER_TYPES)) num_attention_heads: int = 5 num_key_value_heads: int = 1 head_dim: int = 128 intermediate_size: int = 2432 conv_kernel: int = 7 sliding_window: int = 256 global_rope_theta: float = 1e6 global_partial_rotary_factor: float = 0.5 swa_rope_theta: float = 1e4 rms_norm_eps: float = 1e-5 prelude_layers: int = 6 core_layers: int = 12 num_loops: int = 3 message_mode: str = 'start' # 'start': gated message from the previous pass into the pass start; 'none' gate_rank: int = 64 attnres_block: int = 6 # sublayers per AttnRes block patch_size: int = 32 max_grid: int = 64 image_bidirectional: bool = True attention_sink: bool = True max_image_tokens: int = 256 bos_token_id: int = BOS
@classmethod def from_dict(cls, d): names = {f.name for f in fields(cls)} return cls(**{k: v for k, v in d.items() if k in names})
@classmethod def from_train_cfg(cls, d): """Map the training code's config (loopmm model.Cfg) to this one.""" assert d.get('msg_mode', 'start') in ('start', 'none'), d.get('msg_mode') assert d.get('attnres', True) return cls(vocab_size=d['vocab'], hidden_size=d['d'], layer_types=list(d['layer_types']), num_attention_heads=d['n_heads'], num_key_value_heads=d['n_kv'], head_dim=d['head_dim'], intermediate_size=d['ff'], conv_kernel=d['conv_k'], sliding_window=d['window'], global_rope_theta=d['full_theta'], global_partial_rotary_factor=d['full_partial'], swa_rope_theta=d['swa_theta'], rms_norm_eps=d['eps'], prelude_layers=d['prelude'], core_layers=d['core'], num_loops=d['n_loops'], message_mode=d['msg_mode'], gate_rank=d['gate_rank'], attnres_block=d['ar_block'], patch_size=d['patch'], max_grid=d['max_grid'], image_bidirectional=d['img_bidir'], attention_sink=d.get('attn_sink', 'none') == 'logit')
# ----------------------------------------------------------------------------- piecesdef rms(x, eps=1e-5): x = x.float() return x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + eps)
class RMSNorm(nn.Module): def __init__(self, d, eps): super().__init__() self.eps = eps self.weight = nn.Parameter(torch.ones(d))
def forward(self, x): return (self.weight.float() * rms(x, self.eps)).to(x.dtype)
def rope_inv_freq(head_dim, theta, partial): """The first partial * head_dim / 2 frequencies of the usual progression; the rest are 0 (not rotated).""" n = int(partial * head_dim) // 2 inv = 1.0 / (theta ** (torch.arange(0, 2 * n, 2, dtype=torch.float) / head_dim)) return torch.cat([inv, torch.zeros(head_dim // 2 - n)])
def apply_rope(x, pos, inv_freq): """x [B, T, H, D], pos [T] absolute positions. rotate_half convention, fp32 math.""" f = pos.float()[:, None] * inv_freq.to(x.device)[None] e = torch.cat([f, f], -1) cos, sin = e.cos()[None, :, None], e.sin()[None, :, None] xf = x.float() x1, x2 = xf.chunk(2, -1) return (xf * cos + torch.cat([-x2, x1], -1) * sin).to(x.dtype)
def attn_mask(q_pos, k_pos, img_q, img_k, window, bidir): """[B, Tq, Tk] bool. Keys: not after the query (or same image when bidir), not an empty slot (pos < 0), and within the window when window > 0.""" m = (k_pos[None, :] <= q_pos[:, None])[None] if bidir: m = m | ((img_q[:, :, None] == img_k[:, None, :]) & (img_q[:, :, None] > 0)) m = m & (k_pos >= 0)[None, None, :] if window: m = m & ((q_pos[:, None] - k_pos[None, :]).abs() < window)[None] return m
class Attention(nn.Module): """GQA, QK RMSNorm, RoPE, a sigmoid output gate per head, and an optional learned sink logit per head.""" def __init__(self, c: LoopMMConfig, kind): super().__init__() self.c, self.kind = c, kind H, Hk, D, d = c.num_attention_heads, c.num_key_value_heads, c.head_dim, c.hidden_size self.q_proj = nn.Linear(d, H * D, bias=False) self.k_proj = nn.Linear(d, Hk * D, bias=False) self.v_proj = nn.Linear(d, Hk * D, bias=False) self.o_proj = nn.Linear(H * D, d, bias=False) self.q_norm = RMSNorm(D, c.rms_norm_eps) self.k_norm = RMSNorm(D, c.rms_norm_eps) self.gate_proj = nn.Linear(d, H, bias=False) self.sink = nn.Parameter(torch.zeros(H)) if c.attention_sink else None self.window = c.sliding_window if kind == 'swa' else 0 if kind == 'full': self.rope = (c.global_rope_theta, c.global_partial_rotary_factor) else: self.rope = (c.swa_rope_theta, 1.0)
def forward(self, x, pos, img, past=None): """x [B, T, d]; pos [T]; img [B, T] image id of each new token (0 = text); past = (k, v, k_pos) with k/v [B, P, Hk, D] and k_pos [P], or None. Returns (out, (k, v, k_pos)) including the new tokens.""" c = self.c B, T, _ = x.shape H, Hk, D = c.num_attention_heads, c.num_key_value_heads, c.head_dim inv = rope_inv_freq(D, *self.rope) q = apply_rope(self.q_norm(self.q_proj(x).view(B, T, H, D)), pos, inv) k = apply_rope(self.k_norm(self.k_proj(x).view(B, T, Hk, D)), pos, inv) v = self.v_proj(x).view(B, T, Hk, D) if past is not None: pk, pv, ppos = past k, v = torch.cat([pk, k], 1), torch.cat([pv, v], 1) k_pos = torch.cat([ppos, pos]) img_k = torch.cat([torch.zeros(B, pk.shape[1], dtype=img.dtype, device=img.device), img], 1) else: k_pos, img_k = pos, img mask = attn_mask(pos, k_pos, img, img_k, self.window, c.image_bidirectional) rep = H // Hk qt = q.transpose(1, 2).float() kt = k.repeat_interleave(rep, 2).transpose(1, 2).float() vt = v.repeat_interleave(rep, 2).transpose(1, 2).float() s = (qt @ kt.transpose(-1, -2)) / math.sqrt(D) s = s.masked_fill(~mask[:, None], float('-inf')) if self.sink is not None: # one more softmax column per head with logit sink[h] and no value col = self.sink.float()[None, :, None, None].expand(B, H, T, 1) p = torch.cat([s, col], -1).softmax(-1)[..., :-1] else: p = s.softmax(-1) o = (p @ vt).transpose(1, 2).to(x.dtype) # [B, T, H, D] o = o * torch.sigmoid(self.gate_proj(x)).unsqueeze(-1).to(o.dtype) return self.o_proj(o.reshape(B, T, H * D)), (k, v, k_pos)
class ShortConv(nn.Module): """Gated short conv (LFM2/LFM3): (b, c, x) = in_proj(h); y = b * x; z = causal depthwise conv(y); out_proj(c * z). The state is the last K-1 values of y (zeros at the start of a sequence).""" def __init__(self, c: LoopMMConfig): super().__init__() self.c = c d = c.hidden_size self.in_proj = nn.Linear(d, 3 * d, bias=False) self.conv_w = nn.Parameter(torch.zeros(d, c.conv_kernel)) self.out_proj = nn.Linear(d, d, bias=False)
def forward(self, x, pos=None, img=None, past=None): B, T, d = x.shape K = self.c.conv_kernel b, cg, xx = self.in_proj(x).chunk(3, -1) y = (b * xx).float() if past is None: past = torch.zeros(B, K - 1, d, dtype=y.dtype, device=y.device) full = torch.cat([past.float(), y], 1) # [B, K-1+T, d] w = self.conv_w.float() z = full[:, 0:T] * w[:, 0] for i in range(1, K): z = z + full[:, i:i + T] * w[:, i] return self.out_proj((cg.float() * z).to(x.dtype)), full[:, T:]
class MLP(nn.Module): def __init__(self, c: LoopMMConfig): super().__init__() self.w13 = nn.Linear(c.hidden_size, 2 * c.intermediate_size, bias=False) self.w2 = nn.Linear(c.intermediate_size, c.hidden_size, bias=False)
def forward(self, x, pos=None, img=None, past=None): a, b = self.w13(x).chunk(2, -1) return self.w2(F.silu(a) * b), None
class Sub(nn.Module): """One sublayer: RMSNorm -> operator -> RMSNorm (sandwich norm). Returns (v, new state).""" def __init__(self, op, c: LoopMMConfig): super().__init__() self.pre = RMSNorm(c.hidden_size, c.rms_norm_eps) self.op = op self.post = RMSNorm(c.hidden_size, c.rms_norm_eps)
def forward(self, h, pos, img, past=None): y, st = self.op(self.pre(h), pos, img, past) return self.post(y), st
class Gate(nn.Module): """Message gate: u = W_down [rms(x), rms(m)]; x' = (1 - tanh(W_forget u)) x + tanh(W_gain u) m.""" def __init__(self, d, r): super().__init__() self.down = nn.Linear(2 * d, r, bias=False) self.gain = nn.Linear(r, d, bias=False) self.forget = nn.Linear(r, d, bias=False)
def forward(self, x, m): u = self.down(torch.cat([rms(x), rms(m)], -1).to(self.down.weight.dtype)) g = torch.tanh(self.gain(u).float()) f = torch.tanh(self.forget(u).float()) return ((1 - f) * x.float() + g * m.float()).to(x.dtype)
class PatchStem(nn.Module): """Raw pixels -> image token embeddings. One token = 32 x 32 pixels = 2 x 2 sub-patches of 16 x 16. Each sub-patch: Linear -> RMSNorm -> GELU; a second Linear joins the four; then row/col embeddings and RMSNorm.""" def __init__(self, c: LoopMMConfig): super().__init__() q = c.patch_size // 2 self.q, d = q, c.hidden_size self.lin1 = nn.Linear(3 * q * q, d, bias=True) self.norm1 = RMSNorm(d, c.rms_norm_eps) self.lin2 = nn.Linear(4 * d, d, bias=True) self.row = nn.Parameter(torch.zeros(c.max_grid, d)) self.col = nn.Parameter(torch.zeros(c.max_grid, d)) self.norm = RMSNorm(d, c.rms_norm_eps)
def forward(self, pix, rc): """pix [M, p, p, 3] uint8 (or float in 0..255); rc [M, 2] row/col of each token in its image grid.""" M, q = pix.shape[0], self.q x = pix.float() / 255.0 x = (x - torch.tensor(PIX_MEAN, device=x.device)) / torch.tensor(PIX_STD, device=x.device) x = x.reshape(M, 2, q, 2, q, 3).permute(0, 1, 3, 2, 4, 5).reshape(M, 4, 3 * q * q) h = F.gelu(self.norm1(self.lin1(x.to(self.lin1.weight.dtype)))) e = self.lin2(h.reshape(M, -1)) + self.row[rc[:, 0]] + self.col[rc[:, 1]] return self.norm(e)
def ar_mix(vals, q): """Block AttnRes: softmax over sources of rms(v_i) . q, then the weighted sum of the v_i.""" if len(vals) == 1: return vals[0] logits = torch.stack([(rms(v) * q.float()).sum(-1) for v in vals], 0) a = logits.softmax(0) h = a[0, ..., None] * vals[0].float() for i in range(1, len(vals)): h = h + a[i, ..., None] * vals[i].float() return h.to(vals[0].dtype)
# ----------------------------------------------------------------------------- image helpersdef image_grid(h, w, max_tokens=256, p=32, min_tokens=16, max_side=64): """Grid (rows, cols) of 32 x 32 tokens for an h x w image: keep the aspect ratio, at most max_tokens.""" native = (h / p) * (w / p) target = min(max_tokens, max(native, min_tokens)) s = math.sqrt(target / native) gh, gw = max(1, round(h / p * s)), max(1, round(w / p * s)) gh, gw = min(gh, max_side), min(gw, max_side) while gh * gw > max_tokens: if gh >= gw: gh -= 1 else: gw -= 1 return gh, gw
def image_span(gh, gw): """Token ids of one image: <|image_start|> ([<image>] * gw + <newline slot>) * gh <|image_end|>.""" return [IMG_START] + ([IMG_PATCH] * gw + [IMG_NEWLINE]) * gh + [IMG_END]
def load_image(image, max_tokens=256, p=32): """PIL image or path -> (pix [gh*gw, p, p, 3] uint8, rc [gh*gw, 2], gh, gw).""" from PIL import Image import numpy as np im = Image.open(image) if isinstance(image, (str, os.PathLike)) else image im = im.convert('RGB') gh, gw = image_grid(im.height, im.width, max_tokens, p) a = np.asarray(im.resize((gw * p, gh * p), Image.BICUBIC)).copy() pix = torch.from_numpy(a).view(gh, p, gw, p, 3).permute(0, 2, 1, 3, 4).reshape(gh * gw, p, p, 3) r = torch.arange(gh).repeat_interleave(gw) c = torch.arange(gw).repeat(gh) return pix, torch.stack([r, c], 1), gh, gw
# ----------------------------------------------------------------------------- modelclass Cache: """Per-sublayer states, keyed by part ('pre', 'core0', 'core1', ..., 'coda') and sublayer index. Each core pass keeps its own key/value cache and conv state.""" def __init__(self): self.parts, self.n = {}, 0
def part(self, tag): return self.parts.setdefault(tag, {})
class _LoopMMBody: """Modules and math shared by the plain model (LoopMM) and the transformers wrapper (LoopMMForCausalLM).""" def _build(self, c: LoopMMConfig): self.cfg = c d = c.hidden_size self.emb = nn.Embedding(c.vocab_size, d) subs = [] for t in c.layer_types: subs.append(Sub(ShortConv(c) if t == 'conv' else Attention(c, t), c)) subs.append(Sub(MLP(c), c)) self.subs = nn.ModuleList(subs) self.ar_q = nn.Parameter(torch.zeros(len(subs) + 1, d)) if c.message_mode == 'start': self.msg_q = nn.Parameter(torch.zeros(1, d)) self.gates = nn.ModuleList([Gate(d, c.gate_rank)]) self.stem = PatchStem(c) self.norm = RMSNorm(d, c.rms_norm_eps)
# ---- the three parts (also used by the ONNX export) def run_subs(self, j0, j1, srcs, pos, img, states): """Sublayers j0..j1-1 with Block AttnRes. states: {j: past state} (updated in place). Returns the block sums made here (the last may be partial).""" B = self.cfg.attnres_block new, partial = [], None for j in range(j0, j1): if partial is not None and (j - j0) % B == 0: srcs = srcs + [partial] new.append(partial) partial = None h = ar_mix(srcs + ([] if partial is None else [partial]), self.ar_q[j]) v, st = self.subs[j](h, pos, img, states.get(j)) if st is not None: states[j] = st partial = v if partial is None else partial + v new.append(partial) return new
def prelude(self, x, pos, img, states): P = 2 * self.cfg.prelude_layers return [x] + self.run_subs(0, P, [x], pos, img, states)
def core_pass(self, base, bank, pos, img, states): """One core pass. bank: the previous pass's core blocks, or None for the first pass.""" c = self.cfg P, C = 2 * c.prelude_layers, 2 * c.core_layers srcs = base if bank is not None and c.message_mode == 'start': bv = [rms(v).to(v.dtype) for v in bank] m = ar_mix(bv, self.msg_q[0]) srcs = base[:-1] + [self.gates[0](base[-1], m)] return self.run_subs(P, P + C, srcs, pos, img, states)
def coda(self, srcs, pos, img, states): c = self.cfg P, C, S = 2 * c.prelude_layers, 2 * c.core_layers, len(self.subs) out = self.run_subs(P + C, S, srcs, pos, img, states) return self.norm(ar_mix(srcs + out, self.ar_q[S]))
def embed(self, ids, pix=None, rc=None, slot=None): x = self.emb(ids) if pix is None or pix.shape[0] == 0: return x B, T, d = x.shape e = self.stem(pix, rc).to(x.dtype) return x.reshape(B * T, d).index_copy(0, slot, e).view(B, T, d)
def hidden(self, x, pos, img, cache, n_loops=None): c = self.cfg n_loops = n_loops or c.num_loops base = self.prelude(x, pos, img, cache.part('pre')) core = None for r in range(n_loops): core = self.core_pass(base, core, pos, img, cache.part(f'core{r}')) h = self.coda(base + core, pos, img, cache.part('coda')) # sliding-window layers only need the last `window` keys for part in cache.parts.values(): for j, st in part.items(): op = self.subs[j].op if isinstance(op, Attention) and op.window and st[2].shape[0] > op.window: part[j] = (st[0][:, -op.window:], st[1][:, -op.window:], st[2][-op.window:]) return h
def logits_from(self, ids, pix=None, rc=None, slot=None, img=None, cache=None, n_loops=None): """ids [B, T] continue the sequence in `cache` (a new Cache when None). img [B, T]: image id per token (0 = text; patches, row ends and <|image_end|> of one image share an id > 0). pix/rc/slot: image patches, their grid row/col, and their flat index into ids. Returns logits [B, T, V].""" cache = Cache() if cache is None else cache B, T = ids.shape pos = cache.n + torch.arange(T, device=ids.device) if img is None: img = torch.zeros_like(ids) x = self.embed(ids, pix, rc, slot) h = self.hidden(x, pos, img, cache, n_loops) cache.n += T return F.linear(h, self.emb.weight)
# ---- generation def _encode(self, tok, text): e = tok.encode(text, add_special_tokens=False) return list(e.ids) if hasattr(e, 'ids') else list(e)
def _decode(self, tok, ids): return tok.decode(ids, skip_special_tokens=True)
def build_inputs(self, pieces, max_image_tokens=None): """pieces: list of token-id lists and images (PIL or path) in order -> ids, img, pix, rc, slot.""" max_image_tokens = max_image_tokens or self.cfg.max_image_tokens ids, img, pix, rc, slot, n_img = [], [], [], [], [], 0 for p in pieces: if isinstance(p, (list, tuple)): ids += list(p); img += [0] * len(p) continue px, r, gh, gw = load_image(p, max_image_tokens, self.cfg.patch_size) n_img += 1 s = len(ids) ids += image_span(gh, gw) img += [0] + [n_img] * (gh * (gw + 1) + 1) pix.append(px); rc.append(r) slot.append(s + 1 + r[:, 0] * (gw + 1) + r[:, 1]) dev = self.emb.weight.device out = dict(ids=torch.tensor([ids], device=dev), img=torch.tensor([img], device=dev)) if pix: out.update(pix=torch.cat(pix).to(dev), rc=torch.cat(rc).to(dev), slot=torch.cat(slot).to(dev)) return out
@torch.no_grad() def generate_from(self, inputs, max_new_tokens=100, temperature=0.7, top_p=0.9, top_k=0, repetition_penalty=1.0, n_loops=None, stop_ids=(EOS, IM_END)): """inputs from build_inputs. Returns the new token ids.""" cache = Cache() logits = self.logits_from(inputs['ids'], inputs.get('pix'), inputs.get('rc'), inputs.get('slot'), inputs['img'], cache, n_loops)[:, -1] out, seen = [], inputs['ids'][0].tolist() for _ in range(max_new_tokens): lg = logits[0].float() if repetition_penalty != 1.0 and seen: idx = torch.tensor(sorted(set(seen)), device=lg.device) v = lg[idx] lg[idx] = torch.where(v > 0, v / repetition_penalty, v * repetition_penalty) if temperature <= 0: nxt = int(lg.argmax()) else: lg = lg / temperature if top_k: kth = lg.topk(top_k).values[-1] lg = lg.masked_fill(lg < kth, float('-inf')) pr = lg.softmax(-1) if top_p < 1.0: sp, si = pr.sort(descending=True) keep = sp.cumsum(0) - sp < top_p pr = torch.zeros_like(pr).scatter(0, si[keep], sp[keep]) nxt = int(torch.multinomial(pr / pr.sum(), 1)) if nxt in stop_ids: break out.append(nxt); seen.append(nxt) ids = torch.tensor([[nxt]], device=self.emb.weight.device) logits = self.logits_from(ids, img=torch.zeros_like(ids), cache=cache, n_loops=n_loops)[:, -1] return out
def complete(self, tok, text, image=None, **kw): """Continue `text` (base-model use). With `image`, the image comes first, then the text.""" pieces = [[BOS]] + ([image] if image is not None else []) + [self._encode(tok, text)] kw.setdefault('stop_ids', (BOS, EOS)) return self._decode(tok, self.generate_from(self.build_inputs(pieces), **kw))
def chat(self, tok, messages, **kw): """messages: [{'role': 'user', 'content': 'text', 'images': [PIL or path, ...]}, ...] (images optional, they go before the text of their message). Uses the ChatML-style template of the chat model.""" pieces = [[BOS]] for m in messages: pieces.append(self._encode(tok, f"<|im_start|>{m['role']}\n")) pieces += list(m.get('images') or []) pieces.append(self._encode(tok, f"{m['content']}<|im_end|>\n")) pieces.append(self._encode(tok, '<|im_start|>assistant\n')) return self._decode(tok, self.generate_from(self.build_inputs(pieces), **kw))
class LoopMM(nn.Module, _LoopMMBody): def __init__(self, config: LoopMMConfig): super().__init__() self.config = config self._build(config)
def forward(self, input_ids, n_loops=None, **image_inputs): return self.logits_from(input_ids, n_loops=n_loops, **image_inputs)
@classmethod def from_pretrained(cls, repo_or_dir="MostLime/loopmm-base", revision=None, device='cpu', dtype=torch.float32): """Returns (model, tokenizer). repo_or_dir: a local folder or a Hugging Face repo id.""" from safetensors.torch import load_file from tokenizers import Tokenizer
def path(name): if os.path.isdir(repo_or_dir): return os.path.join(repo_or_dir, name) from huggingface_hub import hf_hub_download return hf_hub_download(repo_or_dir, name, revision=revision)
cfg = LoopMMConfig.from_dict(json.load(open(path('config.json')))) m = cls(cfg) m.load_state_dict(load_file(path('model.safetensors')), strict=True) return m.to(device=device, dtype=dtype).eval(), Tokenizer.from_file(path('tokenizer.json'))
# ----------------------------------------------------------------------------- transformers wrapper (optional)try: from transformers import PretrainedConfig, PreTrainedModel from transformers.modeling_outputs import CausalLMOutput
class LoopMMHFConfig(PretrainedConfig): model_type = 'loopmm'
def __init__(self, **kw): base = asdict(LoopMMConfig()) for k in list(base): if k in kw: base[k] = kw.pop(k) for k, v in base.items(): setattr(self, k, v) kw.setdefault('tie_word_embeddings', True) super().__init__(**kw)
class LoopMMForCausalLM(PreTrainedModel, _LoopMMBody): config_class = LoopMMHFConfig base_model_prefix = '' _no_split_modules = ['Sub']
def __init__(self, config): super().__init__(config) self._build(LoopMMConfig.from_dict(config.to_dict())) self.post_init()
def _init_weights(self, module): pass # every weight comes from the checkpoint
def get_input_embeddings(self): return self.emb
def forward(self, input_ids=None, labels=None, n_loops=None, pix=None, rc=None, slot=None, img=None, **kw): logits = self.logits_from(input_ids, pix, rc, slot, img, None, n_loops) loss = None if labels is not None: loss = F.cross_entropy(logits[:, :-1].flatten(0, 1).float(), labels[:, 1:].flatten(), ignore_index=-100) return CausalLMOutput(loss=loss, logits=logits)except ImportError: # transformers is optional pass
if __name__ == '__main__': import sys d = sys.argv[1] if len(sys.argv) > 1 else 'MostLime/loopmm-base' model, tok = LoopMM.from_pretrained(d) print(model.complete(tok, sys.argv[2] if len(sys.argv) > 2 else 'The best way to learn a new language is', max_new_tokens=40))123version https://git-lfs.github.com/spec/v1oid sha256:822e4461b6aba693197707a90e206124b0259e6d68292e2d38e1bf3d1493c0f1size 79105998123version https://git-lfs.github.com/spec/v1oid sha256:6d8a0191a9c3b244e65b9ad6331b5f8cd3eb2f0c58e5046b3b33ff73d0de4c14size 736148701234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ "hidden_size": 640, "n_kv": 1, "head_dim": 128, "conv_kernel": 7, "vocab_size": 65536, "num_loops": 3, "patch_size": 32, "max_image_tokens": 256, "bos_token_id": 1, "image_tokens": { "start": 498, "end": 499, "patch": 396, "newline": 395 }, "pixel_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "pixel_std": [ 0.26862954, 0.26130258, 0.27577711 ], "parts": { "pre": { "attn": [ 4, 8 ], "conv": [ 0, 2, 6, 10 ] }, "core": { "attn": [ 12, 16, 20, 24, 28, 32 ], "conv": [ 14, 18, 22, 26, 30, 34 ] }, "coda": { "attn": [ 36, 40, 44 ], "conv": [ 38, 42, 46 ] } }, "file_bytes": { "prelude": 79203055, "core": 73614870, "coda": 79105998, "stem": 8865118 }}123version https://git-lfs.github.com/spec/v1oid sha256:9d4e6b150ee4a252185b7bafe306a2b4ae851cced42a75bf4d3c399940a4c12asize 79203055123version https://git-lfs.github.com/spec/v1oid sha256:eff1bcc7b170ba19182c5dd32b076f709541573c8547df9a71c8d7267e407162size 8865118123456789101112131415161718192021222324252627{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "image_end_token": "<|image_end|>", "image_start_token": "<|image_start|>", "image_thumbnail": "<|img_thumbnail|>", "image_token": "<image>", "pad_token": { "content": "<|pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088{ "add_bos_token": true, "add_eos_token": false, "added_tokens_decoder": { "0": { "content": "<|pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<|startoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<|fim_pre|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "4": { "content": "<|fim_mid|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "5": { "content": "<|fim_suf|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "6": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "7": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "8": { "content": "<|tool_list_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "9": { "content": "<|tool_list_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "10": { "content": "<|tool_call_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "11": { "content": "<|tool_call_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "12": { "content": "<|tool_response_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "13": { "content": "<|tool_response_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "16": { "content": "<|reserved_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "17": { "content": "<|reserved_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "18": { "content": "<|reserved_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "19": { "content": "<|reserved_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "20": { "content": "<|reserved_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "21": { "content": "<|reserved_11|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "22": { "content": "<|reserved_12|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "23": { "content": "<|reserved_13|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "24": { "content": "<|reserved_14|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "25": { "content": "<|reserved_15|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "26": { "content": "<|reserved_16|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "27": { "content": "<|reserved_17|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "28": { "content": "<|reserved_18|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "29": { "content": "<|reserved_19|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "30": { "content": "<|reserved_20|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "31": { "content": "<|reserved_21|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32": { "content": "<|reserved_22|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "33": { "content": "<|reserved_23|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "34": { "content": "<|reserved_24|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "35": { "content": "<|reserved_25|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "36": { "content": "<|reserved_26|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "37": { "content": "<|reserved_27|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "38": { "content": "<|reserved_28|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "39": { "content": "<|reserved_29|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "40": { "content": "<|reserved_30|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "41": { "content": "<|reserved_31|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "42": { "content": "<|reserved_32|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "43": { "content": "<|reserved_33|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "44": { "content": "<|reserved_34|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "45": { "content": "<|reserved_35|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "46": { "content": "<|reserved_36|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "47": { "content": "<|reserved_37|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "48": { "content": "<|reserved_38|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "49": { "content": "<|reserved_39|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "50": { "content": "<|reserved_40|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "51": { "content": "<|reserved_41|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "52": { "content": "<|reserved_42|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "53": { "content": "<|reserved_43|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "54": { "content": "<|reserved_44|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "55": { "content": "<|reserved_45|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "56": { "content": "<|reserved_46|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "57": { "content": "<|reserved_47|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "58": { "content": "<|reserved_48|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "59": { "content": "<|reserved_49|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "60": { "content": "<|reserved_50|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "61": { "content": "<|reserved_51|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "62": { "content": "<|reserved_52|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "63": { "content": "<|reserved_53|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "64": { "content": "<|reserved_54|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "65": { "content": "<|reserved_55|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "66": { "content": "<|reserved_56|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "67": { "content": "<|reserved_57|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "68": { "content": "<|reserved_58|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "69": { "content": "<|reserved_59|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "70": { "content": "<|reserved_60|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "71": { "content": "<|reserved_61|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "72": { "content": "<|reserved_62|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "73": { "content": "<|reserved_63|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "74": { "content": "<|reserved_64|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "75": { "content": "<|reserved_65|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "76": { "content": "<|reserved_66|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "77": { "content": "<|reserved_67|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78": { "content": "<|reserved_68|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "79": { "content": "<|reserved_69|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "80": { "content": "<|reserved_70|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "81": { "content": "<|reserved_71|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "82": { "content": "<|reserved_72|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "83": { "content": "<|reserved_73|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "84": { "content": "<|reserved_74|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "85": { "content": "<|reserved_75|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "86": { "content": "<|reserved_76|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "87": { "content": "<|reserved_77|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "88": { "content": "<|reserved_78|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "89": { "content": "<|reserved_79|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "90": { "content": "<|reserved_80|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "91": { "content": "<|reserved_81|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "92": { "content": "<|reserved_82|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "93": { "content": "<|reserved_83|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "94": { "content": "<|reserved_84|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "95": { "content": "<|reserved_85|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "96": { "content": "<|reserved_86|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "97": { "content": "<|reserved_87|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "98": { "content": "<|reserved_88|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "99": { "content": "<|reserved_89|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "<|reserved_90|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "<|reserved_91|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "<|reserved_92|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "<|reserved_93|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "104": { "content": "<|reserved_94|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "105": { "content": "<|reserved_95|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "106": { "content": "<|reserved_96|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "107": { "content": "<|reserved_97|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "108": { "content": "<|reserved_98|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "109": { "content": "<|reserved_99|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "110": { "content": "<|reserved_100|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "111": { "content": "<|reserved_101|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "112": { "content": "<|reserved_102|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "113": { "content": "<|reserved_103|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "114": { "content": "<|reserved_104|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "115": { "content": "<|reserved_105|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "116": { "content": "<|reserved_106|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "117": { "content": "<|reserved_107|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "118": { "content": "<|reserved_108|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "119": { "content": "<|reserved_109|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "120": { "content": "<|reserved_110|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "121": { "content": "<|reserved_111|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "122": { "content": "<|reserved_112|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "123": { "content": "<|reserved_113|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "124": { "content": "<|reserved_114|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "125": { "content": "<|reserved_115|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "126": { "content": "<|reserved_116|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "127": { "content": "<|reserved_117|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "128": { "content": "<|reserved_118|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "129": { "content": "<|reserved_119|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "130": { "content": "<|reserved_120|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "131": { "content": "<|reserved_121|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "132": { "content": "<|reserved_122|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "133": { "content": "<|reserved_123|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "134": { "content": "<|reserved_124|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "135": { "content": "<|reserved_125|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "136": { "content": "<|reserved_126|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "137": { "content": "<|reserved_127|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "138": { "content": "<|reserved_128|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "139": { "content": "<|reserved_129|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "140": { "content": "<|reserved_130|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "141": { "content": "<|reserved_131|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "142": { "content": "<|reserved_132|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "143": { "content": "<|reserved_133|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "144": { "content": "<|reserved_134|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "145": { "content": "<|reserved_135|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "146": { "content": "<|reserved_136|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "147": { "content": "<|reserved_137|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "148": { "content": "<|reserved_138|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "149": { "content": "<|reserved_139|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "150": { "content": "<|reserved_140|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151": { "content": "<|reserved_141|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "152": { "content": "<|reserved_142|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "153": { "content": "<|reserved_143|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "154": { "content": "<|reserved_144|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "155": { "content": "<|reserved_145|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "156": { "content": "<|reserved_146|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "157": { "content": "<|reserved_147|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "158": { "content": "<|reserved_148|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "159": { "content": "<|reserved_149|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "160": { "content": "<|reserved_150|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "161": { "content": "<|reserved_151|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "162": { "content": "<|reserved_152|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "163": { "content": "<|reserved_153|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "164": { "content": "<|reserved_154|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "165": { "content": "<|reserved_155|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "166": { "content": "<|reserved_156|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "167": { "content": "<|reserved_157|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "168": { "content": "<|reserved_158|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "169": { "content": "<|reserved_159|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "170": { "content": "<|reserved_160|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "171": { "content": "<|reserved_161|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "172": { "content": "<|reserved_162|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "173": { "content": "<|reserved_163|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "174": { "content": "<|reserved_164|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "175": { "content": "<|reserved_165|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "176": { "content": "<|reserved_166|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "177": { "content": "<|reserved_167|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "178": { "content": "<|reserved_168|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "179": { "content": "<|reserved_169|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "180": { "content": "<|reserved_170|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "181": { "content": "<|reserved_171|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "182": { "content": "<|reserved_172|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "183": { "content": "<|reserved_173|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "184": { "content": "<|reserved_174|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "185": { "content": "<|reserved_175|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "186": { "content": "<|reserved_176|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "187": { "content": "<|reserved_177|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "188": { "content": "<|reserved_178|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "189": { "content": "<|reserved_179|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "190": { "content": "<|reserved_180|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "191": { "content": "<|reserved_181|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "192": { "content": "<|reserved_182|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "193": { "content": "<|reserved_183|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "194": { "content": "<|reserved_184|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "195": { "content": "<|reserved_185|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "196": { "content": "<|reserved_186|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "197": { "content": "<|reserved_187|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "198": { "content": "<|reserved_188|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "199": { "content": "<|reserved_189|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "200": { "content": "<|reserved_190|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "201": { "content": "<|reserved_191|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "202": { "content": "<|reserved_192|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "203": { "content": "<|reserved_193|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "204": { "content": "<|reserved_194|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "205": { "content": "<|reserved_195|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "206": { "content": "<|reserved_196|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "207": { "content": "<|reserved_197|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "208": { "content": "<|reserved_198|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "209": { "content": "<|reserved_199|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "210": { "content": "<|reserved_200|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "211": { "content": "<|reserved_201|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "212": { "content": "<|reserved_202|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "213": { "content": "<|reserved_203|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "214": { "content": "<|reserved_204|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "215": { "content": "<|reserved_205|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "216": { "content": "<|reserved_206|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "217": { "content": "<|reserved_207|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "218": { "content": "<|reserved_208|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "219": { "content": "<|reserved_209|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "220": { "content": "<|reserved_210|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "221": { "content": "<|reserved_211|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "222": { "content": "<|reserved_212|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "223": { "content": "<|reserved_213|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "224": { "content": "<|reserved_214|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "225": { "content": "<|reserved_215|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "226": { "content": "<|reserved_216|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "227": { "content": "<|reserved_217|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "228": { "content": "<|reserved_218|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "229": { "content": "<|reserved_219|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "230": { "content": "<|reserved_220|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "231": { "content": "<|reserved_221|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "232": { "content": "<|reserved_222|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "233": { "content": "<|reserved_223|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "234": { "content": "<|reserved_224|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "235": { "content": "<|reserved_225|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "236": { "content": "<|reserved_226|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "237": { "content": "<|reserved_227|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "238": { "content": "<|reserved_228|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "239": { "content": "<|reserved_229|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "240": { "content": "<|reserved_230|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "241": { "content": "<|reserved_231|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "242": { "content": "<|reserved_232|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "243": { "content": "<|reserved_233|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "244": { "content": "<|reserved_234|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "245": { "content": "<|reserved_235|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "246": { "content": "<|reserved_236|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "247": { "content": "<|reserved_237|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248": { "content": "<|reserved_238|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "249": { "content": "<|reserved_239|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "250": { "content": "<|reserved_240|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "251": { "content": "<|reserved_241|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "252": { "content": "<|reserved_242|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "253": { "content": "<|reserved_243|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "254": { "content": "<|reserved_244|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "255": { "content": "<|reserved_245|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "256": { "content": "<|reserved_246|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "257": { "content": "<|reserved_247|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "258": { "content": "<|reserved_248|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "259": { "content": "<|reserved_249|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "260": { "content": "<|reserved_250|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "261": { "content": "<|reserved_251|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "262": { "content": "<|reserved_252|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "263": { "content": "<|reserved_253|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "264": { "content": "<|reserved_254|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "265": { "content": "<|reserved_255|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "266": { "content": "<|reserved_256|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "267": { "content": "<|reserved_257|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "268": { "content": "<|reserved_258|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "269": { "content": "<|reserved_259|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "270": { "content": "<|reserved_260|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "271": { "content": "<|reserved_261|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "272": { "content": "<|reserved_262|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "273": { "content": "<|reserved_263|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "274": { "content": "<|reserved_264|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "275": { "content": "<|reserved_265|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "276": { "content": "<|reserved_266|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "277": { "content": "<|reserved_267|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "278": { "content": "<|reserved_268|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "279": { "content": "<|reserved_269|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "280": { "content": "<|reserved_270|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "281": { "content": "<|reserved_271|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "282": { "content": "<|reserved_272|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "283": { "content": "<|reserved_273|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "284": { "content": "<|reserved_274|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "285": { "content": "<|reserved_275|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "286": { "content": "<|reserved_276|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "287": { "content": "<|reserved_277|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "288": { "content": "<|reserved_278|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "289": { "content": "<|reserved_279|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "290": { "content": "<|reserved_280|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "291": { "content": "<|reserved_281|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "292": { "content": "<|reserved_282|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "293": { "content": "<|reserved_283|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "294": { "content": "<|reserved_284|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "295": { "content": "<|reserved_285|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "296": { "content": "<|reserved_286|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "297": { "content": "<|reserved_287|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "298": { "content": "<|reserved_288|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "299": { "content": "<|reserved_289|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "300": { "content": "<|reserved_290|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "301": { "content": "<|reserved_291|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "302": { "content": "<|reserved_292|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "303": { "content": "<|reserved_293|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "304": { "content": "<|reserved_294|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "305": { "content": "<|reserved_295|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "306": { "content": "<|reserved_296|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "307": { "content": "<|reserved_297|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "308": { "content": "<|reserved_298|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "309": { "content": "<|reserved_299|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "310": { "content": "<|reserved_300|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "311": { "content": "<|reserved_301|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "312": { "content": "<|reserved_302|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "313": { "content": "<|reserved_303|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "314": { "content": "<|reserved_304|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "315": { "content": "<|reserved_305|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "316": { "content": "<|reserved_306|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "317": { "content": "<|reserved_307|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "318": { "content": "<|reserved_308|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "319": { "content": "<|reserved_309|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "320": { "content": "<|reserved_310|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "321": { "content": "<|reserved_311|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "322": { "content": "<|reserved_312|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "323": { "content": "<|reserved_313|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "324": { "content": "<|reserved_314|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "325": { "content": "<|reserved_315|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "326": { "content": "<|reserved_316|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "327": { "content": "<|reserved_317|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "328": { "content": "<|reserved_318|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "329": { "content": "<|reserved_319|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "330": { "content": "<|reserved_320|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "331": { "content": "<|reserved_321|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "332": { "content": "<|reserved_322|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "333": { "content": "<|reserved_323|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "334": { "content": "<|reserved_324|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "335": { "content": "<|reserved_325|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "336": { "content": "<|reserved_326|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "337": { "content": "<|reserved_327|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "338": { "content": "<|reserved_328|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "339": { "content": "<|reserved_329|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "340": { "content": "<|reserved_330|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "341": { "content": "<|reserved_331|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "342": { "content": "<|reserved_332|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "343": { "content": "<|reserved_333|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "344": { "content": "<|reserved_334|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "345": { "content": "<|reserved_335|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "346": { "content": "<|reserved_336|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "347": { "content": "<|reserved_337|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "348": { "content": "<|reserved_338|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "349": { "content": "<|reserved_339|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "350": { "content": "<|reserved_340|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "351": { "content": "<|reserved_341|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "352": { "content": "<|reserved_342|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "353": { "content": "<|reserved_343|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "354": { "content": "<|reserved_344|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "355": { "content": "<|reserved_345|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "356": { "content": "<|reserved_346|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "357": { "content": "<|reserved_347|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "358": { "content": "<|reserved_348|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "359": { "content": "<|reserved_349|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "360": { "content": "<|reserved_350|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "361": { "content": "<|reserved_351|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "362": { "content": "<|reserved_352|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "363": { "content": "<|reserved_353|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "364": { "content": "<|reserved_354|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "365": { "content": "<|reserved_355|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "366": { "content": "<|reserved_356|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "367": { "content": "<|reserved_357|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "368": { "content": "<|reserved_358|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "369": { "content": "<|reserved_359|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "370": { "content": "<|reserved_360|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "371": { "content": "<|reserved_361|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "372": { "content": "<|reserved_362|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "373": { "content": "<|reserved_363|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "374": { "content": "<|reserved_364|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "375": { "content": "<|reserved_365|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "376": { "content": "<|reserved_366|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "377": { "content": "<|reserved_367|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "378": { "content": "<|reserved_368|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "379": { "content": "<|reserved_369|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "380": { "content": "<|reserved_370|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "381": { "content": "<|reserved_371|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "382": { "content": "<|reserved_372|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "383": { "content": "<|reserved_373|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "384": { "content": "<|reserved_374|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "385": { "content": "<|reserved_375|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "386": { "content": "<|reserved_376|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "387": { "content": "<|reserved_377|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "388": { "content": "<|reserved_378|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "389": { "content": "<|reserved_379|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "390": { "content": "<|reserved_380|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "391": { "content": "<|reserved_381|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "392": { "content": "<|reserved_382|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "393": { "content": "<|reserved_383|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "394": { "content": "<|reserved_384|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "395": { "content": "<|reserved_385|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "396": { "content": "<image>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "397": { "content": "<|img_row_1_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "398": { "content": "<|img_row_1_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "399": { "content": "<|img_row_1_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "400": { "content": "<|img_row_1_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "401": { "content": "<|img_row_1_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "402": { "content": "<|img_row_1_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "403": { "content": "<|img_row_1_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "404": { "content": "<|img_row_1_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "405": { "content": "<|img_row_1_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "406": { "content": "<|img_row_1_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "407": { "content": "<|img_row_2_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "408": { "content": "<|img_row_2_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "409": { "content": "<|img_row_2_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "410": { "content": "<|img_row_2_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "411": { "content": "<|img_row_2_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "412": { "content": "<|img_row_2_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "413": { "content": "<|img_row_2_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "414": { "content": "<|img_row_2_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "415": { "content": "<|img_row_2_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "416": { "content": "<|img_row_2_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "417": { "content": "<|img_row_3_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "418": { "content": "<|img_row_3_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "419": { "content": "<|img_row_3_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "420": { "content": "<|img_row_3_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "421": { "content": "<|img_row_3_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "422": { "content": "<|img_row_3_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "423": { "content": "<|img_row_3_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "424": { "content": "<|img_row_3_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "425": { "content": "<|img_row_3_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "426": { "content": "<|img_row_3_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "427": { "content": "<|img_row_4_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "428": { "content": "<|img_row_4_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "429": { "content": "<|img_row_4_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "430": { "content": "<|img_row_4_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "431": { "content": "<|img_row_4_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "432": { "content": "<|img_row_4_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "433": { "content": "<|img_row_4_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "434": { "content": "<|img_row_4_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "435": { "content": "<|img_row_4_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "436": { "content": "<|img_row_4_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "437": { "content": "<|img_row_5_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "438": { "content": "<|img_row_5_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "439": { "content": "<|img_row_5_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "440": { "content": "<|img_row_5_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "441": { "content": "<|img_row_5_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "442": { "content": "<|img_row_5_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "443": { "content": "<|img_row_5_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "444": { "content": "<|img_row_5_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "445": { "content": "<|img_row_5_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "446": { "content": "<|img_row_5_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "447": { "content": "<|img_row_6_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "448": { "content": "<|img_row_6_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "449": { "content": "<|img_row_6_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "450": { "content": "<|img_row_6_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "451": { "content": "<|img_row_6_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "452": { "content": "<|img_row_6_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "453": { "content": "<|img_row_6_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "454": { "content": "<|img_row_6_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "455": { "content": "<|img_row_6_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "456": { "content": "<|img_row_6_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "457": { "content": "<|img_row_7_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "458": { "content": "<|img_row_7_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "459": { "content": "<|img_row_7_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "460": { "content": "<|img_row_7_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "461": { "content": "<|img_row_7_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "462": { "content": "<|img_row_7_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "463": { "content": "<|img_row_7_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "464": { "content": "<|img_row_7_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "465": { "content": "<|img_row_7_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "466": { "content": "<|img_row_7_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "467": { "content": "<|img_row_8_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "468": { "content": "<|img_row_8_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "469": { "content": "<|img_row_8_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "470": { "content": "<|img_row_8_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "471": { "content": "<|img_row_8_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "472": { "content": "<|img_row_8_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "473": { "content": "<|img_row_8_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "474": { "content": "<|img_row_8_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "475": { "content": "<|img_row_8_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "476": { "content": "<|img_row_8_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "477": { "content": "<|img_row_9_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "478": { "content": "<|img_row_9_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "479": { "content": "<|img_row_9_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "480": { "content": "<|img_row_9_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "481": { "content": "<|img_row_9_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "482": { "content": "<|img_row_9_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "483": { "content": "<|img_row_9_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "484": { "content": "<|img_row_9_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "485": { "content": "<|img_row_9_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "486": { "content": "<|img_row_9_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "487": { "content": "<|img_row_10_col_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "488": { "content": "<|img_row_10_col_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "489": { "content": "<|img_row_10_col_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "490": { "content": "<|img_row_10_col_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "491": { "content": "<|img_row_10_col_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "492": { "content": "<|img_row_10_col_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "493": { "content": "<|img_row_10_col_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "494": { "content": "<|img_row_10_col_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "495": { "content": "<|img_row_10_col_9|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "496": { "content": "<|img_row_10_col_10|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "497": { "content": "<|img_thumbnail|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "498": { "content": "<|image_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "499": { "content": "<|image_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "500": { "content": "<|image_split|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "64011": { "content": "Mathias", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "64014": { "content": "python", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "64394": { "content": "<|cot_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "64395": { "content": "<|cot_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "64396": { "content": "<|review_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "64397": { "content": "<|review_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "64398": { "content": "<|file_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "64399": { "content": "<|file_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "auto_map": { "AutoProcessor": "processing_lfm2_vl.Lfm2VlProcessor" }, "bos_token": "<|startoftext|>", "clean_up_tokenization_spaces": true, "eos_token": "<|im_end|>", "extra_special_tokens": { "image_end_token": "<|image_end|>", "image_start_token": "<|image_start|>", "image_thumbnail": "<|img_thumbnail|>", "image_token": "<image>" }, "image_end_token": "<|image_end|>", "image_start_token": "<|image_start|>", "image_thumbnail": "<|img_thumbnail|>", "image_token": "<image>", "legacy": false, "model_max_length": 1000000000000000019884624838656, "pad_token": "<|pad|>", "processor_class": "Lfm2VlProcessor", "return_token_type_ids": false, "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "tokenizer_class": "PreTrainedTokenizerFast", "use_default_system_prompt": false, "use_fast": true}LICENSEAdded+210
LICENSE_LFMAdded+71
README.mdAdded+159
assets/loops.pngAdded

config.jsonAdded+62
model.safetensorsAdded+3
modeling_loopmm.pyAdded+584
onnx/coda.onnxAdded+3
onnx/core.onnxAdded+3
onnx/meta.jsonAdded+77
onnx/prelude.onnxAdded+3
onnx/stem.onnxAdded+3
special_tokens_map.jsonAdded+27
tokenizer.jsonAdded
tokenizer_config.jsonAdded+4088