SSON9 commited on
Commit
8d1dda5
·
verified ·
1 Parent(s): d116700

Release Solar Open2 250B

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. LICENSE +96 -0
  3. README.md +443 -0
  4. Solar_Open_2_Tech_Report.pdf +3 -0
  5. assets/Highlights_en.png +3 -0
  6. assets/Highlights_kr.png +3 -0
  7. assets/solar-open2.gif +3 -0
  8. chat_template.jinja +234 -0
  9. config.json +55 -0
  10. generation_config.json +9 -0
  11. model-00001-of-00094.safetensors +3 -0
  12. model-00002-of-00094.safetensors +3 -0
  13. model-00003-of-00094.safetensors +3 -0
  14. model-00004-of-00094.safetensors +3 -0
  15. model-00005-of-00094.safetensors +3 -0
  16. model-00006-of-00094.safetensors +3 -0
  17. model-00007-of-00094.safetensors +3 -0
  18. model-00008-of-00094.safetensors +3 -0
  19. model-00009-of-00094.safetensors +3 -0
  20. model-00010-of-00094.safetensors +3 -0
  21. model-00011-of-00094.safetensors +3 -0
  22. model-00012-of-00094.safetensors +3 -0
  23. model-00013-of-00094.safetensors +3 -0
  24. model-00014-of-00094.safetensors +3 -0
  25. model-00015-of-00094.safetensors +3 -0
  26. model-00016-of-00094.safetensors +3 -0
  27. model-00017-of-00094.safetensors +3 -0
  28. model-00018-of-00094.safetensors +3 -0
  29. model-00019-of-00094.safetensors +3 -0
  30. model-00020-of-00094.safetensors +3 -0
  31. model-00021-of-00094.safetensors +3 -0
  32. model-00022-of-00094.safetensors +3 -0
  33. model-00023-of-00094.safetensors +3 -0
  34. model-00024-of-00094.safetensors +3 -0
  35. model-00025-of-00094.safetensors +3 -0
  36. model-00026-of-00094.safetensors +3 -0
  37. model-00027-of-00094.safetensors +3 -0
  38. model-00028-of-00094.safetensors +3 -0
  39. model-00029-of-00094.safetensors +3 -0
  40. model-00030-of-00094.safetensors +3 -0
  41. model-00031-of-00094.safetensors +3 -0
  42. model-00032-of-00094.safetensors +3 -0
  43. model-00033-of-00094.safetensors +3 -0
  44. model-00034-of-00094.safetensors +3 -0
  45. model-00035-of-00094.safetensors +3 -0
  46. model-00036-of-00094.safetensors +3 -0
  47. model-00037-of-00094.safetensors +3 -0
  48. model-00038-of-00094.safetensors +3 -0
  49. model-00039-of-00094.safetensors +3 -0
  50. model-00040-of-00094.safetensors +3 -0
