OxBee
/

sekkit haijunlv commited on
Commit
c7da33b
·
0 Parent(s):

Duplicate from internlm/Intern-S2-397B

Browse files

Co-authored-by: henry <haijunlv@users.noreply.huggingface.co>

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +38 -0
  2. LICENSE +201 -0
  3. README.md +568 -0
  4. chat_template.jinja +162 -0
  5. config.json +135 -0
  6. deployment_guide.md +153 -0
  7. figs/intern-s2-397b.jpg +3 -0
  8. figs/title.png +3 -0
  9. generation_config.json +13 -0
  10. merges.txt +0 -0
  11. model-00001-of-00188.safetensors +3 -0
  12. model-00002-of-00188.safetensors +3 -0
  13. model-00003-of-00188.safetensors +3 -0
  14. model-00004-of-00188.safetensors +3 -0
  15. model-00005-of-00188.safetensors +3 -0
  16. model-00006-of-00188.safetensors +3 -0
  17. model-00007-of-00188.safetensors +3 -0
  18. model-00008-of-00188.safetensors +3 -0
  19. model-00009-of-00188.safetensors +3 -0
  20. model-00010-of-00188.safetensors +3 -0
  21. model-00011-of-00188.safetensors +3 -0
  22. model-00012-of-00188.safetensors +3 -0
  23. model-00013-of-00188.safetensors +3 -0
  24. model-00014-of-00188.safetensors +3 -0
  25. model-00015-of-00188.safetensors +3 -0
  26. model-00016-of-00188.safetensors +3 -0
  27. model-00017-of-00188.safetensors +3 -0
  28. model-00018-of-00188.safetensors +3 -0
  29. model-00019-of-00188.safetensors +3 -0
  30. model-00020-of-00188.safetensors +3 -0
  31. model-00021-of-00188.safetensors +3 -0
  32. model-00022-of-00188.safetensors +3 -0
  33. model-00023-of-00188.safetensors +3 -0
  34. model-00024-of-00188.safetensors +3 -0
  35. model-00025-of-00188.safetensors +3 -0
  36. model-00026-of-00188.safetensors +3 -0
  37. model-00027-of-00188.safetensors +3 -0
  38. model-00028-of-00188.safetensors +3 -0
  39. model-00029-of-00188.safetensors +3 -0
  40. model-00030-of-00188.safetensors +3 -0
  41. model-00031-of-00188.safetensors +3 -0
  42. model-00032-of-00188.safetensors +3 -0
  43. model-00033-of-00188.safetensors +3 -0
  44. model-00034-of-00188.safetensors +3 -0
  45. model-00035-of-00188.safetensors +3 -0
  46. model-00036-of-00188.safetensors +3 -0
  47. model-00037-of-00188.safetensors +3 -0
  48. model-00038-of-00188.safetensors +3 -0
  49. model-00039-of-00188.safetensors +3 -0
  50. model-00040-of-00188.safetensors +3 -0
