Commit ·
97ecb2f
0
Parent(s):
initial commit
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .eval_results/swe-bench_pro.yaml +7 -0
- .eval_results/swe-bench_verified.yaml +7 -0
- .eval_results/terminal-bench-2.0.yaml +7 -0
- .gitattributes +35 -0
- LICENSE.md +202 -0
- README.md +312 -0
- chat_template.jinja +132 -0
- config.json +202 -0
- configuration_laguna.py +245 -0
- generation_config.json +13 -0
- model-00001-of-00089.safetensors +3 -0
- model-00002-of-00089.safetensors +3 -0
- model-00003-of-00089.safetensors +3 -0
- model-00004-of-00089.safetensors +3 -0
- model-00005-of-00089.safetensors +3 -0
- model-00006-of-00089.safetensors +3 -0
- model-00007-of-00089.safetensors +3 -0
- model-00008-of-00089.safetensors +3 -0
- model-00009-of-00089.safetensors +3 -0
- model-00010-of-00089.safetensors +3 -0
- model-00011-of-00089.safetensors +3 -0
- model-00012-of-00089.safetensors +3 -0
- model-00013-of-00089.safetensors +3 -0
- model-00014-of-00089.safetensors +3 -0
- model-00015-of-00089.safetensors +3 -0
- model-00016-of-00089.safetensors +3 -0
- model-00017-of-00089.safetensors +3 -0
- model-00018-of-00089.safetensors +3 -0
- model-00019-of-00089.safetensors +3 -0
- model-00020-of-00089.safetensors +3 -0
- model-00021-of-00089.safetensors +3 -0
- model-00022-of-00089.safetensors +3 -0
- model-00023-of-00089.safetensors +3 -0
- model-00024-of-00089.safetensors +3 -0
- model-00025-of-00089.safetensors +3 -0
- model-00026-of-00089.safetensors +3 -0
- model-00027-of-00089.safetensors +3 -0
- model-00028-of-00089.safetensors +3 -0
- model-00029-of-00089.safetensors +3 -0
- model-00030-of-00089.safetensors +3 -0
- model-00031-of-00089.safetensors +3 -0
- model-00032-of-00089.safetensors +3 -0
- model-00033-of-00089.safetensors +3 -0
- model-00034-of-00089.safetensors +3 -0
- model-00035-of-00089.safetensors +3 -0
- model-00036-of-00089.safetensors +3 -0
- model-00037-of-00089.safetensors +3 -0
- model-00038-of-00089.safetensors +3 -0
- model-00039-of-00089.safetensors +3 -0
- model-00040-of-00089.safetensors +3 -0
.eval_results/swe-bench_pro.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: ScaleAI/SWE-bench_Pro
|
| 3 |
+
task_id: SWE_Bench_Pro
|
| 4 |
+
value: 49.2
|
| 5 |
+
source:
|
| 6 |
+
url: https://huggingface.co/poolside/Laguna-M.1
|
| 7 |
+
name: Model Card
|
.eval_results/swe-bench_verified.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: SWE-bench/SWE-bench_Verified
|
| 3 |
+
task_id: swe_bench_%_resolved
|
| 4 |
+
value: 74.6
|
| 5 |
+
source:
|
| 6 |
+
url: https://huggingface.co/poolside/Laguna-M.1
|
| 7 |
+
name: Model Card
|
.eval_results/terminal-bench-2.0.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- dataset:
|
| 2 |
+
id: harborframework/terminal-bench-2.0
|
| 3 |
+
task_id: terminalbench_2
|
| 4 |
+
value: 45.8
|
| 5 |
+
source:
|
| 6 |
+
url: https://huggingface.co/poolside/Laguna-M.1
|
| 7 |
+
name: Model Card
|
.gitattributes
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
LICENSE.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright 2026 Poolside
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: vllm
|
| 3 |
+
inference: false
|
| 4 |
+
extra_gated_description: >-
|
| 5 |
+
To learn more about how we process your personal data, please read our <a
|
| 6 |
+
href="https://poolside.ai/legal/privacy">Privacy Policy</a>.
|
| 7 |
+
tags:
|
| 8 |
+
- laguna-m.1
|
| 9 |
+
- vllm
|
| 10 |
+
- bf16
|
| 11 |
+
- moe
|
| 12 |
+
license: apache-2.0
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<p align="center">
|
| 17 |
+
<img alt="poolside-banner" src="https://poolside.ai/assets/laguna/laguna-m1-banner.svg" width="800px">
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
<p align="center">
|
| 21 |
+
<a href="https://platform.poolside.ai"><strong>Get an API key</strong></a> ·
|
| 22 |
+
<a href="https://poolside.ai/blog/laguna-a-deeper-dive"><strong>Release blog post</strong></a> ·
|
| 23 |
+
<a href="https://poolside.ai/assets/laguna/laguna-m1-xs2-technical-report.pdf"><strong>Technical report</strong></a>
|
| 24 |
+
</p>
|
| 25 |
+
|
| 26 |
+
<br>
|
| 27 |
+
|
| 28 |
+
# Laguna M.1
|
| 29 |
+
|
| 30 |
+
Laguna M.1 is a 225B total parameter Mixture-of-Experts model with 23B activated parameters per token designed for agentic coding and long-horizon work. This release has upstream support in vLLM and is part of stable releases from version v0.21.0.
|
| 31 |
+
|
| 32 |
+
> [!NOTE]
|
| 33 |
+
> For more details on how we trained this model, including our Model Factory approach, post-training recipe, async off-policy agent RL, and evaluations, check out our [release blog post](https://poolside.ai/blog/laguna-a-deeper-dive) and [technical report](https://poolside.ai/assets/laguna/laguna-m1-xs2-technical-report.pdf).
|
| 34 |
+
|
| 35 |
+
## Highlights
|
| 36 |
+
|
| 37 |
+
* **Large sparse MoE for agentic coding**: Laguna M.1 is a 70-layer MoE transformer with 225B total parameters and 23B activated parameters per token
|
| 38 |
+
* **High-capacity expert routing**: After 3 dense SwiGLU layers, Laguna M.1 uses 67 sparse MoE layers with 256 experts, top-k=16 routing and auxiliary-loss-free load balancing
|
| 39 |
+
* **Global attention architecture**: Laguna M.1 uses global attention across all layers with 64 Q-heads, 8 KV-heads and softplus attention output gating
|
| 40 |
+
* **Native reasoning support**: Interleaved thinking between tool calls with support for enabling and disabling thinking per-request
|
| 41 |
+
* **Strong agentic benchmark performance**: Laguna M.1 is competitive with state-of-the-art open-weight and frontier models on SWE-bench Verified, SWE-bench Multilingual, SWE-Bench Pro and Terminal-Bench 2.0
|
| 42 |
+
* **Apache 2.0 license**: Use and modify freely for commercial and non-commercial purposes
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## Model overview
|
| 47 |
+
|
| 48 |
+
- Training: pre-training, post-training and reinforcement learning stages
|
| 49 |
+
- Number of parameters: 225B total with 23B activated per token
|
| 50 |
+
- Optimizer: Muon
|
| 51 |
+
- Layers: 70 layers with global attention
|
| 52 |
+
- Experts: 256 experts with 1 shared expert; top-k=16 routing
|
| 53 |
+
- Dense layers: first 3 layers are dense SwiGLU; remaining 67 layers are sparse MoE
|
| 54 |
+
- Attention: 64 Q-heads, 8 KV-heads, head dimension 128, with softplus attention output gating
|
| 55 |
+
- Positional encoding: RoPE with YaRN
|
| 56 |
+
- Modality: text-to-text
|
| 57 |
+
- Context window: 262,144 tokens
|
| 58 |
+
- Reasoning support: interleaved thinking with preserved thinking
|
| 59 |
+
|
| 60 |
+
## Benchmark results
|
| 61 |
+
|
| 62 |
+
<p align="center">
|
| 63 |
+
<img alt="benchmarks" src="https://poolside.ai/assets/laguna/laguna-m1-chart.svg" width="800px">
|
| 64 |
+
</p>
|
| 65 |
+
|
| 66 |
+
| Model | Parameters | SWE-bench Verified | SWE-bench Multilingual | SWE-bench Pro (Public Dataset) | Terminal-Bench 2.0 |
|
| 67 |
+
|---------------------------|----------------------|--------------------|------------------------|--------------------------------|--------------------|
|
| 68 |
+
| **Laguna M.1** | 225B-A23B | 74.6% | 63.1% | 49.2% | 45.8% |
|
| 69 |
+
| Devstral 2 | 123B dense | 72.2% | 61.3% | - | 32.6% |
|
| 70 |
+
| GLM-4.7 | 355B-A32B | 73.8% | 66.7% | - | 41.0% |
|
| 71 |
+
| DeepSeek-V4 Flash | 284B-A13B | 79.0% | 73.3% | 52.6% | 56.9% |
|
| 72 |
+
| Qwen3.5-397B-A17B | 397B-A17B | 76.2% | 69.3% | 50.9% | 52.5% |
|
| 73 |
+
| Claude Sonnet 4.6 | - | 79.6% | - | - | 59.1% |
|
| 74 |
+
|
| 75 |
+
*We used the highest publicly-referenced scores for all comparison models across each benchmark. In almost all cases these were official scores published in release blog posts or equivalent, with Claude Sonnet 4.6 shown as a frontier proprietary reference of comparable model size. “-” indicates a score not reported by the model provider.*
|
| 76 |
+
|
| 77 |
+
> [!NOTE]
|
| 78 |
+
> All benchmarking for Laguna M.1 was completed using our [pool agent harness](https://github.com/poolsideai/pool), with a maximum of 500 steps and sandboxed execution. The same sampling parameters were used for all Laguna M.1 benchmarking: temperature=1.0 and top_k=20, with thinking mode enabled and a context length of 256K tokens. All tasks were run in their own sandbox using 8 GB RAM/2 CPUs, with the exception of Terminal-Bench 2.0, which used 48 GB RAM/32 CPUs.
|
| 79 |
+
>
|
| 80 |
+
> Some base task images and verifiers were patched to fix infrastructure reliability issues inherent in task setup, such as rate limits on third-party dependencies in external registries used by the verifier. All four agentic benchmarks were run with patched images. We also ran a reward-hack judge post-hoc on Laguna M.1 evaluation runs and did not find significant reward hacking after joint judge review and manual review.
|
| 81 |
+
>
|
| 82 |
+
> - SWE-bench Verified: mean pass@1 averaged over 4 runs
|
| 83 |
+
> - SWE-bench Multilingual: mean pass@1 averaged over 4 runs
|
| 84 |
+
> - SWE-Bench Pro: mean pass@1 averaged over 4 runs
|
| 85 |
+
> - Terminal-Bench 2.0: mean pass@1 averaged over 4 runs; 48 GB RAM/32 CPUs
|
| 86 |
+
|
| 87 |
+
## Usage
|
| 88 |
+
|
| 89 |
+
Laguna M.1 has upstream support in vLLM and Transformers, and TRT-LLM thanks to the support of the team at NVIDIA.
|
| 90 |
+
|
| 91 |
+
### pool
|
| 92 |
+
|
| 93 |
+
**pool** is a lightweight terminal-based coding agent and a dual [Agent Client Protocol](https://agentclientprotocol.com/get-started) client-server.
|
| 94 |
+
|
| 95 |
+
Download and install for macOS and Linux:
|
| 96 |
+
|
| 97 |
+
```shell
|
| 98 |
+
curl -fsSL https://downloads.poolside.ai/pool/install.sh | bash
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
Launch and *Log in with Poolside* to get a free API key.
|
| 102 |
+
|
| 103 |
+
```shell
|
| 104 |
+
pool
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
Use in any [ACP client](https://agentclientprotocol.com/get-started/clients). Configure Zed and JetBrains automatically:
|
| 108 |
+
|
| 109 |
+
```shell
|
| 110 |
+
pool acp setup --editor zed|jetbrains
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
#### Feedback and issues
|
| 114 |
+
|
| 115 |
+
Submit feedback with `/feedback` and read the [full documentation on GitHub](https://github.com/poolsideai/pool).
|
| 116 |
+
|
| 117 |
+
### Deployment
|
| 118 |
+
|
| 119 |
+
#### vLLM
|
| 120 |
+
|
| 121 |
+
Serve Laguna M.1 locally with vLLM and query it from any OpenAI-compatible client (see [Controlling reasoning](#controlling-reasoning) for tool calls, streaming, and reasoning extraction):
|
| 122 |
+
|
| 123 |
+
> [!NOTE]
|
| 124 |
+
> Laguna support landed in vLLM via [vllm-project/vllm#41129](https://github.com/vllm-project/vllm/pull/41129) (shared with [Laguna XS.2](https://huggingface.co/poolside/Laguna-XS.2)) and is available in vLLM 0.21.0 and later.
|
| 125 |
+
|
| 126 |
+
```shell
|
| 127 |
+
pip install 'vllm>=0.21.0'
|
| 128 |
+
|
| 129 |
+
vllm serve \
|
| 130 |
+
--model poolside/Laguna-M.1 \
|
| 131 |
+
--tool-call-parser poolside_v1 \
|
| 132 |
+
--reasoning-parser poolside_v1 \
|
| 133 |
+
--enable-auto-tool-choice \
|
| 134 |
+
--served-model-name laguna \
|
| 135 |
+
--default-chat-template-kwargs '{"enable_thinking": true}'
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
See the [vLLM recipes page](https://recipes.vllm.ai/poolside/Laguna-XS.2) for our Laguna XS.2 model with which the implementation is shared for additional deployment guidance. FP8 and NVFP4 quantized checkpoints are available at [Laguna-M.1-FP8](https://huggingface.co/poolside/Laguna-M.1-FP8) and [Laguna-M.1-NVFP4](https://huggingface.co/poolside/Laguna-M.1-NVFP4); quantization is detected automatically from `quantization_config`, so the same command works with the model ID substituted.
|
| 139 |
+
|
| 140 |
+
#### Transformers
|
| 141 |
+
|
| 142 |
+
Laguna is supported in Transformers `v5.7.0` and later ([huggingface/transformers#45673](https://github.com/huggingface/transformers/pull/45673)).
|
| 143 |
+
|
| 144 |
+
> [!NOTE]
|
| 145 |
+
> Laguna M.1 is a 225B-parameter model; loading the BF16 checkpoint in Transformers requires substantial multi-GPU memory (`device_map="auto"` shards across available devices). For single-node serving, vLLM is recommended.
|
| 146 |
+
|
| 147 |
+
```python
|
| 148 |
+
import torch
|
| 149 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 150 |
+
|
| 151 |
+
model_id = "poolside/Laguna-M.1"
|
| 152 |
+
|
| 153 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 154 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 155 |
+
model_id,
|
| 156 |
+
dtype=torch.bfloat16,
|
| 157 |
+
device_map="auto",
|
| 158 |
+
)
|
| 159 |
+
|
| 160 |
+
messages = [
|
| 161 |
+
{"role": "user", "content": "Write a Python retry wrapper with exponential backoff."},
|
| 162 |
+
]
|
| 163 |
+
|
| 164 |
+
# Reasoning is on by default; pass enable_thinking=False to skip the <think> block.
|
| 165 |
+
inputs = tokenizer.apply_chat_template(
|
| 166 |
+
messages,
|
| 167 |
+
add_generation_prompt=True,
|
| 168 |
+
return_tensors="pt",
|
| 169 |
+
enable_thinking=True,
|
| 170 |
+
).to(model.device)
|
| 171 |
+
|
| 172 |
+
outputs = model.generate(inputs, max_new_tokens=1024, do_sample=True, temperature=1.0, top_k=20)
|
| 173 |
+
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
|
| 174 |
+
```
|
| 175 |
+
|
| 176 |
+
#### TRT-LLM
|
| 177 |
+
|
| 178 |
+
Laguna is supported in TensorRT-LLM thanks to the team at NVIDIA — model support landed in [NVIDIA/TensorRT-LLM#13559](https://github.com/NVIDIA/TensorRT-LLM/pull/13559), with partial-RoPE fusion added in [#15110](https://github.com/NVIDIA/TensorRT-LLM/pull/15110). Build TensorRT-LLM from a `main` that includes these PRs (or a release once they ship).
|
| 179 |
+
|
| 180 |
+
```python
|
| 181 |
+
from tensorrt_llm import LLM, SamplingParams
|
| 182 |
+
|
| 183 |
+
llm = LLM(model="poolside/Laguna-M.1", trust_remote_code=True)
|
| 184 |
+
sampling = SamplingParams(max_tokens=1024, temperature=1.0, top_k=20)
|
| 185 |
+
out = llm.generate(["Write a Python retry wrapper with exponential backoff."], sampling)
|
| 186 |
+
print(out[0].outputs[0].text)
|
| 187 |
+
```
|
| 188 |
+
|
| 189 |
+
> [!NOTE]
|
| 190 |
+
> If your TensorRT-LLM build pins `transformers < 4.58`, `configuration_laguna.py` needs a small compat shim; use the `laguna_minimal_overlay.sh` helper from the support PR and load TRT-LLM against the overlay directory.
|
| 191 |
+
|
| 192 |
+
Quantization is detected automatically from `quantization_config`, so the same recipe works for the [FP8](https://huggingface.co/poolside/Laguna-M.1-FP8) and [NVFP4](https://huggingface.co/poolside/Laguna-M.1-NVFP4) variants with no extra flags.
|
| 193 |
+
|
| 194 |
+
## Controlling reasoning
|
| 195 |
+
|
| 196 |
+
Laguna M.1 has native reasoning support and is designed to work best with *preserved thinking*, where `reasoning` content from prior assistant messages is preserved in the message history. This model will generally reason before calling tools and between tool calls.
|
| 197 |
+
|
| 198 |
+
```python
|
| 199 |
+
import json
|
| 200 |
+
from openai import OpenAI
|
| 201 |
+
|
| 202 |
+
client = OpenAI(
|
| 203 |
+
base_url="https://inference.poolside.ai/v1",
|
| 204 |
+
api_key="...",
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
model = "poolside/laguna-m.1"
|
| 208 |
+
|
| 209 |
+
tools = [{"type": "function", "function": {
|
| 210 |
+
"name": "shell",
|
| 211 |
+
"description": "Execute a bash command and return the output.",
|
| 212 |
+
"parameters": {"type": "object", "properties": {"cmd": {"type": "string"}}, "required": ["cmd"]},
|
| 213 |
+
}}]
|
| 214 |
+
|
| 215 |
+
messages = [
|
| 216 |
+
{"role": "system", "content": "You are a coding agent with access to a shell tool."},
|
| 217 |
+
{"role": "user", "content": "Run uname -a"},
|
| 218 |
+
]
|
| 219 |
+
|
| 220 |
+
# Thinking is enabled by default when the server sets --default-chat-template-kwargs {"enable_thinking": True}
|
| 221 |
+
# When using the Poolside API (https://inference.poolside.ai/v1), this flag is set by default
|
| 222 |
+
response = client.chat.completions.create(
|
| 223 |
+
model=model,
|
| 224 |
+
messages=messages,
|
| 225 |
+
tools=tools,
|
| 226 |
+
stream=True,
|
| 227 |
+
)
|
| 228 |
+
|
| 229 |
+
reasoning, content, tool_calls = "", "", []
|
| 230 |
+
for chunk in response:
|
| 231 |
+
delta = chunk.choices[0].delta
|
| 232 |
+
if hasattr(delta, "reasoning_content") and delta.reasoning_content:
|
| 233 |
+
reasoning += delta.reasoning_content
|
| 234 |
+
if hasattr(delta, "content") and delta.content:
|
| 235 |
+
content += delta.content
|
| 236 |
+
if hasattr(delta, "tool_calls") and delta.tool_calls:
|
| 237 |
+
for tc in delta.tool_calls:
|
| 238 |
+
if tc.index >= len(tool_calls):
|
| 239 |
+
tool_calls.append({"id": tc.id, "function": {"name": "", "arguments": ""}})
|
| 240 |
+
if tc.function.name:
|
| 241 |
+
tool_calls[tc.index]["function"]["name"] = tc.function.name
|
| 242 |
+
if tc.function.arguments:
|
| 243 |
+
tool_calls[tc.index]["function"]["arguments"] += tc.function.arguments
|
| 244 |
+
|
| 245 |
+
print(f"Reasoning: {reasoning}\nContent: {content}\nTool calls: {tool_calls}\n")
|
| 246 |
+
|
| 247 |
+
# Return reasoning in the next request for best performance
|
| 248 |
+
messages.append({
|
| 249 |
+
"role": "assistant",
|
| 250 |
+
"content": content,
|
| 251 |
+
"reasoning_content": reasoning,
|
| 252 |
+
"tool_calls": [{"id": tc["id"], "type": "function", "function": tc["function"]} for tc in tool_calls]
|
| 253 |
+
})
|
| 254 |
+
|
| 255 |
+
messages.append({
|
| 256 |
+
"role": "tool",
|
| 257 |
+
"tool_call_id": tool_calls[0]["id"],
|
| 258 |
+
"content": json.dumps({"stdout": "Darwin arm64", "exit_code": "0"})
|
| 259 |
+
})
|
| 260 |
+
|
| 261 |
+
response = client.chat.completions.create(
|
| 262 |
+
model=model,
|
| 263 |
+
messages=messages,
|
| 264 |
+
tools=tools,
|
| 265 |
+
stream=True,
|
| 266 |
+
)
|
| 267 |
+
|
| 268 |
+
reasoning, content = "", ""
|
| 269 |
+
for chunk in response:
|
| 270 |
+
delta = chunk.choices[0].delta
|
| 271 |
+
if hasattr(delta, "reasoning_content") and delta.reasoning_content:
|
| 272 |
+
reasoning += delta.reasoning_content
|
| 273 |
+
if hasattr(delta, "content") and delta.content:
|
| 274 |
+
content += delta.content
|
| 275 |
+
|
| 276 |
+
print(f"Reasoning: {reasoning}\nContent: {content}")
|
| 277 |
+
```
|
| 278 |
+
|
| 279 |
+
### Disabling reasoning
|
| 280 |
+
|
| 281 |
+
You can disable thinking by setting `enable_thinking` to `False` in a request or by not providing `--default-chat-template-kwargs {"enable_thinking": True}` or equivalent when starting the server.
|
| 282 |
+
|
| 283 |
+
```python
|
| 284 |
+
from openai import OpenAI
|
| 285 |
+
client = OpenAI()
|
| 286 |
+
|
| 287 |
+
completion = client.chat.completions.create(
|
| 288 |
+
model="poolside/laguna-m.1",
|
| 289 |
+
messages=[
|
| 290 |
+
{"role": "user", "content": "Write a retry wrapper with exponential backoff."}
|
| 291 |
+
],
|
| 292 |
+
extra_body={
|
| 293 |
+
"chat_template_kwargs": { "enable_thinking": False },
|
| 294 |
+
},
|
| 295 |
+
stream=True
|
| 296 |
+
)
|
| 297 |
+
|
| 298 |
+
for chunk in completion:
|
| 299 |
+
print(chunk.choices[0].delta)
|
| 300 |
+
```
|
| 301 |
+
|
| 302 |
+
For agentic coding use cases, we recommend enabling thinking and preserving reasoning in message history as outlined in the [Controlling reasoning](#controlling-reasoning) section.
|
| 303 |
+
|
| 304 |
+
## License
|
| 305 |
+
|
| 306 |
+
This model is licensed under the [Apache 2.0 License](https://huggingface.co/poolside/Laguna-M.1/blob/main/LICENSE.md).
|
| 307 |
+
|
| 308 |
+
## Intended and Responsible Use
|
| 309 |
+
|
| 310 |
+
Laguna M.1 is designed for software engineering and agentic coding use cases, and you are responsible for confirming that it is appropriate for your intended application. Laguna M.1 is subject to the [Apache 2.0 License](https://huggingface.co/poolside/Laguna-M.1/blob/main/LICENSE.md), and should be used consistently with Poolside's [Acceptable Use Policy](https://poolside.ai/legal/acceptable-use-policy). We advise against circumventing Laguna M.1 safety guardrails without implementing substantially equivalent mitigations appropriate for your use case.
|
| 311 |
+
|
| 312 |
+
Please report security vulnerabilities or safety concerns to [security@poolside.ai](mailto:security@poolside.ai).
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{#- Copied from laguna_glm_thinking_v4/chat_template.jinja -#}
|
| 2 |
+
{#- Removes prefix that references <think> token, and replaces message.reasoning_content reference with message.reasoning -#}
|
| 3 |
+
{{- "〈|EOS|〉" -}}
|
| 4 |
+
{%- set enable_thinking = enable_thinking | default(false) -%}
|
| 5 |
+
{%- set render_assistant_messages_raw = render_assistant_messages_raw | default(false) -%}
|
| 6 |
+
{%- set add_generation_prompt = add_generation_prompt | default(false) -%}
|
| 7 |
+
|
| 8 |
+
{#- ───── header (system message) ───── -#}
|
| 9 |
+
{%- set system_message = "" -%}
|
| 10 |
+
{%- if messages and messages[0].role == "system" -%}
|
| 11 |
+
{%- set system_message = messages[0].content -%}
|
| 12 |
+
{%- endif -%}
|
| 13 |
+
|
| 14 |
+
{%- if (system_message and system_message.strip()) or tools -%}
|
| 15 |
+
{{- "<system>\n" -}}
|
| 16 |
+
|
| 17 |
+
{%- if system_message and system_message.strip() -%}
|
| 18 |
+
{{- "\n" -}}
|
| 19 |
+
{{- system_message.rstrip() -}}
|
| 20 |
+
{%- endif -%}
|
| 21 |
+
|
| 22 |
+
{%- if tools -%}
|
| 23 |
+
{{- "\n\n### Tools\n\n" -}}
|
| 24 |
+
{%- set ns = namespace(tool_string="You may call functions to assist with the user query.\n"
|
| 25 |
+
~ "All available function signatures are listed below:\n"
|
| 26 |
+
~ "<available_tools>\n") -%}
|
| 27 |
+
{%- for tool in tools -%}
|
| 28 |
+
{%- set ns.tool_string = ns.tool_string ~ (tool | tojson) ~ "\n" -%}
|
| 29 |
+
{%- endfor -%}
|
| 30 |
+
{%- if enable_thinking -%}
|
| 31 |
+
{%- set tool_string = ns.tool_string + "</available_tools>\n\n" ~
|
| 32 |
+
"Wrap your thinking in '<think>', '</think>' tags, followed by a function call. For each function call, return an unescaped XML-like object with function name and arguments within '<tool_call>' and '</tool_call>' tags, like here:\n" ~
|
| 33 |
+
"<think> your thoughts here </think>\n" ~
|
| 34 |
+
"<tool_call>function-name\n<arg_key>argument-key</arg_key>\n<arg_value>value-of-argument-key</arg_value>\n" ~
|
| 35 |
+
"</tool_call>" -%}
|
| 36 |
+
{%- else -%}
|
| 37 |
+
{%- set tool_string = ns.tool_string + "</available_tools>\n\n" ~
|
| 38 |
+
"For each function call, return an unescaped XML-like object " ~
|
| 39 |
+
"with function name and arguments within '<tool_call>' and '</tool_call>' tags, like here:\n" ~
|
| 40 |
+
"<tool_call>function-name\n<arg_key>argument-key</arg_key>\n<arg_value>value-of-argument-key</arg_value>\n" ~
|
| 41 |
+
"</tool_call>" -%}
|
| 42 |
+
{%- endif -%}
|
| 43 |
+
{{- tool_string -}}
|
| 44 |
+
{%- endif -%}
|
| 45 |
+
|
| 46 |
+
{{- "\n</system>\n" -}}
|
| 47 |
+
{%- endif -%}
|
| 48 |
+
|
| 49 |
+
{#- ───── main loop ───── -#}
|
| 50 |
+
{%- for message in messages -%}
|
| 51 |
+
{%- set content = message.content if message.content is string else "" -%}
|
| 52 |
+
{%- if message.role == "user" -%}
|
| 53 |
+
{{- "<user>\n" + content + "\n</user>\n" -}}
|
| 54 |
+
{%- elif message.role == "assistant" -%}
|
| 55 |
+
{%- generation -%}
|
| 56 |
+
{{- "<assistant>\n" -}}
|
| 57 |
+
{%- if render_assistant_messages_raw -%}
|
| 58 |
+
{#- Raw mode: prepend the generation prompt token, then dump content verbatim. -#}
|
| 59 |
+
{#- The generation prompt is <think> when enable_thinking, </think> otherwise. -#}
|
| 60 |
+
{#- Only prepend if content doesn't already start with it. -#}
|
| 61 |
+
{%- if enable_thinking -%}
|
| 62 |
+
{%- if not content.startswith('<think>') -%}
|
| 63 |
+
{{- '<think>' -}}
|
| 64 |
+
{%- endif -%}
|
| 65 |
+
{%- else -%}
|
| 66 |
+
{%- if not content.startswith('</think>') -%}
|
| 67 |
+
{{- '</think>' -}}
|
| 68 |
+
{%- endif -%}
|
| 69 |
+
{%- endif -%}
|
| 70 |
+
{{- content -}}
|
| 71 |
+
{#- Append closing tag if content doesn't already end with it. -#}
|
| 72 |
+
{%- if not content.endswith('</assistant>\n') and not content.endswith('</assistant>') -%}
|
| 73 |
+
{{- '\n</assistant>' -}}
|
| 74 |
+
{%- endif -%}
|
| 75 |
+
{{- "\n" -}}
|
| 76 |
+
{%- else -%}
|
| 77 |
+
{#- Extract reasoning content from message.reasoning (vLLM field name) or message.reasoning_content, or from <think> tags -#}
|
| 78 |
+
{%- set reasoning_content = '' %}
|
| 79 |
+
{%- if message.reasoning is string %}
|
| 80 |
+
{%- set reasoning_content = message.reasoning %}
|
| 81 |
+
{%- elif message.reasoning_content is string %}
|
| 82 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 83 |
+
{%- endif %}
|
| 84 |
+
{#- Always strip <think> tags from content if present to avoid duplication -#}
|
| 85 |
+
{%- if '</think>' in content %}
|
| 86 |
+
{%- if not reasoning_content %}
|
| 87 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 88 |
+
{%- endif %}
|
| 89 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 90 |
+
{%- endif %}
|
| 91 |
+
{#- Display reasoning content for all messages -#}
|
| 92 |
+
{%- if reasoning_content -%}
|
| 93 |
+
{{- '<think>\n' + reasoning_content.strip() + '\n</think>\n' -}}
|
| 94 |
+
{%- else -%}
|
| 95 |
+
{{- '</think>\n' -}}
|
| 96 |
+
{%- endif -%}
|
| 97 |
+
{#- Display main content -#}
|
| 98 |
+
{%- if content.strip() -%}
|
| 99 |
+
{{- content.strip() ~ "\n" -}}
|
| 100 |
+
{%- endif -%}
|
| 101 |
+
{%- if message.tool_calls -%}
|
| 102 |
+
{%- for tool_call in message.tool_calls -%}
|
| 103 |
+
{%- set function_data = tool_call.function -%}
|
| 104 |
+
{{- '<tool_call>' + function_data.name }}
|
| 105 |
+
{% set _args = function_data.arguments %}
|
| 106 |
+
{%- for k, v in _args.items() -%}
|
| 107 |
+
{{- "<arg_key>" ~ k ~ "</arg_key>\n" -}}
|
| 108 |
+
{{- "<arg_value>"}}{{ v | tojson(ensure_ascii=False) if v is not string else v }}{{ "</arg_value>\n" -}}
|
| 109 |
+
{%- endfor -%}
|
| 110 |
+
{{- "</tool_call>\n" -}}
|
| 111 |
+
{%- endfor -%}
|
| 112 |
+
{%- endif -%}
|
| 113 |
+
{{- "</assistant>\n" -}}
|
| 114 |
+
{%- endif -%}
|
| 115 |
+
{%- endgeneration -%}
|
| 116 |
+
{%- elif message.role == "tool" -%}
|
| 117 |
+
{{- "<tool_response>\n" + content + "\n</tool_response>\n" -}}
|
| 118 |
+
{%- elif message.role == "system" and loop.index0 != 0 -%}
|
| 119 |
+
{#- Render additional system messages (skip the first one which is handled separately in the header) -#}
|
| 120 |
+
{{- "<system>\n" + content + "\n</system>\n" -}}
|
| 121 |
+
{%- endif -%}
|
| 122 |
+
{%- endfor -%}
|
| 123 |
+
{#- ───── generation prompt ───── -#}
|
| 124 |
+
{%- if add_generation_prompt -%}
|
| 125 |
+
{{- "<assistant>\n" -}}
|
| 126 |
+
{#- ───── Include reasoning mode directive ───── -#}
|
| 127 |
+
{%- if not enable_thinking %}
|
| 128 |
+
{{- '</think>' -}}
|
| 129 |
+
{%- else %}
|
| 130 |
+
{{- '<think>' -}}
|
| 131 |
+
{%- endif %}
|
| 132 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LagunaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoConfig": "configuration_laguna.LagunaConfig",
|
| 7 |
+
"AutoModelForCausalLM": "modeling_laguna.LagunaForCausalLM"
|
| 8 |
+
},
|
| 9 |
+
"model_type": "laguna",
|
| 10 |
+
"vocab_size": 100352,
|
| 11 |
+
"hidden_size": 4096,
|
| 12 |
+
"intermediate_size": 16384,
|
| 13 |
+
"num_hidden_layers": 70,
|
| 14 |
+
"num_attention_heads": 64,
|
| 15 |
+
"num_key_value_heads": 8,
|
| 16 |
+
"head_dim": 128,
|
| 17 |
+
"max_position_embeddings": 131072,
|
| 18 |
+
"attention_bias": false,
|
| 19 |
+
"attention_dropout": 0.0,
|
| 20 |
+
"rms_norm_eps": 1e-06,
|
| 21 |
+
"num_experts": 256,
|
| 22 |
+
"num_experts_per_tok": 16,
|
| 23 |
+
"moe_intermediate_size": 1024,
|
| 24 |
+
"shared_expert_intermediate_size": 1024,
|
| 25 |
+
"norm_topk_prob": true,
|
| 26 |
+
"router_aux_loss_coef": 0.0,
|
| 27 |
+
"decoder_sparse_step": 1,
|
| 28 |
+
"mlp_only_layers": [
|
| 29 |
+
0,
|
| 30 |
+
1,
|
| 31 |
+
2
|
| 32 |
+
],
|
| 33 |
+
"bos_token_id": 2,
|
| 34 |
+
"eos_token_id": [
|
| 35 |
+
2,
|
| 36 |
+
24
|
| 37 |
+
],
|
| 38 |
+
"pad_token_id": 9,
|
| 39 |
+
"tie_word_embeddings": false,
|
| 40 |
+
"use_cache": true,
|
| 41 |
+
"torch_dtype": "bfloat16",
|
| 42 |
+
"gating": "per-element",
|
| 43 |
+
"sliding_window": 0,
|
| 44 |
+
"rope_parameters": {
|
| 45 |
+
"full_attention": {
|
| 46 |
+
"rope_theta": 500000.0,
|
| 47 |
+
"rope_type": "yarn",
|
| 48 |
+
"factor": 32.0,
|
| 49 |
+
"original_max_position_embeddings": 4096,
|
| 50 |
+
"beta_slow": 1.0,
|
| 51 |
+
"beta_fast": 64.0,
|
| 52 |
+
"attention_factor": 1.0,
|
| 53 |
+
"partial_rotary_factor": 1.0
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
"moe_apply_router_weight_on_input": false,
|
| 57 |
+
"mlp_layer_types": [
|
| 58 |
+
"dense",
|
| 59 |
+
"dense",
|
| 60 |
+
"dense",
|
| 61 |
+
"sparse",
|
| 62 |
+
"sparse",
|
| 63 |
+
"sparse",
|
| 64 |
+
"sparse",
|
| 65 |
+
"sparse",
|
| 66 |
+
"sparse",
|
| 67 |
+
"sparse",
|
| 68 |
+
"sparse",
|
| 69 |
+
"sparse",
|
| 70 |
+
"sparse",
|
| 71 |
+
"sparse",
|
| 72 |
+
"sparse",
|
| 73 |
+
"sparse",
|
| 74 |
+
"sparse",
|
| 75 |
+
"sparse",
|
| 76 |
+
"sparse",
|
| 77 |
+
"sparse",
|
| 78 |
+
"sparse",
|
| 79 |
+
"sparse",
|
| 80 |
+
"sparse",
|
| 81 |
+
"sparse",
|
| 82 |
+
"sparse",
|
| 83 |
+
"sparse",
|
| 84 |
+
"sparse",
|
| 85 |
+
"sparse",
|
| 86 |
+
"sparse",
|
| 87 |
+
"sparse",
|
| 88 |
+
"sparse",
|
| 89 |
+
"sparse",
|
| 90 |
+
"sparse",
|
| 91 |
+
"sparse",
|
| 92 |
+
"sparse",
|
| 93 |
+
"sparse",
|
| 94 |
+
"sparse",
|
| 95 |
+
"sparse",
|
| 96 |
+
"sparse",
|
| 97 |
+
"sparse",
|
| 98 |
+
"sparse",
|
| 99 |
+
"sparse",
|
| 100 |
+
"sparse",
|
| 101 |
+
"sparse",
|
| 102 |
+
"sparse",
|
| 103 |
+
"sparse",
|
| 104 |
+
"sparse",
|
| 105 |
+
"sparse",
|
| 106 |
+
"sparse",
|
| 107 |
+
"sparse",
|
| 108 |
+
"sparse",
|
| 109 |
+
"sparse",
|
| 110 |
+
"sparse",
|
| 111 |
+
"sparse",
|
| 112 |
+
"sparse",
|
| 113 |
+
"sparse",
|
| 114 |
+
"sparse",
|
| 115 |
+
"sparse",
|
| 116 |
+
"sparse",
|
| 117 |
+
"sparse",
|
| 118 |
+
"sparse",
|
| 119 |
+
"sparse",
|
| 120 |
+
"sparse",
|
| 121 |
+
"sparse",
|
| 122 |
+
"sparse",
|
| 123 |
+
"sparse",
|
| 124 |
+
"sparse",
|
| 125 |
+
"sparse",
|
| 126 |
+
"sparse",
|
| 127 |
+
"sparse"
|
| 128 |
+
],
|
| 129 |
+
"gating_types": [
|
| 130 |
+
"per_element",
|
| 131 |
+
"per_element",
|
| 132 |
+
"per_element",
|
| 133 |
+
"per_element",
|
| 134 |
+
"per_element",
|
| 135 |
+
"per_element",
|
| 136 |
+
"per_element",
|
| 137 |
+
"per_element",
|
| 138 |
+
"per_element",
|
| 139 |
+
"per_element",
|
| 140 |
+
"per_element",
|
| 141 |
+
"per_element",
|
| 142 |
+
"per_element",
|
| 143 |
+
"per_element",
|
| 144 |
+
"per_element",
|
| 145 |
+
"per_element",
|
| 146 |
+
"per_element",
|
| 147 |
+
"per_element",
|
| 148 |
+
"per_element",
|
| 149 |
+
"per_element",
|
| 150 |
+
"per_element",
|
| 151 |
+
"per_element",
|
| 152 |
+
"per_element",
|
| 153 |
+
"per_element",
|
| 154 |
+
"per_element",
|
| 155 |
+
"per_element",
|
| 156 |
+
"per_element",
|
| 157 |
+
"per_element",
|
| 158 |
+
"per_element",
|
| 159 |
+
"per_element",
|
| 160 |
+
"per_element",
|
| 161 |
+
"per_element",
|
| 162 |
+
"per_element",
|
| 163 |
+
"per_element",
|
| 164 |
+
"per_element",
|
| 165 |
+
"per_element",
|
| 166 |
+
"per_element",
|
| 167 |
+
"per_element",
|
| 168 |
+
"per_element",
|
| 169 |
+
"per_element",
|
| 170 |
+
"per_element",
|
| 171 |
+
"per_element",
|
| 172 |
+
"per_element",
|
| 173 |
+
"per_element",
|
| 174 |
+
"per_element",
|
| 175 |
+
"per_element",
|
| 176 |
+
"per_element",
|
| 177 |
+
"per_element",
|
| 178 |
+
"per_element",
|
| 179 |
+
"per_element",
|
| 180 |
+
"per_element",
|
| 181 |
+
"per_element",
|
| 182 |
+
"per_element",
|
| 183 |
+
"per_element",
|
| 184 |
+
"per_element",
|
| 185 |
+
"per_element",
|
| 186 |
+
"per_element",
|
| 187 |
+
"per_element",
|
| 188 |
+
"per_element",
|
| 189 |
+
"per_element",
|
| 190 |
+
"per_element",
|
| 191 |
+
"per_element",
|
| 192 |
+
"per_element",
|
| 193 |
+
"per_element",
|
| 194 |
+
"per_element",
|
| 195 |
+
"per_element",
|
| 196 |
+
"per_element",
|
| 197 |
+
"per_element",
|
| 198 |
+
"per_element",
|
| 199 |
+
"per_element"
|
| 200 |
+
],
|
| 201 |
+
"moe_routed_scaling_factor": 1.0
|
| 202 |
+
}
|
configuration_laguna.py
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 Poolside and the HuggingFace Inc. team. All rights reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
from transformers.configuration_utils import PreTrainedConfig
|
| 15 |
+
from transformers.modeling_rope_utils import RopeParameters
|
| 16 |
+
from transformers.utils.import_utils import is_causal_conv1d_available, is_flash_linear_attention_available
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class LagunaConfig(PreTrainedConfig):
|
| 20 |
+
r"""
|
| 21 |
+
Configuration class for Laguna model.
|
| 22 |
+
|
| 23 |
+
Laguna is Poolside's MoE architecture with:
|
| 24 |
+
- Attention output gating (softplus gate)
|
| 25 |
+
- Sigmoid routing instead of softmax
|
| 26 |
+
- No QKV bias
|
| 27 |
+
- Explicit head_dim parameter
|
| 28 |
+
|
| 29 |
+
Args:
|
| 30 |
+
head_dim (`int`, *optional*, defaults to 128):
|
| 31 |
+
Dimension of attention heads. Laguna uses explicit head_dim rather than
|
| 32 |
+
computing it from hidden_size // num_attention_heads.
|
| 33 |
+
qkv_bias (`bool`, *optional*, defaults to `False`):
|
| 34 |
+
Whether to add bias to QKV projections. Laguna uses no QKV bias.
|
| 35 |
+
attention_bias (`bool`, *optional*, defaults to `False`):
|
| 36 |
+
Whether to add bias to attention output projection. Laguna uses no attention bias.
|
| 37 |
+
gating (`bool` or `str`, *optional*, defaults to `True`):
|
| 38 |
+
Attention output gating mode. When ``True`` or ``"per-element"`` a g_proj
|
| 39 |
+
linear layer with output size ``num_attention_heads * head_dim`` is added
|
| 40 |
+
and ``attn_output = attn_output * softplus(g_proj(x))``. When ``"per-head"``
|
| 41 |
+
g_proj has output size ``num_attention_heads`` and the gate broadcasts across
|
| 42 |
+
``head_dim``. When ``False`` no gating is applied.
|
| 43 |
+
partial_rotary_factor (`float`, *optional*):
|
| 44 |
+
Fraction of head_dim to apply rotary embeddings to. When set, this value is
|
| 45 |
+
injected into ``rope_parameters`` (and ``swa_rope_parameters``) if not already
|
| 46 |
+
specified there. When ``None`` the default behaviour of the rope implementation
|
| 47 |
+
is used (typically full rotary).
|
| 48 |
+
num_attention_heads_per_layer (`list[int]`, *optional*):
|
| 49 |
+
Optional per-layer override for ``num_attention_heads``. When provided the list
|
| 50 |
+
length must equal ``num_hidden_layers`` and each entry is the head count used by
|
| 51 |
+
that layer. When ``None`` every layer uses ``num_attention_heads``.
|
| 52 |
+
vocab_size (`int`, *optional*, defaults to 100352):
|
| 53 |
+
Vocabulary size of the Laguna model.
|
| 54 |
+
hidden_size (`int`, *optional*, defaults to 2048):
|
| 55 |
+
Dimension of the hidden representations.
|
| 56 |
+
intermediate_size (`int`, *optional*, defaults to 8192):
|
| 57 |
+
Dimension of the MLP representations for dense layers.
|
| 58 |
+
num_hidden_layers (`int`, *optional*, defaults to 48):
|
| 59 |
+
Number of hidden layers in the Transformer.
|
| 60 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
| 61 |
+
Number of attention heads.
|
| 62 |
+
num_key_value_heads (`int`, *optional*, defaults to 8):
|
| 63 |
+
Number of key-value heads for GQA.
|
| 64 |
+
max_position_embeddings (`int`, *optional*, defaults to 4096):
|
| 65 |
+
Maximum sequence length.
|
| 66 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-6):
|
| 67 |
+
Epsilon for RMSNorm layers.
|
| 68 |
+
sliding_window (`int`, *optional*):
|
| 69 |
+
Sliding window attention size. Used by layers whose type in ``layer_types``
|
| 70 |
+
is ``"sliding_attention"``. When ``None``, all layers use full attention.
|
| 71 |
+
layer_types (`list[str]`, *optional*):
|
| 72 |
+
Per-layer attention type. Each element should be ``"sliding_attention"`` or
|
| 73 |
+
``"full_attention"``. Length must equal ``num_hidden_layers``. When ``None``,
|
| 74 |
+
all layers default to global attention.
|
| 75 |
+
swa_attention_sink_enabled (`bool`, *optional*, defaults to `False`):
|
| 76 |
+
Whether to enable learnable attention sinks on sliding-window attention layers.
|
| 77 |
+
When enabled, a per-head bias parameter is added that allows the model to attend
|
| 78 |
+
to position 0 even when it falls outside the sliding window.
|
| 79 |
+
swa_rope_parameters (`RopeParameters`, *optional*):
|
| 80 |
+
Separate RoPE configuration for sliding-window attention layers. When ``None``,
|
| 81 |
+
SWA layers use the same RoPE as global attention layers.
|
| 82 |
+
num_experts (`int`, *optional*, defaults to 256):
|
| 83 |
+
Number of routed experts.
|
| 84 |
+
num_experts_per_tok (`int`, *optional*, defaults to 16):
|
| 85 |
+
Number of experts selected per token (top-k).
|
| 86 |
+
moe_intermediate_size (`int`, *optional*, defaults to 1024):
|
| 87 |
+
Intermediate size of routed experts.
|
| 88 |
+
shared_expert_intermediate_size (`int`, *optional*, defaults to 1024):
|
| 89 |
+
Intermediate size of the shared expert.
|
| 90 |
+
norm_topk_prob (`bool`, *optional*, defaults to `True`):
|
| 91 |
+
Whether to normalize top-k routing probabilities.
|
| 92 |
+
decoder_sparse_step (`int`, *optional*, defaults to 1):
|
| 93 |
+
Frequency of MoE layers (1 = every layer is MoE after mlp_only_layers).
|
| 94 |
+
mlp_only_layers (`list[int]`, *optional*, defaults to `[0]`):
|
| 95 |
+
Layer indices that use dense MLP instead of MoE.
|
| 96 |
+
router_aux_loss_coef (`float`, *optional*, defaults to 0.001):
|
| 97 |
+
Auxiliary loss coefficient for load balancing.
|
| 98 |
+
moe_routed_scaling_factor (`float`, *optional*, defaults to 1.0):
|
| 99 |
+
Scalar multiplier applied to the routed-expert output before combining with the
|
| 100 |
+
shared-expert output.
|
| 101 |
+
moe_apply_router_weight_on_input (`bool`, *optional*, defaults to `False`):
|
| 102 |
+
When ``True`` the top-k routing weights are multiplied into each expert's input
|
| 103 |
+
rather than its output. Matches the numerical form used by the trained checkpoint.
|
| 104 |
+
moe_router_logit_softcapping (`float`, *optional*, defaults to 0.0):
|
| 105 |
+
Optional soft-capping value ``c`` applied to router logits as
|
| 106 |
+
``x = tanh(x / c) * c`` before sigmoid + top-k. Disabled when ``0``.
|
| 107 |
+
rope_parameters (`RopeParameters`, *optional*):
|
| 108 |
+
RoPE configuration. Defaults to rope_theta=500000.0.
|
| 109 |
+
"""
|
| 110 |
+
|
| 111 |
+
model_type = "laguna"
|
| 112 |
+
keys_to_ignore_at_inference = ["past_key_values"]
|
| 113 |
+
# PreTrainedConfig in transformers v5 no longer auto-declares these; subclasses
|
| 114 |
+
# opt in by providing class-level annotations with defaults.
|
| 115 |
+
pad_token_id: int | None = None
|
| 116 |
+
bos_token_id: int | None = None
|
| 117 |
+
eos_token_id: int | list[int] | None = None
|
| 118 |
+
base_model_tp_plan = {
|
| 119 |
+
"layers.*.self_attn.q_proj": "colwise",
|
| 120 |
+
"layers.*.self_attn.k_proj": "colwise",
|
| 121 |
+
"layers.*.self_attn.v_proj": "colwise",
|
| 122 |
+
"layers.*.self_attn.g_proj": "colwise", # Laguna-specific gating projection
|
| 123 |
+
"layers.*.self_attn.o_proj": "rowwise",
|
| 124 |
+
"layers.*.mlp.gate_proj": "colwise",
|
| 125 |
+
"layers.*.mlp.up_proj": "colwise",
|
| 126 |
+
"layers.*.mlp.down_proj": "rowwise",
|
| 127 |
+
}
|
| 128 |
+
base_model_pp_plan = {
|
| 129 |
+
"embed_tokens": (["input_ids"], ["inputs_embeds"]),
|
| 130 |
+
"layers": (["hidden_states", "attention_mask"], ["hidden_states"]),
|
| 131 |
+
"norm": (["hidden_states"], ["hidden_states"]),
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
def __init__(
|
| 135 |
+
self,
|
| 136 |
+
vocab_size: int = 100352,
|
| 137 |
+
hidden_size: int = 2048,
|
| 138 |
+
intermediate_size: int = 8192,
|
| 139 |
+
num_hidden_layers: int = 48,
|
| 140 |
+
num_attention_heads: int = 32,
|
| 141 |
+
num_key_value_heads: int = 8,
|
| 142 |
+
head_dim: int = 128,
|
| 143 |
+
qkv_bias: bool = False,
|
| 144 |
+
attention_bias: bool = False,
|
| 145 |
+
gating: bool | str = True,
|
| 146 |
+
hidden_act: str = "silu",
|
| 147 |
+
max_position_embeddings: int = 4096,
|
| 148 |
+
initializer_range: float = 0.02,
|
| 149 |
+
rms_norm_eps: float = 1e-6,
|
| 150 |
+
use_cache: bool = True,
|
| 151 |
+
tie_word_embeddings: bool = False,
|
| 152 |
+
rope_parameters: RopeParameters | dict[str, RopeParameters] | None = None,
|
| 153 |
+
partial_rotary_factor: float | None = None,
|
| 154 |
+
attention_dropout: float = 0.0,
|
| 155 |
+
sliding_window: int | None = None,
|
| 156 |
+
layer_types: list[str] | None = None,
|
| 157 |
+
num_attention_heads_per_layer: list[int] | None = None,
|
| 158 |
+
swa_attention_sink_enabled: bool = False,
|
| 159 |
+
swa_rope_parameters: RopeParameters | None = None,
|
| 160 |
+
num_experts: int = 256,
|
| 161 |
+
num_experts_per_tok: int = 16,
|
| 162 |
+
moe_intermediate_size: int = 1024,
|
| 163 |
+
shared_expert_intermediate_size: int = 1024,
|
| 164 |
+
norm_topk_prob: bool = True,
|
| 165 |
+
decoder_sparse_step: int = 1,
|
| 166 |
+
mlp_only_layers: list[int] | None = None,
|
| 167 |
+
router_aux_loss_coef: float = 0.001,
|
| 168 |
+
moe_routed_scaling_factor: float = 1.0,
|
| 169 |
+
moe_apply_router_weight_on_input: bool = False,
|
| 170 |
+
moe_router_logit_softcapping: float = 0.0,
|
| 171 |
+
output_router_logits: bool = False,
|
| 172 |
+
**kwargs,
|
| 173 |
+
):
|
| 174 |
+
# Default mlp_only_layers: first layer is dense (moe_first_k_dense_replace=1)
|
| 175 |
+
if mlp_only_layers is None:
|
| 176 |
+
mlp_only_layers = [0]
|
| 177 |
+
|
| 178 |
+
# Default layer_types: all layers use full attention (Laguna-M). Laguna-XS
|
| 179 |
+
# ships an explicit list with a mix of "full_attention" and "sliding_attention".
|
| 180 |
+
# Downstream mask builders (``create_masks_for_generate``) iterate
|
| 181 |
+
# ``layer_types``, so it must be a list — not left as ``None``.
|
| 182 |
+
if layer_types is None:
|
| 183 |
+
layer_types = ["full_attention"] * num_hidden_layers
|
| 184 |
+
|
| 185 |
+
# Default rope_parameters with Laguna's theta
|
| 186 |
+
if rope_parameters is None:
|
| 187 |
+
rope_parameters = {"rope_type": "default", "rope_theta": 500000.0}
|
| 188 |
+
|
| 189 |
+
# If ``partial_rotary_factor`` is set at the top level, inject it into any
|
| 190 |
+
# rope dict that does not already carry one so the rotary embedding picks
|
| 191 |
+
# it up consistently for both full-attention and SWA layers.
|
| 192 |
+
if partial_rotary_factor is not None:
|
| 193 |
+
if isinstance(rope_parameters, dict) and "partial_rotary_factor" not in rope_parameters:
|
| 194 |
+
rope_parameters = {**rope_parameters, "partial_rotary_factor": partial_rotary_factor}
|
| 195 |
+
if (
|
| 196 |
+
isinstance(swa_rope_parameters, dict)
|
| 197 |
+
and "partial_rotary_factor" not in swa_rope_parameters
|
| 198 |
+
):
|
| 199 |
+
swa_rope_parameters = {
|
| 200 |
+
**swa_rope_parameters,
|
| 201 |
+
"partial_rotary_factor": partial_rotary_factor,
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
self.vocab_size = vocab_size
|
| 205 |
+
self.hidden_size = hidden_size
|
| 206 |
+
self.intermediate_size = intermediate_size
|
| 207 |
+
self.num_hidden_layers = num_hidden_layers
|
| 208 |
+
self.num_attention_heads = num_attention_heads
|
| 209 |
+
self.num_key_value_heads = num_key_value_heads
|
| 210 |
+
self.head_dim = head_dim
|
| 211 |
+
self.qkv_bias = qkv_bias
|
| 212 |
+
self.attention_bias = attention_bias
|
| 213 |
+
self.gating = gating
|
| 214 |
+
self.hidden_act = hidden_act
|
| 215 |
+
self.max_position_embeddings = max_position_embeddings
|
| 216 |
+
self.initializer_range = initializer_range
|
| 217 |
+
self.rms_norm_eps = rms_norm_eps
|
| 218 |
+
self.use_cache = use_cache
|
| 219 |
+
self.rope_parameters = rope_parameters
|
| 220 |
+
self.partial_rotary_factor = partial_rotary_factor
|
| 221 |
+
self.attention_dropout = attention_dropout
|
| 222 |
+
# Sliding window attention arguments
|
| 223 |
+
self.sliding_window = sliding_window
|
| 224 |
+
self.layer_types = layer_types
|
| 225 |
+
self.num_attention_heads_per_layer = num_attention_heads_per_layer
|
| 226 |
+
self.swa_attention_sink_enabled = swa_attention_sink_enabled
|
| 227 |
+
self.swa_rope_parameters = swa_rope_parameters
|
| 228 |
+
# MoE arguments
|
| 229 |
+
self.num_experts = num_experts
|
| 230 |
+
self.num_experts_per_tok = num_experts_per_tok
|
| 231 |
+
self.moe_intermediate_size = moe_intermediate_size
|
| 232 |
+
self.shared_expert_intermediate_size = shared_expert_intermediate_size
|
| 233 |
+
self.norm_topk_prob = norm_topk_prob
|
| 234 |
+
self.decoder_sparse_step = decoder_sparse_step
|
| 235 |
+
self.mlp_only_layers = mlp_only_layers
|
| 236 |
+
self.router_aux_loss_coef = router_aux_loss_coef
|
| 237 |
+
self.moe_routed_scaling_factor = moe_routed_scaling_factor
|
| 238 |
+
self.moe_apply_router_weight_on_input = moe_apply_router_weight_on_input
|
| 239 |
+
self.moe_router_logit_softcapping = moe_router_logit_softcapping
|
| 240 |
+
self.output_router_logits = output_router_logits
|
| 241 |
+
|
| 242 |
+
super().__init__(tie_word_embeddings=tie_word_embeddings, **kwargs)
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
__all__ = ["LagunaConfig"]
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 2,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
2,
|
| 6 |
+
24
|
| 7 |
+
],
|
| 8 |
+
"max_new_tokens": 4096,
|
| 9 |
+
"pad_token_id": 9,
|
| 10 |
+
"temperature": 1.0,
|
| 11 |
+
"top_p": 1.0,
|
| 12 |
+
"min_p": 0.0
|
| 13 |
+
}
|
model-00001-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:230bfc34d0a67f0b92d8beb3dcc94f628ebe82d82c1327f203dab9e0e99b121c
|
| 3 |
+
size 5119451664
|
model-00002-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bbeb3ecbfa97602d8bd9fab4f078ae33df3867d94df529cf12ab875058c5e55
|
| 3 |
+
size 5085993864
|
model-00003-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b34bd3857c3b6872790482145fe3b2bb81476e81a05cf5b4ebdc6b2d081950b
|
| 3 |
+
size 5117432672
|
model-00004-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:230f8d942b97162d0633373db2e5d33b73172fa1dda3ce65ec477ba95aa5fd2a
|
| 3 |
+
size 5119410552
|
model-00005-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a052df48579439f9c2fdd0101d62d6fc6514ac21f7e70d6dfd86b4e06f4c33d
|
| 3 |
+
size 5117126864
|
model-00006-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:763bb266a50c6303ded30cd823b3adf43f1bcd5ee1909add6df9a0bbe5f75c2a
|
| 3 |
+
size 5117126776
|
model-00007-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7104c3c1f8046c56d19737b709479a690f22f62d5edc64b90dc13a769c8b5de1
|
| 3 |
+
size 5117126776
|
model-00008-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a800e72938eb992cd81086b76dcf112bea1243cb4095e4bf8785242d1ace1a81
|
| 3 |
+
size 5117126880
|
model-00009-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c69db1555b4499353d52b45d324ad419a5fd400fe2c81bb5398286f26f4bdb0
|
| 3 |
+
size 5117126936
|
model-00010-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:848011466cc779a33ea374925d7d1866842eaa2743cc3e3eaa34795b63c7a3e7
|
| 3 |
+
size 5117126840
|
model-00011-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60252cde42da7708216f8f8b9e85031c6d5a2e54f3f76baf06833a5a62346b9c
|
| 3 |
+
size 5117126776
|
model-00012-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bd9e973e6825554a5364330b62f0cc99aecbeab4da8cbaba33174eb09d258a3
|
| 3 |
+
size 5117126776
|
model-00013-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef3b1a12eb31a3ad70b3bd369bce9e27a483c3e7796d7a3379cf6435f4be5ab6
|
| 3 |
+
size 5117127072
|
model-00014-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94900c9bacf4bf50cd598d1e3145fd28d0ed610cf7e986895bd786c68a9debec
|
| 3 |
+
size 5117127560
|
model-00015-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52f0f996d77d7e5fe1a84da4c21df6cb682d7a77f36d22be08dbb0eb8b412fb3
|
| 3 |
+
size 5117127416
|
model-00016-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:399fd29b77e8b22c2c9a74ab3b6f2475a1535a38af39fb16cc83bde2610a35c1
|
| 3 |
+
size 5117127384
|
model-00017-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbf889d680b1598107470ba966be9e47593b5cf97c93b7eafe1848bae18f4f81
|
| 3 |
+
size 5117127384
|
model-00018-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2aab9519c42b1fc59bc072376d26c5a6f1df59ed957c0b9729fdf7b9a56caf20
|
| 3 |
+
size 5117127536
|
model-00019-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ae508d7070a9506a6765361b69b51198a1a73194dd23de2558ba8167a3aaa52
|
| 3 |
+
size 5117127568
|
model-00020-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42a9eec6339221f19de1e17287edc9965d9a94b73ccd0ba380743871cc570ee7
|
| 3 |
+
size 5117127384
|
model-00021-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8bdf3c1be54a60fefb13f9b0d1dec708ca71a13633a8c55bce21886b52a0319
|
| 3 |
+
size 5117127384
|
model-00022-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b4b6db66886d150c907216b2fdf152a4bd220f24b485e4e0e1599281dde24cb
|
| 3 |
+
size 5117127400
|
model-00023-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd05b9a592c81a32761a93a075d69c3a49aff1a538c27325044a634d89da906a
|
| 3 |
+
size 5117127544
|
model-00024-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7df12b9b155563d10e32ab9989171380a16e4859be334c55da4a705053c80a3
|
| 3 |
+
size 5117127544
|
model-00025-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c0134632cc7f7db2e77f6ec7ae4b953c2ec1af5de4b1040ff2eb31bcb0ab8dd
|
| 3 |
+
size 5117127384
|
model-00026-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ccaef3e08e56d331aa627231e2e0e7bc90b861d5388a6529b6a4604e7afe58a7
|
| 3 |
+
size 5117127384
|
model-00027-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90d16c2444c867f041049be6e5946d5e786588bcba1bf50394c3d7fa4461163e
|
| 3 |
+
size 5117127424
|
model-00028-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72083a61686e7f2d52d3579bd60a43788fdfbddf1e6d41e403fee850200d19cb
|
| 3 |
+
size 5117127544
|
model-00029-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfe01af6c42e2366d0eb8629c40ec2674df839a16f5b81be37ec2cbfc2906a12
|
| 3 |
+
size 5117127520
|
model-00030-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3aea6291d6c5ccfd143d38f4b8dc2b3f1f3cc76e735ed8a352e1d32f956ddcc2
|
| 3 |
+
size 5117127384
|
model-00031-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98243efb22ac856c50215c4cea159da7210d24f54be0a31d182f370e542dc15a
|
| 3 |
+
size 5117127384
|
model-00032-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0e861f320f8aef0c692c28c602fe92e0fd9d57b965b9623cacf3e06cc651f54
|
| 3 |
+
size 5117127440
|
model-00033-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4e612640547e1691451884b6bbbe64a30c0835d7c9846f14b4042b7280c32ae
|
| 3 |
+
size 5117127544
|
model-00034-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae308c049b026e630cff7ce1fedd73e522c79c234814b0d4ef0b3cf7d00bbdc4
|
| 3 |
+
size 5117127496
|
model-00035-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba5bff98b7ea4fe119d8ebb252a18459098bd13853febca12d6efbccbd97213e
|
| 3 |
+
size 5117127384
|
model-00036-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5142bc53a51a456bf12e38cc4e994b50a03ff28335068f5adfb9430d24e500e
|
| 3 |
+
size 5117127384
|
model-00037-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9148cd551bb4611c168ed1cb46877e48c8c7f4157f71889e2872b29c1283d5b5
|
| 3 |
+
size 5117127464
|
model-00038-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecb9aa08e087fef94805bcc2f91f8277fe5b19f3a7b2b01a680d90c7dd0b691e
|
| 3 |
+
size 5117127544
|
model-00039-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efe972d5de11a0b0f218a52400fc8a325e835b6a4746c7c6a91d4ae4887c422e
|
| 3 |
+
size 5117127480
|
model-00040-of-00089.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61b6b73c68a6d678cbf424e8a25d50d1f118fa1ead62351e48de16978e657c47
|
| 3 |
+
size 5117127384
|