Upload model files (v1)
Browse filesUnmodified copies of NemoStation/Marlin-2B at fd111fca4fc7897876fb0d7e9df22ca5ac8ab965, plus a model card.
- .gitattributes +1 -0
- LICENSE +202 -0
- NOTICE +15 -0
- README.md +20 -0
- chat_template.jinja +154 -0
- config.json +108 -0
- generation_config.json +9 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +626 -0
- modeling_marlin.py +690 -0
- preprocessor_config.json +21 -0
- processor_config.json +60 -0
- tokenizer.json +3 -0
- tokenizer_config.json +33 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Marlin 2B
|
| 2 |
+
Copyright (c) 2026 NemoStation
|
| 3 |
+
|
| 4 |
+
This product includes weights derived from Qwen3.5-2B
|
| 5 |
+
(https://huggingface.co/Qwen/Qwen3.5-2B), Copyright (c) 2025 Alibaba Cloud,
|
| 6 |
+
used under the Apache License, Version 2.0.
|
| 7 |
+
|
| 8 |
+
Modifications by NemoStation include: integration of a video-capable
|
| 9 |
+
visual tower, custom training data curation (~400K clip-level annotations
|
| 10 |
+
with Gemini-3-Flash teacher distillation), two-stage SFT + SimPO
|
| 11 |
+
post-training, and custom modeling code (modeling_marlin.py) exposing
|
| 12 |
+
the .caption() and .find() inference modes.
|
| 13 |
+
|
| 14 |
+
Marlin 2B is distributed under the Apache License, Version 2.0
|
| 15 |
+
(see LICENSE).
|
README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- video
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Marlin 2B
|
| 8 |
+
|
| 9 |
+
Marlin 2B is a 2B-parameter video-language model that describes what happens in a video as timestamped events. It is derived from Qwen3.5-2B with a video-capable visual tower. All files in this repository are unmodified copies of the originals published at `NemoStation/Marlin-2B`, revision `fd111fca4fc7897876fb0d7e9df22ca5ac8ab965`. Only this model card is new; the upstream model card is not included.
|
| 10 |
+
|
| 11 |
+
## Author
|
| 12 |
+
|
| 13 |
+
**[NemoStation](https://huggingface.co/NemoStation/Marlin-2B)**
|
| 14 |
+
|
| 15 |
+
## License
|
| 16 |
+
|
| 17 |
+
Apache License 2.0. The complete license is distributed with this repository in [`LICENSE`](LICENSE), and the upstream attribution notice in [`NOTICE`](NOTICE). Marlin 2B is derived from [Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B) by Alibaba Cloud, also released under the Apache License 2.0.
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
*Hosted by [deAPI-ai](https://huggingface.co/deAPI-ai) for use with [GamerHash AI](https://gamerhash.com)*
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
+
{{- '<|im_start|>system\n' }}
|
| 47 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
+
{%- for tool in tools %}
|
| 49 |
+
{{- "\n" }}
|
| 50 |
+
{{- tool | tojson }}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{{- "\n</tools>" }}
|
| 53 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
+
{%- if messages[0].role == 'system' %}
|
| 55 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
+
{%- if content %}
|
| 57 |
+
{{- '\n\n' + content }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<|im_end|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{%- if messages[0].role == 'system' %}
|
| 63 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- endif %}
|
| 67 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
+
{%- for message in messages[::-1] %}
|
| 69 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
+
{%- set ns.multi_step_tool = false %}
|
| 74 |
+
{%- set ns.last_query_index = index %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if ns.multi_step_tool %}
|
| 79 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for message in messages %}
|
| 82 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
+
{%- if message.role == "system" %}
|
| 84 |
+
{%- if not loop.first %}
|
| 85 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- elif message.role == "user" %}
|
| 88 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
+
{%- elif message.role == "assistant" %}
|
| 90 |
+
{%- set reasoning_content = '' %}
|
| 91 |
+
{%- if message.reasoning_content is string %}
|
| 92 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
+
{%- else %}
|
| 94 |
+
{%- if '</think>' in content %}
|
| 95 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endif %}
|
| 99 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
+
{%- if loop.index0 > ns.last_query_index %}
|
| 101 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
+
{%- else %}
|
| 103 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
+
{%- endif %}
|
| 105 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
+
{%- for tool_call in message.tool_calls %}
|
| 107 |
+
{%- if tool_call.function is defined %}
|
| 108 |
+
{%- set tool_call = tool_call.function %}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- if loop.first %}
|
| 111 |
+
{%- if content|trim %}
|
| 112 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
+
{%- else %}
|
| 114 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- else %}
|
| 117 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
+
{%- endif %}
|
| 119 |
+
{%- if tool_call.arguments is defined %}
|
| 120 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 123 |
+
{{- args_value }}
|
| 124 |
+
{{- '\n</parameter>\n' }}
|
| 125 |
+
{%- endfor %}
|
| 126 |
+
{%- endif %}
|
| 127 |
+
{{- '</function>\n</tool_call>' }}
|
| 128 |
+
{%- endfor %}
|
| 129 |
+
{%- endif %}
|
| 130 |
+
{{- '<|im_end|>\n' }}
|
| 131 |
+
{%- elif message.role == "tool" %}
|
| 132 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
+
{{- '<|im_start|>user' }}
|
| 134 |
+
{%- endif %}
|
| 135 |
+
{{- '\n<tool_response>\n' }}
|
| 136 |
+
{{- content }}
|
| 137 |
+
{{- '\n</tool_response>' }}
|
| 138 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
+
{{- '<|im_end|>\n' }}
|
| 140 |
+
{%- elif loop.last %}
|
| 141 |
+
{{- '<|im_end|>\n' }}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- else %}
|
| 144 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
+
{%- endif %}
|
| 146 |
+
{%- endfor %}
|
| 147 |
+
{%- if add_generation_prompt %}
|
| 148 |
+
{{- '<|im_start|>assistant\n' }}
|
| 149 |
+
{%- if enable_thinking is defined and enable_thinking is true %}
|
| 150 |
+
{{- '<think>\n' }}
|
| 151 |
+
{%- else %}
|
| 152 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"MarlinForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"eos_token_id": 248046,
|
| 7 |
+
"hidden_size": 2048,
|
| 8 |
+
"image_token_id": 248056,
|
| 9 |
+
"model_type": "qwen3_5",
|
| 10 |
+
"pad_token_id": 248044,
|
| 11 |
+
"text_config": {
|
| 12 |
+
"attention_bias": false,
|
| 13 |
+
"attention_dropout": 0.0,
|
| 14 |
+
"attn_output_gate": true,
|
| 15 |
+
"bos_token_id": null,
|
| 16 |
+
"dtype": "bfloat16",
|
| 17 |
+
"eos_token_id": 248044,
|
| 18 |
+
"full_attention_interval": 4,
|
| 19 |
+
"head_dim": 256,
|
| 20 |
+
"hidden_act": "silu",
|
| 21 |
+
"hidden_size": 2048,
|
| 22 |
+
"initializer_range": 0.02,
|
| 23 |
+
"intermediate_size": 6144,
|
| 24 |
+
"layer_types": [
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"full_attention"
|
| 49 |
+
],
|
| 50 |
+
"linear_conv_kernel_dim": 4,
|
| 51 |
+
"linear_key_head_dim": 128,
|
| 52 |
+
"linear_num_key_heads": 16,
|
| 53 |
+
"linear_num_value_heads": 16,
|
| 54 |
+
"linear_value_head_dim": 128,
|
| 55 |
+
"mamba_ssm_dtype": "float32",
|
| 56 |
+
"max_position_embeddings": 262144,
|
| 57 |
+
"mlp_only_layers": [],
|
| 58 |
+
"model_type": "qwen3_5_text",
|
| 59 |
+
"mtp_num_hidden_layers": 1,
|
| 60 |
+
"mtp_use_dedicated_embeddings": false,
|
| 61 |
+
"num_attention_heads": 8,
|
| 62 |
+
"num_hidden_layers": 24,
|
| 63 |
+
"num_key_value_heads": 2,
|
| 64 |
+
"pad_token_id": 248044,
|
| 65 |
+
"partial_rotary_factor": 0.25,
|
| 66 |
+
"rms_norm_eps": 1e-06,
|
| 67 |
+
"rope_parameters": {
|
| 68 |
+
"mrope_interleaved": true,
|
| 69 |
+
"mrope_section": [
|
| 70 |
+
11,
|
| 71 |
+
11,
|
| 72 |
+
10
|
| 73 |
+
],
|
| 74 |
+
"partial_rotary_factor": 0.25,
|
| 75 |
+
"rope_theta": 10000000,
|
| 76 |
+
"rope_type": "default"
|
| 77 |
+
},
|
| 78 |
+
"tie_word_embeddings": true,
|
| 79 |
+
"use_cache": false,
|
| 80 |
+
"vocab_size": 248320
|
| 81 |
+
},
|
| 82 |
+
"tie_word_embeddings": true,
|
| 83 |
+
"transformers_version": "5.7.0",
|
| 84 |
+
"use_cache": false,
|
| 85 |
+
"video_token_id": 248057,
|
| 86 |
+
"vision_config": {
|
| 87 |
+
"deepstack_visual_indexes": [],
|
| 88 |
+
"depth": 24,
|
| 89 |
+
"dtype": "bfloat16",
|
| 90 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 91 |
+
"hidden_size": 1024,
|
| 92 |
+
"in_channels": 3,
|
| 93 |
+
"initializer_range": 0.02,
|
| 94 |
+
"intermediate_size": 4096,
|
| 95 |
+
"model_type": "qwen3_5_vision",
|
| 96 |
+
"num_heads": 16,
|
| 97 |
+
"num_position_embeddings": 2304,
|
| 98 |
+
"out_hidden_size": 2048,
|
| 99 |
+
"patch_size": 16,
|
| 100 |
+
"spatial_merge_size": 2,
|
| 101 |
+
"temporal_patch_size": 2
|
| 102 |
+
},
|
| 103 |
+
"vision_end_token_id": 248054,
|
| 104 |
+
"vision_start_token_id": 248053,
|
| 105 |
+
"auto_map": {
|
| 106 |
+
"AutoModelForCausalLM": "modeling_marlin.MarlinForConditionalGeneration"
|
| 107 |
+
}
|
| 108 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
248044,
|
| 5 |
+
248046
|
| 6 |
+
],
|
| 7 |
+
"transformers_version": "5.7.0",
|
| 8 |
+
"use_cache": true
|
| 9 |
+
}
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d78fa4dbd856dc89c01b99ffa92072fe31b8a1e6b31e87893734c80304983b7
|
| 3 |
+
size 4999157736
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01d40ec9ccf4c2ad8e755604468dd6ee4a5c6551553e5739a03beb4c0673d0db
|
| 3 |
+
size 444519488
|
model.safetensors.index.json
ADDED
|
@@ -0,0 +1,626 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_parameters": 2213241664,
|
| 4 |
+
"total_size": 5443602048
|
| 5 |
+
},
|
| 6 |
+
"weight_map": {
|
| 7 |
+
"lm_head.weight": "model-00001-of-00002.safetensors",
|
| 8 |
+
"model.language_model.embed_tokens.weight": "model-00001-of-00002.safetensors",
|
| 9 |
+
"model.language_model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 10 |
+
"model.language_model.layers.0.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 11 |
+
"model.language_model.layers.0.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 12 |
+
"model.language_model.layers.0.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 13 |
+
"model.language_model.layers.0.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 14 |
+
"model.language_model.layers.0.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 15 |
+
"model.language_model.layers.0.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 16 |
+
"model.language_model.layers.0.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 17 |
+
"model.language_model.layers.0.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 18 |
+
"model.language_model.layers.0.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 19 |
+
"model.language_model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 20 |
+
"model.language_model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 21 |
+
"model.language_model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 22 |
+
"model.language_model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 23 |
+
"model.language_model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 24 |
+
"model.language_model.layers.1.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 25 |
+
"model.language_model.layers.1.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 26 |
+
"model.language_model.layers.1.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 27 |
+
"model.language_model.layers.1.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 28 |
+
"model.language_model.layers.1.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 29 |
+
"model.language_model.layers.1.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 30 |
+
"model.language_model.layers.1.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 31 |
+
"model.language_model.layers.1.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 32 |
+
"model.language_model.layers.1.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 33 |
+
"model.language_model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 34 |
+
"model.language_model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 35 |
+
"model.language_model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 36 |
+
"model.language_model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 37 |
+
"model.language_model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 38 |
+
"model.language_model.layers.10.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 39 |
+
"model.language_model.layers.10.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 40 |
+
"model.language_model.layers.10.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 41 |
+
"model.language_model.layers.10.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 42 |
+
"model.language_model.layers.10.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 43 |
+
"model.language_model.layers.10.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 44 |
+
"model.language_model.layers.10.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 45 |
+
"model.language_model.layers.10.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 46 |
+
"model.language_model.layers.10.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 47 |
+
"model.language_model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 48 |
+
"model.language_model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 49 |
+
"model.language_model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 50 |
+
"model.language_model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 51 |
+
"model.language_model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 52 |
+
"model.language_model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 53 |
+
"model.language_model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 54 |
+
"model.language_model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 55 |
+
"model.language_model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 56 |
+
"model.language_model.layers.11.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
| 57 |
+
"model.language_model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 58 |
+
"model.language_model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 59 |
+
"model.language_model.layers.11.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
| 60 |
+
"model.language_model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 61 |
+
"model.language_model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 62 |
+
"model.language_model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 63 |
+
"model.language_model.layers.12.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 64 |
+
"model.language_model.layers.12.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 65 |
+
"model.language_model.layers.12.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 66 |
+
"model.language_model.layers.12.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 67 |
+
"model.language_model.layers.12.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 68 |
+
"model.language_model.layers.12.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 69 |
+
"model.language_model.layers.12.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 70 |
+
"model.language_model.layers.12.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 71 |
+
"model.language_model.layers.12.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 72 |
+
"model.language_model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 73 |
+
"model.language_model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 74 |
+
"model.language_model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 75 |
+
"model.language_model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 76 |
+
"model.language_model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 77 |
+
"model.language_model.layers.13.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 78 |
+
"model.language_model.layers.13.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 79 |
+
"model.language_model.layers.13.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 80 |
+
"model.language_model.layers.13.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 81 |
+
"model.language_model.layers.13.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 82 |
+
"model.language_model.layers.13.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 83 |
+
"model.language_model.layers.13.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 84 |
+
"model.language_model.layers.13.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 85 |
+
"model.language_model.layers.13.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 86 |
+
"model.language_model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 87 |
+
"model.language_model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 88 |
+
"model.language_model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 89 |
+
"model.language_model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 90 |
+
"model.language_model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 91 |
+
"model.language_model.layers.14.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 92 |
+
"model.language_model.layers.14.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 93 |
+
"model.language_model.layers.14.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 94 |
+
"model.language_model.layers.14.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 95 |
+
"model.language_model.layers.14.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 96 |
+
"model.language_model.layers.14.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 97 |
+
"model.language_model.layers.14.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 98 |
+
"model.language_model.layers.14.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 99 |
+
"model.language_model.layers.14.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 100 |
+
"model.language_model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 101 |
+
"model.language_model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 102 |
+
"model.language_model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 103 |
+
"model.language_model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 104 |
+
"model.language_model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 105 |
+
"model.language_model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 106 |
+
"model.language_model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 107 |
+
"model.language_model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 108 |
+
"model.language_model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 109 |
+
"model.language_model.layers.15.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
| 110 |
+
"model.language_model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 111 |
+
"model.language_model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 112 |
+
"model.language_model.layers.15.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
| 113 |
+
"model.language_model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 114 |
+
"model.language_model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 115 |
+
"model.language_model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 116 |
+
"model.language_model.layers.16.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 117 |
+
"model.language_model.layers.16.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 118 |
+
"model.language_model.layers.16.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 119 |
+
"model.language_model.layers.16.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 120 |
+
"model.language_model.layers.16.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 121 |
+
"model.language_model.layers.16.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 122 |
+
"model.language_model.layers.16.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 123 |
+
"model.language_model.layers.16.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 124 |
+
"model.language_model.layers.16.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 125 |
+
"model.language_model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 126 |
+
"model.language_model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 127 |
+
"model.language_model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 128 |
+
"model.language_model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 129 |
+
"model.language_model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 130 |
+
"model.language_model.layers.17.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 131 |
+
"model.language_model.layers.17.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 132 |
+
"model.language_model.layers.17.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 133 |
+
"model.language_model.layers.17.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 134 |
+
"model.language_model.layers.17.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 135 |
+
"model.language_model.layers.17.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 136 |
+
"model.language_model.layers.17.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 137 |
+
"model.language_model.layers.17.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 138 |
+
"model.language_model.layers.17.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 139 |
+
"model.language_model.layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 140 |
+
"model.language_model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 141 |
+
"model.language_model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 142 |
+
"model.language_model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 143 |
+
"model.language_model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 144 |
+
"model.language_model.layers.18.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 145 |
+
"model.language_model.layers.18.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 146 |
+
"model.language_model.layers.18.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 147 |
+
"model.language_model.layers.18.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 148 |
+
"model.language_model.layers.18.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 149 |
+
"model.language_model.layers.18.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 150 |
+
"model.language_model.layers.18.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 151 |
+
"model.language_model.layers.18.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 152 |
+
"model.language_model.layers.18.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 153 |
+
"model.language_model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 154 |
+
"model.language_model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 155 |
+
"model.language_model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 156 |
+
"model.language_model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 157 |
+
"model.language_model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 158 |
+
"model.language_model.layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 159 |
+
"model.language_model.layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 160 |
+
"model.language_model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 161 |
+
"model.language_model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 162 |
+
"model.language_model.layers.19.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
| 163 |
+
"model.language_model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 164 |
+
"model.language_model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 165 |
+
"model.language_model.layers.19.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
| 166 |
+
"model.language_model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 167 |
+
"model.language_model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 168 |
+
"model.language_model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 169 |
+
"model.language_model.layers.2.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 170 |
+
"model.language_model.layers.2.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 171 |
+
"model.language_model.layers.2.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 172 |
+
"model.language_model.layers.2.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 173 |
+
"model.language_model.layers.2.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 174 |
+
"model.language_model.layers.2.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 175 |
+
"model.language_model.layers.2.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 176 |
+
"model.language_model.layers.2.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 177 |
+
"model.language_model.layers.2.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 178 |
+
"model.language_model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 179 |
+
"model.language_model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 180 |
+
"model.language_model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 181 |
+
"model.language_model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 182 |
+
"model.language_model.layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 183 |
+
"model.language_model.layers.20.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 184 |
+
"model.language_model.layers.20.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 185 |
+
"model.language_model.layers.20.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 186 |
+
"model.language_model.layers.20.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 187 |
+
"model.language_model.layers.20.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 188 |
+
"model.language_model.layers.20.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 189 |
+
"model.language_model.layers.20.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 190 |
+
"model.language_model.layers.20.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 191 |
+
"model.language_model.layers.20.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 192 |
+
"model.language_model.layers.20.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 193 |
+
"model.language_model.layers.20.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 194 |
+
"model.language_model.layers.20.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 195 |
+
"model.language_model.layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 196 |
+
"model.language_model.layers.21.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 197 |
+
"model.language_model.layers.21.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 198 |
+
"model.language_model.layers.21.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 199 |
+
"model.language_model.layers.21.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 200 |
+
"model.language_model.layers.21.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 201 |
+
"model.language_model.layers.21.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 202 |
+
"model.language_model.layers.21.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 203 |
+
"model.language_model.layers.21.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 204 |
+
"model.language_model.layers.21.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 205 |
+
"model.language_model.layers.21.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 206 |
+
"model.language_model.layers.21.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 207 |
+
"model.language_model.layers.21.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 208 |
+
"model.language_model.layers.21.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 209 |
+
"model.language_model.layers.21.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 210 |
+
"model.language_model.layers.22.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 211 |
+
"model.language_model.layers.22.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 212 |
+
"model.language_model.layers.22.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 213 |
+
"model.language_model.layers.22.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 214 |
+
"model.language_model.layers.22.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 215 |
+
"model.language_model.layers.22.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 216 |
+
"model.language_model.layers.22.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 217 |
+
"model.language_model.layers.22.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 218 |
+
"model.language_model.layers.22.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 219 |
+
"model.language_model.layers.22.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 220 |
+
"model.language_model.layers.22.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 221 |
+
"model.language_model.layers.22.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 222 |
+
"model.language_model.layers.22.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 223 |
+
"model.language_model.layers.22.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 224 |
+
"model.language_model.layers.23.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 225 |
+
"model.language_model.layers.23.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 226 |
+
"model.language_model.layers.23.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 227 |
+
"model.language_model.layers.23.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 228 |
+
"model.language_model.layers.23.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 229 |
+
"model.language_model.layers.23.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
| 230 |
+
"model.language_model.layers.23.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 231 |
+
"model.language_model.layers.23.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 232 |
+
"model.language_model.layers.23.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
| 233 |
+
"model.language_model.layers.23.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 234 |
+
"model.language_model.layers.23.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 235 |
+
"model.language_model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 236 |
+
"model.language_model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 237 |
+
"model.language_model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 238 |
+
"model.language_model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 239 |
+
"model.language_model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 240 |
+
"model.language_model.layers.3.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
| 241 |
+
"model.language_model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 242 |
+
"model.language_model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 243 |
+
"model.language_model.layers.3.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
| 244 |
+
"model.language_model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 245 |
+
"model.language_model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 246 |
+
"model.language_model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 247 |
+
"model.language_model.layers.4.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 248 |
+
"model.language_model.layers.4.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 249 |
+
"model.language_model.layers.4.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 250 |
+
"model.language_model.layers.4.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 251 |
+
"model.language_model.layers.4.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 252 |
+
"model.language_model.layers.4.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 253 |
+
"model.language_model.layers.4.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 254 |
+
"model.language_model.layers.4.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 255 |
+
"model.language_model.layers.4.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 256 |
+
"model.language_model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 257 |
+
"model.language_model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 258 |
+
"model.language_model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 259 |
+
"model.language_model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 260 |
+
"model.language_model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 261 |
+
"model.language_model.layers.5.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 262 |
+
"model.language_model.layers.5.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 263 |
+
"model.language_model.layers.5.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 264 |
+
"model.language_model.layers.5.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 265 |
+
"model.language_model.layers.5.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 266 |
+
"model.language_model.layers.5.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 267 |
+
"model.language_model.layers.5.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 268 |
+
"model.language_model.layers.5.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 269 |
+
"model.language_model.layers.5.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 270 |
+
"model.language_model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 271 |
+
"model.language_model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 272 |
+
"model.language_model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 273 |
+
"model.language_model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 274 |
+
"model.language_model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 275 |
+
"model.language_model.layers.6.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 276 |
+
"model.language_model.layers.6.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 277 |
+
"model.language_model.layers.6.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 278 |
+
"model.language_model.layers.6.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 279 |
+
"model.language_model.layers.6.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 280 |
+
"model.language_model.layers.6.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 281 |
+
"model.language_model.layers.6.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 282 |
+
"model.language_model.layers.6.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 283 |
+
"model.language_model.layers.6.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 284 |
+
"model.language_model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 285 |
+
"model.language_model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 286 |
+
"model.language_model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 287 |
+
"model.language_model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 288 |
+
"model.language_model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 289 |
+
"model.language_model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 290 |
+
"model.language_model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 291 |
+
"model.language_model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 292 |
+
"model.language_model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 293 |
+
"model.language_model.layers.7.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
|
| 294 |
+
"model.language_model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
|
| 295 |
+
"model.language_model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
|
| 296 |
+
"model.language_model.layers.7.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
|
| 297 |
+
"model.language_model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
|
| 298 |
+
"model.language_model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
|
| 299 |
+
"model.language_model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 300 |
+
"model.language_model.layers.8.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 301 |
+
"model.language_model.layers.8.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 302 |
+
"model.language_model.layers.8.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 303 |
+
"model.language_model.layers.8.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 304 |
+
"model.language_model.layers.8.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 305 |
+
"model.language_model.layers.8.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 306 |
+
"model.language_model.layers.8.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 307 |
+
"model.language_model.layers.8.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 308 |
+
"model.language_model.layers.8.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 309 |
+
"model.language_model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 310 |
+
"model.language_model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 311 |
+
"model.language_model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 312 |
+
"model.language_model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 313 |
+
"model.language_model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 314 |
+
"model.language_model.layers.9.linear_attn.A_log": "model-00001-of-00002.safetensors",
|
| 315 |
+
"model.language_model.layers.9.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
|
| 316 |
+
"model.language_model.layers.9.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
|
| 317 |
+
"model.language_model.layers.9.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
|
| 318 |
+
"model.language_model.layers.9.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
|
| 319 |
+
"model.language_model.layers.9.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
|
| 320 |
+
"model.language_model.layers.9.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
|
| 321 |
+
"model.language_model.layers.9.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
|
| 322 |
+
"model.language_model.layers.9.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
|
| 323 |
+
"model.language_model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
|
| 324 |
+
"model.language_model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
|
| 325 |
+
"model.language_model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
|
| 326 |
+
"model.language_model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
|
| 327 |
+
"model.language_model.norm.weight": "model-00001-of-00002.safetensors",
|
| 328 |
+
"model.visual.blocks.0.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 329 |
+
"model.visual.blocks.0.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 330 |
+
"model.visual.blocks.0.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 331 |
+
"model.visual.blocks.0.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 332 |
+
"model.visual.blocks.0.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 333 |
+
"model.visual.blocks.0.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 334 |
+
"model.visual.blocks.0.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 335 |
+
"model.visual.blocks.0.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 336 |
+
"model.visual.blocks.0.norm1.bias": "model-00001-of-00002.safetensors",
|
| 337 |
+
"model.visual.blocks.0.norm1.weight": "model-00001-of-00002.safetensors",
|
| 338 |
+
"model.visual.blocks.0.norm2.bias": "model-00001-of-00002.safetensors",
|
| 339 |
+
"model.visual.blocks.0.norm2.weight": "model-00001-of-00002.safetensors",
|
| 340 |
+
"model.visual.blocks.1.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 341 |
+
"model.visual.blocks.1.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 342 |
+
"model.visual.blocks.1.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 343 |
+
"model.visual.blocks.1.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 344 |
+
"model.visual.blocks.1.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 345 |
+
"model.visual.blocks.1.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 346 |
+
"model.visual.blocks.1.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 347 |
+
"model.visual.blocks.1.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 348 |
+
"model.visual.blocks.1.norm1.bias": "model-00001-of-00002.safetensors",
|
| 349 |
+
"model.visual.blocks.1.norm1.weight": "model-00001-of-00002.safetensors",
|
| 350 |
+
"model.visual.blocks.1.norm2.bias": "model-00001-of-00002.safetensors",
|
| 351 |
+
"model.visual.blocks.1.norm2.weight": "model-00001-of-00002.safetensors",
|
| 352 |
+
"model.visual.blocks.10.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 353 |
+
"model.visual.blocks.10.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 354 |
+
"model.visual.blocks.10.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 355 |
+
"model.visual.blocks.10.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 356 |
+
"model.visual.blocks.10.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 357 |
+
"model.visual.blocks.10.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 358 |
+
"model.visual.blocks.10.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 359 |
+
"model.visual.blocks.10.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 360 |
+
"model.visual.blocks.10.norm1.bias": "model-00002-of-00002.safetensors",
|
| 361 |
+
"model.visual.blocks.10.norm1.weight": "model-00002-of-00002.safetensors",
|
| 362 |
+
"model.visual.blocks.10.norm2.bias": "model-00002-of-00002.safetensors",
|
| 363 |
+
"model.visual.blocks.10.norm2.weight": "model-00002-of-00002.safetensors",
|
| 364 |
+
"model.visual.blocks.11.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 365 |
+
"model.visual.blocks.11.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 366 |
+
"model.visual.blocks.11.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 367 |
+
"model.visual.blocks.11.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 368 |
+
"model.visual.blocks.11.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 369 |
+
"model.visual.blocks.11.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 370 |
+
"model.visual.blocks.11.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 371 |
+
"model.visual.blocks.11.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 372 |
+
"model.visual.blocks.11.norm1.bias": "model-00002-of-00002.safetensors",
|
| 373 |
+
"model.visual.blocks.11.norm1.weight": "model-00002-of-00002.safetensors",
|
| 374 |
+
"model.visual.blocks.11.norm2.bias": "model-00002-of-00002.safetensors",
|
| 375 |
+
"model.visual.blocks.11.norm2.weight": "model-00002-of-00002.safetensors",
|
| 376 |
+
"model.visual.blocks.12.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 377 |
+
"model.visual.blocks.12.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 378 |
+
"model.visual.blocks.12.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 379 |
+
"model.visual.blocks.12.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 380 |
+
"model.visual.blocks.12.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 381 |
+
"model.visual.blocks.12.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 382 |
+
"model.visual.blocks.12.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 383 |
+
"model.visual.blocks.12.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 384 |
+
"model.visual.blocks.12.norm1.bias": "model-00002-of-00002.safetensors",
|
| 385 |
+
"model.visual.blocks.12.norm1.weight": "model-00002-of-00002.safetensors",
|
| 386 |
+
"model.visual.blocks.12.norm2.bias": "model-00002-of-00002.safetensors",
|
| 387 |
+
"model.visual.blocks.12.norm2.weight": "model-00002-of-00002.safetensors",
|
| 388 |
+
"model.visual.blocks.13.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 389 |
+
"model.visual.blocks.13.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 390 |
+
"model.visual.blocks.13.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 391 |
+
"model.visual.blocks.13.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 392 |
+
"model.visual.blocks.13.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 393 |
+
"model.visual.blocks.13.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 394 |
+
"model.visual.blocks.13.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 395 |
+
"model.visual.blocks.13.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 396 |
+
"model.visual.blocks.13.norm1.bias": "model-00002-of-00002.safetensors",
|
| 397 |
+
"model.visual.blocks.13.norm1.weight": "model-00002-of-00002.safetensors",
|
| 398 |
+
"model.visual.blocks.13.norm2.bias": "model-00002-of-00002.safetensors",
|
| 399 |
+
"model.visual.blocks.13.norm2.weight": "model-00002-of-00002.safetensors",
|
| 400 |
+
"model.visual.blocks.14.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 401 |
+
"model.visual.blocks.14.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 402 |
+
"model.visual.blocks.14.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 403 |
+
"model.visual.blocks.14.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 404 |
+
"model.visual.blocks.14.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 405 |
+
"model.visual.blocks.14.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 406 |
+
"model.visual.blocks.14.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 407 |
+
"model.visual.blocks.14.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 408 |
+
"model.visual.blocks.14.norm1.bias": "model-00002-of-00002.safetensors",
|
| 409 |
+
"model.visual.blocks.14.norm1.weight": "model-00002-of-00002.safetensors",
|
| 410 |
+
"model.visual.blocks.14.norm2.bias": "model-00002-of-00002.safetensors",
|
| 411 |
+
"model.visual.blocks.14.norm2.weight": "model-00002-of-00002.safetensors",
|
| 412 |
+
"model.visual.blocks.15.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 413 |
+
"model.visual.blocks.15.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 414 |
+
"model.visual.blocks.15.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 415 |
+
"model.visual.blocks.15.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 416 |
+
"model.visual.blocks.15.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 417 |
+
"model.visual.blocks.15.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 418 |
+
"model.visual.blocks.15.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 419 |
+
"model.visual.blocks.15.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 420 |
+
"model.visual.blocks.15.norm1.bias": "model-00002-of-00002.safetensors",
|
| 421 |
+
"model.visual.blocks.15.norm1.weight": "model-00002-of-00002.safetensors",
|
| 422 |
+
"model.visual.blocks.15.norm2.bias": "model-00002-of-00002.safetensors",
|
| 423 |
+
"model.visual.blocks.15.norm2.weight": "model-00002-of-00002.safetensors",
|
| 424 |
+
"model.visual.blocks.16.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 425 |
+
"model.visual.blocks.16.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 426 |
+
"model.visual.blocks.16.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 427 |
+
"model.visual.blocks.16.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 428 |
+
"model.visual.blocks.16.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 429 |
+
"model.visual.blocks.16.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 430 |
+
"model.visual.blocks.16.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 431 |
+
"model.visual.blocks.16.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 432 |
+
"model.visual.blocks.16.norm1.bias": "model-00002-of-00002.safetensors",
|
| 433 |
+
"model.visual.blocks.16.norm1.weight": "model-00002-of-00002.safetensors",
|
| 434 |
+
"model.visual.blocks.16.norm2.bias": "model-00002-of-00002.safetensors",
|
| 435 |
+
"model.visual.blocks.16.norm2.weight": "model-00002-of-00002.safetensors",
|
| 436 |
+
"model.visual.blocks.17.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 437 |
+
"model.visual.blocks.17.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 438 |
+
"model.visual.blocks.17.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 439 |
+
"model.visual.blocks.17.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 440 |
+
"model.visual.blocks.17.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 441 |
+
"model.visual.blocks.17.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 442 |
+
"model.visual.blocks.17.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 443 |
+
"model.visual.blocks.17.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 444 |
+
"model.visual.blocks.17.norm1.bias": "model-00002-of-00002.safetensors",
|
| 445 |
+
"model.visual.blocks.17.norm1.weight": "model-00002-of-00002.safetensors",
|
| 446 |
+
"model.visual.blocks.17.norm2.bias": "model-00002-of-00002.safetensors",
|
| 447 |
+
"model.visual.blocks.17.norm2.weight": "model-00002-of-00002.safetensors",
|
| 448 |
+
"model.visual.blocks.18.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 449 |
+
"model.visual.blocks.18.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 450 |
+
"model.visual.blocks.18.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 451 |
+
"model.visual.blocks.18.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 452 |
+
"model.visual.blocks.18.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 453 |
+
"model.visual.blocks.18.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 454 |
+
"model.visual.blocks.18.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 455 |
+
"model.visual.blocks.18.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 456 |
+
"model.visual.blocks.18.norm1.bias": "model-00002-of-00002.safetensors",
|
| 457 |
+
"model.visual.blocks.18.norm1.weight": "model-00002-of-00002.safetensors",
|
| 458 |
+
"model.visual.blocks.18.norm2.bias": "model-00002-of-00002.safetensors",
|
| 459 |
+
"model.visual.blocks.18.norm2.weight": "model-00002-of-00002.safetensors",
|
| 460 |
+
"model.visual.blocks.19.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 461 |
+
"model.visual.blocks.19.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 462 |
+
"model.visual.blocks.19.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 463 |
+
"model.visual.blocks.19.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 464 |
+
"model.visual.blocks.19.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 465 |
+
"model.visual.blocks.19.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 466 |
+
"model.visual.blocks.19.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 467 |
+
"model.visual.blocks.19.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 468 |
+
"model.visual.blocks.19.norm1.bias": "model-00002-of-00002.safetensors",
|
| 469 |
+
"model.visual.blocks.19.norm1.weight": "model-00002-of-00002.safetensors",
|
| 470 |
+
"model.visual.blocks.19.norm2.bias": "model-00002-of-00002.safetensors",
|
| 471 |
+
"model.visual.blocks.19.norm2.weight": "model-00002-of-00002.safetensors",
|
| 472 |
+
"model.visual.blocks.2.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 473 |
+
"model.visual.blocks.2.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 474 |
+
"model.visual.blocks.2.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 475 |
+
"model.visual.blocks.2.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 476 |
+
"model.visual.blocks.2.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 477 |
+
"model.visual.blocks.2.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 478 |
+
"model.visual.blocks.2.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 479 |
+
"model.visual.blocks.2.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 480 |
+
"model.visual.blocks.2.norm1.bias": "model-00001-of-00002.safetensors",
|
| 481 |
+
"model.visual.blocks.2.norm1.weight": "model-00001-of-00002.safetensors",
|
| 482 |
+
"model.visual.blocks.2.norm2.bias": "model-00001-of-00002.safetensors",
|
| 483 |
+
"model.visual.blocks.2.norm2.weight": "model-00001-of-00002.safetensors",
|
| 484 |
+
"model.visual.blocks.20.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 485 |
+
"model.visual.blocks.20.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 486 |
+
"model.visual.blocks.20.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 487 |
+
"model.visual.blocks.20.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 488 |
+
"model.visual.blocks.20.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 489 |
+
"model.visual.blocks.20.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 490 |
+
"model.visual.blocks.20.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 491 |
+
"model.visual.blocks.20.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 492 |
+
"model.visual.blocks.20.norm1.bias": "model-00002-of-00002.safetensors",
|
| 493 |
+
"model.visual.blocks.20.norm1.weight": "model-00002-of-00002.safetensors",
|
| 494 |
+
"model.visual.blocks.20.norm2.bias": "model-00002-of-00002.safetensors",
|
| 495 |
+
"model.visual.blocks.20.norm2.weight": "model-00002-of-00002.safetensors",
|
| 496 |
+
"model.visual.blocks.21.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 497 |
+
"model.visual.blocks.21.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 498 |
+
"model.visual.blocks.21.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 499 |
+
"model.visual.blocks.21.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 500 |
+
"model.visual.blocks.21.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 501 |
+
"model.visual.blocks.21.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 502 |
+
"model.visual.blocks.21.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 503 |
+
"model.visual.blocks.21.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 504 |
+
"model.visual.blocks.21.norm1.bias": "model-00002-of-00002.safetensors",
|
| 505 |
+
"model.visual.blocks.21.norm1.weight": "model-00002-of-00002.safetensors",
|
| 506 |
+
"model.visual.blocks.21.norm2.bias": "model-00002-of-00002.safetensors",
|
| 507 |
+
"model.visual.blocks.21.norm2.weight": "model-00002-of-00002.safetensors",
|
| 508 |
+
"model.visual.blocks.22.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 509 |
+
"model.visual.blocks.22.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 510 |
+
"model.visual.blocks.22.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 511 |
+
"model.visual.blocks.22.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 512 |
+
"model.visual.blocks.22.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 513 |
+
"model.visual.blocks.22.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 514 |
+
"model.visual.blocks.22.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 515 |
+
"model.visual.blocks.22.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 516 |
+
"model.visual.blocks.22.norm1.bias": "model-00002-of-00002.safetensors",
|
| 517 |
+
"model.visual.blocks.22.norm1.weight": "model-00002-of-00002.safetensors",
|
| 518 |
+
"model.visual.blocks.22.norm2.bias": "model-00002-of-00002.safetensors",
|
| 519 |
+
"model.visual.blocks.22.norm2.weight": "model-00002-of-00002.safetensors",
|
| 520 |
+
"model.visual.blocks.23.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 521 |
+
"model.visual.blocks.23.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 522 |
+
"model.visual.blocks.23.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 523 |
+
"model.visual.blocks.23.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 524 |
+
"model.visual.blocks.23.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 525 |
+
"model.visual.blocks.23.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 526 |
+
"model.visual.blocks.23.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 527 |
+
"model.visual.blocks.23.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 528 |
+
"model.visual.blocks.23.norm1.bias": "model-00002-of-00002.safetensors",
|
| 529 |
+
"model.visual.blocks.23.norm1.weight": "model-00002-of-00002.safetensors",
|
| 530 |
+
"model.visual.blocks.23.norm2.bias": "model-00002-of-00002.safetensors",
|
| 531 |
+
"model.visual.blocks.23.norm2.weight": "model-00002-of-00002.safetensors",
|
| 532 |
+
"model.visual.blocks.3.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 533 |
+
"model.visual.blocks.3.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 534 |
+
"model.visual.blocks.3.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 535 |
+
"model.visual.blocks.3.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 536 |
+
"model.visual.blocks.3.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 537 |
+
"model.visual.blocks.3.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 538 |
+
"model.visual.blocks.3.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 539 |
+
"model.visual.blocks.3.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 540 |
+
"model.visual.blocks.3.norm1.bias": "model-00001-of-00002.safetensors",
|
| 541 |
+
"model.visual.blocks.3.norm1.weight": "model-00001-of-00002.safetensors",
|
| 542 |
+
"model.visual.blocks.3.norm2.bias": "model-00001-of-00002.safetensors",
|
| 543 |
+
"model.visual.blocks.3.norm2.weight": "model-00001-of-00002.safetensors",
|
| 544 |
+
"model.visual.blocks.4.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 545 |
+
"model.visual.blocks.4.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 546 |
+
"model.visual.blocks.4.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 547 |
+
"model.visual.blocks.4.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 548 |
+
"model.visual.blocks.4.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 549 |
+
"model.visual.blocks.4.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 550 |
+
"model.visual.blocks.4.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 551 |
+
"model.visual.blocks.4.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 552 |
+
"model.visual.blocks.4.norm1.bias": "model-00001-of-00002.safetensors",
|
| 553 |
+
"model.visual.blocks.4.norm1.weight": "model-00001-of-00002.safetensors",
|
| 554 |
+
"model.visual.blocks.4.norm2.bias": "model-00001-of-00002.safetensors",
|
| 555 |
+
"model.visual.blocks.4.norm2.weight": "model-00001-of-00002.safetensors",
|
| 556 |
+
"model.visual.blocks.5.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 557 |
+
"model.visual.blocks.5.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 558 |
+
"model.visual.blocks.5.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 559 |
+
"model.visual.blocks.5.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 560 |
+
"model.visual.blocks.5.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 561 |
+
"model.visual.blocks.5.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 562 |
+
"model.visual.blocks.5.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 563 |
+
"model.visual.blocks.5.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 564 |
+
"model.visual.blocks.5.norm1.bias": "model-00001-of-00002.safetensors",
|
| 565 |
+
"model.visual.blocks.5.norm1.weight": "model-00001-of-00002.safetensors",
|
| 566 |
+
"model.visual.blocks.5.norm2.bias": "model-00001-of-00002.safetensors",
|
| 567 |
+
"model.visual.blocks.5.norm2.weight": "model-00001-of-00002.safetensors",
|
| 568 |
+
"model.visual.blocks.6.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 569 |
+
"model.visual.blocks.6.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 570 |
+
"model.visual.blocks.6.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 571 |
+
"model.visual.blocks.6.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 572 |
+
"model.visual.blocks.6.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 573 |
+
"model.visual.blocks.6.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 574 |
+
"model.visual.blocks.6.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 575 |
+
"model.visual.blocks.6.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 576 |
+
"model.visual.blocks.6.norm1.bias": "model-00001-of-00002.safetensors",
|
| 577 |
+
"model.visual.blocks.6.norm1.weight": "model-00001-of-00002.safetensors",
|
| 578 |
+
"model.visual.blocks.6.norm2.bias": "model-00001-of-00002.safetensors",
|
| 579 |
+
"model.visual.blocks.6.norm2.weight": "model-00001-of-00002.safetensors",
|
| 580 |
+
"model.visual.blocks.7.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 581 |
+
"model.visual.blocks.7.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 582 |
+
"model.visual.blocks.7.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 583 |
+
"model.visual.blocks.7.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 584 |
+
"model.visual.blocks.7.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 585 |
+
"model.visual.blocks.7.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 586 |
+
"model.visual.blocks.7.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 587 |
+
"model.visual.blocks.7.mlp.linear_fc2.weight": "model-00001-of-00002.safetensors",
|
| 588 |
+
"model.visual.blocks.7.norm1.bias": "model-00001-of-00002.safetensors",
|
| 589 |
+
"model.visual.blocks.7.norm1.weight": "model-00001-of-00002.safetensors",
|
| 590 |
+
"model.visual.blocks.7.norm2.bias": "model-00001-of-00002.safetensors",
|
| 591 |
+
"model.visual.blocks.7.norm2.weight": "model-00001-of-00002.safetensors",
|
| 592 |
+
"model.visual.blocks.8.attn.proj.bias": "model-00001-of-00002.safetensors",
|
| 593 |
+
"model.visual.blocks.8.attn.proj.weight": "model-00001-of-00002.safetensors",
|
| 594 |
+
"model.visual.blocks.8.attn.qkv.bias": "model-00001-of-00002.safetensors",
|
| 595 |
+
"model.visual.blocks.8.attn.qkv.weight": "model-00001-of-00002.safetensors",
|
| 596 |
+
"model.visual.blocks.8.mlp.linear_fc1.bias": "model-00001-of-00002.safetensors",
|
| 597 |
+
"model.visual.blocks.8.mlp.linear_fc1.weight": "model-00001-of-00002.safetensors",
|
| 598 |
+
"model.visual.blocks.8.mlp.linear_fc2.bias": "model-00001-of-00002.safetensors",
|
| 599 |
+
"model.visual.blocks.8.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 600 |
+
"model.visual.blocks.8.norm1.bias": "model-00002-of-00002.safetensors",
|
| 601 |
+
"model.visual.blocks.8.norm1.weight": "model-00002-of-00002.safetensors",
|
| 602 |
+
"model.visual.blocks.8.norm2.bias": "model-00002-of-00002.safetensors",
|
| 603 |
+
"model.visual.blocks.8.norm2.weight": "model-00002-of-00002.safetensors",
|
| 604 |
+
"model.visual.blocks.9.attn.proj.bias": "model-00002-of-00002.safetensors",
|
| 605 |
+
"model.visual.blocks.9.attn.proj.weight": "model-00002-of-00002.safetensors",
|
| 606 |
+
"model.visual.blocks.9.attn.qkv.bias": "model-00002-of-00002.safetensors",
|
| 607 |
+
"model.visual.blocks.9.attn.qkv.weight": "model-00002-of-00002.safetensors",
|
| 608 |
+
"model.visual.blocks.9.mlp.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 609 |
+
"model.visual.blocks.9.mlp.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 610 |
+
"model.visual.blocks.9.mlp.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 611 |
+
"model.visual.blocks.9.mlp.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 612 |
+
"model.visual.blocks.9.norm1.bias": "model-00002-of-00002.safetensors",
|
| 613 |
+
"model.visual.blocks.9.norm1.weight": "model-00002-of-00002.safetensors",
|
| 614 |
+
"model.visual.blocks.9.norm2.bias": "model-00002-of-00002.safetensors",
|
| 615 |
+
"model.visual.blocks.9.norm2.weight": "model-00002-of-00002.safetensors",
|
| 616 |
+
"model.visual.merger.linear_fc1.bias": "model-00002-of-00002.safetensors",
|
| 617 |
+
"model.visual.merger.linear_fc1.weight": "model-00002-of-00002.safetensors",
|
| 618 |
+
"model.visual.merger.linear_fc2.bias": "model-00002-of-00002.safetensors",
|
| 619 |
+
"model.visual.merger.linear_fc2.weight": "model-00002-of-00002.safetensors",
|
| 620 |
+
"model.visual.merger.norm.bias": "model-00002-of-00002.safetensors",
|
| 621 |
+
"model.visual.merger.norm.weight": "model-00002-of-00002.safetensors",
|
| 622 |
+
"model.visual.patch_embed.proj.bias": "model-00002-of-00002.safetensors",
|
| 623 |
+
"model.visual.patch_embed.proj.weight": "model-00002-of-00002.safetensors",
|
| 624 |
+
"model.visual.pos_embed.weight": "model-00002-of-00002.safetensors"
|
| 625 |
+
}
|
| 626 |
+
}
|
modeling_marlin.py
ADDED
|
@@ -0,0 +1,690 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Custom HuggingFace modeling code for Marlin.
|
| 2 |
+
|
| 3 |
+
This module subclasses the upstream ``Qwen3_5ForConditionalGeneration``
|
| 4 |
+
(native in ``transformers >= 5.7.0``) and adds two convenience methods —
|
| 5 |
+
:meth:`MarlinForConditionalGeneration.caption` and
|
| 6 |
+
:meth:`MarlinForConditionalGeneration.find` — that mirror moondream's
|
| 7 |
+
image-SDK ergonomics for video captioning and temporal grounding.
|
| 8 |
+
|
| 9 |
+
The forward pass is **not** modified: we only add chat-template + generate +
|
| 10 |
+
post-processing wrappers. Loading the model through
|
| 11 |
+
``AutoModelForCausalLM.from_pretrained(..., trust_remote_code=True)`` returns
|
| 12 |
+
this subclass thanks to the ``auto_map`` entry in ``config.json``.
|
| 13 |
+
|
| 14 |
+
Required environment for video inference (set before importing transformers)::
|
| 15 |
+
|
| 16 |
+
FORCE_QWENVL_VIDEO_READER=torchcodec
|
| 17 |
+
VIDEO_MAX_PIXELS=200704
|
| 18 |
+
FPS=2.0
|
| 19 |
+
FPS_MAX_FRAMES=240
|
| 20 |
+
FPS_MIN_FRAMES=4
|
| 21 |
+
|
| 22 |
+
System requirements:
|
| 23 |
+
|
| 24 |
+
* transformers >= 5.7.0
|
| 25 |
+
* torch >= 2.11.0
|
| 26 |
+
* torchcodec
|
| 27 |
+
* qwen-vl-utils >= 0.0.14
|
| 28 |
+
* av, pillow
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
from __future__ import annotations
|
| 32 |
+
|
| 33 |
+
import os
|
| 34 |
+
import re
|
| 35 |
+
import subprocess
|
| 36 |
+
import tempfile
|
| 37 |
+
from typing import Any, Dict, List, Optional, Tuple, TypedDict, Union
|
| 38 |
+
|
| 39 |
+
import torch
|
| 40 |
+
|
| 41 |
+
# ``Qwen3_5ForConditionalGeneration`` is the native HF class for Marlin's
|
| 42 |
+
# backbone (Qwen3.5-2B with vision tower). It ships in transformers >= 5.7.0.
|
| 43 |
+
# We import it lazily-friendly at module top so AutoModelForCausalLM resolution
|
| 44 |
+
# works correctly when this file is loaded via ``trust_remote_code=True``.
|
| 45 |
+
from transformers import Qwen3_5ForConditionalGeneration
|
| 46 |
+
|
| 47 |
+
__all__ = [
|
| 48 |
+
"CAPTION_PROMPT",
|
| 49 |
+
"GROUNDING_PROMPT_TEMPLATE",
|
| 50 |
+
"CaptionResult",
|
| 51 |
+
"FindResult",
|
| 52 |
+
"MultiFindResult",
|
| 53 |
+
"Event",
|
| 54 |
+
"MarlinForConditionalGeneration",
|
| 55 |
+
"strip_thinking",
|
| 56 |
+
"parse_caption",
|
| 57 |
+
"parse_span",
|
| 58 |
+
]
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
# ---------------------------------------------------------------------------
|
| 62 |
+
# Canonical training-time prompts — DO NOT EDIT
|
| 63 |
+
# ---------------------------------------------------------------------------
|
| 64 |
+
#
|
| 65 |
+
# These strings must match exactly what the model was fine-tuned on. Diverging
|
| 66 |
+
# from them silently degrades quality.
|
| 67 |
+
|
| 68 |
+
CAPTION_PROMPT: str = (
|
| 69 |
+
"Provide a spatial description of this clip followed by time-ranged events.\n"
|
| 70 |
+
"For each event, give the time range as <start - end> and a short description."
|
| 71 |
+
)
|
| 72 |
+
|
| 73 |
+
GROUNDING_PROMPT_TEMPLATE: str = (
|
| 74 |
+
'Identify the timestamps during which "{event}" takes place. '
|
| 75 |
+
'Output the time range as "From <start> to <end>." (numbers in seconds).'
|
| 76 |
+
)
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
# ---------------------------------------------------------------------------
|
| 80 |
+
# Thinking-tag stripping
|
| 81 |
+
# ---------------------------------------------------------------------------
|
| 82 |
+
#
|
| 83 |
+
# ms-swift's Marlin training template uses ``add_non_thinking_prefix=True``,
|
| 84 |
+
# which prefixes every response with a bare ``<think>\n`` (no close tag). The
|
| 85 |
+
# model occasionally also emits a complete ``<think>...</think>`` block. Strip
|
| 86 |
+
# both robustly.
|
| 87 |
+
|
| 88 |
+
_THINK_BLOCK = re.compile(r"<think>.*?</think>\s*", re.DOTALL)
|
| 89 |
+
_THINK_PREFIX = re.compile(r"^\s*<think>\s*\n*", re.IGNORECASE)
|
| 90 |
+
_THINK_CLOSE = re.compile(r"</think>\s*", re.IGNORECASE)
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def strip_thinking(text: str) -> str:
|
| 94 |
+
"""Remove ``<think>...</think>`` blocks and bare ``<think>`` prefixes.
|
| 95 |
+
|
| 96 |
+
Parameters
|
| 97 |
+
----------
|
| 98 |
+
text:
|
| 99 |
+
Raw model output.
|
| 100 |
+
|
| 101 |
+
Returns
|
| 102 |
+
-------
|
| 103 |
+
str
|
| 104 |
+
The text with any thinking artifacts removed and outer whitespace
|
| 105 |
+
stripped.
|
| 106 |
+
"""
|
| 107 |
+
out = _THINK_BLOCK.sub("", text)
|
| 108 |
+
out = _THINK_PREFIX.sub("", out)
|
| 109 |
+
out = _THINK_CLOSE.sub("", out)
|
| 110 |
+
return out.strip()
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
# ---------------------------------------------------------------------------
|
| 114 |
+
# Mode 1 — dense caption parser
|
| 115 |
+
# ---------------------------------------------------------------------------
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
class Event(TypedDict):
|
| 119 |
+
"""A single time-ranged event extracted from a dense caption."""
|
| 120 |
+
|
| 121 |
+
start: float
|
| 122 |
+
end: float
|
| 123 |
+
description: str
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
# Tolerates ``<1.2 - 3.4>`` / ``1.2 - 3.4`` / ``1.2-3.4`` with optional units.
|
| 127 |
+
# Unit alternation is ordered longest-first so e.g. ``"1.8 seconds"`` consumes
|
| 128 |
+
# the full word instead of leaving ``"econds"`` in the description.
|
| 129 |
+
_EVENT_LINE = re.compile(
|
| 130 |
+
r"^\s*<?\s*(\d+\.?\d*)\s*(?:seconds?|secs?|s)?\s*-\s*"
|
| 131 |
+
r"(\d+\.?\d*)\s*(?:seconds?|secs?|s)?\s*>?\s*[:\-]?\s*(.+?)\s*$"
|
| 132 |
+
)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def _parse_events(events_block: str) -> List[Event]:
|
| 136 |
+
"""Parse a multi-line events block into a list of :class:`Event` dicts."""
|
| 137 |
+
out: List[Event] = []
|
| 138 |
+
for raw_line in events_block.splitlines():
|
| 139 |
+
line = raw_line.strip()
|
| 140 |
+
if not line:
|
| 141 |
+
continue
|
| 142 |
+
m = _EVENT_LINE.match(line)
|
| 143 |
+
if not m:
|
| 144 |
+
continue
|
| 145 |
+
start = float(m.group(1))
|
| 146 |
+
end = float(m.group(2))
|
| 147 |
+
desc = m.group(3).strip().lstrip("-").strip()
|
| 148 |
+
if end <= start or not desc:
|
| 149 |
+
continue
|
| 150 |
+
out.append(Event(start=start, end=end, description=desc))
|
| 151 |
+
return out
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
def parse_caption(text: str) -> Tuple[str, str, List[Event]]:
|
| 155 |
+
"""Parse a Mode 1 caption into ``(caption, scene, events)``.
|
| 156 |
+
|
| 157 |
+
The model is trained to produce::
|
| 158 |
+
|
| 159 |
+
Scene: <one-paragraph spatial description>
|
| 160 |
+
|
| 161 |
+
Events:
|
| 162 |
+
<start - end> <description>
|
| 163 |
+
<start - end> <description>
|
| 164 |
+
|
| 165 |
+
The parser is tolerant: if explicit ``Scene:`` / ``Events:`` headers are
|
| 166 |
+
missing, ``scene`` falls back to everything before the first event line and
|
| 167 |
+
``events`` is whatever event-shaped lines were detected.
|
| 168 |
+
|
| 169 |
+
Parameters
|
| 170 |
+
----------
|
| 171 |
+
text:
|
| 172 |
+
Raw model output. Thinking artifacts will be stripped.
|
| 173 |
+
|
| 174 |
+
Returns
|
| 175 |
+
-------
|
| 176 |
+
tuple
|
| 177 |
+
``(caption, scene, events)`` — the post-thinking full text, the parsed
|
| 178 |
+
scene paragraph, and a list of :class:`Event` dicts in emission order.
|
| 179 |
+
"""
|
| 180 |
+
cleaned = strip_thinking(text)
|
| 181 |
+
|
| 182 |
+
scene_match = re.search(
|
| 183 |
+
r"(?:^|\n)\s*Scene\s*:\s*(.*?)(?=\n\s*Events\s*:|\Z)",
|
| 184 |
+
cleaned,
|
| 185 |
+
re.IGNORECASE | re.DOTALL,
|
| 186 |
+
)
|
| 187 |
+
events_match = re.search(
|
| 188 |
+
r"(?:^|\n)\s*Events\s*:\s*(.*)\Z",
|
| 189 |
+
cleaned,
|
| 190 |
+
re.IGNORECASE | re.DOTALL,
|
| 191 |
+
)
|
| 192 |
+
|
| 193 |
+
if scene_match:
|
| 194 |
+
scene = scene_match.group(1).strip()
|
| 195 |
+
else:
|
| 196 |
+
# Fallback: scene = everything before the first event-shaped line.
|
| 197 |
+
scene_lines: List[str] = []
|
| 198 |
+
for line in cleaned.splitlines():
|
| 199 |
+
if _EVENT_LINE.match(line.strip()):
|
| 200 |
+
break
|
| 201 |
+
scene_lines.append(line)
|
| 202 |
+
scene = "\n".join(scene_lines).strip()
|
| 203 |
+
|
| 204 |
+
events_block = events_match.group(1) if events_match else cleaned
|
| 205 |
+
events = _parse_events(events_block)
|
| 206 |
+
|
| 207 |
+
return cleaned, scene, events
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
# ---------------------------------------------------------------------------
|
| 211 |
+
# Mode 2 — temporal grounding parser
|
| 212 |
+
# ---------------------------------------------------------------------------
|
| 213 |
+
|
| 214 |
+
# Tolerates ``From 1.2 to 3.4.``, ``From 1.2s to 3.4 sec``; trailing period
|
| 215 |
+
# optional.
|
| 216 |
+
_SPAN_RE = re.compile(
|
| 217 |
+
r"From\s+(\d+\.?\d*)\s*(?:s|sec)?\s+to\s+(\d+\.?\d*)\s*(?:s|sec)?\.?",
|
| 218 |
+
re.IGNORECASE,
|
| 219 |
+
)
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
def parse_span(text: str) -> Tuple[str, Optional[Tuple[float, float]]]:
|
| 223 |
+
"""Parse a Mode 2 grounding output into ``(text, span)``.
|
| 224 |
+
|
| 225 |
+
Parameters
|
| 226 |
+
----------
|
| 227 |
+
text:
|
| 228 |
+
Raw model output. Thinking artifacts will be stripped.
|
| 229 |
+
|
| 230 |
+
Returns
|
| 231 |
+
-------
|
| 232 |
+
tuple
|
| 233 |
+
``(cleaned, span)`` — the post-thinking text and ``(start, end)`` in
|
| 234 |
+
seconds, or ``None`` if no valid ``"From X to Y"`` substring was found
|
| 235 |
+
or the span was non-positive.
|
| 236 |
+
"""
|
| 237 |
+
cleaned = strip_thinking(text)
|
| 238 |
+
m = _SPAN_RE.search(cleaned)
|
| 239 |
+
if not m:
|
| 240 |
+
return cleaned, None
|
| 241 |
+
start = float(m.group(1))
|
| 242 |
+
end = float(m.group(2))
|
| 243 |
+
if end <= start:
|
| 244 |
+
return cleaned, None
|
| 245 |
+
return cleaned, (start, end)
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
# ---------------------------------------------------------------------------
|
| 249 |
+
# Result dicts
|
| 250 |
+
# ---------------------------------------------------------------------------
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
class CaptionResult(TypedDict):
|
| 254 |
+
"""Return type for :meth:`MarlinForConditionalGeneration.caption`.
|
| 255 |
+
|
| 256 |
+
Keys
|
| 257 |
+
----
|
| 258 |
+
caption : str
|
| 259 |
+
Post-thinking model output (e.g. ``"Scene: ...\\n\\nEvents:\\n..."``).
|
| 260 |
+
scene : str
|
| 261 |
+
Parsed ``Scene:`` paragraph.
|
| 262 |
+
events : list of :class:`Event`
|
| 263 |
+
Parsed ``{start, end, description}`` dicts in emission order.
|
| 264 |
+
raw : str
|
| 265 |
+
Raw model output *before* thinking-prefix stripping (for debugging).
|
| 266 |
+
"""
|
| 267 |
+
|
| 268 |
+
caption: str
|
| 269 |
+
scene: str
|
| 270 |
+
events: List[Event]
|
| 271 |
+
raw: str
|
| 272 |
+
|
| 273 |
+
|
| 274 |
+
class FindResult(TypedDict):
|
| 275 |
+
"""Return type for :meth:`MarlinForConditionalGeneration.find`.
|
| 276 |
+
|
| 277 |
+
Keys
|
| 278 |
+
----
|
| 279 |
+
raw : str
|
| 280 |
+
Raw post-thinking model output (e.g. ``"From 1.2 to 3.4."``).
|
| 281 |
+
span : tuple of (float, float) or None
|
| 282 |
+
``(start, end)`` in seconds, or ``None`` if parsing failed.
|
| 283 |
+
format_ok : bool
|
| 284 |
+
``True`` iff the output matched the trained ``"From X to Y."`` format.
|
| 285 |
+
"""
|
| 286 |
+
|
| 287 |
+
raw: str
|
| 288 |
+
span: Optional[Tuple[float, float]]
|
| 289 |
+
format_ok: bool
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
class MultiFindResult(TypedDict):
|
| 293 |
+
"""Return type for :meth:`MarlinForConditionalGeneration.multi_find`.
|
| 294 |
+
|
| 295 |
+
Keys
|
| 296 |
+
----
|
| 297 |
+
event : str
|
| 298 |
+
The natural-language event that was searched for.
|
| 299 |
+
spans : list of (float, float)
|
| 300 |
+
Up to ``max_events`` ``(start, end)`` ranges in seconds, ordered
|
| 301 |
+
earliest-first across the full video timeline.
|
| 302 |
+
stopped : str
|
| 303 |
+
Why the search ended: ``"max_events"`` (the cap was reached),
|
| 304 |
+
``"end_of_video"`` (the cursor ran off the timeline), or
|
| 305 |
+
``"no_span"`` (``find`` stopped producing a usable span).
|
| 306 |
+
"""
|
| 307 |
+
|
| 308 |
+
event: str
|
| 309 |
+
spans: List[Tuple[float, float]]
|
| 310 |
+
stopped: str
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
# ---------------------------------------------------------------------------
|
| 314 |
+
# Default video-preprocessing env vars
|
| 315 |
+
# ---------------------------------------------------------------------------
|
| 316 |
+
#
|
| 317 |
+
# qwen-vl-utils reads these from the environment when ``apply_chat_template``
|
| 318 |
+
# decodes a video. We populate them here as a safety net for users who forget
|
| 319 |
+
# to set them before importing transformers. Existing env values are NEVER
|
| 320 |
+
# overwritten — explicit user settings always win.
|
| 321 |
+
|
| 322 |
+
_DEFAULT_VIDEO_ENV: Dict[str, str] = {
|
| 323 |
+
"FORCE_QWENVL_VIDEO_READER": "torchcodec",
|
| 324 |
+
"VIDEO_MAX_PIXELS": "200704",
|
| 325 |
+
"FPS": "2.0",
|
| 326 |
+
"FPS_MAX_FRAMES": "240",
|
| 327 |
+
"FPS_MIN_FRAMES": "4",
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
for _k, _v in _DEFAULT_VIDEO_ENV.items():
|
| 331 |
+
os.environ.setdefault(_k, _v)
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
# ---------------------------------------------------------------------------
|
| 335 |
+
# The actual model class
|
| 336 |
+
# ---------------------------------------------------------------------------
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
class MarlinForConditionalGeneration(Qwen3_5ForConditionalGeneration):
|
| 340 |
+
"""Marlin with ``.caption()`` and ``.find()`` convenience methods.
|
| 341 |
+
|
| 342 |
+
Inherits the full forward / generate / from_pretrained machinery from
|
| 343 |
+
:class:`transformers.Qwen3_5ForConditionalGeneration`; only adds two
|
| 344 |
+
helpers that wrap chat-template construction, generation, and the trained
|
| 345 |
+
output parsers.
|
| 346 |
+
|
| 347 |
+
Use it via the standard auto class::
|
| 348 |
+
|
| 349 |
+
from transformers import AutoModelForCausalLM
|
| 350 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 351 |
+
"NemoStation/Marlin-2B",
|
| 352 |
+
trust_remote_code=True,
|
| 353 |
+
dtype=torch.bfloat16,
|
| 354 |
+
device_map={"": "cuda"},
|
| 355 |
+
)
|
| 356 |
+
result = model.caption("video.mp4")
|
| 357 |
+
span = model.find("video.mp4", event="a person enters the room")
|
| 358 |
+
"""
|
| 359 |
+
|
| 360 |
+
# ------------------------------------------------------------------ utils
|
| 361 |
+
|
| 362 |
+
@property
|
| 363 |
+
def processor(self): # type: ignore[override]
|
| 364 |
+
"""Lazily-loaded :class:`~transformers.AutoProcessor` for this checkpoint.
|
| 365 |
+
|
| 366 |
+
Cached on the instance to avoid the expensive HF Hub lookup on every
|
| 367 |
+
call.
|
| 368 |
+
"""
|
| 369 |
+
cached = getattr(self, "_processor", None)
|
| 370 |
+
if cached is None:
|
| 371 |
+
from transformers import AutoProcessor
|
| 372 |
+
|
| 373 |
+
cached = AutoProcessor.from_pretrained(
|
| 374 |
+
self.config._name_or_path,
|
| 375 |
+
trust_remote_code=True,
|
| 376 |
+
)
|
| 377 |
+
self._processor = cached
|
| 378 |
+
return cached
|
| 379 |
+
|
| 380 |
+
def compile(self, *args: Any, **kwargs: Any) -> "MarlinForConditionalGeneration":
|
| 381 |
+
"""Optional ``torch.compile`` wrapper around the model.
|
| 382 |
+
|
| 383 |
+
Returns ``self`` so it chains naturally after ``from_pretrained``::
|
| 384 |
+
|
| 385 |
+
model = AutoModelForCausalLM.from_pretrained(...).compile()
|
| 386 |
+
|
| 387 |
+
All positional / keyword args are forwarded to ``torch.compile``.
|
| 388 |
+
"""
|
| 389 |
+
# ``torch.compile`` replaces the module's forward with a compiled
|
| 390 |
+
# version in-place; we still return self for fluent chaining.
|
| 391 |
+
torch.compile(self, *args, **kwargs)
|
| 392 |
+
return self
|
| 393 |
+
|
| 394 |
+
# ----------------------------------------------------------- core generate
|
| 395 |
+
|
| 396 |
+
def _generate_video(
|
| 397 |
+
self,
|
| 398 |
+
video_path: Union[str, os.PathLike],
|
| 399 |
+
prompt: str,
|
| 400 |
+
max_tokens: int,
|
| 401 |
+
*,
|
| 402 |
+
do_sample: bool = False,
|
| 403 |
+
temperature: float = 1.0,
|
| 404 |
+
top_p: float = 1.0,
|
| 405 |
+
) -> str:
|
| 406 |
+
"""Build a chat message with one video + one text turn and decode.
|
| 407 |
+
|
| 408 |
+
Returns the raw decoded string (with any ``<think>`` artifacts still
|
| 409 |
+
attached — callers are expected to run :func:`strip_thinking`).
|
| 410 |
+
"""
|
| 411 |
+
messages = [
|
| 412 |
+
{
|
| 413 |
+
"role": "user",
|
| 414 |
+
"content": [
|
| 415 |
+
{"type": "video", "video": str(video_path)},
|
| 416 |
+
{"type": "text", "text": prompt},
|
| 417 |
+
],
|
| 418 |
+
}
|
| 419 |
+
]
|
| 420 |
+
|
| 421 |
+
inputs = self.processor.apply_chat_template(
|
| 422 |
+
messages,
|
| 423 |
+
tokenize=True,
|
| 424 |
+
add_generation_prompt=True,
|
| 425 |
+
return_tensors="pt",
|
| 426 |
+
return_dict=True,
|
| 427 |
+
).to(self.device)
|
| 428 |
+
|
| 429 |
+
with torch.inference_mode():
|
| 430 |
+
out = self.generate(
|
| 431 |
+
**inputs,
|
| 432 |
+
max_new_tokens=max_tokens,
|
| 433 |
+
do_sample=do_sample,
|
| 434 |
+
temperature=temperature if do_sample else 1.0,
|
| 435 |
+
top_p=top_p if do_sample else 1.0,
|
| 436 |
+
)
|
| 437 |
+
|
| 438 |
+
# Strip the prompt prefix so we only return the model's continuation.
|
| 439 |
+
prompt_len = inputs["input_ids"].shape[1]
|
| 440 |
+
out = out[:, prompt_len:]
|
| 441 |
+
return self.processor.batch_decode(out, skip_special_tokens=True)[0]
|
| 442 |
+
|
| 443 |
+
# ----------------------------------------------------- video sub-clipping
|
| 444 |
+
|
| 445 |
+
@staticmethod
|
| 446 |
+
def _video_duration(video_path: Union[str, os.PathLike]) -> float:
|
| 447 |
+
"""Return the video duration in seconds via the torchcodec decoder."""
|
| 448 |
+
from torchcodec.decoders import VideoDecoder
|
| 449 |
+
|
| 450 |
+
return float(VideoDecoder(str(video_path)).metadata.duration_seconds)
|
| 451 |
+
|
| 452 |
+
@staticmethod
|
| 453 |
+
def _clip_segment(
|
| 454 |
+
video_path: Union[str, os.PathLike], start: float, end: float
|
| 455 |
+
) -> str:
|
| 456 |
+
"""Trim ``video_path`` to ``[start, end]`` (seconds) into a temp mp4.
|
| 457 |
+
|
| 458 |
+
Re-encodes with libx264 for frame-accurate boundaries (stream-copy would
|
| 459 |
+
snap to keyframes and skew the timestamps we remap against). The caller
|
| 460 |
+
owns the returned path and must ``os.unlink`` it.
|
| 461 |
+
"""
|
| 462 |
+
fd, out_path = tempfile.mkstemp(suffix=".mp4")
|
| 463 |
+
os.close(fd)
|
| 464 |
+
subprocess.run(
|
| 465 |
+
[
|
| 466 |
+
"ffmpeg", "-y",
|
| 467 |
+
"-ss", f"{start:.3f}",
|
| 468 |
+
"-to", f"{end:.3f}",
|
| 469 |
+
"-i", str(video_path),
|
| 470 |
+
"-c:v", "libx264",
|
| 471 |
+
"-an",
|
| 472 |
+
"-loglevel", "error",
|
| 473 |
+
out_path,
|
| 474 |
+
],
|
| 475 |
+
check=True,
|
| 476 |
+
)
|
| 477 |
+
return out_path
|
| 478 |
+
|
| 479 |
+
# ---------------------------------------------------------------- caption
|
| 480 |
+
|
| 481 |
+
def caption(
|
| 482 |
+
self,
|
| 483 |
+
video_path: Union[str, os.PathLike],
|
| 484 |
+
*,
|
| 485 |
+
prompt: Optional[str] = None,
|
| 486 |
+
do_sample: bool = False,
|
| 487 |
+
temperature: float = 1.0,
|
| 488 |
+
top_p: float = 1.0,
|
| 489 |
+
max_new_tokens: int = 2048,
|
| 490 |
+
) -> CaptionResult:
|
| 491 |
+
"""Generate a dense caption for a video.
|
| 492 |
+
|
| 493 |
+
Parameters
|
| 494 |
+
----------
|
| 495 |
+
video_path:
|
| 496 |
+
Local path to a video file (mp4, webm, etc.).
|
| 497 |
+
prompt:
|
| 498 |
+
Override the canonical training prompt. Almost always leave at
|
| 499 |
+
``None``; diverging from training silently degrades quality.
|
| 500 |
+
do_sample:
|
| 501 |
+
If ``True``, switch to nucleus sampling. Defaults to greedy.
|
| 502 |
+
temperature, top_p:
|
| 503 |
+
Sampling params, only used when ``do_sample=True``.
|
| 504 |
+
max_new_tokens:
|
| 505 |
+
Generation cap. Default 2048 is enough for any dense caption the
|
| 506 |
+
model produces in practice.
|
| 507 |
+
|
| 508 |
+
Returns
|
| 509 |
+
-------
|
| 510 |
+
CaptionResult
|
| 511 |
+
Dict with keys ``caption``, ``scene``, ``events``, ``raw``.
|
| 512 |
+
"""
|
| 513 |
+
prompt_text = prompt if prompt is not None else CAPTION_PROMPT
|
| 514 |
+
raw = self._generate_video(
|
| 515 |
+
video_path,
|
| 516 |
+
prompt_text,
|
| 517 |
+
max_tokens=max_new_tokens,
|
| 518 |
+
do_sample=do_sample,
|
| 519 |
+
temperature=temperature,
|
| 520 |
+
top_p=top_p,
|
| 521 |
+
)
|
| 522 |
+
cleaned, scene, events = parse_caption(raw)
|
| 523 |
+
return CaptionResult(
|
| 524 |
+
caption=cleaned,
|
| 525 |
+
scene=scene,
|
| 526 |
+
events=events,
|
| 527 |
+
raw=raw,
|
| 528 |
+
)
|
| 529 |
+
|
| 530 |
+
# ------------------------------------------------------------------- find
|
| 531 |
+
|
| 532 |
+
def find(
|
| 533 |
+
self,
|
| 534 |
+
video_path: Union[str, os.PathLike],
|
| 535 |
+
event: str,
|
| 536 |
+
*,
|
| 537 |
+
prompt_template: Optional[str] = None,
|
| 538 |
+
do_sample: bool = False,
|
| 539 |
+
temperature: float = 1.0,
|
| 540 |
+
top_p: float = 1.0,
|
| 541 |
+
max_new_tokens: int = 64,
|
| 542 |
+
) -> FindResult:
|
| 543 |
+
"""Locate when a natural-language event occurs in a video.
|
| 544 |
+
|
| 545 |
+
Parameters
|
| 546 |
+
----------
|
| 547 |
+
video_path:
|
| 548 |
+
Local path to a video file.
|
| 549 |
+
event:
|
| 550 |
+
Free-form description of the event to locate, e.g.
|
| 551 |
+
``"a person enters the room"``. Inserted into the trained prompt
|
| 552 |
+
via the ``{event}`` placeholder.
|
| 553 |
+
prompt_template:
|
| 554 |
+
Override the canonical training prompt template. Must include a
|
| 555 |
+
``{event}`` placeholder. Almost always leave at ``None``.
|
| 556 |
+
do_sample:
|
| 557 |
+
If ``True``, switch to nucleus sampling. Defaults to greedy.
|
| 558 |
+
temperature, top_p:
|
| 559 |
+
Sampling params, only used when ``do_sample=True``.
|
| 560 |
+
max_new_tokens:
|
| 561 |
+
Output budget. 64 is plenty for the one-line trained format.
|
| 562 |
+
|
| 563 |
+
Returns
|
| 564 |
+
-------
|
| 565 |
+
FindResult
|
| 566 |
+
Dict with keys ``raw``, ``span`` and ``format_ok``.
|
| 567 |
+
|
| 568 |
+
Raises
|
| 569 |
+
------
|
| 570 |
+
ValueError
|
| 571 |
+
If ``event`` is empty or whitespace-only.
|
| 572 |
+
"""
|
| 573 |
+
event_str = (event or "").strip()
|
| 574 |
+
if not event_str:
|
| 575 |
+
raise ValueError("`event` must be a non-empty string")
|
| 576 |
+
|
| 577 |
+
template = prompt_template if prompt_template is not None else GROUNDING_PROMPT_TEMPLATE
|
| 578 |
+
prompt_text = template.format(event=event_str)
|
| 579 |
+
|
| 580 |
+
raw = self._generate_video(
|
| 581 |
+
video_path,
|
| 582 |
+
prompt_text,
|
| 583 |
+
max_tokens=max_new_tokens,
|
| 584 |
+
do_sample=do_sample,
|
| 585 |
+
temperature=temperature,
|
| 586 |
+
top_p=top_p,
|
| 587 |
+
)
|
| 588 |
+
cleaned, span = parse_span(raw)
|
| 589 |
+
return FindResult(
|
| 590 |
+
raw=cleaned,
|
| 591 |
+
span=span,
|
| 592 |
+
format_ok=span is not None,
|
| 593 |
+
)
|
| 594 |
+
|
| 595 |
+
# ------------------------------------------------------------- multi_find
|
| 596 |
+
|
| 597 |
+
def multi_find(
|
| 598 |
+
self,
|
| 599 |
+
video_path: Union[str, os.PathLike],
|
| 600 |
+
event: str,
|
| 601 |
+
max_events: int,
|
| 602 |
+
*,
|
| 603 |
+
min_gap: float = 0.3,
|
| 604 |
+
min_segment: float = 0.5,
|
| 605 |
+
**find_kwargs: Any,
|
| 606 |
+
) -> MultiFindResult:
|
| 607 |
+
"""Locate up to ``max_events`` occurrences of ``event``, left to right.
|
| 608 |
+
|
| 609 |
+
:meth:`find` returns only the *earliest* occurrence in whatever clip it
|
| 610 |
+
is given. ``multi_find`` walks the timeline by repeatedly trimming the
|
| 611 |
+
video to the not-yet-searched tail ``[cursor, end]``, running
|
| 612 |
+
:meth:`find` on that sub-clip, remapping the returned (clip-local) span
|
| 613 |
+
back to global time, then advancing the cursor past it.
|
| 614 |
+
|
| 615 |
+
The search stops on exactly two conditions: ``max_events`` spans have
|
| 616 |
+
been collected, or the cursor runs off the end of the video. Because
|
| 617 |
+
:meth:`find` always emits *some* span, there is no built-in
|
| 618 |
+
"event absent" signal — ``max_events`` is the caller-supplied upper
|
| 619 |
+
bound that bounds the walk. If the event actually occurs fewer than
|
| 620 |
+
``max_events`` times, trailing spans may be spurious; set
|
| 621 |
+
``max_events`` to a tight expected maximum, not an arbitrarily large
|
| 622 |
+
number, and treat later spans as lower confidence.
|
| 623 |
+
|
| 624 |
+
Parameters
|
| 625 |
+
----------
|
| 626 |
+
video_path:
|
| 627 |
+
Local path to a video file.
|
| 628 |
+
event:
|
| 629 |
+
Free-form description of the event to locate (see :meth:`find`).
|
| 630 |
+
max_events:
|
| 631 |
+
Maximum number of occurrences to return (must be >= 1).
|
| 632 |
+
min_gap:
|
| 633 |
+
Seconds to advance the cursor past each hit. Also guarantees the
|
| 634 |
+
cursor always moves forward, so the loop can never stall.
|
| 635 |
+
min_segment:
|
| 636 |
+
Stop once the remaining clip is shorter than this, and drop any
|
| 637 |
+
individual span shorter than this.
|
| 638 |
+
**find_kwargs:
|
| 639 |
+
Forwarded verbatim to :meth:`find` (e.g. ``do_sample``,
|
| 640 |
+
``temperature``, ``top_p``, ``max_new_tokens``).
|
| 641 |
+
|
| 642 |
+
Returns
|
| 643 |
+
-------
|
| 644 |
+
MultiFindResult
|
| 645 |
+
Dict with keys ``event``, ``spans`` and ``stopped``.
|
| 646 |
+
|
| 647 |
+
Raises
|
| 648 |
+
------
|
| 649 |
+
ValueError
|
| 650 |
+
If ``max_events < 1`` or ``event`` is empty / whitespace-only.
|
| 651 |
+
"""
|
| 652 |
+
if max_events < 1:
|
| 653 |
+
raise ValueError("`max_events` must be >= 1")
|
| 654 |
+
event_str = (event or "").strip()
|
| 655 |
+
if not event_str:
|
| 656 |
+
raise ValueError("`event` must be a non-empty string")
|
| 657 |
+
|
| 658 |
+
duration = self._video_duration(video_path)
|
| 659 |
+
spans: List[Tuple[float, float]] = []
|
| 660 |
+
cursor = 0.0
|
| 661 |
+
stopped = "end_of_video"
|
| 662 |
+
|
| 663 |
+
while cursor < duration - min_segment:
|
| 664 |
+
if len(spans) >= max_events:
|
| 665 |
+
stopped = "max_events"
|
| 666 |
+
break
|
| 667 |
+
|
| 668 |
+
clip = self._clip_segment(video_path, cursor, duration)
|
| 669 |
+
try:
|
| 670 |
+
result = self.find(clip, event_str, **find_kwargs)
|
| 671 |
+
finally:
|
| 672 |
+
os.unlink(clip)
|
| 673 |
+
|
| 674 |
+
if not result["format_ok"]:
|
| 675 |
+
stopped = "no_span"
|
| 676 |
+
break
|
| 677 |
+
|
| 678 |
+
local_start, local_end = result["span"]
|
| 679 |
+
# Remap clip-local timestamps back onto the full-video timeline.
|
| 680 |
+
global_start = cursor + local_start
|
| 681 |
+
global_end = min(cursor + local_end, duration)
|
| 682 |
+
if global_end - global_start < min_segment:
|
| 683 |
+
stopped = "no_span"
|
| 684 |
+
break
|
| 685 |
+
|
| 686 |
+
spans.append((round(global_start, 1), round(global_end, 1)))
|
| 687 |
+
# Always move strictly forward, even if the span maps near `cursor`.
|
| 688 |
+
cursor = max(global_end, cursor + min_gap) + min_gap
|
| 689 |
+
|
| 690 |
+
return MultiFindResult(event=event_str, spans=spans, stopped=stopped)
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 16777216,
|
| 4 |
+
"shortest_edge": 65536
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"image_processor_type": "Qwen2VLImageProcessorFast"
|
| 21 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"patch_size": 16,
|
| 20 |
+
"resample": 3,
|
| 21 |
+
"rescale_factor": 0.00392156862745098,
|
| 22 |
+
"size": {
|
| 23 |
+
"longest_edge": 16777216,
|
| 24 |
+
"shortest_edge": 65536
|
| 25 |
+
},
|
| 26 |
+
"temporal_patch_size": 2
|
| 27 |
+
},
|
| 28 |
+
"processor_class": "Qwen3VLProcessor",
|
| 29 |
+
"video_processor": {
|
| 30 |
+
"do_convert_rgb": true,
|
| 31 |
+
"do_normalize": true,
|
| 32 |
+
"do_rescale": true,
|
| 33 |
+
"do_resize": true,
|
| 34 |
+
"do_sample_frames": true,
|
| 35 |
+
"fps": 2,
|
| 36 |
+
"image_mean": [
|
| 37 |
+
0.5,
|
| 38 |
+
0.5,
|
| 39 |
+
0.5
|
| 40 |
+
],
|
| 41 |
+
"image_std": [
|
| 42 |
+
0.5,
|
| 43 |
+
0.5,
|
| 44 |
+
0.5
|
| 45 |
+
],
|
| 46 |
+
"max_frames": 768,
|
| 47 |
+
"merge_size": 2,
|
| 48 |
+
"min_frames": 4,
|
| 49 |
+
"patch_size": 16,
|
| 50 |
+
"resample": 3,
|
| 51 |
+
"rescale_factor": 0.00392156862745098,
|
| 52 |
+
"return_metadata": false,
|
| 53 |
+
"size": {
|
| 54 |
+
"longest_edge": 25165824,
|
| 55 |
+
"shortest_edge": 4096
|
| 56 |
+
},
|
| 57 |
+
"temporal_patch_size": 2,
|
| 58 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 59 |
+
}
|
| 60 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
|
| 3 |
+
size 19989325
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"model_max_length": 262144,
|
| 15 |
+
"model_specific_special_tokens": {
|
| 16 |
+
"audio_bos_token": "<|audio_start|>",
|
| 17 |
+
"audio_eos_token": "<|audio_end|>",
|
| 18 |
+
"audio_token": "<|audio_pad|>",
|
| 19 |
+
"image_token": "<|image_pad|>",
|
| 20 |
+
"video_token": "<|video_pad|>",
|
| 21 |
+
"vision_bos_token": "<|vision_start|>",
|
| 22 |
+
"vision_eos_token": "<|vision_end|>"
|
| 23 |
+
},
|
| 24 |
+
"pad_token": "<|endoftext|>",
|
| 25 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 26 |
+
"processor_class": "Qwen3VLProcessor",
|
| 27 |
+
"split_special_tokens": false,
|
| 28 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 29 |
+
"unk_token": null,
|
| 30 |
+
"video_token": "<|video_pad|>",
|
| 31 |
+
"vision_bos_token": "<|vision_start|>",
|
| 32 |
+
"vision_eos_token": "<|vision_end|>"
|
| 33 |
+
}
|