.gitattributes CHANGED
@@ -33,3 +33,9 @@ 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
37
+ assets/solar-open2.gif filter=lfs diff=lfs merge=lfs -text
38
+ assets/highlights.webp filter=lfs diff=lfs merge=lfs -text
39
+ Solar_Open_2_Tech_Report.pdf filter=lfs diff=lfs merge=lfs -text
40
+ assets/Highlights_en.png filter=lfs diff=lfs merge=lfs -text
41
+ assets/Highlights_kr.png filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Upstage Solar License
2
+
3
+ # Preamble
4
+
5
+ The 'Upstage Solar License' (hereinafter referred to as "this License") was established by Upstage Co., Ltd., incorporated under the laws of the Republic of Korea, to encourage the development of open-source software using Solar AI models, and is not affiliated with the Apache Software Foundation.
6
+
7
+ This License basically adopts all provisions of the Apache License, Version 2.0 (hereinafter referred to as "Apache License 2.0"), including the principle of allowing commercial use, but prescribes minimum strategic conditions for the global expansion of AI technology and the sustainable development of the AI ecosystem.
8
+
9
+ The key additional condition, as specified in Section 4(e), is that if you distribute a "Derivative AI Model" based on the "Work", you must specify the 'Solar' brand. This applies as an exception to Section 6 (Trademarks) of the Apache License 2.0.
10
+
11
+ # TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
12
+
13
+ 1\. Definitions.
14
+
15
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
20
+
21
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
22
+
23
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
24
+
25
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
26
+
27
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
28
+
29
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
30
+
31
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
32
+
33
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
34
+
35
+ 2\. Grant of Copyright License.
36
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
37
+
38
+ 3\. Grant of Patent License.
39
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
40
+
41
+ 4\. Redistribution.
42
+ You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
43
+
44
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
45
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
46
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
47
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
48
+ (e) If You distribute or make available a Derivative Work that is an artificial intelligence model created, trained, fine-tuned, or otherwise improved using the Work (the "Derivative AI Model"), You must adhere to the following conditions:
49
+ (i) The name of such Derivative AI Model must begin with "Solar" (e.g., "Solar-MyModel-v1"); and
50
+ (ii) You must prominently display the phrase "Built with Solar" in any related websites, user interfaces, or documentation associated with the Derivative AI Model; and
51
+ (iii) You must provide a copy of this License, including the original copyright notice and NOTICE file as included in the distribution of the Works, alongside the Derivative AI Model.
52
+
53
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
54
+
55
+ 5\. Submission of Contributions.
56
+ Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
57
+
58
+ 6\. Trademarks.
59
+ This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work, reproducing the content of the NOTICE file, and as explicitly required for attribution in Section 4(e) of this License.
60
+ Any use of the “Solar” name under this License must not imply any sponsorship, endorsement, certification, or official relationship with the Licensor, nor mislead users into believing that a Derivative AI Model is an official product of the Licensor.
61
+
62
+ 7\. Disclaimer of Warranty.
63
+ Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
64
+
65
+ 8\. Limitation of Liability.
66
+ In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
67
+
68
+ 9\. Accepting Warranty or Additional Liability.
69
+ While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
70
+
71
+ END OF TERMS AND CONDITIONS
72
+
73
+ # APPENDIX: How to apply the Upstage Solar License to your work.
74
+
75
+ To apply the Upstage Solar License to your work, attach the following boilerplate notice, with the fields enclosed by brackets replaced with your own identifying information. (Don't include the brackets\!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
76
+
77
+ Copyright \[yyyy\] \[Upstage AI (or other copyright owner)\]
78
+
79
+ Licensed under the Upstage Solar License (the "License");
80
+ you may not use this file except in compliance with the License.
81
+ You may obtain a copy of the License at
82
+
83
+ https://huggingface.co/Upstage/Solar-Open-100B/blob/main/LICENSE
84
+
85
+ Unless required by applicable law or agreed to in writing, software
86
+ distributed under the License is distributed on an "AS IS" BASIS,
87
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
+ See the License for the specific language governing permissions and
89
+ limitations under the License.
90
+
91
+ This work is based on or derived from materials licensed under the
92
+ Upstage Solar License.
93
+ If you distribute or make available a Derivative AI Model (as defined
94
+ in Section 4(e) of the License), your model name must begin with "Solar"
95
+ and you must prominently display "Built with Solar" in associated
96
+ documentation or interfaces.
README.md ADDED
@@ -0,0 +1,443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ko
5
+ - ja
6
+ library_name: transformers
7
+ license: other
8
+ license_name: upstage-solar-license
9
+ license_link: LICENSE
10
+ pipeline_tag: text-generation
11
+ tags:
12
+ - upstage
13
+ - solar
14
+ - moe
15
+ - llm
16
+ - vllm
17
+ ---
18
+
19
+ ![Solar Open 2](assets/solar-open2.gif)
20
+
21
+ # Solar Open 2
22
+
23
+ Solar Open 2 is Upstage’s 250B-A15B open-weight large language model, built for agentic use cases such as office productivity, document-intensive work, and coding. Its Hybrid-Attention Mixture-of-Experts (MoE) architecture with linear attention delivers highly efficient inference even in long-context settings.
24
+
25
+ [**Technical Report**](https://huggingface.co/upstage/Solar-Open2-250B/blob/main/Solar_Open_2_Tech_Report.pdf) | [**Blog**](https://www.upstage.ai/blog/en/solar-open-2?utm_source=hf&utm_medium=referral&utm_campaign=so2-launch&utm_content=modelcard) | [**Upstage Website**](https://www.upstage.ai/) | [**Try Demo (~7/31)**](https://open2-beta.upstage.ai/)
26
+
27
+ ### Highlights
28
+
29
+ ![Highlights_en](assets/Highlights_en.png)
30
+ ![Highlights_kr](assets/Highlights_kr.png)
31
+
32
+ - **Agentic Specialist:** Purpose-built for agentic workflows — tool calling, multi-step reasoning, and end-to-end task execution. Competitive with the strongest open-weight models on agent benchmarks.
33
+
34
+ - **Minimal Inference Cost:** A 250B-parameter MoE that activates only 15B per token, built on a hybrid attention stack that interleaves three linear-attention layers with one softmax-attention layer — large-model capacity at small-model inference cost.
35
+
36
+ - **1M-Token Context:** The linear-attention layers encode token order intrinsically in their recurrent state, so positional encoding is removed entirely (NoPE), lifting the RoPE extrapolation limit. Only 12 of the 48 layers keep a KV cache, holding long-context memory to roughly a quarter of an all-softmax model of the same shape.
37
+
38
+ - **Efficiently Trained at Low Cost:** Initialized by selective weight transfer from Solar Open 1 (102B) — only the 2.3% of weights that survive the architectural change are carried over, and everything else is randomly initialized — which raises the starting point and accelerates early convergence at 250B scale.
39
+
40
+ - **Multilingual:** English, Korean, and Japanese.
41
+
42
+ ---
43
+
44
+ ## Model Overview
45
+
46
+ | Field | Value |
47
+ | ------------------------------- | ----------------------------------------------------------------------- |
48
+ | Model Name | Solar Open 2 (250B-A15B) |
49
+ | Architecture | Hybrid-Attention Mixture-of-Experts (MoE) |
50
+ | Total Parameters | 250B (250,287,794,944) |
51
+ | Active Parameters | 15B (per token) |
52
+ | Layers | 48 |
53
+ | Hidden Size | 4096 |
54
+ | Attention | Hybrid — Softmax + Linear Attention, pattern `[Softmax, Linear×3] × 12` |
55
+ | Position Encoding | NoPE (no rotary positional encoding) |
56
+ | Number of Attention Heads (GQA) | (Softmax) 64 query / 8 KV, (Linear) 64 query |
57
+ | Number of Experts | 321 (320 routed + 1 shared) |
58
+ | Number of Activated Experts | 8 routed (top-8) + 1 shared |
59
+ | Vocabulary | 196,608 |
60
+ | Context Length | 1M |
61
+ | Pre-training Tokens | ~12 Trillion |
62
+ | Supported Languages | English, Korean, Japanese |
63
+ | Training Hardware | NVIDIA B200 GPUs |
64
+ | Training GPU Time | 2M GPU Hours |
65
+ | License | Upstage Solar License (see [LICENSE](https://huggingface.co/upstage/Solar-Open2-250B/blob/main/LICENSE)) |
66
+ | Hardware Requirements | Minimum: H200 \* 4ea / Recommended: H200 \* 8ea |
67
+
68
+ ---
69
+
70
+ ## Performance
71
+
72
+ ### English Benchmarks
73
+
74
+ | Benchmark | **Solar Open 2**<br>250B-A15B | **Solar Open 100B**<br>102B-A12B | **Command A+**<br>218B-A25B | **Mistral Medium 3.5**<br>128B dense, high | **MiMo-V2.5**<br>310B-A15B | **DeepSeek-V4-Flash**<br>284B-A13B, max |
75
+ | --------------------- | ----------------------------: | -------------------------------: | --------------------------: | -----------------------------------------: | -------------------------: | --------------------------------------: |
76
+ | **Know. & Reasoning** | | | | | | |
77
+ | MMLU-Pro | **86.2** | 80.4 | 79.0 | 81.2 | 84.6 | <u>85.9</u> |
78
+ | GPQA-Diamond | <u>86.3</u> | 66.2 | 75.6 | 77.5 | 83.0 | **88.9** |
79
+ | HLE (w/o tools) | <u>28.8</u> | 11.5 | 11.4 | 12.8 | 24.3 | **32.3** |
80
+ | LiveCodeBench (v6) | **92.4** | 56.5 | 86.1 | 84.9 | 89.1 | <u>92.3</u> |
81
+ | ArtifactsBench | 55.9 | 43.4 | 42.8 | 49.8 | <u>59.3</u> | **61.0** |
82
+ | HMMT2602 | <u>93.9</u> | 68.9 | 73.5 | 62.9 | 61.4 | **94.7** |
83
+ | AIME2026 | 95.7 | 87.7 | <u>96.0</u> | 89.0 | 92.3 | **97.0** |
84
+ | **IF / Long** | | | | | | |
85
+ | Multi-Challenge | <u>61.0</u> | 40.5 | 45.8 | 49.8 | 39.0 | **62.0** |
86
+ | IFBench | <u>80.0</u> | 57.7 | 73.9 | 69.0 | 67.1 | **80.3** |
87
+ | AA-LCR | 62.3 | 36.0 | 46.0 | 61.0 | <u>62.7</u> | **63.7** |
88
+ | **Agent** | | | | | | |
89
+ | SWE-Bench Verified | 70.4 | 15.4 | 14.4 | 69.6 | <u>73.0</u> | **73.8** |
90
+ | Terminal Bench Hard | 28.3 | 2.3 | 25.0 | 33.3 | **41.7** | <u>34.1</u> |
91
+ | APEX-Agents | **16.6** | 2.4 | 1.6 | 6.1 | <u>13.4</u> | 13.2 |
92
+ | MCP-Atlas | <u>58.2</u> | 34.4 | 27.2 | 30.7 | **63.9** | <u>58.2</u> |
93
+ | τ³ (banking) | <u>19.6</u> | 7.4 | 5.8 | 5.8 | 8.7 | **22.3** |
94
+ | GDPval-AA v2 (ELO) | 1128 | – | 712 | 929 | <u>1145</u> | **1187** |
95
+
96
+ ### Korean Benchmarks
97
+
98
+ | Benchmark | **Solar Open 2**<br>250B-A15B | **Solar Open 100B**<br>102B-A12B | **MiMo-V2.5**<br>310B-A15B | **DeepSeek-V4-Flash**<br>284B-A13B, max | **Claude Haiku 4.5**<br>closed | **GPT-5.4 mini**<br>closed |
99
+ | ------------ | ----------------------------: | --------------------------------: | -------------------------: | --------------------------------------: | -----------------------------: | -------------------------: |
100
+ | KMMLU-Pro | <u>78.4</u> | 64.0 | 69.1 | **78.9** | 67.9 | 78.1 |
101
+ | CLIcK | **90.7** | 78.9 | 78.4 | 89.2 | 53.5 | <u>89.6</u> |
102
+ | HAE-RAE v1.1 | **73.8** | <u>73.3</u> | 61.7 | 73.1 | 38.5 | 69.4 |
103
+ | Ko-AIME’25† | <u>97.7</u> | 80.0 | 88.0 | **98.0** | 81.7 | 90.7 |
104
+ | HRM8K | <u>92.2</u> | 87.6 | 90.7 | **93.4** | 90.6 | 91.3 |
105
+ | KBank-MMLU† | **80.8** | 65.5 | 71.0 | <u>79.5</u> | 68.9 | 79.0 |
106
+ | KBL | **75.5** | 65.5 | 69.8 | 72.8 | 69.9 | <u>75.3</u> |
107
+ | KorMedMCQA | 93.0 | 84.4 | 87.7 | <u>94.1</u> | 87.0 | **94.2** |
108
+ | Ko-GDPval† | **86.8** | 3.4 | 81.0 | <u>85.0</u> | 68.3 | 59.4 |
109
+
110
+ † in-house benchmarks.
111
+
112
+ ---
113
+
114
+ ## Quickstart
115
+
116
+ The examples below assume 8 GPUs with at least 141 GB of memory each, such as NVIDIA H200 or B200 GPUs.
117
+ Actual memory requirements depend on the context length and serving settings.
118
+
119
+ ### Transformers
120
+
121
+ Use the [Upstage Transformers branch with native Solar Open 2 support](https://github.com/upstageAI/transformers/tree/v5.14.1-solar-open2) for local experimentation. For production serving, we recommend vLLM.
122
+
123
+ Install the dependencies:
124
+
125
+ > Install a CUDA-enabled PyTorch build for your platform before running this command. `fla-core` enables the optimized KDA kernels; without it, Transformers uses a substantially slower PyTorch fallback.
126
+
127
+ ```bash
128
+ python -m pip install -U \
129
+ "git+https://github.com/upstageAI/transformers.git@v5.14.1-solar-open2" \
130
+ "fla-core[cuda]>=0.5.1" \
131
+ accelerate einops
132
+ ```
133
+
134
+ Run the model:
135
+
136
+ ```python
137
+ import torch
138
+ from transformers import AutoModelForCausalLM, AutoTokenizer
139
+
140
+ model_id = "upstage/Solar-Open2-250B"
141
+
142
+ tokenizer = AutoTokenizer.from_pretrained(
143
+ model_id,
144
+ trust_remote_code=False,
145
+ )
146
+ model = AutoModelForCausalLM.from_pretrained(
147
+ model_id,
148
+ device_map="auto",
149
+ dtype=torch.bfloat16,
150
+ trust_remote_code=False,
151
+ )
152
+ model.eval()
153
+
154
+ messages = [
155
+ {"role": "user", "content": "What is Upstage?"},
156
+ ]
157
+ prompt = tokenizer.apply_chat_template(
158
+ messages,
159
+ tokenize=False,
160
+ add_generation_prompt=True,
161
+ reasoning_effort="high",
162
+ think_render_option="preserved",
163
+ )
164
+ input_device = model.get_input_embeddings().weight.device
165
+ model_inputs = tokenizer(prompt, return_tensors="pt").to(input_device)
166
+
167
+ generated_ids = model.generate(
168
+ **model_inputs,
169
+ max_new_tokens=32768,
170
+ do_sample=True,
171
+ temperature=1.0,
172
+ top_p=1.0,
173
+ )
174
+
175
+ new_token_ids = generated_ids[0, model_inputs.input_ids.shape[-1] :].tolist()
176
+ think_end_id = tokenizer.convert_tokens_to_ids("<|think:end|>")
177
+
178
+ if think_end_id in new_token_ids:
179
+ # Split immediately after the final <|think:end|> token.
180
+ answer_start = len(new_token_ids) - new_token_ids[::-1].index(think_end_id)
181
+ else:
182
+ # No end marker usually means generation stopped while the model was reasoning.
183
+ answer_start = len(new_token_ids)
184
+
185
+ reasoning = tokenizer.decode(
186
+ new_token_ids[:answer_start],
187
+ skip_special_tokens=True,
188
+ ).strip()
189
+ answer = tokenizer.decode(
190
+ new_token_ids[answer_start:],
191
+ skip_special_tokens=True,
192
+ ).strip()
193
+
194
+ print("[reasoning]", reasoning)
195
+ print("[answer]", answer)
196
+ ```
197
+
198
+ If the answer is empty, generation likely reached `max_new_tokens` before the reasoning block ended. Increase `max_new_tokens` and try again.
199
+
200
+ ### Serving with vLLM (Recommended)
201
+
202
+ #### **Option 1: Docker**
203
+
204
+ The image below is based on vLLM v0.22.0 and CUDA 12.9.
205
+
206
+ ```bash
207
+ docker run --rm --gpus all --ipc=host \
208
+ -p 8000:8000 \
209
+ -v "${HF_HOME:-$HOME/.cache/huggingface}:/root/.cache/huggingface" \
210
+ upstage/vllm-solar-open2 \
211
+ upstage/Solar-Open2-250B \
212
+ --served-model-name solar-open2-250b \
213
+ --tensor-parallel-size 8 \
214
+ --enable-expert-parallel \
215
+ --moe-backend triton \
216
+ --default-chat-template-kwargs '{"think_render_option":"preserved"}' \
217
+ --reasoning-parser solar_open2 \
218
+ --tool-call-parser solar_open2 \
219
+ --enable-auto-tool-choice \
220
+ --logits-processors vllm.v1.sample.logits_processor.solar_open2:SolarOpen2TemplateLogitsProcessor
221
+ ```
222
+
223
+ #### **Option 2: Install from source**
224
+
225
+ Install the [Upstage fork](https://github.com/UpstageAI/vllm/tree/v0.22.0-solar-open2) while reusing the matching vLLM v0.22.0 CUDA 12.9 wheel:
226
+
227
+ ```bash
228
+ pip install -U uv
229
+
230
+ VLLM_PRECOMPILED_WHEEL_LOCATION="https://github.com/vllm-project/vllm/releases/download/v0.22.0/vllm-0.22.0%2Bcu129-cp38-abi3-manylinux_2_28_x86_64.whl" \
231
+ VLLM_USE_PRECOMPILED=1 \
232
+ uv pip install --reinstall-package vllm --torch-backend=cu129 \
233
+ "git+https://github.com/UpstageAI/vllm.git@v0.22.0-solar-open2"
234
+ ```
235
+
236
+ Start the server:
237
+
238
+ ```bash
239
+ vllm serve upstage/Solar-Open2-250B \
240
+ --served-model-name solar-open2-250b \
241
+ --tensor-parallel-size 8 \
242
+ --enable-expert-parallel \
243
+ --moe-backend triton \
244
+ --default-chat-template-kwargs '{"think_render_option":"preserved"}' \
245
+ --reasoning-parser solar_open2 \
246
+ --tool-call-parser solar_open2 \
247
+ --enable-auto-tool-choice \
248
+ --logits-processors vllm.v1.sample.logits_processor.solar_open2:SolarOpen2TemplateLogitsProcessor
249
+ ```
250
+
251
+ Send a chat completion request:
252
+
253
+ ```bash
254
+ curl http://localhost:8000/v1/chat/completions \
255
+ -H "Content-Type: application/json" \
256
+ -d '{
257
+ "model": "solar-open2-250b",
258
+ "messages": [
259
+ {"role": "user", "content": "What is Upstage?"}
260
+ ],
261
+ "max_tokens": 131584,
262
+ "temperature": 1.0,
263
+ "top_p": 1.0,
264
+ "reasoning_effort": "high"
265
+ }'
266
+ ```
267
+
268
+ ### Quantized Versions
269
+
270
+ Official quantized models by [NotaAI](https://huggingface.co/nota-ai) are available for deployment on smaller GPU configurations:
271
+ - [Solar-Open2-250B-Nota-INT4-GlobalPruned](https://huggingface.co/nota-ai/Solar-Open2-250B-Nota-INT4-GlobalPruned)
272
+ - [Solar-Open2-250B-Nota-NVFP4](https://huggingface.co/nota-ai/Solar-Open2-250B-Nota-NVFP4)
273
+ - [Solar-Open2-250B-Nota-INT4](https://huggingface.co/nota-ai/Solar-Open2-250B-Nota-INT4)
274
+
275
+ ---
276
+
277
+ ## Capabilities
278
+
279
+ ### **Reasoning**
280
+
281
+ Use `reasoning_effort="high"` for reasoning and `reasoning_effort="none"` for a direct response. The recommended vLLM configuration limits a reasoning block to 131,072 tokens.
282
+
283
+ | Effort | Behavior |
284
+ | ------ | ----------------------------------- |
285
+ | `none` | Direct response |
286
+ | `high` | Reasoning, capped at 131,072 tokens |
287
+
288
+ `max_tokens` limits the complete response, including reasoning and the final answer, so leave room beyond the reasoning cap.
289
+
290
+ ```python
291
+ from openai import OpenAI
292
+
293
+ client = OpenAI(api_key="EMPTY", base_url="http://localhost:8000/v1")
294
+
295
+ response = client.chat.completions.create(
296
+ model="solar-open2-250b",
297
+ messages=[
298
+ {
299
+ "role": "user",
300
+ "content": "Prove that the square root of 2 is irrational.",
301
+ },
302
+ ],
303
+ reasoning_effort="high",
304
+ temperature=1.0,
305
+ top_p=1.0,
306
+ max_tokens=131584,
307
+ )
308
+
309
+ # The reasoning trace is returned separately from the final answer.
310
+ print(response.choices[0].message.reasoning)
311
+ print(response.choices[0].message.content)
312
+ ```
313
+
314
+ ### **Tool Calling**
315
+
316
+ Tool calls follow the standard OpenAI function-calling interface. Start the server with `--tool-call-parser solar_open2` and `--enable-auto-tool-choice`.
317
+
318
+ ```python
319
+ from openai import OpenAI
320
+
321
+ client = OpenAI(api_key="EMPTY", base_url="http://localhost:8000/v1")
322
+
323
+ tools = [
324
+ {
325
+ "type": "function",
326
+ "function": {
327
+ "name": "get_weather",
328
+ "description": "Get current weather for a location",
329
+ "parameters": {
330
+ "type": "object",
331
+ "properties": {
332
+ "location": {"type": "string"},
333
+ },
334
+ "required": ["location"],
335
+ },
336
+ },
337
+ },
338
+ ]
339
+
340
+ response = client.chat.completions.create(
341
+ model="solar-open2-250b",
342
+ messages=[
343
+ {
344
+ "role": "user",
345
+ "content": "What's the weather in Seoul?",
346
+ },
347
+ ],
348
+ tools=tools,
349
+ )
350
+
351
+ print(response.choices[0].message.tool_calls)
352
+ ```
353
+
354
+ ## **Agentic Use**
355
+
356
+ Both Anthropic's Claude Code and Nous Research's Hermes Agent can run on Solar Open 2 served locally with vLLM (see the vLLM deployment guide). A single vLLM server exposes both interfaces: Claude Code connects through the Anthropic-compatible /v1/messages endpoint and Hermes Agent through the OpenAI-compatible /v1 endpoint (model id solar-open2-250b), each needing only a few environment variables or one provider entry — no setup script required. Tools exposed over the Model Context Protocol (MCP) reach the model through the same tool-calling interface, and both agents support MCP natively.
357
+
358
+ ### **Claude Code**
359
+
360
+ vLLM exposes an Anthropic-compatible /v1/messages endpoint, so Claude Code connects directly — no proxy needed:
361
+
362
+ ```
363
+ export ANTHROPIC_BASE_URL=http://localhost:8000
364
+ export ANTHROPIC_AUTH_TOKEN=dummy # any non-empty value
365
+ export ANTHROPIC_MODEL=solar-open2-250b
366
+ export ANTHROPIC_SMALL_FAST_MODEL=solar-open2-250b
367
+ claude
368
+ ```
369
+
370
+ The model name must match the server's --served-model-name (solar-open2-250b).
371
+
372
+ Prerequisites: the Claude Code CLI installed and a running vLLM server.
373
+
374
+ ### **Hermes Agent**
375
+
376
+ Register the local vLLM server as a custom OpenAI-compatible provider in ~/.hermes/config.yaml:
377
+
378
+ ```yaml
379
+ model:
380
+ provider: custom
381
+ default: solar-open2-250b
382
+ base_url: http://localhost:8000/v1
383
+ api_key: dummy
384
+ ```
385
+
386
+ ---
387
+
388
+ ## Best Practices
389
+
390
+ Recommended **client-side generation settings** (the values a client / API caller should send)
391
+
392
+ Solar Open 2 is a reasoning-capable model. Use `reasoning_effort="high"` for complex or agentic tasks. The recommended vLLM configuration preserves the reasoning trace.
393
+
394
+ | Parameter | Recommended | Notes |
395
+ | ------------------ | ----------- | --------------------------------------------------- |
396
+ | `reasoning_effort` | `high` | Recommended for complex reasoning and agentic tasks |
397
+ | `temperature` | 1.0 | |
398
+ | `top_p` | 1.0 | |
399
+ | `max_tokens` | up to 256K | Covers reasoning + output budget |
400
+
401
+ **Recommended settings by reasoning mode**
402
+
403
+ | Mode | temperature | top_p | max_tokens |
404
+ | ------------------------- | ----------- | ----- | ---------- |
405
+ | `reasoning_effort="none"` | 1.0 | 1.0 | up to 128K |
406
+ | `reasoning_effort="high"` | 1.0 | 1.0 | up to 256K |
407
+
408
+ - Set `max_tokens` high enough (up to 256K) — reasoning traces can be long and may otherwise truncate the answer.
409
+
410
+ - The reasoning trace is preserved by default (`think_render_option=preserved`).
411
+
412
+ - Multi-turn: Keep prior reasoning traces in the conversation history. The default `think_render_option=preserved` handles this automatically — do not strip reasoning from previous turns when constructing follow-up requests.
413
+
414
+ - **Parsing:** the OpenAI-compatible server returns reasoning in a separate `message.reasoning` field with local `transformers`, split the raw output on the reasoning markers yourself.
415
+
416
+ ---
417
+
418
+ ## License
419
+
420
+ Solar Open 2 is distributed under the [**Upstage Solar License**](https://huggingface.co/upstage/Solar-Open2-250B/blob/main/LICENSE).
421
+
422
+ **Key requirements for Derivative AI Models** (create / train / fine-tune / distill / improve using Solar Open 2):
423
+
424
+ - **Naming:** prefix your model name with "Solar" (e.g., `Solar-MyModel-v1`).
425
+
426
+ - **Attribution:** prominently display "Built with Solar" in related public-facing materials.
427
+
428
+ - **Notice:** include a copy of the Upstage Solar License with your derivative model.
429
+
430
+ ---
431
+
432
+ ## Citation
433
+
434
+ ```bibtex
435
+ @misc{solar-open-2-2026,
436
+ title={Solar Open 2 Technical Report},
437
+ author={Upstage AI},
438
+ year={2026},
439
+ url={https://huggingface.co/upstage/Solar-Open2-250B}
440
+ }
441
+ ```
442
+
443
+ ---
Solar_Open_2_Tech_Report.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adb9173134a2564af9c294752ae6eb264ee59be3160a2ed5c0d45852c5329e62
3
+ size 9827344
assets/Highlights_en.png ADDED

Git LFS Details

  • SHA256: f947154a92141950eb62761265c0cdcef706c2b33636e98a35a958fa48313749
  • Pointer size: 131 Bytes
  • Size of remote file: 838 kB
assets/Highlights_kr.png ADDED

Git LFS Details

  • SHA256: 9155a4506511e5bd53311fc22d6fb1c0ff727c704f770c1af8ebf5285de5002e
  • Pointer size: 131 Bytes
  • Size of remote file: 339 kB
assets/solar-open2.gif ADDED

Git LFS Details

  • SHA256: e0f857ce07144bb13cf6cd25a21d8ee4430a0c20ecb33c365a8c2bf4d23fb5b0
  • Pointer size: 132 Bytes
  • Size of remote file: 3.5 MB
chat_template.jinja ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- ======== Template Parameters ======== #}
2
+ {%- set add_generation_prompt = add_generation_prompt if add_generation_prompt is defined else true %}
3
+ {%- set provider_system_prompt = provider_system_prompt if provider_system_prompt else false %}
4
+ {%- set reasoning_effort = reasoning_effort if reasoning_effort is defined else "high" %}
5
+ {%- set think_render_option = think_render_option if think_render_option is defined else "interleaved" %}
6
+
7
+ {#- ======== System Block State ======== #}
8
+ {%- set sys_ns = namespace(is_first_block=true) -%}
9
+
10
+ {#- ======== Find last user message index ======== #}
11
+ {%- set last_user_idx = namespace(value=-1) -%}
12
+ {%- for message in messages -%}
13
+ {%- if message.role == 'user' -%}
14
+ {%- set last_user_idx.value = loop.index0 -%}
15
+ {%- endif -%}
16
+ {%- endfor -%}
17
+
18
+ {#- ======== System messages renderers ======== #}
19
+ {%- macro render_system_message(user_system_messages) %}
20
+ {%- if provider_system_prompt %}
21
+ {%- if not sys_ns.is_first_block %}{{- "\n\n" }}{%- endif %}
22
+ {%- set sys_ns.is_first_block = false %}
23
+ {{- "## Provider System Prompt\n\nYou are Solar Open2 250B, a large language model trained by Upstage AI, a Korean startup. Your knowledge cutoff is 2026-02. The current date is " + strftime_now("%Y-%m-%d") + "." }}
24
+ {%- endif -%}
25
+ {%- if user_system_messages %}
26
+ {%- if not sys_ns.is_first_block %}{{- "\n\n" }}{%- endif %}
27
+ {%- set sys_ns.is_first_block = false %}
28
+ {{- "## System Prompt" }}
29
+ {%- for system_message in user_system_messages %}
30
+ {{- "\n\n" }}
31
+ {{- system_message }}
32
+ {%- endfor %}
33
+ {%- endif -%}
34
+ {%- endmacro %}
35
+
36
+ {%- macro render_tool_instruction(tools, is_last_block) %}
37
+ {%- if not sys_ns.is_first_block %}{{- "\n\n" }}{%- endif %}
38
+ {%- set sys_ns.is_first_block = false %}
39
+ {{- "## Tools\n- You may invoke one or more tools to assist with the user's query." }}
40
+ {{- "\n\n### Available Tools\n" }}
41
+ {%- for tool in tools %}
42
+ {{- "<|tool:start|>" }}
43
+ {{- tool.function | tojson }}
44
+ {{- "<|tool:end|>\n" }}
45
+ {%- endfor %}
46
+ {{- "\n### Tool Call Instruction\n" }}
47
+ {{- "- If using a tool, any reasoning must strictly precede the call. Do not append any text after the tool call.\n" }}
48
+ {{- "- If no tool is required, answer directly from your knowledge without ever mentioning the availability or absence of tools.\n" }}
49
+ {{- "- Each tool call MUST use this following format: <|tool_call:start|>{example-tool-name}\n<|tool_arg:start|>{example-key-name-1}<|tool_arg:value|>{example-value-1}<|tool_arg:end|>\n<|tool_arg:start|>{example-key-name-2}<|tool_arg:value|>{example-value-2}<|tool_arg:end|>\n<|tool_call:end|>\n" }}
50
+ {%- endmacro %}
51
+
52
+ {#-
53
+ Input convention for `response_format`:
54
+ - Per the OpenAI Chat Completions API, `response_format` is an object of one of:
55
+ {"type": "json_schema", "json_schema": {"name": ..., "schema": {...}, "strict": ...}}
56
+ {"type": "json_object"}
57
+ - Only `response_format.json_schema.schema` (the inner JSON Schema) is injected
58
+ into the prompt; the OpenAI wrapper fields (`name`, `strict`, ...) are dropped.
59
+ - For `json_object`, no schema exists, so we emit a generic JSON-only instruction.
60
+ - vLLM does NOT pass `response_format` to chat templates by default; it routes it
61
+ to guided decoding instead. This template/whale opts into prompt injection,
62
+ so callers serving the model directly via vLLM must opt in via
63
+ `chat_template_kwargs` (or rely on whale's normalization).
64
+ -#}
65
+ {%- macro render_json_response_format_instruction(response_format) %}
66
+ {%- if not sys_ns.is_first_block %}{{- "\n\n" }}{%- endif %}
67
+ {%- set sys_ns.is_first_block = false %}
68
+ {{- "## Output Format Constraint" }}
69
+ {%- if response_format.type == "json_schema" %}
70
+ {{- "\n\n- Your final response should follow the JSON schema:\n```json\n" }}
71
+ {{- response_format.json_schema.schema | tojson }}
72
+ {{- "\n```\n- Please ensure your answers adhere to this format and do not contain any unnecessary text." }}
73
+ {%- elif response_format.type == "json_object" %}
74
+ {{- "\n\n- Your final response must be a valid JSON object." }}
75
+ {{- "\n- Do not include any text outside the JSON object." }}
76
+ {%- endif %}
77
+ {%- endmacro %}
78
+
79
+ {#-
80
+ Input convention for `tool_arguments`:
81
+ - Must be a mapping (dict), NOT a JSON-encoded string.
82
+ - The OpenAI API spec defines `tool_calls[].function.arguments` as a JSON string,
83
+ but vLLM, HuggingFace transformers tool-use templates (Qwen, Hermes, Llama, ...),
84
+ and this template all expect the value to be parsed into a dict before rendering.
85
+ - vLLM normalizes this in `_postprocess_messages()` (vllm/entrypoints/chat_utils.py).
86
+ - Callers (whale, training pipelines that call `tokenizer.apply_chat_template`
87
+ directly, ...) are responsible for parsing the JSON string into a dict before
88
+ invoking the template.
89
+ -#}
90
+ {%- macro render_tool_arguments(tool_arguments) %}
91
+ {%- for args_name, args_value in tool_arguments|items %}
92
+ {{- "<|tool_arg:start|>"+ args_name + "<|tool_arg:value|>"}}
93
+ {%- set args_value = args_value if args_value is string else (args_value | tojson | safe) %}
94
+ {{- args_value }}
95
+ {{- "<|tool_arg:end|>\n" }}
96
+ {%- endfor %}
97
+ {%- endmacro %}
98
+
99
+ {#- ======== Render system message ======== #}
100
+ {%- set ns = namespace(system_messages=[]) -%}
101
+ {%- for message in messages -%}
102
+ {%- if message.role == 'system' -%}
103
+ {%- set ns.system_messages = ns.system_messages + [message.content] -%}
104
+ {%- endif -%}
105
+ {%- endfor -%}
106
+
107
+ {%- if ns.system_messages or provider_system_prompt or tools or response_format -%}
108
+ {{- "<|im:start|>system<|im:content|>" }}
109
+ {{- render_system_message(ns.system_messages) }}
110
+ {%- if tools -%}
111
+ {{- render_tool_instruction(tools, not response_format) }}
112
+ {%- endif %}
113
+ {%- if response_format -%}
114
+ {{- render_json_response_format_instruction(response_format) }}
115
+ {%- endif %}
116
+ {{- "<|im:end|>\n" }}
117
+ {%- endif -%}
118
+
119
+ {#- ======== Render main messages ======== #}
120
+ {%- for message in messages -%}
121
+ {%- if message.role == 'user' -%}
122
+ {{- "<|im:start|>user<|im:content|>" + message.content + "<|im:end|>\n" }}
123
+ {%- elif message.role == 'tool' -%}
124
+ {%- if not message.tool_call_id -%}
125
+ {{- raise_exception("tool message is missing required 'tool_call_id' field") -}}
126
+ {%- endif -%}
127
+ {%- set prev_is_tool = loop.index0 > 0 and messages[loop.index0 - 1].role == 'tool' -%}
128
+ {#- Only render at the start of a contiguous tool block; subsequent tool messages -#}
129
+ {#- are already emitted (reordered) within the first one. -#}
130
+ {%- if not prev_is_tool -%}
131
+ {%- set start_idx = loop.index0 -%}
132
+ {#- Collect contiguous tool messages starting at start_idx -#}
133
+ {%- set tool_ns = namespace(items=[], scanning=true) -%}
134
+ {%- for j in range(start_idx, messages | length) -%}
135
+ {%- if tool_ns.scanning -%}
136
+ {%- if messages[j].role == 'tool' -%}
137
+ {%- set tool_ns.items = tool_ns.items + [messages[j]] -%}
138
+ {%- else -%}
139
+ {%- set tool_ns.scanning = false -%}
140
+ {%- endif -%}
141
+ {%- endif -%}
142
+ {%- endfor -%}
143
+
144
+ {{- "<|im:start|>tool<|im:content|>" }}
145
+
146
+ {%- set prev_msg = messages[start_idx - 1] if start_idx > 0 else none -%}
147
+ {%- if prev_msg and prev_msg.role == 'assistant' and prev_msg.tool_calls -%}
148
+ {#- Render tool responses in the order of the preceding assistant's tool_calls ids. -#}
149
+ {%- set sep_ns = namespace(first=true, rendered_ids=[]) -%}
150
+ {%- for tool_call in prev_msg.tool_calls -%}
151
+ {%- for tool_msg in tool_ns.items -%}
152
+ {%- if tool_msg.tool_call_id == tool_call.id -%}
153
+ {%- if not sep_ns.first -%}{{- "\n" }}{%- endif -%}
154
+ {%- set sep_ns.first = false -%}
155
+ {%- set sep_ns.rendered_ids = sep_ns.rendered_ids + [tool_msg.tool_call_id] -%}
156
+ {{- "<|tool_response:start|>" + tool_msg.content + "<|tool_response:end|>" }}
157
+ {%- endif -%}
158
+ {%- endfor -%}
159
+ {%- endfor -%}
160
+ {#- Append any orphan tool messages (no matching id) in their original order. -#}
161
+ {%- for tool_msg in tool_ns.items -%}
162
+ {%- if tool_msg.tool_call_id not in sep_ns.rendered_ids -%}
163
+ {%- if not sep_ns.first -%}{{- "\n" }}{%- endif -%}
164
+ {%- set sep_ns.first = false -%}
165
+ {{- "<|tool_response:start|>" + tool_msg.content + "<|tool_response:end|>" }}
166
+ {%- endif -%}
167
+ {%- endfor -%}
168
+ {%- else -%}
169
+ {%- for tool_msg in tool_ns.items -%}
170
+ {%- if not loop.first -%}{{- "\n" }}{%- endif -%}
171
+ {{- "<|tool_response:start|>" + tool_msg.content + "<|tool_response:end|>" }}
172
+ {%- endfor -%}
173
+ {%- endif -%}
174
+
175
+ {{- "\n<|im:end|>\n" }}
176
+ {%- endif -%}
177
+ {%- elif message.role == 'assistant' -%}
178
+ {{- "<|im:start|>assistant<|im:content|>" }}
179
+
180
+ {#- ======== Resolve reasoning field (reasoning or reasoning_content) ======== #}
181
+ {%- if message.reasoning is defined -%}
182
+ {%- set reasoning = message.reasoning -%}
183
+ {%- elif message.reasoning_content is defined -%}
184
+ {%- set reasoning = message.reasoning_content -%}
185
+ {%- else -%}
186
+ {%- set reasoning = none -%}
187
+ {%- endif -%}
188
+
189
+ {#- ======== Assistant Thinking ======== #}
190
+ {%- if think_render_option == "preserved" -%}
191
+ {%- if reasoning -%}
192
+ {{- "<|think:start|>" + reasoning + "<|think:end|>" }}
193
+ {%- else -%}
194
+ {{- "<|think:start|><|think:end|>" }}
195
+ {%- endif -%}
196
+ {%- elif think_render_option == "interleaved" -%}
197
+ {%- if reasoning and loop.index0 > last_user_idx.value -%}
198
+ {{- "<|think:start|>" + reasoning + "<|think:end|>" }}
199
+ {%- else -%}
200
+ {{- "<|think:start|><|think:end|>" }}
201
+ {%- endif -%}
202
+ {%- endif -%}
203
+
204
+ {#- ======== Assistant Messages ======== #}
205
+ {%- if message.content -%}
206
+ {{- message.content }}
207
+ {%- endif -%}
208
+
209
+ {#- ======== Assistant Tool calls ======== #}
210
+ {%- if message.tool_calls -%}
211
+ {%- for tool_call in message.tool_calls -%}
212
+ {%- if not tool_call.id -%}
213
+ {{- raise_exception("assistant tool_call is missing required 'id' field") -}}
214
+ {%- endif -%}
215
+ {%- if not loop.first -%}{{- "\n" }}{%- endif -%}
216
+ {{- "<|tool_call:start|>" + tool_call.function.name + "\n" }}
217
+ {%- if tool_call.function.arguments is defined %}
218
+ {{- render_tool_arguments(tool_call.function.arguments) }}
219
+ {%- endif %}
220
+ {{- "<|tool_call:end|>" }}
221
+ {%- endfor -%}
222
+ {{- "\n" }}
223
+ {%- endif -%}
224
+ {{- "<|im:end|>\n" }}
225
+ {%- endif -%}
226
+ {%- endfor -%}
227
+
228
+ {%- if add_generation_prompt -%}
229
+ {%- if reasoning_effort in ["medium", "high", "xhigh"] -%}
230
+ {{- "<|im:start|>assistant<|im:content|><|think:start|>" }}
231
+ {%- else -%}
232
+ {{- "<|im:start|>assistant<|im:content|><|think:start|><|think:end|>" }}
233
+ {%- endif -%}
234
+ {%- endif -%}
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "solar_open2",
3
+ "architectures": [
4
+ "SolarOpen2ForCausalLM"
5
+ ],
6
+ "pad_token_id": 2,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "partial_rotary_factor": 1.0,
10
+ "linear_attn_config": {
11
+ "short_conv_kernel_size": 4,
12
+ "head_dim": 128,
13
+ "num_heads": 64,
14
+ "num_kv_heads": null
15
+ },
16
+ "hidden_size": 4096,
17
+ "num_hidden_layers": 48,
18
+ "num_attention_heads": 64,
19
+ "head_dim": 128,
20
+ "num_key_value_heads": 8,
21
+ "vocab_size": 196608,
22
+ "intermediate_size": 10240,
23
+ "moe_intermediate_size": 1280,
24
+ "rms_norm_eps": 1e-05,
25
+ "rope_theta": 10000,
26
+ "tie_word_embeddings": false,
27
+ "max_position_embeddings": 1048576,
28
+ "first_k_dense_replace": 0,
29
+ "use_rope": false,
30
+ "gqa_interval": 3,
31
+ "gqa_layers": [
32
+ 0,
33
+ 4,
34
+ 8,
35
+ 12,
36
+ 16,
37
+ 20,
38
+ 24,
39
+ 28,
40
+ 32,
41
+ 36,
42
+ 40,
43
+ 44
44
+ ],
45
+ "use_gqa_gate": true,
46
+ "kda_use_full_proj": false,
47
+ "kda_allow_neg_eigval": true,
48
+ "n_routed_experts": 320,
49
+ "n_shared_experts": 1,
50
+ "norm_topk_prob": true,
51
+ "routed_scaling_factor": 1.0,
52
+ "num_experts_per_tok": 8,
53
+ "torch_dtype": "bfloat16",
54
+ "transformers_version": "5.5.4"
55
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 2,
6
+ 129
7
+ ],
8
+ "transformers_version": "4.57.6"
9
+ }
model-00001-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26df271387681de6dbde858b8b55309d0641802b6453f7d74d6dc04bfe2bdf70
3
+ size 5366217248
model-00002-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c55ca0c7dffb90f68f1282efc6ca6b8fa16197bd5ef8978a6afc91585663f5b
3
+ size 5366750080
model-00003-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f2b600997d3d59b2685c0110728db6ad65bc05e4302d675f94ad686e63a135b
3
+ size 5359960456
model-00004-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f914271d2ad021b1ed4cc5705af66d93803ae01ad6244c7714f61e96c7cedd12
3
+ size 5358295584
model-00005-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ac1c039a4f186b370c5885161e6e869a6d4f65d49b6a6687e91d08e1d234c79
3
+ size 5359401624
model-00006-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:661b45ac5eef2c4ff1d7e3721ecc5b48a96672a3f2acd94e69c1fcb0b43f80b5
3
+ size 5368773264
model-00007-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb2cb879401cd79585a5ff43c1d69b54d81de8953bf4060956bd6f6698f70e04
3
+ size 5362171968
model-00008-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0b94724f67f457f4a7e0b3c9e2fdd4a0c7308b16c14dd0adec739022040145e
3
+ size 5364660640
model-00009-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66ec2deeec7be47a4010f91c3ff64712ce7af5d7a1506785d00ea68bb00bcbd2
3
+ size 5359336032
model-00010-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2243a2d92a693f30e33321d1e54dbaedcd3c2b0c8294c6c81a1cbb11eda22f9f
3
+ size 5368773248
model-00011-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f8b097b7869b7c2bc508b27ccd7bbe370cb36f8a52dd9d96754cc1b9639e97b
3
+ size 5358295640
model-00012-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:761c34ea6ff4411484711bf99aa809e1241d37fd5ddd274c02e95e9abc139dd5
3
+ size 5366259712
model-00013-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44a8d68c181736c322b7462105fc73b88493e7224c83eaec7de587dccbb73a59
3
+ size 5360448160
model-00014-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e076f8e9b85f2b1fa2caf4b0461055bf22a7b7ceacc36502f863e2152f60af59
3
+ size 5368773208
model-00015-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51b7bf5457a508080a3bbe85a5f46bfca8953b533471b20076a9a2f1fac2652a
3
+ size 5358287608
model-00016-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b1d36a87eb0228e1a2a690563bf9be2aeecb4df5d58ce90a58bf16667c51c9c
3
+ size 5366289448
model-00017-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceec01e6dba231aabf2940bb7ba46a9589be95a3b4f684bc840c18f4f65448d5
3
+ size 5364744080
model-00018-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f34cc196743f7cfa4691f8201e6a62466a8471cdf57898b5da99422f9d4fde65
3
+ size 5368773208
model-00019-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7d1b113992652bfe7ef5bf8af06e4b8dafd44a8501d0d9796eb73ee5b3bef78
3
+ size 5368773192
model-00020-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d16e3e298f6282488586f4c9dcb0c43742f26486919cac4048ac42d49f0e4a2
3
+ size 5368773296
model-00021-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f9bd8fd893c17efcf4dbace9c31b82427d8585aec06ca9686072ef16e54fba9
3
+ size 5364214024
model-00022-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:106e2b7ce14ae190918c602389ee58f174d6e8b35cf4c152ddb701f7da1d62f8
3
+ size 5364107344
model-00023-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9de32690026220d80c1bfa66272b5db150767f3acb9e49e8f1e3e6fa6438b34
3
+ size 5368773088
model-00024-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1acb84bd02ff684a197a741947a1bdf6cdadc0ced6ca54d89be58d51bb6d8ef1
3
+ size 5368773128
model-00025-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51d1d45f03156ccfecdce1d37ac26ca91ba0e5845f639eefc42d0220fc192c53
3
+ size 5368773008
model-00026-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:105e726eab5fb6c5e4136dd806dbffd66b831c74e0c22326dc554a35c67ce400
3
+ size 5363752320
model-00027-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66cf1af9798b1522d160df91c56266ae9ac70bed280ab7469a8da1da2e4f2108
3
+ size 5362489728
model-00028-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de75cad00f979e2f47b94deff64f59a242fb40bcfc90dfa202c863f803940d82
3
+ size 5368773136
model-00029-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab7eaeee8acfef167980dbf2bd28acd8204ffa356646a8896cf5d445a2a39952
3
+ size 5362546488
model-00030-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:195cf93e7c77fdec76c85c37b57dc768831d5e1c64f5d1de669d42eb862162c5
3
+ size 5368412912
model-00031-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:336d9f5ca183a3de3e74e3aa64511926be9381a5955c238b9de75dcfd2c783ac
3
+ size 5367358888
model-00032-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a84b2e9a34294a0d6093063c1c15f9961801f4eeedc0c598fc00b9a8f8562fdd
3
+ size 5360846688
model-00033-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1fae8b176bea75f8eab509b2468132566e19a83c6531dfc483ab373857bd882
3
+ size 5368773248
model-00034-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6349b3a088f93860d89c742b537db64a89377e85ed6cb1709fbd9e19b2f2ecc1
3
+ size 5360382904
model-00035-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:add47f90b9ede49151ffbb0a40b7bde9623ddab0a8b5380a7c3f05cdead19959
3
+ size 5365717944
model-00036-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0e4fd4bf54915a15a9d3dcfe2636de68a9ae978e8feb23af4bf93adc156215c
3
+ size 5368773272
model-00037-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2210af5328bb2e2e620db82d6d41a31aaecb35e85c9bb53e0d3cdb09932261f9
3
+ size 5368773200
model-00038-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6df90d1419c1b43421c385ed68038e91219aedef6c742e8ab26e84c64da8e51
3
+ size 5364842096
model-00039-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f35f95a1240104dbfd660eb20e02090e323a1d944a1e0ab17a4c9fc8f87151e2
3
+ size 5337150544
model-00040-of-00094.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06085b001073caa2ea8ef659836befa4c5a57e54172d58efa62a1c3088560e00
3
+ size 5358947968