.gitattributes ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ figs/intern-s2-397b.jpg filter=lfs diff=lfs merge=lfs -text
38
+ figs/title.png filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026-2027 Shanghai AI Laboratory
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
README.md ADDED
@@ -0,0 +1,568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ license_link: https://huggingface.co/internlm/Intern-S2/blob/main/LICENSE
5
+ pipeline_tag: image-text-to-text
6
+ ---
7
+
8
+ ## Intern-S2-397B
9
+
10
+ <div align="center">
11
+ <img src="./figs/title.png" />
12
+
13
+ <div>&nbsp;</div>
14
+
15
+ [💻Github Repo](https://github.com/InternLM/Intern-S1) • [🤗HF Model Collections](https://huggingface.co/collections/internlm/intern-s2) • [🤖ModelScope Collections](https://modelscope.cn/collections/Shanghai_AI_Laboratory/intern-s2) • [💬Online Chat](https://chat.intern-ai.org.cn/)
16
+
17
+ </div>
18
+
19
+ <p align="center">
20
+ 👋 join us on <a href="https://discord.gg/xa29JuW87d" target="_blank">Discord</a> and <a href="https://cdn.vansin.top/intern-s1.jpg" target="_blank">WeChat</a>
21
+ </p>
22
+
23
+
24
+
25
+ ## Introduction
26
+
27
+ We introduce **Intern-S2-397B**, our most capable multimodal foundation model for scientific intelligence and long-horizon agents. Intern-S2-397B scales along three critical dimensions: pre-training, reinforcement-learning task coverage, and interactive agent environments. By combining a new vision-language pre-training paradigm with large-scale multi-task reinforcement learning and long-horizon agent reinforcement learning, Intern-S2-397B delivers a step change in general reasoning, scientific problem solving, and agentic capabilities.
28
+
29
+ ### Features
30
+
31
+ - **New Pre-training Paradigm.** Via visual pretraining, Intern-S2-397B learns directly from raw pages of scientific literature, jointly modeling symbolic semantics and visual relationships in a shared representation space without intermediate parsing. This preserves text-visual correspondence, strengthens spatial and visual reasoning, and improves data efficiency.
32
+
33
+ - **Scientific Modality Reasoning and Generation.** By scaling diverse scientific reinforcement-learning tasks across more than 20 domains and training them jointly, Intern-S2-397B achieves leading general-reasoning performance among open-source models and strong results in specialized scientific tasks such as biomolecular interaction design and material structure generation.
34
+
35
+ - **General & Scientific Long-Horizon Agents.** By connecting multiple agent frameworks to large-scale sandboxed environments for black-box agentic reinforcement learning, Intern-S2-397B improves generalization and raises the capability ceiling for long-horizon tasks in both general and scientific domains.
36
+
37
+ ### Performance
38
+
39
+ We evaluate the Intern-S2-397B on various benchmarks, including general datasets and scientific datasets. We report the performance comparison with the recent VLMs and LLMs below.
40
+
41
+ ![performance](./figs/intern-s2-397b.jpg)
42
+
43
+
44
+
45
+ > **Note**: <u>Underline</u> means the best performance among open-sourced models, **Bold** indicates the best performance among all models.
46
+
47
+ We use the [OpenCompass](https://github.com/open-compass/OpenCompass/), [VLMEvalKit](https://github.com/open-compass/vlmevalkit), and [AgentCompass](https://github.com/open-compass/AgentCompass) to evaluate all models. For text reasoning benchmarks, Intern-S2-397B is evaluated with a maximum inference length of 256K tokens, while for multimodal benchmarks, it is evaluated with a maximum inference length of 64K tokens.
48
+
49
+
50
+ ## Quick Start
51
+
52
+ ### Sampling Parameters
53
+
54
+ We recommend using the following hyperparameters to ensure better results
55
+
56
+ ```python
57
+ top_p = 0.95
58
+ top_k = 50
59
+ min_p = 0.0
60
+ temperature = 0.8
61
+ ```
62
+
63
+ ### Serving
64
+
65
+ Intern-S2-397B can be deployed using any of the following LLM inference frameworks:
66
+
67
+ - LMDeploy
68
+ - vLLM
69
+ - SGLang
70
+
71
+ Detailed deployment examples for these frameworks are available in the [Model Deployment Guide](./deployment_guide.md).
72
+
73
+
74
+ ## Advanced Usage
75
+
76
+ ### Tool Calling
77
+
78
+ Tool Calling lets the model extend its capabilities by invoking external tools and APIs. The example below shows how to use it to fetch the latest weather forecast via an OpenAI-compatible API (based on lmdeploy api server).
79
+
80
+ ```python
81
+
82
+
83
+ from openai import OpenAI
84
+ import json
85
+
86
+
87
+ def get_current_temperature(location: str, unit: str = "celsius"):
88
+ """Get current temperature at a location.
89
+
90
+ Args:
91
+ location: The location to get the temperature for, in the format "City, State, Country".
92
+ unit: The unit to return the temperature in. Defaults to "celsius". (choices: ["celsius", "fahrenheit"])
93
+
94
+ Returns:
95
+ the temperature, the location, and the unit in a dict
96
+ """
97
+ return {
98
+ "temperature": 26.1,
99
+ "location": location,
100
+ "unit": unit,
101
+ }
102
+
103
+
104
+ def get_temperature_date(location: str, date: str, unit: str = "celsius"):
105
+ """Get temperature at a location and date.
106
+
107
+ Args:
108
+ location: The location to get the temperature for, in the format "City, State, Country".
109
+ date: The date to get the temperature for, in the format "Year-Month-Day".
110
+ unit: The unit to return the temperature in. Defaults to "celsius". (choices: ["celsius", "fahrenheit"])
111
+
112
+ Returns:
113
+ the temperature, the location, the date and the unit in a dict
114
+ """
115
+ return {
116
+ "temperature": 25.9,
117
+ "location": location,
118
+ "date": date,
119
+ "unit": unit,
120
+ }
121
+
122
+ def get_function_by_name(name):
123
+ if name == "get_current_temperature":
124
+ return get_current_temperature
125
+ if name == "get_temperature_date":
126
+ return get_temperature_date
127
+
128
+ tools = [{
129
+ 'type': 'function',
130
+ 'function': {
131
+ 'name': 'get_current_temperature',
132
+ 'description': 'Get current temperature at a location.',
133
+ 'parameters': {
134
+ 'type': 'object',
135
+ 'properties': {
136
+ 'location': {
137
+ 'type': 'string',
138
+ 'description': 'The location to get the temperature for, in the format \'City, State, Country\'.'
139
+ },
140
+ 'unit': {
141
+ 'type': 'string',
142
+ 'enum': [
143
+ 'celsius',
144
+ 'fahrenheit'
145
+ ],
146
+ 'description': 'The unit to return the temperature in. Defaults to \'celsius\'.'
147
+ }
148
+ },
149
+ 'required': [
150
+ 'location'
151
+ ]
152
+ }
153
+ }
154
+ }, {
155
+ 'type': 'function',
156
+ 'function': {
157
+ 'name': 'get_temperature_date',
158
+ 'description': 'Get temperature at a location and date.',
159
+ 'parameters': {
160
+ 'type': 'object',
161
+ 'properties': {
162
+ 'location': {
163
+ 'type': 'string',
164
+ 'description': 'The location to get the temperature for, in the format \'City, State, Country\'.'
165
+ },
166
+ 'date': {
167
+ 'type': 'string',
168
+ 'description': 'The date to get the temperature for, in the format \'Year-Month-Day\'.'
169
+ },
170
+ 'unit': {
171
+ 'type': 'string',
172
+ 'enum': [
173
+ 'celsius',
174
+ 'fahrenheit'
175
+ ],
176
+ 'description': 'The unit to return the temperature in. Defaults to \'celsius\'.'
177
+ }
178
+ },
179
+ 'required': [
180
+ 'location',
181
+ 'date'
182
+ ]
183
+ }
184
+ }
185
+ }]
186
+
187
+
188
+
189
+ messages = [
190
+ {'role': 'user', 'content': 'Today is 2024-11-14, What\'s the temperature in San Francisco now? How about tomorrow?'}
191
+ ]
192
+
193
+ openai_api_key = "EMPTY"
194
+ openai_api_base = "http://0.0.0.0:23333/v1"
195
+ client = OpenAI(
196
+ api_key=openai_api_key,
197
+ base_url=openai_api_base,
198
+ )
199
+ model_name = "internlm/Intern-S2-397B" # Must match the model ID served by your deployment.
200
+ response = client.chat.completions.create(
201
+ model=model_name,
202
+ messages=messages,
203
+ max_tokens=32768,
204
+ temperature=0.8,
205
+ top_p=0.95,
206
+ extra_body=dict(spaces_between_special_tokens=False),
207
+ tools=tools)
208
+ print(response.choices[0].message)
209
+ messages.append(response.choices[0].message)
210
+
211
+ for tool_call in response.choices[0].message.tool_calls:
212
+ tool_call_args = json.loads(tool_call.function.arguments)
213
+ tool_call_result = get_function_by_name(tool_call.function.name)(**tool_call_args)
214
+ tool_call_result = json.dumps(tool_call_result, ensure_ascii=False)
215
+ messages.append({
216
+ 'role': 'tool',
217
+ 'name': tool_call.function.name,
218
+ 'content': tool_call_result,
219
+ 'tool_call_id': tool_call.id
220
+ })
221
+
222
+ response = client.chat.completions.create(
223
+ model=model_name,
224
+ messages=messages,
225
+ temperature=0.8,
226
+ top_p=0.95,
227
+ extra_body=dict(spaces_between_special_tokens=False),
228
+ tools=tools)
229
+ print(response.choices[0].message)
230
+ ```
231
+
232
+ ### Switching Between Thinking and Non-Thinking Modes
233
+
234
+ Intern-S2-397B enables thinking mode by default, enhancing the model's reasoning capabilities to generate higher-quality responses. This feature can be disabled by setting `enable_thinking=False` in `tokenizer.apply_chat_template`
235
+
236
+ ```python
237
+ text = tokenizer.apply_chat_template(
238
+ messages,
239
+ tokenize=False,
240
+ add_generation_prompt=True,
241
+ enable_thinking=False # think mode indicator
242
+ )
243
+ ```
244
+
245
+ When serving Intern-S2-397B models, you can dynamically control the thinking mode by adjusting the `enable_thinking` parameter in your requests.
246
+
247
+ ```python
248
+ from openai import OpenAI
249
+ import json
250
+
251
+ messages = [
252
+ {
253
+ 'role': 'user',
254
+ 'content': 'who are you'
255
+ }, {
256
+ 'role': 'assistant',
257
+ 'content': 'I am an AI'
258
+ }, {
259
+ 'role': 'user',
260
+ 'content': 'AGI is?'
261
+ }]
262
+
263
+ openai_api_key = "EMPTY"
264
+ openai_api_base = "http://0.0.0.0:23333/v1"
265
+ client = OpenAI(
266
+ api_key=openai_api_key,
267
+ base_url=openai_api_base,
268
+ )
269
+ model_name = "internlm/Intern-S2-397B" # Must match the model ID served by your deployment.
270
+
271
+ response = client.chat.completions.create(
272
+ model=model_name,
273
+ messages=messages,
274
+ temperature=0.8,
275
+ top_p=0.95,
276
+ max_tokens=2048,
277
+ extra_body={
278
+ "chat_template_kwargs": {"enable_thinking": False}
279
+ }
280
+ )
281
+ print(json.dumps(response.model_dump(), indent=2, ensure_ascii=False))
282
+ ```
283
+
284
+ > Note: We do not recommend disabling thinking mode for agentic tasks.
285
+
286
+
287
+ ### Time Series Demo
288
+
289
+ Time series inference is currently only supported in LMDeploy. To get started, download and deploy Intern-S2-397B with LMDeploy by following the [Model Deployment Guide](./deployment_guide.md).
290
+ Below is an example of detecting earthquake events from a time series signal file. Additional data types and functionalities are also supported.
291
+
292
+ **Please note**: in the message content, the order of time_series_url and the text prompt can be arbitrary.
293
+
294
+ ```
295
+ from openai import OpenAI
296
+ from lmdeploy.vl.utils import encode_time_series_base64
297
+
298
+ openai_api_key = "EMPTY"
299
+ openai_api_base = "http://0.0.0.0:8000/v1"
300
+ client = OpenAI(
301
+ api_key=openai_api_key,
302
+ base_url=openai_api_base,
303
+ )
304
+ model_name = "internlm/Intern-S2-397B" # Must match the model ID served by your deployment.
305
+
306
+
307
+ def send_base64(file_path: str, sampling_rate: int = 100):
308
+ """base64-encoded time-series data."""
309
+
310
+ # encode_time_series_base64 accepts local file paths and http urls,
311
+ # encoding time-series data (.npy, .csv, .wav, .mp3, .flac, etc.) into base64 strings.
312
+ base64_ts = encode_time_series_base64(file_path)
313
+
314
+ messages = [
315
+ {
316
+ "role": "user",
317
+ "content": [
318
+ {
319
+ "type": "time_series_url",
320
+ "time_series_url": {
321
+ "url": f"data:time_series/npy;base64,{base64_ts}",
322
+ "sampling_rate": sampling_rate
323
+ },
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Please determine whether an Earthquake event has occurred in the provided time-series data. If so, please specify the starting time point indices of the P-wave and S-wave in the event."
328
+ },
329
+ ],
330
+ }
331
+ ]
332
+
333
+ return client.chat.completions.create(
334
+ model=model_name,
335
+ messages=messages,
336
+ temperature=0,
337
+ max_tokens=200,
338
+ extra_body={
339
+ "chat_template_kwargs": {"enable_thinking": False}
340
+ }
341
+ )
342
+
343
+
344
+ def send_http_url(url: str, sampling_rate: int = 100):
345
+ """http(s) url pointing to the time-series data."""
346
+ messages = [
347
+ {
348
+ "role": "user",
349
+ "content": [
350
+ {
351
+ "type": "time_series_url",
352
+ "time_series_url": {
353
+ "url": url,
354
+ "sampling_rate": sampling_rate
355
+ },
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "Please determine whether an Earthquake event has occurred in the provided time-series data. If so, please specify the starting time point indices of the P-wave and S-wave in the event."
360
+ },
361
+ ],
362
+ }
363
+ ]
364
+
365
+ return client.chat.completions.create(
366
+ model=model_name,
367
+ messages=messages,
368
+ temperature=0,
369
+ max_tokens=200,
370
+ extra_body={
371
+ "chat_template_kwargs": {"enable_thinking": False}
372
+ }
373
+ )
374
+
375
+
376
+ def send_file_url(file_path: str, sampling_rate: int = 100):
377
+ """file url pointing to the time-series data."""
378
+ messages = [
379
+ {
380
+ "role": "user",
381
+ "content": [
382
+ {
383
+ "type": "time_series_url",
384
+ "time_series_url": {
385
+ "url": f"file://{file_path}",
386
+ "sampling_rate": sampling_rate
387
+ },
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Please determine whether an Earthquake event has occurred in the provided time-series data. If so, please specify the starting time point indices of the P-wave and S-wave in the event."
392
+ },
393
+ ],
394
+ }
395
+ ]
396
+
397
+ return client.chat.completions.create(
398
+ model=model_name,
399
+ messages=messages,
400
+ temperature=0,
401
+ max_tokens=200,
402
+ extra_body={
403
+ "chat_template_kwargs": {"enable_thinking": False}
404
+ }
405
+ )
406
+
407
+ response = send_base64("./0092638_seism.npy")
408
+ # response = send_http_url("https://huggingface.co/internlm/Intern-S1-Pro/raw/main/0092638_seism.npy")
409
+ # response = send_file_url("./0092638_seism.npy")
410
+
411
+ print(response.choices[0].message)
412
+
413
+ ```
414
+
415
+ For time series forecasting, `forecast_horizon` is optional. Set it to an integer to produce a forecast of exactly that length, or set it to `None` to let the model infer the horizon from the text prompt.
416
+
417
+ ```
418
+ def forecast_base64(file_path: str, forecast_horizon: int | None = None):
419
+ base64_ts = encode_time_series_base64(file_path)
420
+ messages = [
421
+ {
422
+ "role": "user",
423
+ "content": [
424
+ {
425
+ "type": "text",
426
+ "text": (
427
+ "Please complete a electric load forecasting task. "
428
+ "This dataset is based on historical electricity load data every half hour within 24 hours of the region, "
429
+ "as well as data on minimum temperature, maximum temperature, humidity, air pressure, etc., "
430
+ "to predict future load consumption every half hour within 24 hours. Here is the weather information for city TAS: "
431
+ "Historical date weather: minimum temperature of 279.71K, maximum temperature of 285.83K, humidity of 85.0%, "
432
+ "air pressure of 1003.0hPa. Forecast date weather: minimum temperature 280.54K, maximum temperature 286.47K, "
433
+ "humidity 74.0%, air pressure 1007.0hPa. This data has no relevant effect information. "
434
+ "Please predict the next 48 time points given information above."
435
+ ),
436
+ },
437
+ {
438
+ "type": "time_series_url",
439
+ "time_series_url": {
440
+ "url": f"data:time_series/npy;base64,{base64_ts}",
441
+ },
442
+ },
443
+ ],
444
+ }
445
+ ]
446
+
447
+ return client.chat.completions.create(
448
+ model=model_name,
449
+ messages=messages,
450
+ temperature=0,
451
+ max_tokens=16,
452
+ extra_body={
453
+ "chat_template_kwargs": {"enable_thinking": False},
454
+ "enable_forecasting": True,
455
+ "forecast_horizon": forecast_horizon,
456
+ },
457
+ )
458
+
459
+
460
+ response = forecast_base64("./load_20210803_0.npy", forecast_horizon=None)
461
+ forecast = response.choices[0].message.ts_forecast
462
+ print("Point forecast:", forecast.point_forecast)
463
+ print("Quantile forecast:", forecast.quantile_forecast)
464
+ ```
465
+
466
+ ## Agent Integration
467
+
468
+ Intern-S2-397B can be plugged into agent frameworks in two ways: connecting to a **self-hosted deployment**, or calling the **official InternLM API**. Below we cover both, with examples for agent frameworks (OpenClaw, Hermes, etc.) and for Claude Code.
469
+
470
+ ### 1. Self-hosted Deployment (LMDeploy as an example)
471
+
472
+ First, serve the model with LMDeploy following the [Model Deployment Guide](./deployment_guide.md). The example below assumes the server is running at `http://0.0.0.0:23333`.
473
+
474
+ #### Connecting Agent Frameworks
475
+
476
+ Most agent frameworks (OpenClaw, Hermes, etc.) accept an OpenAI-compatible endpoint. Point them at the LMDeploy server base url `http://0.0.0.0:23333/v1`.
477
+
478
+ You can check the connection with the following command:
479
+
480
+ ```bash
481
+ curl http://0.0.0.0:23333/v1/chat/completions \
482
+ -H "Content-Type: application/json" \
483
+ -H "Authorization: Bearer EMPTY" \
484
+ -d '{
485
+ "model": "internlm/Intern-S2-397B",
486
+ "messages": [
487
+ {"role": "user", "content": "Hello"}
488
+ ],
489
+ "temperature": 0.8,
490
+ "top_p": 0.95
491
+ }'
492
+ ```
493
+
494
+ Or you can configure your agent framework with the environment variables
495
+
496
+ ```bash
497
+ export OPENAI_API_KEY=EMPTY
498
+ export OPENAI_BASE_URL=http://0.0.0.0:23333/v1
499
+ export OPENAI_MODEL=internlm/Intern-S2-397B
500
+ ```
501
+
502
+ Remember to launch LMDeploy with `--tool-call-parser interns2-preview` so tool calls are parsed correctly.
503
+
504
+ #### Connecting Claude Code
505
+
506
+ LMDeploy exposes an Anthropic-compatible `/v1/messages` endpoint that Claude Code can talk to directly. Add the following to `~/.claude/settings.json`:
507
+
508
+ ```json
509
+ {
510
+ "env": {
511
+ "ANTHROPIC_BASE_URL": "http://127.0.0.1:23333",
512
+ "ANTHROPIC_AUTH_TOKEN": "dummy",
513
+ "ANTHROPIC_MODEL": "internlm/Intern-S2-397B",
514
+ "ANTHROPIC_CUSTOM_MODEL_OPTION": "internlm/Intern-S2-397B"
515
+ }
516
+ }
517
+ ```
518
+
519
+ For a full walkthrough (curl verification, model routing, troubleshooting), see [LMDeploy × Claude Code](https://lmdeploy.readthedocs.io/en/latest/intergration/claude_code.html).
520
+
521
+ ### 2. Official Intern API
522
+
523
+ If you do not want to self-host, you can use the official Intern API. Register at [internlm.intern-ai.org.cn](https://internlm.intern-ai.org.cn/) and create an API token (`sk-xxxxxxxx`).
524
+
525
+ #### Connecting Agent Frameworks
526
+
527
+ The service is OpenAI-compatible, so any agent framework works. You can set the base url to `https://chat.intern-ai.org.cn/api/v1` and the model name to `intern-s2-397b` in the cli or config file.
528
+
529
+ You can check the connection with the following command:
530
+
531
+ ```bash
532
+ curl https://chat.intern-ai.org.cn/api/v1/chat/completions \
533
+ -H "Content-Type: application/json" \
534
+ -H "Authorization: Bearer sk-xxxxxxxx" \
535
+ -d '{
536
+ "model": "intern-s2-397b",
537
+ "messages": [
538
+ {"role": "user", "content": "Hello"}
539
+ ],
540
+ "temperature": 0.8,
541
+ "top_p": 0.95
542
+ }'
543
+ ```
544
+
545
+ Refer to the [Intern API documentation](https://internlm.intern-ai.org.cn/api/document?lang=en) for the current endpoint, available model names, rate limits, and advanced parameters.
546
+
547
+ #### Connecting Claude Code
548
+
549
+ Claude Code can route to the official Intern API by pointing `ANTHROPIC_BASE_URL` at the Intern Anthropic-compatible gateway:
550
+
551
+ ```json
552
+ {
553
+ "env": {
554
+ "ANTHROPIC_BASE_URL": "https://chat.intern-ai.org.cn",
555
+ "ANTHROPIC_AUTH_TOKEN": "your-api-token",
556
+ "ANTHROPIC_MODEL": "intern-s2-397b",
557
+ "ANTHROPIC_SMALL_FAST_MODEL": "intern-s2-397b"
558
+ }
559
+ }
560
+ ```
561
+
562
+ Then start claude code with the following command:
563
+
564
+ ```bash
565
+ claude --model intern-s2-397b
566
+ ```
567
+
568
+ For step-by-step setup, see [Intern API × Claude Code Integration](https://internlm.intern-ai.org.cn/docEn/docs/Claude-Code-Integration).
chat_template.jinja ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 'time_series' in item or item.type == 'time_series' %}
31
+ {%- if is_system_content %}
32
+ {{- raise_exception('System message cannot contain time series.') }}
33
+ {%- endif %}
34
+ {{- '<|ts|><TS_CONTEXT><|/ts|>' }}
35
+ {%- elif 'text' in item %}
36
+ {{- item.text }}
37
+ {%- else %}
38
+ {{- raise_exception('Unexpected item type in content.') }}
39
+ {%- endif %}
40
+ {%- endfor %}
41
+ {%- elif content is none or content is undefined %}
42
+ {{- '' }}
43
+ {%- else %}
44
+ {{- raise_exception('Unexpected content type.') }}
45
+ {%- endif %}
46
+ {%- endmacro %}
47
+ {%- if not messages %}
48
+ {{- raise_exception('No messages provided.') }}
49
+ {%- endif %}
50
+ {%- set ts_ns = namespace(has_time_series=false) %}
51
+ {%- for message in messages %}
52
+ {%- if message.content is iterable and message.content is not mapping and message.content is not string %}
53
+ {%- for item in message.content %}
54
+ {%- if 'time_series' in item or item.type == 'time_series' %}
55
+ {%- set ts_ns.has_time_series = true %}
56
+ {%- endif %}
57
+ {%- endfor %}
58
+ {%- endif %}
59
+ {%- endfor %}
60
+ {%- if tools and tools is iterable and tools is not mapping %}
61
+ {{- '<|im_start|>system\n' }}
62
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
63
+ {%- for tool in tools %}
64
+ {{- "\n" }}
65
+ {{- tool | tojson }}
66
+ {%- endfor %}
67
+ {{- "\n</tools>" }}
68
+ {{- '\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>' }}
69
+ {%- if messages[0].role == 'system' %}
70
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
71
+ {%- if content %}
72
+ {{- '\n\n' + content }}
73
+ {%- endif %}
74
+ {%- endif %}
75
+ {{- '<|im_end|>\n' }}
76
+ {%- else %}
77
+ {%- if messages[0].role == 'system' %}
78
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
79
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
80
+ {%- endif %}
81
+ {%- endif %}
82
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
83
+ {%- for message in messages[::-1] %}
84
+ {%- set index = (messages|length - 1) - loop.index0 %}
85
+ {%- if ns.multi_step_tool and message.role == "user" %}
86
+ {%- set content = render_content(message.content, false)|trim %}
87
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
88
+ {%- set ns.multi_step_tool = false %}
89
+ {%- set ns.last_query_index = index %}
90
+ {%- endif %}
91
+ {%- endif %}
92
+ {%- endfor %}
93
+ {%- for message in messages %}
94
+ {%- set content = render_content(message.content, true)|trim %}
95
+ {%- if message.role == "user" %}
96
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
97
+ {%- elif message.role == "assistant" %}
98
+ {%- set reasoning_content = '' %}
99
+ {%- if message.reasoning_content is string %}
100
+ {%- set reasoning_content = message.reasoning_content %}
101
+ {%- else %}
102
+ {%- if '</think>' in content %}
103
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
104
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
105
+ {%- endif %}
106
+ {%- endif %}
107
+ {%- set reasoning_content = reasoning_content|trim %}
108
+ {%- if (clear_thinking is defined and not clear_thinking) or loop.index0 > ns.last_query_index %}
109
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
110
+ {%- else %}
111
+ {{- '<|im_start|>' + message.role + '\n' + content }}
112
+ {%- endif %}
113
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
114
+ {%- for tool_call in message.tool_calls %}
115
+ {%- if tool_call.function is defined %}
116
+ {%- set tool_call = tool_call.function %}
117
+ {%- endif %}
118
+ {%- if loop.first %}
119
+ {%- if content|trim %}
120
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
121
+ {%- else %}
122
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
123
+ {%- endif %}
124
+ {%- else %}
125
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
126
+ {%- endif %}
127
+ {%- if tool_call.arguments is defined %}
128
+ {%- for args_name, args_value in tool_call.arguments|items %}
129
+ {{- '<parameter=' + args_name + '>\n' }}
130
+ {%- 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 %}
131
+ {{- args_value }}
132
+ {{- '\n</parameter>\n' }}
133
+ {%- endfor %}
134
+ {%- endif %}
135
+ {{- '</function>\n</tool_call>' }}
136
+ {%- endfor %}
137
+ {%- endif %}
138
+ {{- '<|im_end|>\n' }}
139
+ {%- elif message.role == "tool" %}
140
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
141
+ {{- '<|im_start|>user' }}
142
+ {%- endif %}
143
+ {{- '\n<tool_response>\n' }}
144
+ {{- content }}
145
+ {{- '\n</tool_response>' }}
146
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
147
+ {{- '<|im_end|>\n' }}
148
+ {%- elif loop.last %}
149
+ {{- '<|im_end|>\n' }}
150
+ {%- endif %}
151
+ {%- elif message.role != "system" %}
152
+ {{- raise_exception('Unexpected message role.') }}
153
+ {%- endif %}
154
+ {%- endfor %}
155
+ {%- if add_generation_prompt %}
156
+ {{- '<|im_start|>assistant\n' }}
157
+ {%- if ts_ns.has_time_series or (enable_thinking is defined and enable_thinking is false) %}
158
+ {{- '<think>\n\n</think>\n\n' }}
159
+ {%- else %}
160
+ {{- '<think>\n' }}
161
+ {%- endif %}
162
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5MoeForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 248056,
6
+ "model_type": "qwen3_5_moe",
7
+ "text_config": {
8
+ "attention_bias": false,
9
+ "attention_dropout": 0.0,
10
+ "attn_output_gate": true,
11
+ "dtype": "bfloat16",
12
+ "eos_token_id": 248044,
13
+ "full_attention_interval": 4,
14
+ "head_dim": 256,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 4096,
17
+ "initializer_range": 0.02,
18
+ "layer_types": [
19
+ "linear_attention",
20
+ "linear_attention",
21
+ "linear_attention",
22
+ "full_attention",
23
+ "linear_attention",
24
+ "linear_attention",
25
+ "linear_attention",
26
+ "full_attention",
27
+ "linear_attention",
28
+ "linear_attention",
29
+ "linear_attention",
30
+ "full_attention",
31
+ "linear_attention",
32
+ "linear_attention",
33
+ "linear_attention",
34
+ "full_attention",
35
+ "linear_attention",
36
+ "linear_attention",
37
+ "linear_attention",
38
+ "full_attention",
39
+ "linear_attention",
40
+ "linear_attention",
41
+ "linear_attention",
42
+ "full_attention",
43
+ "linear_attention",
44
+ "linear_attention",
45
+ "linear_attention",
46
+ "full_attention",
47
+ "linear_attention",
48
+ "linear_attention",
49
+ "linear_attention",
50
+ "full_attention",
51
+ "linear_attention",
52
+ "linear_attention",
53
+ "linear_attention",
54
+ "full_attention",
55
+ "linear_attention",
56
+ "linear_attention",
57
+ "linear_attention",
58
+ "full_attention",
59
+ "linear_attention",
60
+ "linear_attention",
61
+ "linear_attention",
62
+ "full_attention",
63
+ "linear_attention",
64
+ "linear_attention",
65
+ "linear_attention",
66
+ "full_attention",
67
+ "linear_attention",
68
+ "linear_attention",
69
+ "linear_attention",
70
+ "full_attention",
71
+ "linear_attention",
72
+ "linear_attention",
73
+ "linear_attention",
74
+ "full_attention",
75
+ "linear_attention",
76
+ "linear_attention",
77
+ "linear_attention",
78
+ "full_attention"
79
+ ],
80
+ "linear_conv_kernel_dim": 4,
81
+ "linear_key_head_dim": 128,
82
+ "linear_num_key_heads": 16,
83
+ "linear_num_value_heads": 64,
84
+ "linear_value_head_dim": 128,
85
+ "max_position_embeddings": 262144,
86
+ "mlp_only_layers": [],
87
+ "model_type": "qwen3_5_moe_text",
88
+ "moe_intermediate_size": 1024,
89
+ "mtp_num_hidden_layers": 1,
90
+ "mtp_use_dedicated_embeddings": false,
91
+ "num_attention_heads": 32,
92
+ "num_experts": 512,
93
+ "num_experts_per_tok": 10,
94
+ "num_hidden_layers": 60,
95
+ "num_key_value_heads": 2,
96
+ "rms_norm_eps": 1e-06,
97
+ "router_aux_loss_coef": 0.001,
98
+ "shared_expert_intermediate_size": 1024,
99
+ "use_cache": true,
100
+ "vocab_size": 251392,
101
+ "mamba_ssm_dtype": "float32",
102
+ "rope_parameters": {
103
+ "mrope_interleaved": true,
104
+ "mrope_section": [
105
+ 11,
106
+ 11,
107
+ 10
108
+ ],
109
+ "rope_type": "default",
110
+ "rope_theta": 10000000,
111
+ "partial_rotary_factor": 0.25
112
+ }
113
+ },
114
+ "tie_word_embeddings": false,
115
+ "transformers_version": "4.57.0.dev0",
116
+ "video_token_id": 248057,
117
+ "vision_config": {
118
+ "deepstack_visual_indexes": [],
119
+ "depth": 27,
120
+ "hidden_act": "gelu_pytorch_tanh",
121
+ "hidden_size": 1152,
122
+ "in_channels": 3,
123
+ "initializer_range": 0.02,
124
+ "intermediate_size": 4304,
125
+ "model_type": "qwen3_5_moe",
126
+ "num_heads": 16,
127
+ "num_position_embeddings": 2304,
128
+ "out_hidden_size": 4096,
129
+ "patch_size": 16,
130
+ "spatial_merge_size": 2,
131
+ "temporal_patch_size": 2
132
+ },
133
+ "vision_end_token_id": 248054,
134
+ "vision_start_token_id": 248053
135
+ }
deployment_guide.md ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Intern-S2-397B Deployment Guide
2
+
3
+ We recommend deploying the Intern-S2-397B model on H100 (x8) or H200 (x8) nodes. The next section provides deployment examples for the configurations listed below:
4
+
5
+ - Basic serving without MTP
6
+ - MTP speculative decoding
7
+ - Long-context inference with YaRN RoPE configuration
8
+
9
+
10
+ ## LMDeploy (>=0.14.0)
11
+
12
+ - Basic Serving Without MTP
13
+
14
+ ```bash
15
+ # proxy server
16
+ lmdeploy serve proxy --server-name ${proxy_server_ip} --server-port ${proxy_server_port}
17
+
18
+ # api_server
19
+ lmdeploy serve api_server \
20
+ internlm/Intern-S2-FP8 \
21
+ --model-name internlm/Intern-S2-397B \
22
+ --trust-remote-code \
23
+ --backend pytorch \
24
+ --dp 4 \
25
+ --ep 8 \
26
+ --enable-prefix-caching \
27
+ --proxy-url http://${proxy_server_ip}:${proxy_server_port} \
28
+ --reasoning-parser default \
29
+ --tool-call-parser interns2-preview
30
+ ```
31
+
32
+ - Serving With MTP
33
+
34
+ ```bash
35
+ lmdeploy serve api_server \
36
+ internlm/Intern-S2-FP8 \
37
+ --model-name internlm/Intern-S2-397B \
38
+ --trust-remote-code \
39
+ --backend pytorch \
40
+ --dp 4 \
41
+ --ep 8 \
42
+ --enable-prefix-caching \
43
+ --proxy-url http://${proxy_server_ip}:${proxy_server_port} \
44
+ --reasoning-parser default \
45
+ --tool-call-parser interns2-preview \
46
+ --speculative-algorithm qwen3_5_mtp \
47
+ --speculative-num-draft-tokens 4 \
48
+ --max-batch-size 256
49
+ ```
50
+
51
+ - Long-Context Serving
52
+
53
+ For long-context inference, configure both `--session-len` and YaRN RoPE parameters. The following example uses a 512k context length:
54
+
55
+ ```bash
56
+ lmdeploy serve api_server \
57
+ internlm/Intern-S2-FP8 \
58
+ --model-name internlm/Intern-S2-397B \
59
+ --trust-remote-code \
60
+ --backend pytorch \
61
+ --dp 4 \
62
+ --ep 8 \
63
+ --enable-prefix-caching \
64
+ --reasoning-parser default \
65
+ --tool-call-parser interns2-preview \
66
+ --session-len 512000 \
67
+ --max-batch-size 64 \
68
+ --hf-overrides '{"text_config": {"rope_parameters": {"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "yarn", "rope_theta": 10000000, "partial_rotary_factor": 0.25, "factor": 4.0, "original_max_position_embeddings": 262144}}}'
69
+ ```
70
+
71
+ ## vLLM (>=v0.22.1)
72
+
73
+ - Basic Serving Without MTP
74
+
75
+ ```bash
76
+ export VLLM_DEEP_GEMM_WARMUP=skip
77
+ export VLLM_USE_DEEP_GEMM=0
78
+ export VLLM_FLASHINFER_MOE_BACKEND=latency
79
+
80
+ vllm serve internlm/Intern-S2-FP8 \
81
+ --served-model-name internlm/Intern-S2-397B \
82
+ --trust-remote-code \
83
+ --tensor-parallel-size 8 \
84
+ --enable-auto-tool-choice \
85
+ --tool-call-parser qwen3_coder \
86
+ --reasoning-parser qwen3 \
87
+ --mm-encoder-tp-mode data
88
+ ```
89
+
90
+ - Serving With MTP
91
+
92
+ ```bash
93
+ export VLLM_DEEP_GEMM_WARMUP=skip
94
+ export VLLM_USE_DEEP_GEMM=0
95
+ export VLLM_FLASHINFER_MOE_BACKEND=latency
96
+
97
+ vllm serve internlm/Intern-S2-FP8 \
98
+ --served-model-name internlm/Intern-S2-397B \
99
+ --trust-remote-code \
100
+ --tensor-parallel-size 8 \
101
+ --enable-auto-tool-choice \
102
+ --tool-call-parser qwen3_coder \
103
+ --mm-encoder-tp-mode data \
104
+ --reasoning-parser qwen3 \
105
+ --speculative-config '{"method":"mtp","num_speculative_tokens":3}'
106
+ ```
107
+
108
+ - Long-Context Serving
109
+
110
+ ```bash
111
+ VLLM_ALLOW_LONG_MAX_MODEL_LEN=1 vllm serve internlm/Intern-S2-FP8 \
112
+ --served-model-name internlm/Intern-S2-397B \
113
+ --tensor-parallel-size 8 \
114
+ --max-model-len 1010000 \
115
+ --reasoning-parser qwen3 \
116
+ --hf-overrides '{"text_config": {"rope_parameters": {"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "yarn", "rope_theta": 10000000, "partial_rotary_factor": 0.25, "factor": 4.0, "original_max_position_embeddings": 262144}}}'
117
+ ```
118
+
119
+ ## SGLang (>=v0.5.13)
120
+
121
+ - Basic Serving Without MTP
122
+
123
+ ```bash
124
+ python3 -m sglang.launch_server \
125
+ --model-path internlm/Intern-S2-FP8 \
126
+ --served-model-name internlm/Intern-S2-397B \
127
+ --trust-remote-code \
128
+ --tp-size 8 \
129
+ --mem-fraction-static 0.8 \
130
+ --enable-flashinfer-allreduce-fusion \
131
+ --reasoning-parser qwen3 \
132
+ --tool-call-parser qwen3_coder
133
+ ```
134
+
135
+ - Serving With MTP
136
+
137
+ ```bash
138
+ SGLANG_ENABLE_SPEC_V2=1 \
139
+ python3 -m sglang.launch_server \
140
+ --model-path internlm/Intern-S2-FP8 \
141
+ --served-model-name internlm/Intern-S2-397B \
142
+ --trust-remote-code \
143
+ --tp-size 8 \
144
+ --reasoning-parser qwen3 \
145
+ --tool-call-parser qwen3_coder \
146
+ --mem-fraction-static 0.8 \
147
+ --mamba-scheduler-strategy extra_buffer \
148
+ --enable-flashinfer-allreduce-fusion \
149
+ --speculative-algo 'NEXTN' \
150
+ --speculative-eagle-topk 1 \
151
+ --speculative-num-steps 3 \
152
+ --speculative-num-draft-tokens 4
153
+ ```
figs/intern-s2-397b.jpg ADDED

Git LFS Details

  • SHA256: 0f6e5e6c7d8259f302ea773d45907cc2cf510e0501317f8a2376be39d14cb243
  • Pointer size: 131 Bytes
  • Size of remote file: 748 kB
figs/title.png ADDED

Git LFS Details

  • SHA256: 1e0080637b1009715c78ad8fb9b00f2355282b79e9e332100b8943f1a17eb33c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.3 MB
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 248044,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 248046,
6
+ 248044
7
+ ],
8
+ "pad_token_id": 248044,
9
+ "temperature": 0.6,
10
+ "top_k": 20,
11
+ "top_p": 0.95,
12
+ "transformers_version": "4.57.0.dev0"
13
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cd89ebe04f8264c245bbaba561efc24a844d8e499e1d8f5ee0bb708e22b7fbe
3
+ size 4197312376
model-00002-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31b0d5283eae8d6b50f3559594ef41f99fd976f96a69df2d941d33fb05908a34
3
+ size 4293165648
model-00003-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4404c2d02f1c500521ad23290310b010aab489d1709ed9fe722cb88069878f59
3
+ size 4295038872
model-00004-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02c8b181f66c16755c0b07a6872aac312e9ce33bdad3680232e5fa09472e466c
3
+ size 4295038800
model-00005-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7951ed02c7c1fbcfcf02a383788ce9117ccf69b1b6c17fdb0b93af60d049f4b
3
+ size 4295038664
model-00006-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26ea67da983880cbcbe290bd0e4b3eb85f3ccc3b5bcaa875fb71c91c49ad8e86
3
+ size 4295038872
model-00007-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:710c13a4a058be9b3bdaaf23911d97eb1ac3816f8458ddc06b09f5a090270ac4
3
+ size 4295038800
model-00008-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:301edd0b2adf98e950076cbd70c1a6013791e43f5e8bb7d3831a8f4bbb258e03
3
+ size 4274556384
model-00009-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:243746a5a1959cb069944471cfcf081c61d10c24bab574d32304e46d3828a7c6
3
+ size 4287698096
model-00010-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f7fa1867ca37d108f21b7584b7db9192e5480be1c93eceea988cb2b5286e025
3
+ size 4295039384
model-00011-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74eb3c2baa1964422ca4b67b2f81373d85b2781b3d4954ad3e722317cd0888e0
3
+ size 4295039312
model-00012-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4baf415823bdc997692e6d519a5ac414373a2962eafeaa7c35a05054b2aa3208
3
+ size 4295039176
model-00013-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33f76893311254cc94f99b7b4692534eb4b4092eadb315441fcbc87056bb7cb3
3
+ size 4295039384
model-00014-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d70f58d2738bb31f586fb68e7d2d4cf0726cdd82b01774ac206b6949a444c77b
3
+ size 4295039312
model-00015-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55387dca06fa824a3d33d4fad616fc6d4d4a5ed865e0ca93bbf1d0ef930533fa
3
+ size 4295039176
model-00016-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4cb2b3a2af824a63b4a95e19cd49b4575756217eaec5baf094047536c2c43ad
3
+ size 4295039384
model-00017-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71975f67c1c76df61cbeaaddcbdc518b2f4959d9a498d42872d3cfe5cc5ceea4
3
+ size 4295039312
model-00018-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5a9895853c683dca05ee6ca0a1901a1db4a3652c71ef7620a6896e06c8029df
3
+ size 4295039176
model-00019-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69c9b097cbaee26b8a1627711fcf8e8ab51c6781fa661c630dab133ca8a91ce2
3
+ size 4295039384
model-00020-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f48169bf43f1e2d751b8f443cee862fc440df4d71a39d2432e113b9db01ea70
3
+ size 4295039312
model-00021-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71ac58d3aebdc7d7c32ac727259d6d8ed51a964c930f5e80b0d75ca1bf665026
3
+ size 4295039176
model-00022-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b2d7d75ec58a37e9b02d98c762465637a68d526e49c8fcd88287bf06b38865a
3
+ size 4295039384
model-00023-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bc5c138299b248693c074052f759aa76c9c64062b72140924617f5d4a83db61
3
+ size 4295039312
model-00024-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79a9799d519f10febc5eb42693349e38052ebdc8927374d41bc5adbd17b12299
3
+ size 4295039176
model-00025-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:178183cf4d9264973512c01e82345cb98598853e12ff89eaa365d100053efb49
3
+ size 4295039384
model-00026-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feaccd69d1a84d25ba5f3c50cbfed14fd31dd6a03fe9b469cae5f9aa59e55928
3
+ size 4295039312
model-00027-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:025ca81ce2614d5e23108d97c067d72bb48f5ef72655444e95a85c773d3fce96
3
+ size 4295039176
model-00028-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f140f0046f3bb87c4d17124b14b8a9ab7158631269af77b38f4faf0346b111b
3
+ size 4295039384
model-00029-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0d40393ce2ceaeaef3d24ffc8fb4b4657dfec44aa1199a8d79d3f9f6cc42724
3
+ size 4295039312
model-00030-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6db92a258e34fc340e85c958d333016243783adf6fb4dd2ee1b2cf9af979cbf0
3
+ size 4295039176
model-00031-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:082ed6d71294300f389f459f111fd3f8117e64d7989072b6df39dc9df5c4e460
3
+ size 4295039384
model-00032-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07e2c36674bc97928a457fe07c77b0efd097350309d0506ccfa31b9cdeccae87
3
+ size 4295039312
model-00033-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79c48270fa18359d71290816bfaa7d79f77d2858c4e92af44a4e876c84aa86f3
3
+ size 4295039176
model-00034-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b116dd9291e5cbc0498af30704600e00abff4ba91423f3cfd57416b430e8a005
3
+ size 4295039384
model-00035-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:430a45a3493d43bd5de1d13f964b290e63b3761972b44d0c8c3009d29fdbee6c
3
+ size 4295039312
model-00036-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8ec677bc6c83d9e63f4af4c2b32ac5343a32832d231b452a2c8ec0dda42e2d5
3
+ size 4295039176
model-00037-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b68b31263bbeba7acc0730971750dc9910811de8e330e7af896bed228c4e2375
3
+ size 4295039384
model-00038-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70e49f3badfcc1cae4c684dca31ed7e4df77aac55d870ba3e11de19cd4d827ae
3
+ size 4295039312
model-00039-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bb13f5fe3d3671f4f53be9f112e3f279634c180f7bc3c1a1ed65fc7d9b367a2
3
+ size 4295039024
model-00040-of-00188.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1485a8fd3b7857f1634c442cbd5c206d11f4ed72cce72d65521a9c0e63ecb08
3
+ size 4295038872