Text Generation
Transformers
TensorBoard
Safetensors
kroha_routed_norm
kroha
looped
custom_code
training-checkpoint
multi-token-prediction
conversational
Eval Results (legacy)
Instructions to use d0rj/Kroha-base-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d0rj/Kroha-base-dev with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="d0rj/Kroha-base-dev", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("d0rj/Kroha-base-dev", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use d0rj/Kroha-base-dev with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "d0rj/Kroha-base-dev" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d0rj/Kroha-base-dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/d0rj/Kroha-base-dev
- SGLang
How to use d0rj/Kroha-base-dev with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "d0rj/Kroha-base-dev" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d0rj/Kroha-base-dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "d0rj/Kroha-base-dev" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d0rj/Kroha-base-dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use d0rj/Kroha-base-dev with Docker Model Runner:
docker model run hf.co/d0rj/Kroha-base-dev
Publish complete Kroha training checkpoints and TensorBoard history
Browse files- LICENSE +395 -0
- README.md +895 -0
- RESTORE.md +48 -0
- chat_template.jinja +77 -0
- checkpoints/powerup_2x.tar.gz +3 -0
- checkpoints/powerup_8x.tar.gz +3 -0
- checkpoints/pretrain.tar.gz +3 -0
- code/requirements-training.txt +112 -0
- code/runtime-sources.json +161 -0
- code/runtime-sources.tar.gz +3 -0
- code/training-code.tar.gz +3 -0
- config.json +143 -0
- configuration_kroha.py +131 -0
- dna_config.json +26 -0
- evaluation.csv +51 -0
- evaluation.json +1878 -0
- export.json +31 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- modeling_kroha.py +1642 -0
- release-manifest.json +221 -0
- requirements.txt +4 -0
- tensorboard/powerup_2x/events.out.tfevents.1795214806.DESKTOP-OU3A33R.1431865.0 +3 -0
- tensorboard/powerup_2x/events.out.tfevents.1795295344.DESKTOP-OU3A33R.1440174.0 +3 -0
- tensorboard/powerup_8x/events.out.tfevents.1795346043.DESKTOP-OU3A33R.1451003.0 +3 -0
- tensorboard/pretrain/events.out.tfevents.1794160308.DESKTOP-OU3A33R.32891.0 +3 -0
- tensorboard/pretrain/events.out.tfevents.1794229726.DESKTOP-OU3A33R.35404.0 +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +166 -0
- training/data-provenance.tar.gz +3 -0
- training/model-validation.json +11 -0
- training/powerup_2x-contract.json +429 -0
- training/powerup_2x-metrics.jsonl +0 -0
- training/powerup_8x-contract.json +429 -0
- training/powerup_8x-metrics.jsonl +0 -0
- training/pretrain-contract.json +428 -0
- training/pretrain-metrics.jsonl +0 -0
- training/telemetry-audit.json +0 -0
LICEN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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Attribution 4.0 International
|
| 2 |
+
|
| 3 |
+
=======================================================================
|
| 4 |
+
|
| 5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
| 6 |
+
does not provide legal services or legal advice. Distribution of
|
| 7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
| 8 |
+
other relationship. Creative Commons makes its licenses and related
|
| 9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
| 10 |
+
warranties regarding its licenses, any material licensed under their
|
| 11 |
+
terms and conditions, or any related information. Creative Commons
|
| 12 |
+
disclaims all liability for damages resulting from their use to the
|
| 13 |
+
fullest extent possible.
|
| 14 |
+
|
| 15 |
+
Using Creative Commons Public Licenses
|
| 16 |
+
|
| 17 |
+
Creative Commons public licenses provide a standard set of terms and
|
| 18 |
+
conditions that creators and other rights holders may use to share
|
| 19 |
+
original works of authorship and other material subject to copyright
|
| 20 |
+
and certain other rights specified in the public license below. The
|
| 21 |
+
following considerations are for informational purposes only, are not
|
| 22 |
+
exhaustive, and do not form part of our licenses.
|
| 23 |
+
|
| 24 |
+
Considerations for licensors: Our public licenses are
|
| 25 |
+
intended for use by those authorized to give the public
|
| 26 |
+
permission to use material in ways otherwise restricted by
|
| 27 |
+
copyright and certain other rights. Our licenses are
|
| 28 |
+
irrevocable. Licensors should read and understand the terms
|
| 29 |
+
and conditions of the license they choose before applying it.
|
| 30 |
+
Licensors should also secure all rights necessary before
|
| 31 |
+
applying our licenses so that the public can reuse the
|
| 32 |
+
material as expected. Licensors should clearly mark any
|
| 33 |
+
material not subject to the license. This includes other CC-
|
| 34 |
+
licensed material, or material used under an exception or
|
| 35 |
+
limitation to copyright. More considerations for licensors:
|
| 36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
| 37 |
+
|
| 38 |
+
Considerations for the public: By using one of our public
|
| 39 |
+
licenses, a licensor grants the public permission to use the
|
| 40 |
+
licensed material under specified terms and conditions. If
|
| 41 |
+
the licensor's permission is not necessary for any reason--for
|
| 42 |
+
example, because of any applicable exception or limitation to
|
| 43 |
+
copyright--then that use is not regulated by the license. Our
|
| 44 |
+
licenses grant only permissions under copyright and certain
|
| 45 |
+
other rights that a licensor has authority to grant. Use of
|
| 46 |
+
the licensed material may still be restricted for other
|
| 47 |
+
reasons, including because others have copyright or other
|
| 48 |
+
rights in the material. A licensor may make special requests,
|
| 49 |
+
such as asking that all changes be marked or described.
|
| 50 |
+
Although not required by our licenses, you are encouraged to
|
| 51 |
+
respect those requests where reasonable. More considerations
|
| 52 |
+
for the public:
|
| 53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
| 54 |
+
|
| 55 |
+
=======================================================================
|
| 56 |
+
|
| 57 |
+
Creative Commons Attribution 4.0 International Public License
|
| 58 |
+
|
| 59 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 60 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 61 |
+
Attribution 4.0 International Public License ("Public License"). To the
|
| 62 |
+
extent this Public License may be interpreted as a contract, You are
|
| 63 |
+
granted the Licensed Rights in consideration of Your acceptance of
|
| 64 |
+
these terms and conditions, and the Licensor grants You such rights in
|
| 65 |
+
consideration of benefits the Licensor receives from making the
|
| 66 |
+
Licensed Material available under these terms and conditions.
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
Section 1 -- Definitions.
|
| 70 |
+
|
| 71 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 72 |
+
Rights that is derived from or based upon the Licensed Material
|
| 73 |
+
and in which the Licensed Material is translated, altered,
|
| 74 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 75 |
+
permission under the Copyright and Similar Rights held by the
|
| 76 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 77 |
+
Material is a musical work, performance, or sound recording,
|
| 78 |
+
Adapted Material is always produced where the Licensed Material is
|
| 79 |
+
synched in timed relation with a moving image.
|
| 80 |
+
|
| 81 |
+
b. Adapter's License means the license You apply to Your Copyright
|
| 82 |
+
and Similar Rights in Your contributions to Adapted Material in
|
| 83 |
+
accordance with the terms and conditions of this Public License.
|
| 84 |
+
|
| 85 |
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
| 86 |
+
closely related to copyright including, without limitation,
|
| 87 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 88 |
+
Rights, without regard to how the rights are labeled or
|
| 89 |
+
categorized. For purposes of this Public License, the rights
|
| 90 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 91 |
+
Rights.
|
| 92 |
+
|
| 93 |
+
d. Effective Technological Measures means those measures that, in the
|
| 94 |
+
absence of proper authority, may not be circumvented under laws
|
| 95 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 96 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 97 |
+
agreements.
|
| 98 |
+
|
| 99 |
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 100 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 101 |
+
that applies to Your use of the Licensed Material.
|
| 102 |
+
|
| 103 |
+
f. Licensed Material means the artistic or literary work, database,
|
| 104 |
+
or other material to which the Licensor applied this Public
|
| 105 |
+
License.
|
| 106 |
+
|
| 107 |
+
g. Licensed Rights means the rights granted to You subject to the
|
| 108 |
+
terms and conditions of this Public License, which are limited to
|
| 109 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 110 |
+
Licensed Material and that the Licensor has authority to license.
|
| 111 |
+
|
| 112 |
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
| 113 |
+
under this Public License.
|
| 114 |
+
|
| 115 |
+
i. Share means to provide material to the public by any means or
|
| 116 |
+
process that requires permission under the Licensed Rights, such
|
| 117 |
+
as reproduction, public display, public performance, distribution,
|
| 118 |
+
dissemination, communication, or importation, and to make material
|
| 119 |
+
available to the public including in ways that members of the
|
| 120 |
+
public may access the material from a place and at a time
|
| 121 |
+
individually chosen by them.
|
| 122 |
+
|
| 123 |
+
j. Sui Generis Database Rights means rights other than copyright
|
| 124 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 125 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 126 |
+
as amended and/or succeeded, as well as other essentially
|
| 127 |
+
equivalent rights anywhere in the world.
|
| 128 |
+
|
| 129 |
+
k. You means the individual or entity exercising the Licensed Rights
|
| 130 |
+
under this Public License. Your has a corresponding meaning.
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
Section 2 -- Scope.
|
| 134 |
+
|
| 135 |
+
a. License grant.
|
| 136 |
+
|
| 137 |
+
1. Subject to the terms and conditions of this Public License,
|
| 138 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 139 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 140 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 141 |
+
|
| 142 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 143 |
+
in part; and
|
| 144 |
+
|
| 145 |
+
b. produce, reproduce, and Share Adapted Material.
|
| 146 |
+
|
| 147 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 148 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 149 |
+
License does not apply, and You do not need to comply with
|
| 150 |
+
its terms and conditions.
|
| 151 |
+
|
| 152 |
+
3. Term. The term of this Public License is specified in Section
|
| 153 |
+
6(a).
|
| 154 |
+
|
| 155 |
+
4. Media and formats; technical modifications allowed. The
|
| 156 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 157 |
+
all media and formats whether now known or hereafter created,
|
| 158 |
+
and to make technical modifications necessary to do so. The
|
| 159 |
+
Licensor waives and/or agrees not to assert any right or
|
| 160 |
+
authority to forbid You from making technical modifications
|
| 161 |
+
necessary to exercise the Licensed Rights, including
|
| 162 |
+
technical modifications necessary to circumvent Effective
|
| 163 |
+
Technological Measures. For purposes of this Public License,
|
| 164 |
+
simply making modifications authorized by this Section 2(a)
|
| 165 |
+
(4) never produces Adapted Material.
|
| 166 |
+
|
| 167 |
+
5. Downstream recipients.
|
| 168 |
+
|
| 169 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 170 |
+
recipient of the Licensed Material automatically
|
| 171 |
+
receives an offer from the Licensor to exercise the
|
| 172 |
+
Licensed Rights under the terms and conditions of this
|
| 173 |
+
Public License.
|
| 174 |
+
|
| 175 |
+
b. No downstream restrictions. You may not offer or impose
|
| 176 |
+
any additional or different terms or conditions on, or
|
| 177 |
+
apply any Effective Technological Measures to, the
|
| 178 |
+
Licensed Material if doing so restricts exercise of the
|
| 179 |
+
Licensed Rights by any recipient of the Licensed
|
| 180 |
+
Material.
|
| 181 |
+
|
| 182 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 183 |
+
may be construed as permission to assert or imply that You
|
| 184 |
+
are, or that Your use of the Licensed Material is, connected
|
| 185 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 186 |
+
the Licensor or others designated to receive attribution as
|
| 187 |
+
provided in Section 3(a)(1)(A)(i).
|
| 188 |
+
|
| 189 |
+
b. Other rights.
|
| 190 |
+
|
| 191 |
+
1. Moral rights, such as the right of integrity, are not
|
| 192 |
+
licensed under this Public License, nor are publicity,
|
| 193 |
+
privacy, and/or other similar personality rights; however, to
|
| 194 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 195 |
+
assert any such rights held by the Licensor to the limited
|
| 196 |
+
extent necessary to allow You to exercise the Licensed
|
| 197 |
+
Rights, but not otherwise.
|
| 198 |
+
|
| 199 |
+
2. Patent and trademark rights are not licensed under this
|
| 200 |
+
Public License.
|
| 201 |
+
|
| 202 |
+
3. To the extent possible, the Licensor waives any right to
|
| 203 |
+
collect royalties from You for the exercise of the Licensed
|
| 204 |
+
Rights, whether directly or through a collecting society
|
| 205 |
+
under any voluntary or waivable statutory or compulsory
|
| 206 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 207 |
+
reserves any right to collect such royalties.
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
Section 3 -- License Conditions.
|
| 211 |
+
|
| 212 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 213 |
+
following conditions.
|
| 214 |
+
|
| 215 |
+
a. Attribution.
|
| 216 |
+
|
| 217 |
+
1. If You Share the Licensed Material (including in modified
|
| 218 |
+
form), You must:
|
| 219 |
+
|
| 220 |
+
a. retain the following if it is supplied by the Licensor
|
| 221 |
+
with the Licensed Material:
|
| 222 |
+
|
| 223 |
+
i. identification of the creator(s) of the Licensed
|
| 224 |
+
Material and any others designated to receive
|
| 225 |
+
attribution, in any reasonable manner requested by
|
| 226 |
+
the Licensor (including by pseudonym if
|
| 227 |
+
designated);
|
| 228 |
+
|
| 229 |
+
ii. a copyright notice;
|
| 230 |
+
|
| 231 |
+
iii. a notice that refers to this Public License;
|
| 232 |
+
|
| 233 |
+
iv. a notice that refers to the disclaimer of
|
| 234 |
+
warranties;
|
| 235 |
+
|
| 236 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 237 |
+
extent reasonably practicable;
|
| 238 |
+
|
| 239 |
+
b. indicate if You modified the Licensed Material and
|
| 240 |
+
retain an indication of any previous modifications; and
|
| 241 |
+
|
| 242 |
+
c. indicate the Licensed Material is licensed under this
|
| 243 |
+
Public License, and include the text of, or the URI or
|
| 244 |
+
hyperlink to, this Public License.
|
| 245 |
+
|
| 246 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 247 |
+
reasonable manner based on the medium, means, and context in
|
| 248 |
+
which You Share the Licensed Material. For example, it may be
|
| 249 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 250 |
+
hyperlink to a resource that includes the required
|
| 251 |
+
information.
|
| 252 |
+
|
| 253 |
+
3. If requested by the Licensor, You must remove any of the
|
| 254 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 255 |
+
reasonably practicable.
|
| 256 |
+
|
| 257 |
+
4. If You Share Adapted Material You produce, the Adapter's
|
| 258 |
+
License You apply must not prevent recipients of the Adapted
|
| 259 |
+
Material from complying with this Public License.
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
Section 4 -- Sui Generis Database Rights.
|
| 263 |
+
|
| 264 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 265 |
+
apply to Your use of the Licensed Material:
|
| 266 |
+
|
| 267 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 268 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 269 |
+
portion of the contents of the database;
|
| 270 |
+
|
| 271 |
+
b. if You include all or a substantial portion of the database
|
| 272 |
+
contents in a database in which You have Sui Generis Database
|
| 273 |
+
Rights, then the database in which You have Sui Generis Database
|
| 274 |
+
Rights (but not its individual contents) is Adapted Material; and
|
| 275 |
+
|
| 276 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 277 |
+
all or a substantial portion of the contents of the database.
|
| 278 |
+
|
| 279 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 280 |
+
replace Your obligations under this Public License where the Licensed
|
| 281 |
+
Rights include other Copyright and Similar Rights.
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 285 |
+
|
| 286 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 287 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 288 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 289 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 290 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 291 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 292 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 293 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 294 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 295 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 296 |
+
|
| 297 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 298 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 299 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 300 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 301 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 302 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 303 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 304 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 305 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 306 |
+
|
| 307 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 308 |
+
above shall be interpreted in a manner that, to the extent
|
| 309 |
+
possible, most closely approximates an absolute disclaimer and
|
| 310 |
+
waiver of all liability.
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
Section 6 -- Term and Termination.
|
| 314 |
+
|
| 315 |
+
a. This Public License applies for the term of the Copyright and
|
| 316 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 317 |
+
this Public License, then Your rights under this Public License
|
| 318 |
+
terminate automatically.
|
| 319 |
+
|
| 320 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 321 |
+
Section 6(a), it reinstates:
|
| 322 |
+
|
| 323 |
+
1. automatically as of the date the violation is cured, provided
|
| 324 |
+
it is cured within 30 days of Your discovery of the
|
| 325 |
+
violation; or
|
| 326 |
+
|
| 327 |
+
2. upon express reinstatement by the Licensor.
|
| 328 |
+
|
| 329 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 330 |
+
right the Licensor may have to seek remedies for Your violations
|
| 331 |
+
of this Public License.
|
| 332 |
+
|
| 333 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 334 |
+
Licensed Material under separate terms or conditions or stop
|
| 335 |
+
distributing the Licensed Material at any time; however, doing so
|
| 336 |
+
will not terminate this Public License.
|
| 337 |
+
|
| 338 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 339 |
+
License.
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
Section 7 -- Other Terms and Conditions.
|
| 343 |
+
|
| 344 |
+
a. The Licensor shall not be bound by any additional or different
|
| 345 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 346 |
+
|
| 347 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 348 |
+
Licensed Material not stated herein are separate from and
|
| 349 |
+
independent of the terms and conditions of this Public License.
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
Section 8 -- Interpretation.
|
| 353 |
+
|
| 354 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 355 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 356 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 357 |
+
be made without permission under this Public License.
|
| 358 |
+
|
| 359 |
+
b. To the extent possible, if any provision of this Public License is
|
| 360 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 361 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 362 |
+
cannot be reformed, it shall be severed from this Public License
|
| 363 |
+
without affecting the enforceability of the remaining terms and
|
| 364 |
+
conditions.
|
| 365 |
+
|
| 366 |
+
c. No term or condition of this Public License will be waived and no
|
| 367 |
+
failure to comply consented to unless expressly agreed to by the
|
| 368 |
+
Licensor.
|
| 369 |
+
|
| 370 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 371 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 372 |
+
that apply to the Licensor or You, including from the legal
|
| 373 |
+
processes of any jurisdiction or authority.
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
=======================================================================
|
| 377 |
+
|
| 378 |
+
Creative Commons is not a party to its public
|
| 379 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
| 380 |
+
its public licenses to material it publishes and in those instances
|
| 381 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
| 382 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
| 383 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
| 384 |
+
material is shared under a Creative Commons public license or as
|
| 385 |
+
otherwise permitted by the Creative Commons policies published at
|
| 386 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
| 387 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
| 388 |
+
of Creative Commons without its prior written consent including,
|
| 389 |
+
without limitation, in connection with any unauthorized modifications
|
| 390 |
+
to any of its public licenses or any other arrangements,
|
| 391 |
+
understandings, or agreements concerning use of licensed material. For
|
| 392 |
+
the avoidance of doubt, this paragraph does not form part of the
|
| 393 |
+
public licenses.
|
| 394 |
+
|
| 395 |
+
Creative Commons may be contacted at creativecommons.org.
|
README.md
ADDED
|
@@ -0,0 +1,895 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
pipeline_tag: text-generation
|
| 4 |
+
license: cc-by-4.0
|
| 5 |
+
base_model: d0rj/Kroha-base
|
| 6 |
+
tags:
|
| 7 |
+
- kroha
|
| 8 |
+
- looped
|
| 9 |
+
- custom_code
|
| 10 |
+
- training-checkpoint
|
| 11 |
+
- multi-token-prediction
|
| 12 |
+
- tensorboard
|
| 13 |
+
model-index:
|
| 14 |
+
- name: Kroha-base-dev
|
| 15 |
+
results:
|
| 16 |
+
- task:
|
| 17 |
+
type: text-generation
|
| 18 |
+
name: arc_challenge (0-shot)
|
| 19 |
+
dataset:
|
| 20 |
+
type: allenai/ai2_arc
|
| 21 |
+
name: arc_challenge
|
| 22 |
+
split: test
|
| 23 |
+
config: ARC-Challenge
|
| 24 |
+
metrics:
|
| 25 |
+
- type: acc_norm
|
| 26 |
+
name: 'arc_challenge: acc_norm,none; 0-shot (unscaled)'
|
| 27 |
+
value: 0.22610921501706485
|
| 28 |
+
source:
|
| 29 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 30 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 31 |
+
- task:
|
| 32 |
+
type: text-generation
|
| 33 |
+
name: arc_easy (0-shot)
|
| 34 |
+
dataset:
|
| 35 |
+
type: allenai/ai2_arc
|
| 36 |
+
name: arc_easy
|
| 37 |
+
split: test
|
| 38 |
+
config: ARC-Easy
|
| 39 |
+
metrics:
|
| 40 |
+
- type: acc_norm
|
| 41 |
+
name: 'arc_easy: acc_norm,none; 0-shot (unscaled)'
|
| 42 |
+
value: 0.36826599326599324
|
| 43 |
+
source:
|
| 44 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 45 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 46 |
+
- task:
|
| 47 |
+
type: text-generation
|
| 48 |
+
name: arithmark3 (0-shot)
|
| 49 |
+
dataset:
|
| 50 |
+
type: AxiomicLabs/Arithmark-3.0
|
| 51 |
+
name: arithmark3
|
| 52 |
+
revision: 6f6e59dd9b7e2c63455f7af7f838f9ecc3d0a746
|
| 53 |
+
split: train
|
| 54 |
+
metrics:
|
| 55 |
+
- type: acc_norm
|
| 56 |
+
name: 'arithmark3: acc_norm,none; 0-shot (unscaled)'
|
| 57 |
+
value: 0.338
|
| 58 |
+
source:
|
| 59 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 60 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 61 |
+
- task:
|
| 62 |
+
type: text-generation
|
| 63 |
+
name: balanced_copa (0-shot)
|
| 64 |
+
dataset:
|
| 65 |
+
type: pkavumba/balanced-copa
|
| 66 |
+
name: balanced_copa
|
| 67 |
+
revision: 813bd03cd6e07d9bd8d7333896ad5d40abb95ea9
|
| 68 |
+
split: train
|
| 69 |
+
metrics:
|
| 70 |
+
- type: acc
|
| 71 |
+
name: 'balanced_copa: acc,none; 0-shot (unscaled)'
|
| 72 |
+
value: 0.527
|
| 73 |
+
source:
|
| 74 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 75 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 76 |
+
- task:
|
| 77 |
+
type: text-generation
|
| 78 |
+
name: blimp (0-shot)
|
| 79 |
+
dataset:
|
| 80 |
+
type: nyu-mll/blimp
|
| 81 |
+
name: blimp
|
| 82 |
+
split: train
|
| 83 |
+
metrics:
|
| 84 |
+
- type: acc
|
| 85 |
+
name: 'blimp: acc,none; 0-shot (unscaled)'
|
| 86 |
+
value: 0.7441641791044776
|
| 87 |
+
source:
|
| 88 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 89 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 90 |
+
- task:
|
| 91 |
+
type: text-generation
|
| 92 |
+
name: boolq (0-shot)
|
| 93 |
+
dataset:
|
| 94 |
+
type: aps/super_glue
|
| 95 |
+
name: boolq
|
| 96 |
+
split: validation
|
| 97 |
+
config: boolq
|
| 98 |
+
metrics:
|
| 99 |
+
- type: acc
|
| 100 |
+
name: 'boolq: acc,none; 0-shot (unscaled)'
|
| 101 |
+
value: 0.6055045871559633
|
| 102 |
+
source:
|
| 103 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 104 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 105 |
+
- task:
|
| 106 |
+
type: text-generation
|
| 107 |
+
name: commonsense_qa (0-shot)
|
| 108 |
+
dataset:
|
| 109 |
+
type: tau/commonsense_qa
|
| 110 |
+
name: commonsense_qa
|
| 111 |
+
split: validation
|
| 112 |
+
metrics:
|
| 113 |
+
- type: acc
|
| 114 |
+
name: 'commonsense_qa: acc,none; 0-shot (unscaled)'
|
| 115 |
+
value: 0.20638820638820637
|
| 116 |
+
source:
|
| 117 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 118 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 119 |
+
- task:
|
| 120 |
+
type: text-generation
|
| 121 |
+
name: hellaswag (0-shot)
|
| 122 |
+
dataset:
|
| 123 |
+
type: Rowan/hellaswag
|
| 124 |
+
name: hellaswag
|
| 125 |
+
split: validation
|
| 126 |
+
metrics:
|
| 127 |
+
- type: acc_norm
|
| 128 |
+
name: 'hellaswag: acc_norm,none; 0-shot (unscaled)'
|
| 129 |
+
value: 0.2944632543318064
|
| 130 |
+
source:
|
| 131 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 132 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 133 |
+
- task:
|
| 134 |
+
type: text-generation
|
| 135 |
+
name: lambada_openai (0-shot)
|
| 136 |
+
dataset:
|
| 137 |
+
type: EleutherAI/lambada_openai
|
| 138 |
+
name: lambada_openai
|
| 139 |
+
split: test
|
| 140 |
+
config: default
|
| 141 |
+
metrics:
|
| 142 |
+
- type: acc
|
| 143 |
+
name: 'lambada_openai: acc,none; 0-shot (unscaled)'
|
| 144 |
+
value: 0.25926644673006016
|
| 145 |
+
source:
|
| 146 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 147 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 148 |
+
- task:
|
| 149 |
+
type: text-generation
|
| 150 |
+
name: mmlu_continuation (0-shot)
|
| 151 |
+
dataset:
|
| 152 |
+
type: cais/mmlu
|
| 153 |
+
name: mmlu_continuation
|
| 154 |
+
split: test
|
| 155 |
+
metrics:
|
| 156 |
+
- type: acc
|
| 157 |
+
name: 'mmlu_continuation: acc,none; 0-shot (unscaled)'
|
| 158 |
+
value: 0.2466885059108389
|
| 159 |
+
source:
|
| 160 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 161 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 162 |
+
- task:
|
| 163 |
+
type: text-generation
|
| 164 |
+
name: openbookqa (0-shot)
|
| 165 |
+
dataset:
|
| 166 |
+
type: allenai/openbookqa
|
| 167 |
+
name: openbookqa
|
| 168 |
+
split: test
|
| 169 |
+
config: main
|
| 170 |
+
metrics:
|
| 171 |
+
- type: acc_norm
|
| 172 |
+
name: 'openbookqa: acc_norm,none; 0-shot (unscaled)'
|
| 173 |
+
value: 0.26
|
| 174 |
+
source:
|
| 175 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 176 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 177 |
+
- task:
|
| 178 |
+
type: text-generation
|
| 179 |
+
name: piqa (0-shot)
|
| 180 |
+
dataset:
|
| 181 |
+
type: baber/piqa
|
| 182 |
+
name: piqa
|
| 183 |
+
split: validation
|
| 184 |
+
metrics:
|
| 185 |
+
- type: acc_norm
|
| 186 |
+
name: 'piqa: acc_norm,none; 0-shot (unscaled)'
|
| 187 |
+
value: 0.5554951033732318
|
| 188 |
+
source:
|
| 189 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 190 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 191 |
+
- task:
|
| 192 |
+
type: text-generation
|
| 193 |
+
name: sciq (0-shot)
|
| 194 |
+
dataset:
|
| 195 |
+
type: allenai/sciq
|
| 196 |
+
name: sciq
|
| 197 |
+
split: test
|
| 198 |
+
metrics:
|
| 199 |
+
- type: acc_norm
|
| 200 |
+
name: 'sciq: acc_norm,none; 0-shot (unscaled)'
|
| 201 |
+
value: 0.687
|
| 202 |
+
source:
|
| 203 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 204 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 205 |
+
- task:
|
| 206 |
+
type: text-generation
|
| 207 |
+
name: truthfulqa_mc2 (0-shot)
|
| 208 |
+
dataset:
|
| 209 |
+
type: truthfulqa/truthful_qa
|
| 210 |
+
name: truthfulqa_mc2
|
| 211 |
+
split: validation
|
| 212 |
+
config: multiple_choice
|
| 213 |
+
metrics:
|
| 214 |
+
- type: acc
|
| 215 |
+
name: 'truthfulqa_mc2: acc,none; 0-shot (unscaled)'
|
| 216 |
+
value: 0.4309439862757557
|
| 217 |
+
source:
|
| 218 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 219 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 220 |
+
- task:
|
| 221 |
+
type: text-generation
|
| 222 |
+
name: winogrande (0-shot)
|
| 223 |
+
dataset:
|
| 224 |
+
type: allenai/winogrande
|
| 225 |
+
name: winogrande
|
| 226 |
+
split: validation
|
| 227 |
+
config: winogrande_xl
|
| 228 |
+
metrics:
|
| 229 |
+
- type: acc
|
| 230 |
+
name: 'winogrande: acc,none; 0-shot (unscaled)'
|
| 231 |
+
value: 0.5074980268350434
|
| 232 |
+
source:
|
| 233 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 234 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 235 |
+
- task:
|
| 236 |
+
type: text-generation
|
| 237 |
+
name: bananamind_base (0-shot)
|
| 238 |
+
dataset:
|
| 239 |
+
type: BananaMind/BananaMind-Base-Bench-1.1
|
| 240 |
+
name: bananamind_base
|
| 241 |
+
revision: d4aade51312889e8580963e1ce960c6eaef1a450
|
| 242 |
+
split: test
|
| 243 |
+
metrics:
|
| 244 |
+
- type: raw_accuracy
|
| 245 |
+
name: 'bananamind_base: raw_accuracy,none; 0-shot (unscaled)'
|
| 246 |
+
value: 0.52
|
| 247 |
+
source:
|
| 248 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 249 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 250 |
+
- task:
|
| 251 |
+
type: text-generation
|
| 252 |
+
name: social_iqa (0-shot)
|
| 253 |
+
dataset:
|
| 254 |
+
type: allenai/social_i_qa
|
| 255 |
+
name: social_iqa
|
| 256 |
+
revision: 537a2ec8ec565adc0b70b70752893e59e024df26
|
| 257 |
+
split: validation
|
| 258 |
+
metrics:
|
| 259 |
+
- type: acc
|
| 260 |
+
name: 'social_iqa: acc,none; 0-shot (unscaled)'
|
| 261 |
+
value: 0.3679631525076766
|
| 262 |
+
source:
|
| 263 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 264 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 265 |
+
- task:
|
| 266 |
+
type: text-generation
|
| 267 |
+
name: race (0-shot)
|
| 268 |
+
dataset:
|
| 269 |
+
type: EleutherAI/race
|
| 270 |
+
name: race
|
| 271 |
+
revision: 4648d37b02a337d6ed57861667d9655e7799ce31
|
| 272 |
+
split: test
|
| 273 |
+
metrics:
|
| 274 |
+
- type: acc
|
| 275 |
+
name: 'race: acc,none; 0-shot (unscaled)'
|
| 276 |
+
value: 0.26220095693779905
|
| 277 |
+
source:
|
| 278 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 279 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 280 |
+
- task:
|
| 281 |
+
type: text-generation
|
| 282 |
+
name: mmlu (5-shot)
|
| 283 |
+
dataset:
|
| 284 |
+
type: cais/mmlu
|
| 285 |
+
name: mmlu
|
| 286 |
+
split: test
|
| 287 |
+
metrics:
|
| 288 |
+
- type: acc
|
| 289 |
+
name: 'mmlu: acc,none; 5-shot (unscaled)'
|
| 290 |
+
value: 0.26264064948013105
|
| 291 |
+
source:
|
| 292 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 293 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 294 |
+
- task:
|
| 295 |
+
type: text-generation
|
| 296 |
+
name: triviaqa (0-shot)
|
| 297 |
+
dataset:
|
| 298 |
+
type: mandarjoshi/trivia_qa
|
| 299 |
+
name: triviaqa
|
| 300 |
+
revision: bd67746ffd85804fdc6b2ec5b00222ea26f8117e
|
| 301 |
+
split: validation
|
| 302 |
+
metrics:
|
| 303 |
+
- type: exact_match
|
| 304 |
+
name: 'triviaqa: exact_match,remove_whitespace; 0-shot (unscaled)'
|
| 305 |
+
value: 0.0035109228711547036
|
| 306 |
+
source:
|
| 307 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 308 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 309 |
+
- task:
|
| 310 |
+
type: text-generation
|
| 311 |
+
name: gsm8k (5-shot)
|
| 312 |
+
dataset:
|
| 313 |
+
type: openai/gsm8k
|
| 314 |
+
name: gsm8k
|
| 315 |
+
split: test
|
| 316 |
+
config: main
|
| 317 |
+
metrics:
|
| 318 |
+
- type: exact_match
|
| 319 |
+
name: 'gsm8k: exact_match,flexible-extract; 5-shot (unscaled)'
|
| 320 |
+
value: 0.01819560272934041
|
| 321 |
+
source:
|
| 322 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 323 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 324 |
+
- task:
|
| 325 |
+
type: text-generation
|
| 326 |
+
name: hendrycks_math500 (0-shot)
|
| 327 |
+
dataset:
|
| 328 |
+
type: HuggingFaceH4/MATH-500
|
| 329 |
+
name: hendrycks_math500
|
| 330 |
+
split: test
|
| 331 |
+
config: default
|
| 332 |
+
metrics:
|
| 333 |
+
- type: exact_match
|
| 334 |
+
name: 'hendrycks_math500: exact_match,none; 0-shot (unscaled)'
|
| 335 |
+
value: 0.002
|
| 336 |
+
source:
|
| 337 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 338 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 339 |
+
- task:
|
| 340 |
+
type: text-generation
|
| 341 |
+
name: bbh (3-shot)
|
| 342 |
+
dataset:
|
| 343 |
+
type: SaylorTwift/bbh
|
| 344 |
+
name: bbh
|
| 345 |
+
split: test
|
| 346 |
+
metrics:
|
| 347 |
+
- type: exact_match
|
| 348 |
+
name: 'bbh: exact_match,get-answer; 3-shot (unscaled)'
|
| 349 |
+
value: 0.20488404238980187
|
| 350 |
+
source:
|
| 351 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 352 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 353 |
+
- task:
|
| 354 |
+
type: text-generation
|
| 355 |
+
name: humaneval (0-shot)
|
| 356 |
+
dataset:
|
| 357 |
+
type: openai/openai_humaneval
|
| 358 |
+
name: humaneval
|
| 359 |
+
split: test
|
| 360 |
+
metrics:
|
| 361 |
+
- type: pass@1
|
| 362 |
+
name: 'humaneval: pass@1,create_test; 0-shot (unscaled)'
|
| 363 |
+
value: 0.036585365853658534
|
| 364 |
+
source:
|
| 365 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 366 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 367 |
+
- task:
|
| 368 |
+
type: text-generation
|
| 369 |
+
name: mbpp (3-shot)
|
| 370 |
+
dataset:
|
| 371 |
+
type: google-research-datasets/mbpp
|
| 372 |
+
name: mbpp
|
| 373 |
+
split: test
|
| 374 |
+
config: full
|
| 375 |
+
metrics:
|
| 376 |
+
- type: pass_at_1
|
| 377 |
+
name: 'mbpp: pass_at_1,none; 3-shot (unscaled)'
|
| 378 |
+
value: 0.0
|
| 379 |
+
source:
|
| 380 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 381 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 382 |
+
- task:
|
| 383 |
+
type: text-generation
|
| 384 |
+
name: mbpp_plus (3-shot)
|
| 385 |
+
dataset:
|
| 386 |
+
type: evalplus/mbppplus
|
| 387 |
+
name: mbpp_plus
|
| 388 |
+
split: test
|
| 389 |
+
metrics:
|
| 390 |
+
- type: pass_at_1
|
| 391 |
+
name: 'mbpp_plus: pass_at_1,none; 3-shot (unscaled)'
|
| 392 |
+
value: 0.0026455026455026454
|
| 393 |
+
source:
|
| 394 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 395 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 396 |
+
- task:
|
| 397 |
+
type: text-generation
|
| 398 |
+
name: mmlu_pro_mc0 (0-shot)
|
| 399 |
+
dataset:
|
| 400 |
+
type: TIGER-Lab/MMLU-Pro
|
| 401 |
+
name: mmlu_pro_mc0
|
| 402 |
+
revision: b189ec765aa7ed75c8acfea42df31fdae71f97be
|
| 403 |
+
split: test
|
| 404 |
+
metrics:
|
| 405 |
+
- type: acc
|
| 406 |
+
name: 'mmlu_pro_mc0: acc,none; 0-shot (unscaled)'
|
| 407 |
+
value: 0.11328125
|
| 408 |
+
source:
|
| 409 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 410 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 411 |
+
- task:
|
| 412 |
+
type: text-generation
|
| 413 |
+
name: global_mmlu_full_ru (5-shot)
|
| 414 |
+
dataset:
|
| 415 |
+
type: CohereForAI/Global-MMLU
|
| 416 |
+
name: global_mmlu_full_ru
|
| 417 |
+
split: test
|
| 418 |
+
config: ru
|
| 419 |
+
metrics:
|
| 420 |
+
- type: acc
|
| 421 |
+
name: 'global_mmlu_full_ru: acc,none; 5-shot (unscaled)'
|
| 422 |
+
value: 0.2647058823529412
|
| 423 |
+
source:
|
| 424 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 425 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 426 |
+
- task:
|
| 427 |
+
type: text-generation
|
| 428 |
+
name: mmlu_prox_ru_mc0 (0-shot)
|
| 429 |
+
dataset:
|
| 430 |
+
type: li-lab/MMLU-ProX
|
| 431 |
+
name: mmlu_prox_ru_mc0
|
| 432 |
+
revision: 8e6106a6c6ce1c5027e66cc338143cf997b2aa09
|
| 433 |
+
split: test
|
| 434 |
+
config: ru
|
| 435 |
+
metrics:
|
| 436 |
+
- type: acc
|
| 437 |
+
name: 'mmlu_prox_ru_mc0: acc,none; 0-shot (unscaled)'
|
| 438 |
+
value: 0.11318989710009354
|
| 439 |
+
source:
|
| 440 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 441 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 442 |
+
- task:
|
| 443 |
+
type: text-generation
|
| 444 |
+
name: mera_rummlu_mc0 (0-shot)
|
| 445 |
+
dataset:
|
| 446 |
+
type: MERA-evaluation/MERA
|
| 447 |
+
name: mera_rummlu_mc0
|
| 448 |
+
revision: 15c0e5b8e27551b50aa27f5497074810c8740661
|
| 449 |
+
split: test
|
| 450 |
+
metrics:
|
| 451 |
+
- type: acc
|
| 452 |
+
name: 'mera_rummlu_mc0: acc,none; 0-shot (unscaled)'
|
| 453 |
+
value: 0.23108763916642877
|
| 454 |
+
source:
|
| 455 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 456 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 457 |
+
- task:
|
| 458 |
+
type: text-generation
|
| 459 |
+
name: include_base_44_russian (0-shot)
|
| 460 |
+
dataset:
|
| 461 |
+
type: CohereForAI/include-base-44
|
| 462 |
+
name: include_base_44_russian
|
| 463 |
+
split: test
|
| 464 |
+
config: Russian
|
| 465 |
+
metrics:
|
| 466 |
+
- type: acc
|
| 467 |
+
name: 'include_base_44_russian: acc,none; 0-shot (unscaled)'
|
| 468 |
+
value: 0.2807971014492754
|
| 469 |
+
source:
|
| 470 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 471 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 472 |
+
- task:
|
| 473 |
+
type: text-generation
|
| 474 |
+
name: rublimp_sum_ll (0-shot)
|
| 475 |
+
dataset:
|
| 476 |
+
type: RussianNLP/rublimp
|
| 477 |
+
name: rublimp_sum_ll
|
| 478 |
+
revision: 88f0934bf26992d67d4a457eba3a25444efaae9c
|
| 479 |
+
split: test
|
| 480 |
+
metrics:
|
| 481 |
+
- type: acc
|
| 482 |
+
name: 'rublimp_sum_ll: acc,none; 0-shot (unscaled)'
|
| 483 |
+
value: 0.9198888888888889
|
| 484 |
+
source:
|
| 485 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 486 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 487 |
+
- task:
|
| 488 |
+
type: text-generation
|
| 489 |
+
name: rucola_dev (0-shot)
|
| 490 |
+
dataset:
|
| 491 |
+
type: RussianNLP/rucola
|
| 492 |
+
name: rucola_dev
|
| 493 |
+
revision: 00e61d446ceb0daff4ac584798221bd0c7aa90c4
|
| 494 |
+
split: validation
|
| 495 |
+
metrics:
|
| 496 |
+
- type: mcc
|
| 497 |
+
name: 'rucola_dev: mcc,none; 0-shot (unscaled)'
|
| 498 |
+
value: 0.002637654467725006
|
| 499 |
+
source:
|
| 500 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 501 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 502 |
+
- task:
|
| 503 |
+
type: text-generation
|
| 504 |
+
name: sberquad_dev (0-shot)
|
| 505 |
+
dataset:
|
| 506 |
+
type: kuznetsoffandrey/sberquad
|
| 507 |
+
name: sberquad_dev
|
| 508 |
+
revision: deb870ee29b280657470f2c3851e9b23899fdbc3
|
| 509 |
+
split: validation
|
| 510 |
+
metrics:
|
| 511 |
+
- type: f1
|
| 512 |
+
name: 'sberquad_dev: f1,none; 0-shot (unscaled)'
|
| 513 |
+
value: 0.07848110874929681
|
| 514 |
+
source:
|
| 515 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 516 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 517 |
+
- task:
|
| 518 |
+
type: text-generation
|
| 519 |
+
name: rsg_danetqa (0-shot)
|
| 520 |
+
dataset:
|
| 521 |
+
type: RussianNLP/russian_super_glue
|
| 522 |
+
name: rsg_danetqa
|
| 523 |
+
revision: e2ce2b9b11b2c7005531b4fc205f45f4b59cae73
|
| 524 |
+
split: validation
|
| 525 |
+
metrics:
|
| 526 |
+
- type: acc
|
| 527 |
+
name: 'rsg_danetqa: acc,none; 0-shot (unscaled)'
|
| 528 |
+
value: 0.48964677222898906
|
| 529 |
+
source:
|
| 530 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 531 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 532 |
+
- task:
|
| 533 |
+
type: text-generation
|
| 534 |
+
name: rsg_parus (0-shot)
|
| 535 |
+
dataset:
|
| 536 |
+
type: RussianNLP/russian_super_glue
|
| 537 |
+
name: rsg_parus
|
| 538 |
+
revision: e2ce2b9b11b2c7005531b4fc205f45f4b59cae73
|
| 539 |
+
split: validation
|
| 540 |
+
metrics:
|
| 541 |
+
- type: acc
|
| 542 |
+
name: 'rsg_parus: acc,none; 0-shot (unscaled)'
|
| 543 |
+
value: 0.64
|
| 544 |
+
source:
|
| 545 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 546 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 547 |
+
- task:
|
| 548 |
+
type: text-generation
|
| 549 |
+
name: rsg_rcb (0-shot)
|
| 550 |
+
dataset:
|
| 551 |
+
type: RussianNLP/russian_super_glue
|
| 552 |
+
name: rsg_rcb
|
| 553 |
+
revision: e2ce2b9b11b2c7005531b4fc205f45f4b59cae73
|
| 554 |
+
split: validation
|
| 555 |
+
metrics:
|
| 556 |
+
- type: acc
|
| 557 |
+
name: 'rsg_rcb: acc,none; 0-shot (unscaled)'
|
| 558 |
+
value: 0.32272727272727275
|
| 559 |
+
source:
|
| 560 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 561 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 562 |
+
- task:
|
| 563 |
+
type: text-generation
|
| 564 |
+
name: rsg_russe (0-shot)
|
| 565 |
+
dataset:
|
| 566 |
+
type: RussianNLP/russian_super_glue
|
| 567 |
+
name: rsg_russe
|
| 568 |
+
revision: e2ce2b9b11b2c7005531b4fc205f45f4b59cae73
|
| 569 |
+
split: validation
|
| 570 |
+
metrics:
|
| 571 |
+
- type: acc
|
| 572 |
+
name: 'rsg_russe: acc,none; 0-shot (unscaled)'
|
| 573 |
+
value: 0.3850676072898295
|
| 574 |
+
source:
|
| 575 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 576 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 577 |
+
- task:
|
| 578 |
+
type: text-generation
|
| 579 |
+
name: rsg_rwsd (0-shot)
|
| 580 |
+
dataset:
|
| 581 |
+
type: RussianNLP/russian_super_glue
|
| 582 |
+
name: rsg_rwsd
|
| 583 |
+
revision: e2ce2b9b11b2c7005531b4fc205f45f4b59cae73
|
| 584 |
+
split: validation
|
| 585 |
+
metrics:
|
| 586 |
+
- type: acc
|
| 587 |
+
name: 'rsg_rwsd: acc,none; 0-shot (unscaled)'
|
| 588 |
+
value: 0.5147058823529411
|
| 589 |
+
source:
|
| 590 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 591 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 592 |
+
- task:
|
| 593 |
+
type: text-generation
|
| 594 |
+
name: rsg_terra (0-shot)
|
| 595 |
+
dataset:
|
| 596 |
+
type: RussianNLP/russian_super_glue
|
| 597 |
+
name: rsg_terra
|
| 598 |
+
revision: e2ce2b9b11b2c7005531b4fc205f45f4b59cae73
|
| 599 |
+
split: validation
|
| 600 |
+
metrics:
|
| 601 |
+
- type: acc
|
| 602 |
+
name: 'rsg_terra: acc,none; 0-shot (unscaled)'
|
| 603 |
+
value: 0.48534201954397393
|
| 604 |
+
source:
|
| 605 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 606 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 607 |
+
- task:
|
| 608 |
+
type: text-generation
|
| 609 |
+
name: belebele_rus_Cyrl (0-shot)
|
| 610 |
+
dataset:
|
| 611 |
+
type: facebook/belebele
|
| 612 |
+
name: belebele_rus_Cyrl
|
| 613 |
+
split: test
|
| 614 |
+
config: rus_Cyrl
|
| 615 |
+
metrics:
|
| 616 |
+
- type: acc
|
| 617 |
+
name: 'belebele_rus_Cyrl: acc,none; 0-shot (unscaled)'
|
| 618 |
+
value: 0.24888888888888888
|
| 619 |
+
source:
|
| 620 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 621 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 622 |
+
- task:
|
| 623 |
+
type: text-generation
|
| 624 |
+
name: xnli_ru (0-shot)
|
| 625 |
+
dataset:
|
| 626 |
+
type: facebook/xnli
|
| 627 |
+
name: xnli_ru
|
| 628 |
+
revision: b8dd5d7af51114dbda02c0e3f6133f332186418e
|
| 629 |
+
split: validation
|
| 630 |
+
config: ru
|
| 631 |
+
metrics:
|
| 632 |
+
- type: acc
|
| 633 |
+
name: 'xnli_ru: acc,none; 0-shot (unscaled)'
|
| 634 |
+
value: 0.39759036144578314
|
| 635 |
+
source:
|
| 636 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 637 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 638 |
+
- task:
|
| 639 |
+
type: text-generation
|
| 640 |
+
name: xquad_ru (0-shot)
|
| 641 |
+
dataset:
|
| 642 |
+
type: google/xquad
|
| 643 |
+
name: xquad_ru
|
| 644 |
+
revision: 51adfef1c1287aab1d2d91b5bead9bcfb9c68583
|
| 645 |
+
split: validation
|
| 646 |
+
config: xquad.ru
|
| 647 |
+
metrics:
|
| 648 |
+
- type: f1
|
| 649 |
+
name: 'xquad_ru: f1,none; 0-shot (unscaled)'
|
| 650 |
+
value: 0.02652058354691999
|
| 651 |
+
source:
|
| 652 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 653 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 654 |
+
- task:
|
| 655 |
+
type: text-generation
|
| 656 |
+
name: xwinograd_ru (0-shot)
|
| 657 |
+
dataset:
|
| 658 |
+
type: Muennighoff/xwinograd
|
| 659 |
+
name: xwinograd_ru
|
| 660 |
+
split: test
|
| 661 |
+
config: ru
|
| 662 |
+
metrics:
|
| 663 |
+
- type: acc
|
| 664 |
+
name: 'xwinograd_ru: acc,none; 0-shot (unscaled)'
|
| 665 |
+
value: 0.546031746031746
|
| 666 |
+
source:
|
| 667 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 668 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 669 |
+
- task:
|
| 670 |
+
type: text-generation
|
| 671 |
+
name: xstorycloze_ru (0-shot)
|
| 672 |
+
dataset:
|
| 673 |
+
type: juletxara/xstory_cloze
|
| 674 |
+
name: xstorycloze_ru
|
| 675 |
+
split: eval
|
| 676 |
+
config: ru
|
| 677 |
+
metrics:
|
| 678 |
+
- type: acc
|
| 679 |
+
name: 'xstorycloze_ru: acc,none; 0-shot (unscaled)'
|
| 680 |
+
value: 0.5208471211118465
|
| 681 |
+
source:
|
| 682 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 683 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 684 |
+
- task:
|
| 685 |
+
type: text-generation
|
| 686 |
+
name: mgsm_native_cot_ru (8-shot)
|
| 687 |
+
dataset:
|
| 688 |
+
type: juletxara/mgsm
|
| 689 |
+
name: mgsm_native_cot_ru
|
| 690 |
+
split: test
|
| 691 |
+
config: ru
|
| 692 |
+
metrics:
|
| 693 |
+
- type: exact_match
|
| 694 |
+
name: 'mgsm_native_cot_ru: exact_match,flexible-extract; 8-shot (unscaled)'
|
| 695 |
+
value: 0.016
|
| 696 |
+
source:
|
| 697 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 698 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 699 |
+
- task:
|
| 700 |
+
type: text-generation
|
| 701 |
+
name: arc_ru (0-shot)
|
| 702 |
+
dataset:
|
| 703 |
+
type: alexandrainst/m_arc
|
| 704 |
+
name: arc_ru
|
| 705 |
+
split: test
|
| 706 |
+
config: ru
|
| 707 |
+
metrics:
|
| 708 |
+
- type: acc_norm
|
| 709 |
+
name: 'arc_ru: acc_norm,none; 0-shot (unscaled)'
|
| 710 |
+
value: 0.2446535500427716
|
| 711 |
+
source:
|
| 712 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 713 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 714 |
+
- task:
|
| 715 |
+
type: text-generation
|
| 716 |
+
name: hellaswag_ru (0-shot)
|
| 717 |
+
dataset:
|
| 718 |
+
type: alexandrainst/m_hellaswag
|
| 719 |
+
name: hellaswag_ru
|
| 720 |
+
split: val
|
| 721 |
+
config: ru
|
| 722 |
+
metrics:
|
| 723 |
+
- type: acc_norm
|
| 724 |
+
name: 'hellaswag_ru: acc_norm,none; 0-shot (unscaled)'
|
| 725 |
+
value: 0.29227782571182054
|
| 726 |
+
source:
|
| 727 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 728 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 729 |
+
- task:
|
| 730 |
+
type: text-generation
|
| 731 |
+
name: truthfulqa_ru_mc2 (0-shot)
|
| 732 |
+
dataset:
|
| 733 |
+
type: alexandrainst/m_truthfulqa
|
| 734 |
+
name: truthfulqa_ru_mc2
|
| 735 |
+
split: val
|
| 736 |
+
config: ru
|
| 737 |
+
metrics:
|
| 738 |
+
- type: acc
|
| 739 |
+
name: 'truthfulqa_ru_mc2: acc,none; 0-shot (unscaled)'
|
| 740 |
+
value: 0.4753698298393998
|
| 741 |
+
source:
|
| 742 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 743 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 744 |
+
- task:
|
| 745 |
+
type: text-generation
|
| 746 |
+
name: global_piqa_completions_rus_cyrl (0-shot)
|
| 747 |
+
dataset:
|
| 748 |
+
type: mrlbenchmarks/global-piqa-nonparallel
|
| 749 |
+
name: global_piqa_completions_rus_cyrl
|
| 750 |
+
split: test
|
| 751 |
+
config: rus_cyrl
|
| 752 |
+
metrics:
|
| 753 |
+
- type: acc_norm
|
| 754 |
+
name: 'global_piqa_completions_rus_cyrl: acc_norm,none; 0-shot (unscaled)'
|
| 755 |
+
value: 0.64
|
| 756 |
+
source:
|
| 757 |
+
name: Kroha matched 50-task evaluation, vLLM BF16, 2K
|
| 758 |
+
url: https://huggingface.co/d0rj/Kroha-base-dev/blob/main/evaluation.json
|
| 759 |
+
datasets:
|
| 760 |
+
- HPLT/HPLT3.0
|
| 761 |
+
- HuggingFaceBio/FineDNA
|
| 762 |
+
- HuggingFaceFW/finepdfs-edu
|
| 763 |
+
- HuggingFaceFW/fineweb-2
|
| 764 |
+
- HuggingFaceFW/fineweb-edu
|
| 765 |
+
- HuggingFaceTB/finemath
|
| 766 |
+
- OneAdder/hill-mari-book-corpus
|
| 767 |
+
- OneAdder/mari-pdf-corpus
|
| 768 |
+
- OneAdder/meadow-mari-marnii-corpus
|
| 769 |
+
- RafaelUI/ru_science
|
| 770 |
+
- adeshkin/khakas-monolingual-corpus
|
| 771 |
+
- alexantonov/chuvash_mono
|
| 772 |
+
- allenai/dolma3_dolmino_mix-100B-1025
|
| 773 |
+
- codeparrot/codeparrot-clean-train
|
| 774 |
+
- d0rj/SNeG-data-1.0
|
| 775 |
+
- deepvk/cultura_ru_edu
|
| 776 |
+
- epfml/FineWeb2-HQ
|
| 777 |
+
- mlfoundations/dclm-baseline-1.0
|
| 778 |
+
- openbmb/Ultra-FineWeb-L3
|
| 779 |
+
- openbmb/UltraData-Code
|
| 780 |
+
- openbmb/UltraData-Math
|
| 781 |
+
- wikimedia/wikipedia
|
| 782 |
+
---
|
| 783 |
+
|
| 784 |
+
# Kroha-base-dev
|
| 785 |
+
|
| 786 |
+
Training archive for [Kroha-base](https://huggingface.co/d0rj/Kroha-base), a looped
|
| 787 |
+
Gated DeltaNet/attention model. It includes the same Hugging Face decoder and
|
| 788 |
+
the states and history needed to resume MTP training.
|
| 789 |
+
|
| 790 |
+
The decoder has 71,685,712 parameters. MTP adds a 3,939,968-parameter block and
|
| 791 |
+
shares the embedding and output head. Its objective is `CE(t+1) + 0.3 × CE(t+2)`,
|
| 792 |
+
plus router balancing loss. See the main model card for architecture, curriculum
|
| 793 |
+
and tokenizer details.
|
| 794 |
+
|
| 795 |
+
Archive contents:
|
| 796 |
+
|
| 797 |
+
| Artifact | Contents |
|
| 798 |
+
|---|---|
|
| 799 |
+
| Root HF model | The same decoder weights and tokenizer as the matching main-model revision |
|
| 800 |
+
| `configuration_kroha.py`, `modeling_kroha.py` | The two complete Python files used by HF AutoClasses |
|
| 801 |
+
| Training checkpoints | [Pretrain](./checkpoints/pretrain.tar.gz), [Powerup 2×](./checkpoints/powerup_2x.tar.gz), [Powerup 8×](./checkpoints/powerup_8x.tar.gz), including original configuration and code files |
|
| 802 |
+
| `train_state.pt` inside each checkpoint | MTP weights, Muon and AdamW state, schedule, RNG state, counters and exact data cursor |
|
| 803 |
+
| [TensorBoard event files](https://huggingface.co/d0rj/Kroha-base-dev/tree/main/tensorboard) | Original logs from all three stages, grouped by stage |
|
| 804 |
+
| Training records | Profiles, corpus/tokenizer manifests, metrics and source revisions |
|
| 805 |
+
| [Code and environment](https://huggingface.co/d0rj/Kroha-base-dev/tree/main/code) | Training code, serving adapters, package versions and patched SonicMoE/Quack sources |
|
| 806 |
+
| [Release manifest](./release-manifest.json) | File checksums, checkpoint identities and correspondence with the main repository |
|
| 807 |
+
|
| 808 |
+
Checkpoint archives preserve the original implementation names and resume
|
| 809 |
+
contracts byte for byte. The root HF model uses the public `_kroha.py` names and
|
| 810 |
+
supports causal generation through `AutoModelForCausalLM`. Restore MTP with the
|
| 811 |
+
training checkpoint and its matching code.
|
| 812 |
+
|
| 813 |
+
To resume, restore the checkpoint in its stage's run directory and use the
|
| 814 |
+
archived recipe, environment and matching tokenized curriculum. The manifests fix
|
| 815 |
+
tokenizer identity, global batch boundaries and the next batch to consume. For
|
| 816 |
+
CPT, record the new dataset and schedule and retain the intended model and
|
| 817 |
+
optimizer states.
|
| 818 |
+
|
| 819 |
+
Extraction and TensorBoard commands: [RESTORE.md](./RESTORE.md).
|
| 820 |
+
|
| 821 |
+
## Evaluation
|
| 822 |
+
|
| 823 |
+
<details>
|
| 824 |
+
<summary>Evaluation · scores × 100</summary>
|
| 825 |
+
|
| 826 |
+
| Evaluation slice | Tasks | Kroha-base · 71.69M | cRia-75M (benchmark-adapted) | GPT-X3-150M | Supra2-100M-Base | GPT-2 Small 124M |
|
| 827 |
+
|---|---:|---:|---:|---:|---:|---:|
|
| 828 |
+
| Mean50 | 50 | 32.3743 | — | — | — | — |
|
| 829 |
+
| Russian | 23 | 35.3759 | — | — | — | — |
|
| 830 |
+
| English | 27 | 29.8174 | — | — | — | — |
|
| 831 |
+
| Original Mean26 | 26 | 30.5285 | 34.9430 | 36.6805 | 32.6863 | 30.3616 |
|
| 832 |
+
| English/Russian suite | 26 | 33.6887 | — | — | — | — |
|
| 833 |
+
|
| 834 |
+
| Benchmark | Lang. | Primary metric / filter | Shots | Examples | Kroha-base · 71.69M | cRia-75M (benchmark-adapted) | GPT-X3-150M | Supra2-100M-Base | GPT-2 Small 124M |
|
| 835 |
+
|---|---|---|---:|---:|---:|---:|---:|---:|---:|
|
| 836 |
+
| `arc_challenge` | EN | `acc_norm,none` | 0 | 1,172 | 22.6109 | 30.4608 | 31.6553 | 24.5734 | 22.5256 |
|
| 837 |
+
| `arc_easy` | EN | `acc_norm,none` | 0 | 2,376 | 36.8266 | 58.3333 | 59.5539 | 47.7273 | 39.6465 |
|
| 838 |
+
| `arithmark3` | EN | `acc_norm,none` | 0 | 1,000 | 33.8000 | 37.1000 | 51.6000 | 37.5000 | 35.6000 |
|
| 839 |
+
| `balanced_copa` | EN | `acc,none` | 0 | 1,000 | 52.7000 | 58.7000 | 60.1000 | 57.8000 | 55.4000 |
|
| 840 |
+
| `blimp` | EN | `acc,none` | 0 | 67,000 | 74.4164 | 80.3806 | 79.8060 | 80.9075 | 83.3373 |
|
| 841 |
+
| `boolq` | EN | `acc,none` | 0 | 3,270 | 60.5505 | 53.9755 | 58.3180 | 61.7125 | 49.9388 |
|
| 842 |
+
| `commonsense_qa` | EN | `acc,none` | 0 | 1,221 | 20.6388 | 20.4750 | 21.2940 | 21.2940 | 19.5741 |
|
| 843 |
+
| `hellaswag` | EN | `acc_norm,none` | 0 | 10,042 | 29.4463 | 39.0161 | 45.9669 | 35.9988 | 31.2189 |
|
| 844 |
+
| `lambada_openai` | EN | `acc,none` | 0 | 5,153 | 25.9266 | 38.3272 | 36.7553 | 35.6491 | 30.6229 |
|
| 845 |
+
| `mmlu_continuation` | EN | `acc,none` | 0 | 14,042 | 24.6689 | 26.6629 | 28.6498 | 26.9833 | 25.2101 |
|
| 846 |
+
| `openbookqa` | EN | `acc_norm,none` | 0 | 500 | 26.0000 | 33.8000 | 34.4000 | 32.0000 | 27.0000 |
|
| 847 |
+
| `piqa` | EN | `acc_norm,none` | 0 | 1,838 | 55.5495 | 64.6899 | 71.1099 | 65.1251 | 63.4385 |
|
| 848 |
+
| `sciq` | EN | `acc_norm,none` | 0 | 1,000 | 68.7000 | 89.9000 | 80.1000 | 70.8000 | 63.9000 |
|
| 849 |
+
| `truthfulqa_mc2` | EN | `acc,none` | 0 | 817 | 43.0944 | 41.7106 | 40.0322 | 40.7490 | 40.6980 |
|
| 850 |
+
| `winogrande` | EN | `acc,none` | 0 | 1,267 | 50.7498 | 52.5651 | 53.7490 | 51.2234 | 50.8287 |
|
| 851 |
+
| `bananamind_base` | EN | `raw_accuracy,none` | 0 | 350 | 52.0000 | 60.5714 | 66.2857 | 56.5714 | 51.4286 |
|
| 852 |
+
| `social_iqa` | EN | `acc,none` | 0 | 1,954 | 36.7963 | 40.6346 | 38.9969 | 38.3828 | 36.5404 |
|
| 853 |
+
| `race` | EN | `acc,none` | 0 | 1,045 | 26.2201 | 30.7177 | 33.5885 | 30.1435 | 29.6651 |
|
| 854 |
+
| `mmlu` | EN | `acc,none` | 5 | 14,042 | 26.2641 | 25.5804 | 25.3169 | 25.1389 | 26.2926 |
|
| 855 |
+
| `triviaqa` | EN | `exact_match,remove_whitespace` | 0 | 17,944 | 0.3511 | 4.8373 | 2.2849 | 1.1313 | 0.3622 |
|
| 856 |
+
| `gsm8k` | EN | `exact_match,flexible-extract` | 5 | 1,319 | 1.8196 | 1.9712 | 4.9280 | 1.1372 | 1.2130 |
|
| 857 |
+
| `hendrycks_math500` | EN | `exact_match,none` | 0 | 500 | 0.2000 | 0.0000 | 1.6000 | 0.4000 | 0.2000 |
|
| 858 |
+
| `bbh` | EN | `exact_match,get-answer` | 3 | 6,511 | 20.4884 | 17.9082 | 23.5141 | 6.8960 | 4.7612 |
|
| 859 |
+
| `humaneval` | EN | `pass@1,create_test` | 0 | 164 | 3.6585 | 0.0000 | 1.8293 | 0.0000 | 0.0000 |
|
| 860 |
+
| `mbpp` | EN | `pass_at_1,none` | 3 | 500 | 0.0000 | 0.2000 | 1.2000 | 0.0000 | 0.0000 |
|
| 861 |
+
| `mbpp_plus` | EN | `pass_at_1,none` | 3 | 378 | 0.2646 | 0.0000 | 1.0582 | 0.0000 | 0.0000 |
|
| 862 |
+
| `mmlu_pro_mc0` | EN | `acc,none` | 0 | 12,032 | 11.3281 | — | — | — | — |
|
| 863 |
+
| `global_mmlu_full_ru` | RU | `acc,none` | 5 | 14,042 | 26.4706 | — | — | — | — |
|
| 864 |
+
| `mmlu_prox_ru_mc0` | RU | `acc,none` | 0 | 11,759 | 11.3190 | — | — | — | — |
|
| 865 |
+
| `mera_rummlu_mc0` | RU | `acc,none` | 0 | 14,012 | 23.1088 | — | — | — | — |
|
| 866 |
+
| `include_base_44_russian` | RU | `acc,none` | 0 | 552 | 28.0797 | — | — | — | — |
|
| 867 |
+
| `rublimp_sum_ll` | RU | `acc,none` | 0 | 45,000 | 91.9889 | — | — | — | — |
|
| 868 |
+
| `rucola_dev` | RU | `mcc,none` | 0 | 2,787 | 0.2638 | — | — | — | — |
|
| 869 |
+
| `sberquad_dev` | RU | `f1,none` | 0 | 5,036 | 7.8481 | — | — | — | — |
|
| 870 |
+
| `rsg_danetqa` | RU | `acc,none` | 0 | 821 | 48.9647 | — | — | — | — |
|
| 871 |
+
| `rsg_parus` | RU | `acc,none` | 0 | 100 | 64.0000 | — | — | — | — |
|
| 872 |
+
| `rsg_rcb` | RU | `acc,none` | 0 | 220 | 32.2727 | — | — | — | — |
|
| 873 |
+
| `rsg_russe` | RU | `acc,none` | 0 | 8,505 | 38.5068 | — | — | — | — |
|
| 874 |
+
| `rsg_rwsd` | RU | `acc,none` | 0 | 204 | 51.4706 | — | — | — | — |
|
| 875 |
+
| `rsg_terra` | RU | `acc,none` | 0 | 307 | 48.5342 | — | — | — | — |
|
| 876 |
+
| `belebele_rus_Cyrl` | RU | `acc,none` | 0 | 900 | 24.8889 | — | — | — | — |
|
| 877 |
+
| `xnli_ru` | RU | `acc,none` | 0 | 2,490 | 39.7590 | — | — | — | — |
|
| 878 |
+
| `xquad_ru` | RU | `f1,none` | 0 | 1,190 | 2.6521 | — | — | — | — |
|
| 879 |
+
| `xwinograd_ru` | RU | `acc,none` | 0 | 315 | 54.6032 | — | — | — | — |
|
| 880 |
+
| `xstorycloze_ru` | RU | `acc,none` | 0 | 1,511 | 52.0847 | — | — | — | — |
|
| 881 |
+
| `mgsm_native_cot_ru` | RU | `exact_match,flexible-extract` | 8 | 250 | 1.6000 | — | — | — | — |
|
| 882 |
+
| `arc_ru` | RU | `acc_norm,none` | 0 | 1,169 | 24.4654 | — | — | — | — |
|
| 883 |
+
| `hellaswag_ru` | RU | `acc_norm,none` | 0 | 9,272 | 29.2278 | — | — | — | — |
|
| 884 |
+
| `truthfulqa_ru_mc2` | RU | `acc,none` | 0 | 788 | 47.5370 | — | — | — | — |
|
| 885 |
+
| `global_piqa_completions_rus_cyrl` | RU | `acc_norm,none` | 0 | 100 | 64.0000 | — | — | — | — |
|
| 886 |
+
|
| 887 |
+
</details>
|
| 888 |
+
|
| 889 |
+
## Inference adapters
|
| 890 |
+
|
| 891 |
+
Install the [vLLM](https://github.com/d0rj/kroha-vllm) or
|
| 892 |
+
[SGLang](https://github.com/d0rj/kroha-vllm/tree/main/sglang) adapter in a separate
|
| 893 |
+
environment, following its README.
|
| 894 |
+
|
| 895 |
+
Prefix reuse, quantization, speculative decoding and CUDA graphs are untested.
|
RESTORE.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Restore training artifacts
|
| 2 |
+
|
| 3 |
+
Download the development repository:
|
| 4 |
+
|
| 5 |
+
```bash
|
| 6 |
+
hf download d0rj/Kroha-base-dev --local-dir Kroha-base-dev
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
Extract the training code and the three completed checkpoints:
|
| 10 |
+
|
| 11 |
+
```bash
|
| 12 |
+
tar -xzf Kroha-base-dev/code/training-code.tar.gz
|
| 13 |
+
mkdir -p tiny_llm/runs/kroha-routed-norm-mtp-curriculum-36b-v1
|
| 14 |
+
for stage in pretrain powerup_2x powerup_8x; do
|
| 15 |
+
tar -xzf "Kroha-base-dev/checkpoints/${stage}.tar.gz" \
|
| 16 |
+
-C tiny_llm/runs/kroha-routed-norm-mtp-curriculum-36b-v1
|
| 17 |
+
done
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
Each checkpoint contains decoder and MTP weights, Muon/AdamW states, scheduler,
|
| 21 |
+
CPU/CUDA/Python/NumPy RNG states and the next global-batch cursor. All three
|
| 22 |
+
stages have finished; additional pretraining or CPT needs a new data budget and
|
| 23 |
+
schedule.
|
| 24 |
+
|
| 25 |
+
`code/requirements-training.txt` records the installed training packages.
|
| 26 |
+
`code/runtime-sources.tar.gz` contains the exact SonicMoE and patched Quack
|
| 27 |
+
sources under `site-packages/`, with their original license notices. Restore
|
| 28 |
+
them into the training environment after installing its dependencies. The
|
| 29 |
+
original launcher expects `.venv-kroha-moe-20261106` and CUDA 13.3; see
|
| 30 |
+
`scripts/kroha_sonic_env.sh` in the code snapshot.
|
| 31 |
+
|
| 32 |
+
Exact replay also requires the original tokenized curriculum under
|
| 33 |
+
`tiny_llm/data/kroha-curriculum-36b-v1`. Its manifests, tokenizer and provenance
|
| 34 |
+
records are in `training/data-provenance.tar.gz`; corpus shards are not included.
|
| 35 |
+
After restoring the corpus and environment, inspect the saved recipe with:
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
cd tiny_llm
|
| 39 |
+
bash scripts/train_kroha_curriculum.sh powerup_8x --mtp --dry-run
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
From the extracted `tiny_llm` directory, view the original TensorBoard logs:
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
tensorboard --logdir ../Kroha-base-dev/tensorboard --port 6006
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
File hashes and checkpoint identities are listed in `release-manifest.json`.
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if not messages %}{{ raise_exception('A conversation must contain at least one message') }}{% endif -%}
|
| 2 |
+
{%- if tools -%}
|
| 3 |
+
{{- '<|im_start|>system\nAvailable tools are described by the following JSON schemas. To call a tool, emit <tool_call>{"id":"call_0","name":"tool_name","arguments":{}}</tool_call>. Use a unique id for every call. Wait for matching tool results before continuing. Call tools only when needed.\n' -}}
|
| 4 |
+
{{- tools | tojson(sort_keys=true) -}}
|
| 5 |
+
{{- '<|im_end|>\n' -}}
|
| 6 |
+
{%- endif -%}
|
| 7 |
+
{%- set state = namespace(pending={}, seen=[]) -%}
|
| 8 |
+
{%- for message in messages -%}
|
| 9 |
+
{%- set mi = loop.index0 -%}
|
| 10 |
+
{%- set role = message['role'] -%}
|
| 11 |
+
{%- if role not in ['system', 'developer', 'user', 'assistant', 'tool'] -%}
|
| 12 |
+
{{- raise_exception('Unknown message role') -}}
|
| 13 |
+
{%- endif -%}
|
| 14 |
+
{%- if state.pending and role != 'tool' -%}
|
| 15 |
+
{{- raise_exception('Unresolved tool calls before next conversation turn') -}}
|
| 16 |
+
{%- endif -%}
|
| 17 |
+
{%- set content = message.get('content') if message.get('content') is not none else '' -%}
|
| 18 |
+
{%- if content is not string -%}{{ raise_exception('Text content required') }}{%- endif -%}
|
| 19 |
+
{%- if role != 'assistant' and (message.get('reasoning_content') or message.get('tool_calls')) -%}
|
| 20 |
+
{{- raise_exception('Only assistant can contain reasoning/tool_calls') -}}
|
| 21 |
+
{%- endif -%}
|
| 22 |
+
{%- set header = role -%}
|
| 23 |
+
{%- if role == 'tool' -%}
|
| 24 |
+
{%- set call_id = message.get('tool_call_id') -%}
|
| 25 |
+
{%- if call_id not in state.pending -%}{{ raise_exception('Orphan or duplicate tool result') }}{%- endif -%}
|
| 26 |
+
{%- set name = state.pending[call_id] -%}
|
| 27 |
+
{%- if message.get('name', name) != name -%}{{ raise_exception('Tool result name mismatch') }}{%- endif -%}
|
| 28 |
+
{%- set state.pending = dict(state.pending.items() | rejectattr('0', 'equalto', call_id)) -%}
|
| 29 |
+
{%- set header = 'tool name=' + name + ' tool_call_id=' + call_id -%}
|
| 30 |
+
{%- endif -%}
|
| 31 |
+
{{- '<|im_start|>' + header + '\n' -}}
|
| 32 |
+
{%- if role == 'assistant' -%}
|
| 33 |
+
{% generation %}
|
| 34 |
+
{%- if message.get('reasoning_content') -%}
|
| 35 |
+
{{- '<think>' + message['reasoning_content'] + '</think>' -}}
|
| 36 |
+
{%- endif -%}
|
| 37 |
+
{{- content -}}
|
| 38 |
+
{%- for call in message.get('tool_calls') or [] -%}
|
| 39 |
+
{%- set name = call['function']['name'] -%}
|
| 40 |
+
{%- set arguments = call['function'].get('arguments', {}) -%}
|
| 41 |
+
{%- set call_id = call.get('id', 'call_' + mi|string + '_' + loop.index0|string) -%}
|
| 42 |
+
{%- if arguments is not mapping -%}{{ raise_exception('Normalize arguments to an object before templating') }}{%- endif -%}
|
| 43 |
+
{%- if name is not string or call_id is not string or not name or not call_id -%}
|
| 44 |
+
{{- raise_exception('Function name and call id must be nonempty strings') -}}
|
| 45 |
+
{%- endif -%}
|
| 46 |
+
{%- if name|length > 128 or call_id|length > 64 or name[0] not in 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_' -%}
|
| 47 |
+
{{- raise_exception('Invalid function name or call id') -}}
|
| 48 |
+
{%- endif -%}
|
| 49 |
+
{%- for char in name -%}
|
| 50 |
+
{%- if char not in 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.:-' -%}
|
| 51 |
+
{{- raise_exception('Invalid function name') -}}
|
| 52 |
+
{%- endif -%}
|
| 53 |
+
{%- endfor -%}
|
| 54 |
+
{%- for char in call_id -%}
|
| 55 |
+
{%- if char not in 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-' -%}
|
| 56 |
+
{{- raise_exception('Invalid tool call id') -}}
|
| 57 |
+
{%- endif -%}
|
| 58 |
+
{%- endfor -%}
|
| 59 |
+
{%- if call_id in state.seen -%}{{ raise_exception('Duplicate tool call id') }}{%- endif -%}
|
| 60 |
+
{%- set state.seen = state.seen + [call_id] -%}
|
| 61 |
+
{%- set state.pending = dict(state.pending, **{call_id: name}) -%}
|
| 62 |
+
{{- '<tool_call>' -}}
|
| 63 |
+
{{- {'id': call_id, 'name': name, 'arguments': arguments} | tojson(sort_keys=true) -}}
|
| 64 |
+
{{- '</tool_call>' -}}
|
| 65 |
+
{%- endfor -%}
|
| 66 |
+
{{- '<|im_end|>' -}}
|
| 67 |
+
{% endgeneration %}
|
| 68 |
+
{%- else -%}
|
| 69 |
+
{{- content + '<|im_end|>' -}}
|
| 70 |
+
{%- endif -%}
|
| 71 |
+
{{- '\n' -}}
|
| 72 |
+
{%- endfor -%}
|
| 73 |
+
{%- if add_generation_prompt -%}
|
| 74 |
+
{%- if state.pending -%}{{ raise_exception('Cannot generate before tool results arrive') }}{%- endif -%}
|
| 75 |
+
{{- '<|im_start|>assistant\n' -}}
|
| 76 |
+
{%- if enable_thinking | default(false) -%}{{ '<think>' }}{%- endif -%}
|
| 77 |
+
{%- endif -%}
|
checkpoints/powerup_2x.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3be957ec7fce3324d20d30e4290a8013ab56559b16c030bdb19016001d4b81b8
|
| 3 |
+
size 698127762
|
checkpoints/powerup_8x.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:880cf7aa13927e0bec1c1268cdc37c46e954c26fbe0a229fdc03219828050bbd
|
| 3 |
+
size 698823583
|
checkpoints/pretrain.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca18924b7001d7730cc59d22cf012ac196a0e3f83430972b70dbd6189bb35c9c
|
| 3 |
+
size 697955705
|
code/requirements-training.txt
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
absl-py==2.5.1
|
| 2 |
+
aiohappyeyeballs==2.7.1
|
| 3 |
+
aiohttp==3.14.5
|
| 4 |
+
aiosignal==1.4.0
|
| 5 |
+
annotated-doc==0.0.5
|
| 6 |
+
anyio==4.16.0
|
| 7 |
+
apache-tvm-ffi==0.1.15.post2
|
| 8 |
+
attrs==26.1.0
|
| 9 |
+
certifi==2026.10.23
|
| 10 |
+
charset-normalizer==3.5.2
|
| 11 |
+
click==8.5.0
|
| 12 |
+
cuda-bindings==12.9.7
|
| 13 |
+
cuda-pathfinder==1.6.0
|
| 14 |
+
cuda-toolkit==12.8.1
|
| 15 |
+
datasets==5.0.1
|
| 16 |
+
dill==0.4.1
|
| 17 |
+
einops==0.8.2
|
| 18 |
+
filelock==4.2.4
|
| 19 |
+
fla-core==0.5.2
|
| 20 |
+
flash-attn-4==4.0.0b35
|
| 21 |
+
frozenlist==1.8.0
|
| 22 |
+
fsspec==2026.6.0
|
| 23 |
+
grpcio==1.85.1
|
| 24 |
+
h11==0.16.0
|
| 25 |
+
hf-xet==1.8.0
|
| 26 |
+
httpcore==1.0.9
|
| 27 |
+
httpx==0.28.1
|
| 28 |
+
huggingface_hub==1.33.0
|
| 29 |
+
idna==3.20
|
| 30 |
+
iniconfig==2.3.1
|
| 31 |
+
Jinja2==3.1.6
|
| 32 |
+
Markdown==3.11.3
|
| 33 |
+
markdown-it-py==4.2.0
|
| 34 |
+
MarkupSafe==3.0.3
|
| 35 |
+
mdurl==0.1.2
|
| 36 |
+
mpmath==1.3.0
|
| 37 |
+
multidict==7.2.1
|
| 38 |
+
multiprocess==0.70.19
|
| 39 |
+
networkx==3.7
|
| 40 |
+
numpy==2.5.3
|
| 41 |
+
nvidia-cublas==13.1.0.3
|
| 42 |
+
nvidia-cublas-cu12==12.8.4.1
|
| 43 |
+
nvidia-cuda-cupti==13.0.85
|
| 44 |
+
nvidia-cuda-cupti-cu12==12.8.90
|
| 45 |
+
nvidia-cuda-nvrtc==13.0.88
|
| 46 |
+
nvidia-cuda-nvrtc-cu12==12.8.93
|
| 47 |
+
nvidia-cuda-runtime==13.0.96
|
| 48 |
+
nvidia-cuda-runtime-cu12==12.8.90
|
| 49 |
+
nvidia-cudnn-cu12==9.19.0.56
|
| 50 |
+
nvidia-cudnn-cu13==9.19.0.56
|
| 51 |
+
nvidia-cufft==12.0.0.61
|
| 52 |
+
nvidia-cufft-cu12==11.3.3.83
|
| 53 |
+
nvidia-cufile==1.15.1.6
|
| 54 |
+
nvidia-cufile-cu12==1.13.1.3
|
| 55 |
+
nvidia-curand==10.4.0.35
|
| 56 |
+
nvidia-curand-cu12==10.3.9.90
|
| 57 |
+
nvidia-cusolver==12.0.4.66
|
| 58 |
+
nvidia-cusolver-cu12==11.7.3.90
|
| 59 |
+
nvidia-cusparse==12.6.3.3
|
| 60 |
+
nvidia-cusparse-cu12==12.5.8.93
|
| 61 |
+
nvidia-cusparselt-cu12==0.7.1
|
| 62 |
+
nvidia-cusparselt-cu13==0.8.0
|
| 63 |
+
nvidia-cutlass-dsl==4.8.0
|
| 64 |
+
nvidia-cutlass-dsl-libs-base==4.8.0
|
| 65 |
+
nvidia-cutlass-dsl-libs-core==4.8.0
|
| 66 |
+
nvidia-cutlass-dsl-libs-cu12==4.8.0
|
| 67 |
+
nvidia-cutlass-dsl-libs-cu13==4.8.0
|
| 68 |
+
nvidia-nccl-cu12==2.28.9
|
| 69 |
+
nvidia-nccl-cu13==2.28.9
|
| 70 |
+
nvidia-nvjitlink==13.0.88
|
| 71 |
+
nvidia-nvjitlink-cu12==12.8.93
|
| 72 |
+
nvidia-nvshmem-cu12==3.4.5
|
| 73 |
+
nvidia-nvshmem-cu13==3.4.5
|
| 74 |
+
nvidia-nvtx==13.0.85
|
| 75 |
+
nvidia-nvtx-cu12==12.8.90
|
| 76 |
+
packaging==26.3
|
| 77 |
+
pandas==3.1.1
|
| 78 |
+
parameterized==0.9.0
|
| 79 |
+
pillow==13.0.0
|
| 80 |
+
pip==26.3
|
| 81 |
+
pluggy==1.7.0
|
| 82 |
+
propcache==0.5.4
|
| 83 |
+
protobuf==7.36.2
|
| 84 |
+
pyarrow==25.0.1
|
| 85 |
+
Pygments==2.21.0
|
| 86 |
+
pytest==9.2.0
|
| 87 |
+
python-dateutil==4.0.0
|
| 88 |
+
PyYAML==6.0.3
|
| 89 |
+
quack-kernels==0.6.5
|
| 90 |
+
regex==2026.9.29
|
| 91 |
+
requests==2.34.2
|
| 92 |
+
rich==15.0.0
|
| 93 |
+
safetensors==0.8.0
|
| 94 |
+
setuptools==78.1.0
|
| 95 |
+
shellingham==1.5.4
|
| 96 |
+
sonic-moe==0.1.2.post1
|
| 97 |
+
sympy==1.14.0
|
| 98 |
+
tensorboard==2.20.0
|
| 99 |
+
tensorboard-data-server==0.7.2
|
| 100 |
+
tokenizers==0.23.2
|
| 101 |
+
torch==2.11.0+cu128
|
| 102 |
+
torch_c_dlpack_ext==0.1.5
|
| 103 |
+
tqdm==4.70.1
|
| 104 |
+
transformers==5.17.0
|
| 105 |
+
triton==3.6.0
|
| 106 |
+
typer==0.28.0
|
| 107 |
+
typing_extensions==4.16.0
|
| 108 |
+
tzdata==2026.6
|
| 109 |
+
urllib3==2.8.0
|
| 110 |
+
Werkzeug==3.1.9
|
| 111 |
+
xxhash==4.0.2
|
| 112 |
+
yarl==1.25.1
|
code/runtime-sources.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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",
|
| 5 |
+
"revision": "7396f3e604827d8186c2e16e64b28ee33d3defd0",
|
| 6 |
+
"sources": {
|
| 7 |
+
"sonicmoe/__init__.py": "3f3f19d7cc6a743e4553e1e86137f320f310c3e0753d627d23463f95bc85260d",
|
| 8 |
+
"sonicmoe/enums.py": "2ad1f833809a16ffc6bac4a366bd3bace7cef52c7955cd8054e450b0f04c342d",
|
| 9 |
+
"sonicmoe/functional/__init__.py": "af41a42d8fe5722615a4a1f2ce4157c992ef1fff4aaadc7fc9adec9097800a35",
|
| 10 |
+
"sonicmoe/functional/backward.py": "da559f5d342d01bb7f0c3602804d135ccbf273028085795a1f0e1d7e274c2e64",
|
| 11 |
+
"sonicmoe/functional/forward.py": "ab81bd844e862a200cb89beebac021f73b6347906fe970b95a31456a17d7459a",
|
| 12 |
+
"sonicmoe/functional/reduction_over_k_gather.py": "7c16136876c74d7a65ee2d9db49d489cd221d0f229c5f13ee889af3e835c39a5",
|
| 13 |
+
"sonicmoe/functional/topk.py": "c3fcc7e28466a60dd164890ea259bc438a6d4171ec6fa6bdd35f63537fed0fba",
|
| 14 |
+
"sonicmoe/functional/triton_kernels/__init__.py": "d84e207b63f5b44692e7ddec7b23ecdcaa55f9c104da10200d83b42cf47d9501",
|
| 15 |
+
"sonicmoe/functional/triton_kernels/bitmatrix.py": "909f9522bd3b9f47b8f3e5d01d28106cb9e671180567dd4cdcd214c4d3788702",
|
| 16 |
+
"sonicmoe/jit.py": "a64a3b2e4b6d91a6fed180d49176c000ddc8ff232f4e7c3b7768c913ace697e8",
|
| 17 |
+
"sonicmoe/moe.py": "2433ad3f03619dafdeda8a36a294b38ab738e44e859b83505065e1297bc1493d",
|
| 18 |
+
"sonicmoe/utils.py": "9a081b4a94981502094f262071c9e0badfd278ad80a897d25cbd7f08c67c5723"
|
| 19 |
+
},
|
| 20 |
+
"quack_patch_sha256": "d800420389640b22322f185ab778df74e9b0ab429dd6c8ff9a393c9176b29e80",
|
| 21 |
+
"packages": {
|
| 22 |
+
"torch": "2.11.0+cu128",
|
| 23 |
+
"transformers": "5.17.0",
|
| 24 |
+
"triton": "3.6.0",
|
| 25 |
+
"quack-kernels": "0.6.5",
|
| 26 |
+
"nvidia-cutlass-dsl": "4.8.0",
|
| 27 |
+
"sonic-moe": "0.1.2.post1"
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"files_sha256": {
|
| 31 |
+
"sonic_moe-0.1.2.post1.dist-info/METADATA": "1704eea268876e2a28b9b3e305a0b37f4da7b854abd6f72726f76be61ace2270",
|
| 32 |
+
"sonic_moe-0.1.2.post1.dist-info/licenses/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 33 |
+
"sonicmoe/__init__.py": "3f3f19d7cc6a743e4553e1e86137f320f310c3e0753d627d23463f95bc85260d",
|
| 34 |
+
"sonicmoe/enums.py": "2ad1f833809a16ffc6bac4a366bd3bace7cef52c7955cd8054e450b0f04c342d",
|
| 35 |
+
"sonicmoe/functional/__init__.py": "af41a42d8fe5722615a4a1f2ce4157c992ef1fff4aaadc7fc9adec9097800a35",
|
| 36 |
+
"sonicmoe/functional/backward.py": "da559f5d342d01bb7f0c3602804d135ccbf273028085795a1f0e1d7e274c2e64",
|
| 37 |
+
"sonicmoe/functional/forward.py": "ab81bd844e862a200cb89beebac021f73b6347906fe970b95a31456a17d7459a",
|
| 38 |
+
"sonicmoe/functional/reduction_over_k_gather.py": "7c16136876c74d7a65ee2d9db49d489cd221d0f229c5f13ee889af3e835c39a5",
|
| 39 |
+
"sonicmoe/functional/topk.py": "c3fcc7e28466a60dd164890ea259bc438a6d4171ec6fa6bdd35f63537fed0fba",
|
| 40 |
+
"sonicmoe/functional/triton_kernels/__init__.py": "d84e207b63f5b44692e7ddec7b23ecdcaa55f9c104da10200d83b42cf47d9501",
|
| 41 |
+
"sonicmoe/functional/triton_kernels/bitmatrix.py": "909f9522bd3b9f47b8f3e5d01d28106cb9e671180567dd4cdcd214c4d3788702",
|
| 42 |
+
"sonicmoe/jit.py": "a64a3b2e4b6d91a6fed180d49176c000ddc8ff232f4e7c3b7768c913ace697e8",
|
| 43 |
+
"sonicmoe/moe.py": "2433ad3f03619dafdeda8a36a294b38ab738e44e859b83505065e1297bc1493d",
|
| 44 |
+
"sonicmoe/utils.py": "9a081b4a94981502094f262071c9e0badfd278ad80a897d25cbd7f08c67c5723",
|
| 45 |
+
"quack/__init__.py": "859eb6db91b5b8768afc71e7832c4d65d923c09e7f6056633446fac0d99ebceb",
|
| 46 |
+
"quack/activation.py": "d800420389640b22322f185ab778df74e9b0ab429dd6c8ff9a393c9176b29e80",
|
| 47 |
+
"quack/autotuner.py": "9b2cc53aeea24db73e8a8f2df67b1be409d4e38ce51e670426c9205220b4cf2e",
|
| 48 |
+
"quack/bench/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 49 |
+
"quack/bench/bench_utils.py": "3997c7627625891efea35a5a11d6a4750f184b6db24a73b03e3c31bb07d7a711",
|
| 50 |
+
"quack/bench/cublaslt_quant_out.py": "2ed9345b849288bac54004dc0c6abbb8acdcedb51605f75f1a57609b3a59be03",
|
| 51 |
+
"quack/blockscaled/__init__.py": "3ba8fd80bbf8ccd486dca5fa3837d3b97a63d92e217c24a998863a8c73a83ba1",
|
| 52 |
+
"quack/blockscaled/nvfp4_utils.py": "c641fdac95fd589f9f9e5f2cac2d7969ce57f2cd155192c7cf4455498f575516",
|
| 53 |
+
"quack/blockscaled/operand.py": "8b1af37f41ee660151899ca36ca760ce3014325a6afa91845cc13bff8ee714a7",
|
| 54 |
+
"quack/blockscaled/quantize.py": "1e435bc8874dd540bd266a6754217802885e7a06b1c5acb680f51432be710275",
|
| 55 |
+
"quack/blockscaled/quantize_utils.py": "3a06f2cf974eada8f1bb50e6aa053e7438525a110ca18444218abf688db089af",
|
| 56 |
+
"quack/blockscaled/utils.py": "9af5d38ce436dbbecaaca71a75e730c16134cfa3c84e53c755f5169e4d7cee5b",
|
| 57 |
+
"quack/broadcast_utils.py": "33b2acbf0f8641293028aedd86b3c1beeb2007a4aad2aafade87f856c10e6b6d",
|
| 58 |
+
"quack/cache/__init__.py": "3e19dc7f6eecd30e087e7052189666e49ebbc4432ba38092f374e688e9c81079",
|
| 59 |
+
"quack/cache/_pool_preload.py": "d02ea3b6345048e15c3c0b2033e529dac626941a3481dbedc7abb956720af7df",
|
| 60 |
+
"quack/cache/async_compile.py": "249c927410503016c5cbc6f4ecc376a51bd856c729e8e5e123ce43a67c8af61b",
|
| 61 |
+
"quack/cache/jit.py": "09a1d8f626d31500e175556b3cd8f68dfc60599cf102f1df9c22aac781ac7193",
|
| 62 |
+
"quack/compile_utils.py": "9d708639188592d22ab1fc98370d66ebd9ebf08cba88b6673fcfb1d07b214321",
|
| 63 |
+
"quack/complex.py": "5a660d75ef55dd90cb68eb7bb6d0a78c7e03c5a85a9f8f8fbcb7e81c71d4fa3a",
|
| 64 |
+
"quack/copy_utils.py": "99b43655339c99aa6c0e74fad94ba9904c21a5065deed7f4f36281c0b26d25b0",
|
| 65 |
+
"quack/cross_entropy.py": "e69483657c1272bb3b2ef7ea5839f9e81f64ebd1b1a03966158b46d3ace12fe0",
|
| 66 |
+
"quack/cute_dsl_utils.py": "2bd1b37789b31962ab2d2fb15e1a08a6a2f5568adfca573419a746ed81f3d5c7",
|
| 67 |
+
"quack/distributed/__init__.py": "c4a337dca09fbfd544360a7cc90f66b2255806ffc191fed016687b6b2f61300e",
|
| 68 |
+
"quack/distributed/all_gather_gemm.py": "85e82db46f4dad34383a6daed91cacdf4ad9e0a5db754f01ade9dd0910126fd7",
|
| 69 |
+
"quack/dsl/__init__.py": "d7703f7c338ff342e19c996938f87a54e359d0d62de7a671890ff0a692fce602",
|
| 70 |
+
"quack/dsl/cute_dsl_ptxas.py": "8db6a6e9f530ce6e17e4265cdbd2debe5597040cdb79d5aede3ea12bfda51260",
|
| 71 |
+
"quack/dsl/cute_tensor.py": "97567c5cdcc1490b87c11291ea05f9f927b50d1dfd368551fc9115d8825bbdea",
|
| 72 |
+
"quack/dsl/cute_tensor_indexing.py": "d509cfae77a49040979201c2e4d598e89c720e64d37f99200a5088630c4c7c6d",
|
| 73 |
+
"quack/dsl/mixed_constexpr_if.py": "b3933a07ab187691ce28db2941dab8f7093abd1199df7cace3ef2d95acf4a000",
|
| 74 |
+
"quack/dsl/smem_struct.py": "a623233ccfb0cbcc3f220e88648fc03a856978ab0a4847acef13f16367a25822",
|
| 75 |
+
"quack/dsl/torch_library_op.py": "7e7185f34c795cead71a84b36958df925bb49ce065d2e2621955b7cfbd9a478b",
|
| 76 |
+
"quack/epilogue/__init__.py": "dd3e7fce36df1a981c40ea05284ee8716b06e6088869b47640929c1889406105",
|
| 77 |
+
"quack/epilogue/frontend.py": "1fc3c4a0914a23c04e69dfef03232f7efb85e03bbb8a7c6e515509d9582d6f4a",
|
| 78 |
+
"quack/epilogue/head_rmsnorm.py": "b64b9055efbf1d0e04b3298e9e88f3b620452da024a74ef9ca9c8a59aeaa7a5b",
|
| 79 |
+
"quack/epilogue/library.py": "374c95060989c11d20476bec2e60ab54e7faccd92021367f87db28832238f65f",
|
| 80 |
+
"quack/epilogue/math.py": "6800226f82c21d77bbe7070b8baf890b1fa8dfcd29b53682e3cc63d0ddf26564",
|
| 81 |
+
"quack/epilogue/mixin.py": "8979576089b42035c1c11cc5fa459e3dab4509548b5db2429b5f98a86c25d6ab",
|
| 82 |
+
"quack/epilogue/ops.py": "0129211a55a5689b804b94a21f139a990ae248dadebf411a2bc747b669e0cdd3",
|
| 83 |
+
"quack/epilogue/quantize_out.py": "cd4e0da5a74bd9d4f911bdda3b90aeede7cc04d7f67ccddd22858093ef8a8bba",
|
| 84 |
+
"quack/epilogue/rotary.py": "646410bd66bfc44710abffb8af8cc4f20685822392345547d5a9ccb953117337",
|
| 85 |
+
"quack/epilogue/scaled_exp.py": "a0d8c0aec2403a5c5fa2d43589509c84a278761d80c8585ad71990aeec7fc6ce",
|
| 86 |
+
"quack/epilogue/visit.py": "9132378e13b00fee98c749029c874e42a293ac98a499746f968c850157e40466",
|
| 87 |
+
"quack/fast_math.py": "4781e18b037d523d3e7f1e517b4e2253761219743d175fd56a0b410173c42cd4",
|
| 88 |
+
"quack/gemm.py": "2aa12bc6a85a1a8dcdf2b1a6d19e70b6a3ce56d598bda0196d206b9fb1341fcf",
|
| 89 |
+
"quack/gemm_base.py": "2847a1f3b536fcb29eb2a3f454735efc940f5e0b7c3d9e3820aed6ad11fd75ad",
|
| 90 |
+
"quack/gemm_config.py": "608a9488f24f11a43dcfe8a92235728debe83611d37587ec6a5495e5255b4009",
|
| 91 |
+
"quack/gemm_default_epi.py": "a38d45694b389351a06769abfb7c134a8c9aca5d354d843f3287fe55501bfe5a",
|
| 92 |
+
"quack/gemm_iface.py": "1b77136a7d43832e1eed8bd611de9be00f8ed22d2c743956875f965eca71ecc3",
|
| 93 |
+
"quack/gemm_interface.py": "6215031bf8a870d16a1be224ecad21042076d62096f4621f477d63371eab92d3",
|
| 94 |
+
"quack/gemm_runtime/__init__.py": "3b60bca920240acf318c50776df095ef7daad2e81e17a127286694da7ff4414a",
|
| 95 |
+
"quack/gemm_runtime/autotune.py": "eb7345f6de79995185ded2418d1cf9fce24429eab1ca29006c1d0a8eb2aa8cff",
|
| 96 |
+
"quack/gemm_runtime/host.py": "96da5c3fee70d909e4b19a1c8d13b6e63346e05ff930ed36ce4d93d6bb9ac987",
|
| 97 |
+
"quack/gemm_runtime/identity.py": "1aba6a71eaaa94c18ec1faa1f72a1a6b25ac5c607276a2e8b8129d8229d66150",
|
| 98 |
+
"quack/gemm_runtime/torch_op.py": "a833f4d2a7bebb1d2bbac6ee8d00f2c3b25e0707cd6be83798b4d342c76df86b",
|
| 99 |
+
"quack/gemm_sm100.py": "a60ed28ddd2bb45ee4b054bcec9bbc50bbc7a3beeb86a12798037bfa85b13215",
|
| 100 |
+
"quack/gemm_sm120.py": "d14e5c3b7cf2722b6b236b1ffcf270e74cb871b9ef081e7f5c4c8db8967ff0b0",
|
| 101 |
+
"quack/gemm_sm80.py": "40af41818594ca59d34b2d55f563052fa866d8a0f01b3a228bb384ad74cb1a06",
|
| 102 |
+
"quack/gemm_sm90.py": "aa0090ba8890ae3b41f22564c03a612fd70ebc1c22dd8d5ae801cf8f3ae81388",
|
| 103 |
+
"quack/gemm_symmetric.py": "17747fbc7cb6b93b8e55adad9815904fd1f2c4ccefd7c1b3ec05958f8377f33e",
|
| 104 |
+
"quack/gemm_tvm_ffi_utils.py": "5057c96d3451a7312bb75df35e539c930955e1e61a56b72fc4efda983e7cac57",
|
| 105 |
+
"quack/gemm_w4.py": "e6e78c838ab854fc21c7da8f7eda72b7a6af47882ba5c37f581debb7bfc3ad8d",
|
| 106 |
+
"quack/jax_utils.py": "cfd08ab8cd876d85e48226fcfa654d12f239585d87c4197c7204c29a2a2c4eeb",
|
| 107 |
+
"quack/layout_utils.py": "b949dd0dc3467dc26c0828886eb61c6395fbcdc22ff270f03991b7367a528af1",
|
| 108 |
+
"quack/linear.py": "ca72f0f37d5b1c1d6668faf40d73b4e11e464be8fda64f98c37eeff9378d221e",
|
| 109 |
+
"quack/linear_cross_entropy.py": "2f0fde76bc5f828f5a07f45312abb1bbea3f920557511ea73146e92eed2b8d97",
|
| 110 |
+
"quack/mlp.py": "8c937a8f3036f5a1e21b9032cd3ff9d9d7d864d6e80380eddf7d21977a3e6325",
|
| 111 |
+
"quack/nvmmh_heuristic.py": "228a2c5a6fa75bbee251ea43cd549677f86137c4246ac2571db630315977f29d",
|
| 112 |
+
"quack/operand_transform/__init__.py": "cf8e4d82559d382feb9056a9217f0a1ecb79ec1a19f28b231527efe4662c95c2",
|
| 113 |
+
"quack/operand_transform/formats/__init__.py": "85e09e86e035fb662d7c1ab6dafce77c78e9eb980048c27109bdd9079b97f4ad",
|
| 114 |
+
"quack/operand_transform/formats/qtip.py": "09b88454c079f56d9598a0b1ff504d41d722fc502156b3666d4bb3d4a862898d",
|
| 115 |
+
"quack/operand_transform/frontend.py": "323da2dbd93b3ee48d57842148b558a57f58df4a90e4549984a97d4a66cb3c27",
|
| 116 |
+
"quack/operand_transform/host.py": "ff8417929f7a101d0c516b947fed33e0b6a112fe198cd9fcdfe3a7bc6d9b4072",
|
| 117 |
+
"quack/operand_transform/kinds.py": "ea09f06001360d5e8d2427a7651aab569e24f9ff8b2a161b87e5c075110cc4f3",
|
| 118 |
+
"quack/operand_transform/rng.py": "4240197756c3d0395c17eed87adaa9ce81235fad9d986676f037d228c477631b",
|
| 119 |
+
"quack/operand_transform/transform.py": "66657d598909908531935d0371df9c056d210617cab9cade72ee7faffa375b8b",
|
| 120 |
+
"quack/pipeline.py": "86c51e83e266656d587b75b4973cdda6cc8c4bf317b4e594199e262366d0043d",
|
| 121 |
+
"quack/pipeline_checks.py": "302de33e4753fd9cfde0717954bcaf28799f91feb55688d70e38de71647656a9",
|
| 122 |
+
"quack/reduce.py": "f2ac997ab336cf3b4182814235354a620f809dfd53be5bb257700f9007e2228c",
|
| 123 |
+
"quack/reduction_base.py": "801185dff436d1cb9141f153c6980056932053bff0e716b0ec82fdd8558ecc3d",
|
| 124 |
+
"quack/rms_final_reduce.py": "cc0904bf4a8c21a27efb74bdc328854acb890004395adbc24a60bac83fd306f8",
|
| 125 |
+
"quack/rmsnorm.py": "f3fa67597b39b4eae227b13f80f54df4ddb7acc8cf6b7310342bc627c2a9d61b",
|
| 126 |
+
"quack/rmsnorm_config.py": "5cb2fda1917dbed125c772c3075a7640f07c5264f9b926c35b2a3d1a79261772",
|
| 127 |
+
"quack/rotary.py": "21956bde45a1eb3386dc5721e4df89f1fa2d0a0df5283851ec8cbad794b01fde",
|
| 128 |
+
"quack/rounding.py": "585d60e06882d6bf5654eb328942edb20409bdd6c1afe53996177fca3410bfb3",
|
| 129 |
+
"quack/sm100_utils.py": "3abfd14454b6fed883e3c133311e528adb307a7e31fc1e6eefaa4918f0e29fd0",
|
| 130 |
+
"quack/sm80_utils.py": "d323a046c94022af01ecc4bcb4892066e8a538c224627243525edcda08dd9338",
|
| 131 |
+
"quack/sm90_utils.py": "7a8537490c17e213e7deeb526c0a8bbfa97c5cc7066cbb69bf604a3c0da0567b",
|
| 132 |
+
"quack/softmax.py": "1b2097bd328ab27c42e54d65f12fadf9b799d54917c5a83827299ece70ee8e7c",
|
| 133 |
+
"quack/softmax_jax.py": "1b9d9b4e87b6376e814f7c993def3edd21f6a93616e9875065fcbdba2fa3005b",
|
| 134 |
+
"quack/sort/bitonic_sort.py": "9b658652d6a73c135c8dfe157b51ee526e8fb26c1a8919c85574bb0d8e2bf404",
|
| 135 |
+
"quack/sort/generate_sorting_networks.py": "31bcc2671ebb60990e46a9d9e5d8bd4bf13c072e0ec3fbcc7a01ebc470c6486e",
|
| 136 |
+
"quack/sort/sorting_networks.py": "97fdbace2de05c3ff3fad9e6d9e01ccd1ae613e99b6b3d342a6a87e8e362bcbf",
|
| 137 |
+
"quack/sort/utils.py": "9627ee19384c9380f55717c05180f1aeb5331f0c4b1a02dda229e913c5153778",
|
| 138 |
+
"quack/spec/__init__.py": "819b22bf1f323e4d1393b1aacc7a4eb6b8cdd9bddd481d3f30d295b74fdef2ab",
|
| 139 |
+
"quack/spec/mma.py": "dd249088c9249dc6f7bee6a873d0e4afaf3bbc807111fee2727b1d589bf9ab9f",
|
| 140 |
+
"quack/spec/smem.py": "d4c6bd507f9f8d9bb75467c8a801fc99aa79e3bf7c517eb31c5a9fdfc523f640",
|
| 141 |
+
"quack/spec/tensor_spec.py": "f2f098660f667141441ea24123c1e3901b460b8ece74b68ca5fdfa206d4690bd",
|
| 142 |
+
"quack/spec/tma.py": "0c3f2b0120fea1cbdfcede4c6f8a0c8cfe5d9ef7541720889a896f3767b9ed0c",
|
| 143 |
+
"quack/spec/tmem.py": "01a34dc09ff86fb9e3453778d08b03f3e01c18435dc260e1430ce10b600710f5",
|
| 144 |
+
"quack/split_k_reduce.py": "98443049a761e80706cec5e8adfbe709fecfb198c29cfc4513bbc8e73b783895",
|
| 145 |
+
"quack/sync/__init__.py": "7e8d1126866383a2de0f5f77a19c47c99519d25e83ebddaf22259910c155a6d8",
|
| 146 |
+
"quack/sync/barrier.py": "cca678538f3d6fca24e9fcafe8014301095240de3113ab05dc05a01a0d44421f",
|
| 147 |
+
"quack/tensormap_manager.py": "b702cb7424bab3cf81098221e1761d3ed1375d7e0e0004879259ec1acb339cf8",
|
| 148 |
+
"quack/testing/__init__.py": "1787ce2e0fbb7b931165453eda429da51f97ca4ad4872de1ae4ad791ed77f7ed",
|
| 149 |
+
"quack/testing/pytest_plugin.py": "a5151db9f85ec5eff4f3da3dbaf4436f83fc32981a0c2f1fa6ace601964d1365",
|
| 150 |
+
"quack/testing/trace.py": "fe954d1ceca2bf59a09ef18a5b2ed19ab7a1789cd4671db6f7e7cc268419268d",
|
| 151 |
+
"quack/tile_scheduler.py": "91aa5e9e3e66c59424c6a37ad48b1d1d44e56e8afd760b294cb8b2648e7576d5",
|
| 152 |
+
"quack/topk.py": "f477b78053fd306ba9d7e1500613dcc28efde1e2e4c601fd1431179188f06cf3",
|
| 153 |
+
"quack/trace.py": "9e61da79f34bbbb93d32323e2cf62619eebd594d54ba637a0fb20302d5fdb26b",
|
| 154 |
+
"quack/transform/__init__.py": "ccdea9cf6bea671fbc009fd2c3559ea0c1eaec9924ee4a916cef616c9900c180",
|
| 155 |
+
"quack/transform/hadamard.py": "498fdc3b86128740da88489e624a9fa382a4cdce8f722a0bdcea2e8933b9c44d",
|
| 156 |
+
"quack/utils.py": "da91668f4836c03927d10f4222ae251cea5c38fee96f6629eb2b5d476acc5e2a",
|
| 157 |
+
"quack/varlen_utils.py": "50e9a7950340e6ef6f907716fe9cf16f456392aa64eb3d21d128c49bd91b791d",
|
| 158 |
+
"quack_kernels-0.6.5.dist-info/METADATA": "ca5e470a3b4fe0a25d64446729ef77ddf95091f51eed8fd08b8fb8d4cbb8ccd7",
|
| 159 |
+
"quack_kernels-0.6.5.dist-info/licenses/LICENSE": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4"
|
| 160 |
+
}
|
| 161 |
+
}
|
code/runtime-sources.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87f7d911ee688f612d6646caabd7ee27f007f51e3b79599a07c1d754d474d187
|
| 3 |
+
size 861815
|
code/training-code.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f96a1852ac4f94c58a87bdf5a5be348ef845d36903833a4e115bb658742940bf
|
| 3 |
+
size 383935
|
config.json
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"KrohaRoutedNormForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"attention_scalar_gate": true,
|
| 8 |
+
"attnres_block_size": 4,
|
| 9 |
+
"auto_map": {
|
| 10 |
+
"AutoConfig": "configuration_kroha.KrohaRoutedNormConfig",
|
| 11 |
+
"AutoModel": "modeling_kroha.KrohaRoutedNormModel",
|
| 12 |
+
"AutoModelForCausalLM": "modeling_kroha.KrohaRoutedNormForCausalLM"
|
| 13 |
+
},
|
| 14 |
+
"bos_token_id": 1,
|
| 15 |
+
"decoder_ablation": "headgate_blockattnres",
|
| 16 |
+
"delta_backend": "auto",
|
| 17 |
+
"delta_conv_kernel": 4,
|
| 18 |
+
"delta_num_query_heads": 8,
|
| 19 |
+
"delta_num_value_heads": 2,
|
| 20 |
+
"dna_config": {
|
| 21 |
+
"FNS": "Not implemented; offsets and DNA ID ranges exposed for future training integration",
|
| 22 |
+
"auto_detection": false,
|
| 23 |
+
"base_count": 16,
|
| 24 |
+
"base_id_start": 69634,
|
| 25 |
+
"base_vocabulary_size": 65536,
|
| 26 |
+
"begin_id": 65536,
|
| 27 |
+
"canonical_alphabet": "ACGT",
|
| 28 |
+
"canonical_order": "itertools.product(ACGT, repeat=6), lexicographic",
|
| 29 |
+
"chat": "Same text chat template; DNACodec.encode enables tagged DNA/spans and preserves assistant masks",
|
| 30 |
+
"decoder": "Native Tokenizers Replace-per-piece then unchanged ByteLevel; no remote/custom decoder",
|
| 31 |
+
"encoding_entrypoint": "tiny_llm.dna.DNACodec",
|
| 32 |
+
"end_id": 65537,
|
| 33 |
+
"fallback": "Each noncanonical six-character block/short tail is encoded character by character; uppercase IUPAC gets DNA symbols; other characters use unchanged raw BPE",
|
| 34 |
+
"fallback_alphabet": "ACGTURYSWKMBDHVN",
|
| 35 |
+
"future_model_scope": "New vocabulary requires matching embedding/head rows; does not migrate old weights",
|
| 36 |
+
"k": 6,
|
| 37 |
+
"kmer_count": 4096,
|
| 38 |
+
"kmer_id_start": 65538,
|
| 39 |
+
"normalization": "identity",
|
| 40 |
+
"offsets": "Unicode character offsets and IUPAC-base offsets; gaps/layout have zero bp width",
|
| 41 |
+
"raw_text_default": true,
|
| 42 |
+
"reserve": "Original 51 reserved IDs remain unchanged and unconsumed",
|
| 43 |
+
"version": "b64-dna6-v3",
|
| 44 |
+
"vocab_size": 69650
|
| 45 |
+
},
|
| 46 |
+
"dtype": "float32",
|
| 47 |
+
"eos_token_id": 2,
|
| 48 |
+
"expert_backend": "auto",
|
| 49 |
+
"expert_intermediate_size": 352,
|
| 50 |
+
"experts_per_token": 2,
|
| 51 |
+
"gate_multiplier": 2.0,
|
| 52 |
+
"gdn_version": 1,
|
| 53 |
+
"head_dim": 64,
|
| 54 |
+
"headwise_attention_gate": true,
|
| 55 |
+
"hidden_act": "silu",
|
| 56 |
+
"hidden_size": 512,
|
| 57 |
+
"initializer_range": 0.02,
|
| 58 |
+
"intermediate_size": 1792,
|
| 59 |
+
"latent_size": 256,
|
| 60 |
+
"layer_types": [
|
| 61 |
+
"full_attention",
|
| 62 |
+
"linear_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"linear_attention",
|
| 65 |
+
"full_attention",
|
| 66 |
+
"linear_attention",
|
| 67 |
+
"full_attention",
|
| 68 |
+
"linear_attention",
|
| 69 |
+
"full_attention",
|
| 70 |
+
"linear_attention",
|
| 71 |
+
"full_attention",
|
| 72 |
+
"linear_attention",
|
| 73 |
+
"full_attention",
|
| 74 |
+
"linear_attention",
|
| 75 |
+
"full_attention",
|
| 76 |
+
"linear_attention",
|
| 77 |
+
"full_attention",
|
| 78 |
+
"full_attention"
|
| 79 |
+
],
|
| 80 |
+
"layers_block_type": [
|
| 81 |
+
"attention",
|
| 82 |
+
"mamba",
|
| 83 |
+
"attention",
|
| 84 |
+
"mamba",
|
| 85 |
+
"attention",
|
| 86 |
+
"mamba",
|
| 87 |
+
"attention",
|
| 88 |
+
"mamba",
|
| 89 |
+
"attention",
|
| 90 |
+
"mamba",
|
| 91 |
+
"attention",
|
| 92 |
+
"mamba",
|
| 93 |
+
"attention",
|
| 94 |
+
"mamba",
|
| 95 |
+
"attention",
|
| 96 |
+
"mamba",
|
| 97 |
+
"attention",
|
| 98 |
+
"attention"
|
| 99 |
+
],
|
| 100 |
+
"linear_conv_kernel_dim": 4,
|
| 101 |
+
"linear_key_head_dim": 64,
|
| 102 |
+
"linear_num_key_heads": 8,
|
| 103 |
+
"linear_num_value_heads": 8,
|
| 104 |
+
"linear_value_head_dim": 64,
|
| 105 |
+
"lora_alpha": 16,
|
| 106 |
+
"lora_rank": 16,
|
| 107 |
+
"max_position_embeddings": 16384,
|
| 108 |
+
"mlp_bias": false,
|
| 109 |
+
"mlp_scalar_gate": true,
|
| 110 |
+
"model_type": "kroha_routed_norm",
|
| 111 |
+
"moe_budget": "total",
|
| 112 |
+
"nope_layers": [],
|
| 113 |
+
"num_attention_heads": 8,
|
| 114 |
+
"num_core_layers": 8,
|
| 115 |
+
"num_experts": 8,
|
| 116 |
+
"num_hidden_layers": 18,
|
| 117 |
+
"num_key_value_heads": 2,
|
| 118 |
+
"num_passes": 2,
|
| 119 |
+
"packed_attention_backend": "fa4",
|
| 120 |
+
"pad_token_id": 0,
|
| 121 |
+
"pass2_router": false,
|
| 122 |
+
"pretraining_tp": 1,
|
| 123 |
+
"qk_norm": true,
|
| 124 |
+
"relaxed": true,
|
| 125 |
+
"rms_norm_eps": 1e-05,
|
| 126 |
+
"rope_parameters": {
|
| 127 |
+
"rope_theta": 10000.0,
|
| 128 |
+
"rope_type": "default"
|
| 129 |
+
},
|
| 130 |
+
"routed_output_norm": true,
|
| 131 |
+
"routed_scaling_factor": 1.0,
|
| 132 |
+
"router_balance_scope": "global",
|
| 133 |
+
"router_bias_speed": 0.001,
|
| 134 |
+
"router_optimizer": "adamw",
|
| 135 |
+
"router_seq_aux_coef": 0.0001,
|
| 136 |
+
"shared_expert_gate": true,
|
| 137 |
+
"shared_intermediate_size": 256,
|
| 138 |
+
"swiglu_limit": 10.0,
|
| 139 |
+
"tie_word_embeddings": true,
|
| 140 |
+
"transformers_version": "5.17.0",
|
| 141 |
+
"use_cache": true,
|
| 142 |
+
"vocab_size": 69650
|
| 143 |
+
}
|
configuration_kroha.py
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Public Kroha architecture, including routed-output RMSNorm.
|
| 2 |
+
"""KrohaRoutedNorm: SharedGate + HeadGate + Block AttnRes with the B64 + DNA6 vocabulary."""
|
| 3 |
+
from transformers.models.llama.configuration_llama import LlamaConfig
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class KrohaRoutedNormConfig(LlamaConfig):
|
| 7 |
+
"""SharedGate latent MoE, alternating Delta/GQA, two passes, Block AttnRes.
|
| 8 |
+
|
| 9 |
+
Standard Transformers ``rope_parameters`` (default, linear, dynamic, yarn,
|
| 10 |
+
longrope, llama3, proportional) are inherited from LlamaConfig. There is no
|
| 11 |
+
model-specific rotary implementation or serialized frequency table.
|
| 12 |
+
"""
|
| 13 |
+
model_type = "kroha_routed_norm"
|
| 14 |
+
keys_to_ignore_at_inference = ["past_key_values", "router_aux_loss"]
|
| 15 |
+
|
| 16 |
+
def __init__(self, vocab_size=32768, hidden_size=512, intermediate_size=1792,
|
| 17 |
+
num_core_layers=8, num_passes=2, num_hidden_layers=None,
|
| 18 |
+
num_attention_heads=8, num_key_value_heads=2, head_dim=64,
|
| 19 |
+
max_position_embeddings=2048, rope_theta=10000., rope_parameters=None,
|
| 20 |
+
rope_scaling=None, rms_norm_eps=1e-5, num_experts=8, experts_per_token=2,
|
| 21 |
+
expert_intermediate_size=352, shared_intermediate_size=256, latent_size=None,
|
| 22 |
+
lora_rank=16, lora_alpha=None, relaxed=True, attnres_block_size=4,
|
| 23 |
+
gate_multiplier=2., qk_norm=True, attention_scalar_gate=True,
|
| 24 |
+
mlp_scalar_gate=True, shared_expert_gate=True, attention_dropout=0.,
|
| 25 |
+
router_bias_speed=.001, router_seq_aux_coef=1e-4,
|
| 26 |
+
router_balance_scope="legacy", routed_scaling_factor=1., swiglu_limit=10.,
|
| 27 |
+
delta_conv_kernel=4, delta_backend="auto", expert_backend="auto",
|
| 28 |
+
tie_word_embeddings=True, bos_token_id=1, eos_token_id=2, pad_token_id=0,
|
| 29 |
+
layer_types=None, nope_layers=None, headwise_attention_gate=True, routed_output_norm=True, **kwargs):
|
| 30 |
+
if routed_output_norm is not True:
|
| 31 |
+
raise ValueError("This ablation requires routed-output RMSNorm")
|
| 32 |
+
if kwargs.pop("router_optimizer", "adamw") != "adamw":
|
| 33 |
+
raise ValueError("This ablation trains routers with AdamW")
|
| 34 |
+
self.routed_output_norm = True
|
| 35 |
+
self.router_optimizer = "adamw"
|
| 36 |
+
applications = 2 + num_core_layers * num_passes
|
| 37 |
+
expected_types = ["full_attention"] + [
|
| 38 |
+
"linear_attention" if i % 2 == 0 else "full_attention"
|
| 39 |
+
for _ in range(num_passes) for i in range(num_core_layers)
|
| 40 |
+
] + ["full_attention"]
|
| 41 |
+
if num_hidden_layers is not None and num_hidden_layers != applications:
|
| 42 |
+
raise ValueError("num_hidden_layers counts applications, not shared blocks")
|
| 43 |
+
if layer_types is not None and list(layer_types) != expected_types:
|
| 44 |
+
raise ValueError("KrohaRoutedNorm requires alternating Delta/GQA application slots")
|
| 45 |
+
if num_passes != 2 or num_core_layers < 1:
|
| 46 |
+
raise ValueError("KrohaRoutedNorm preserves two recursive passes and positive core depth")
|
| 47 |
+
if attnres_block_size != 4 or not shared_expert_gate:
|
| 48 |
+
raise ValueError("KrohaRoutedNorm preserves Block AttnRes S=4 and SharedGate")
|
| 49 |
+
if num_attention_heads % num_key_value_heads or head_dim % 2:
|
| 50 |
+
raise ValueError("Require divisible GQA heads and an even rotary head dimension")
|
| 51 |
+
if not 1 <= experts_per_token <= num_experts:
|
| 52 |
+
raise ValueError("Require 1 <= experts_per_token <= num_experts")
|
| 53 |
+
latent_size = hidden_size // 2 if latent_size is None else latent_size
|
| 54 |
+
if not 0 < latent_size < hidden_size:
|
| 55 |
+
raise ValueError("KrohaRoutedNorm requires a positive latent width below hidden_size")
|
| 56 |
+
if min(expert_intermediate_size, shared_intermediate_size, lora_rank, delta_conv_kernel) < 1:
|
| 57 |
+
raise ValueError("Widths, adapter rank and convolution width must be positive")
|
| 58 |
+
if router_balance_scope not in ("legacy", "global"):
|
| 59 |
+
raise ValueError("router_balance_scope must be legacy or global")
|
| 60 |
+
if delta_backend not in ("auto", "fla", "reference") or expert_backend not in ("auto", "grouped", "reference"):
|
| 61 |
+
raise ValueError("Unknown DeltaNet or expert backend")
|
| 62 |
+
if min(router_bias_speed, router_seq_aux_coef) < 0 or min(routed_scaling_factor, swiglu_limit) <= 0:
|
| 63 |
+
raise ValueError("Invalid router coefficients")
|
| 64 |
+
# Former ablation flags are accepted only for the exact baseline. A
|
| 65 |
+
# different trained architecture must never silently become KrohaRoutedNorm.
|
| 66 |
+
for key, expected in (("pass2_router", False),
|
| 67 |
+
("delta_beta_multiplier", 1.), ("canon_kernel_size", 0),
|
| 68 |
+
("moe_budget", "total"), ("gdn_version", 1)):
|
| 69 |
+
if kwargs.pop(key, expected) != expected:
|
| 70 |
+
raise ValueError(f"Unsupported KrohaRoutedNorm architecture setting: {key}")
|
| 71 |
+
for key, expected in (("delta_num_query_heads", num_attention_heads),
|
| 72 |
+
("delta_num_value_heads", num_key_value_heads)):
|
| 73 |
+
if kwargs.pop(key, expected) != expected:
|
| 74 |
+
raise ValueError(f"KrohaRoutedNorm preserves the original Delta head layout: {key}")
|
| 75 |
+
kwargs.pop("model_type", None)
|
| 76 |
+
kwargs.pop("auto_map", None)
|
| 77 |
+
kwargs.pop("architectures", None)
|
| 78 |
+
kwargs.pop("hidden_act", None)
|
| 79 |
+
kwargs.pop("attention_bias", None)
|
| 80 |
+
kwargs.pop("mlp_bias", None)
|
| 81 |
+
if rope_parameters is not None and rope_scaling is not None:
|
| 82 |
+
raise ValueError("Specify rope_parameters or legacy rope_scaling, not both")
|
| 83 |
+
rope_parameters = dict(rope_parameters or rope_scaling or {})
|
| 84 |
+
rope_parameters.setdefault("rope_type", rope_parameters.pop("type", "default"))
|
| 85 |
+
rope_parameters.setdefault("rope_theta", rope_theta)
|
| 86 |
+
super().__init__(vocab_size=vocab_size, hidden_size=hidden_size,
|
| 87 |
+
intermediate_size=intermediate_size, num_hidden_layers=applications,
|
| 88 |
+
num_attention_heads=num_attention_heads, num_key_value_heads=num_key_value_heads,
|
| 89 |
+
head_dim=head_dim, max_position_embeddings=max_position_embeddings,
|
| 90 |
+
rope_parameters=rope_parameters, rms_norm_eps=rms_norm_eps, hidden_act="silu",
|
| 91 |
+
attention_bias=False, mlp_bias=False, attention_dropout=attention_dropout,
|
| 92 |
+
tie_word_embeddings=tie_word_embeddings, bos_token_id=bos_token_id,
|
| 93 |
+
eos_token_id=eos_token_id, pad_token_id=pad_token_id, **kwargs)
|
| 94 |
+
self.num_core_layers, self.num_passes = num_core_layers, num_passes
|
| 95 |
+
self.layer_types = expected_types
|
| 96 |
+
self.relaxed, self.lora_rank = relaxed, lora_rank
|
| 97 |
+
self.lora_alpha = lora_rank if lora_alpha is None else lora_alpha
|
| 98 |
+
self.attnres_block_size = attnres_block_size
|
| 99 |
+
self.num_experts, self.experts_per_token = num_experts, experts_per_token
|
| 100 |
+
self.expert_intermediate_size, self.shared_intermediate_size = expert_intermediate_size, shared_intermediate_size
|
| 101 |
+
self.latent_size = latent_size
|
| 102 |
+
self.gate_multiplier, self.qk_norm = gate_multiplier, qk_norm
|
| 103 |
+
self.attention_scalar_gate, self.mlp_scalar_gate = attention_scalar_gate, mlp_scalar_gate
|
| 104 |
+
self.shared_expert_gate = True
|
| 105 |
+
self.router_bias_speed, self.router_seq_aux_coef = router_bias_speed, router_seq_aux_coef
|
| 106 |
+
self.router_balance_scope = router_balance_scope
|
| 107 |
+
self.routed_scaling_factor, self.swiglu_limit = routed_scaling_factor, swiglu_limit
|
| 108 |
+
self.delta_conv_kernel, self.delta_backend = delta_conv_kernel, delta_backend
|
| 109 |
+
self.expert_backend = expert_backend
|
| 110 |
+
self.nope_layers = list(nope_layers or [])
|
| 111 |
+
self.delta_num_query_heads, self.delta_num_value_heads = num_attention_heads, num_key_value_heads
|
| 112 |
+
self.moe_budget = "total"
|
| 113 |
+
self.pass2_router = False
|
| 114 |
+
self.gdn_version = 1
|
| 115 |
+
self.headwise_attention_gate = bool(headwise_attention_gate)
|
| 116 |
+
self.decoder_ablation = "headgate_blockattnres" if self.headwise_attention_gate else "blockattnres"
|
| 117 |
+
# Native vLLM hybrid scheduler/cache aliases. They describe virtual
|
| 118 |
+
# applications, not additional trainable blocks or widened projections.
|
| 119 |
+
self.linear_num_key_heads = self.linear_num_value_heads = num_attention_heads
|
| 120 |
+
self.linear_key_head_dim = self.linear_value_head_dim = head_dim
|
| 121 |
+
self.linear_conv_kernel_dim = delta_conv_kernel
|
| 122 |
+
self.layers_block_type = ['attention' if t == 'full_attention' else 'mamba' for t in expected_types]
|
| 123 |
+
self.architectures = ["KrohaRoutedNormForCausalLM"]
|
| 124 |
+
self.auto_map = {
|
| 125 |
+
"AutoConfig": "configuration_kroha.KrohaRoutedNormConfig",
|
| 126 |
+
"AutoModel": "modeling_kroha.KrohaRoutedNormModel",
|
| 127 |
+
"AutoModelForCausalLM": "modeling_kroha.KrohaRoutedNormForCausalLM",
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
KrohaRoutedNormConfig.register_for_auto_class("AutoConfig")
|
dna_config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "b64-dna6-v3",
|
| 3 |
+
"base_vocabulary_size": 65536,
|
| 4 |
+
"vocab_size": 69650,
|
| 5 |
+
"k": 6,
|
| 6 |
+
"canonical_alphabet": "ACGT",
|
| 7 |
+
"fallback_alphabet": "ACGTURYSWKMBDHVN",
|
| 8 |
+
"begin_id": 65536,
|
| 9 |
+
"end_id": 65537,
|
| 10 |
+
"kmer_id_start": 65538,
|
| 11 |
+
"kmer_count": 4096,
|
| 12 |
+
"base_id_start": 69634,
|
| 13 |
+
"base_count": 16,
|
| 14 |
+
"canonical_order": "itertools.product(ACGT, repeat=6), lexicographic",
|
| 15 |
+
"raw_text_default": true,
|
| 16 |
+
"auto_detection": false,
|
| 17 |
+
"normalization": "identity",
|
| 18 |
+
"fallback": "Each noncanonical six-character block/short tail is encoded character by character; uppercase IUPAC gets DNA symbols; other characters use unchanged raw BPE",
|
| 19 |
+
"offsets": "Unicode character offsets and IUPAC-base offsets; gaps/layout have zero bp width",
|
| 20 |
+
"decoder": "Native Tokenizers Replace-per-piece then unchanged ByteLevel; no remote/custom decoder",
|
| 21 |
+
"encoding_entrypoint": "tiny_llm.dna.DNACodec",
|
| 22 |
+
"chat": "Same text chat template; DNACodec.encode enables tagged DNA/spans and preserves assistant masks",
|
| 23 |
+
"reserve": "Original 51 reserved IDs remain unchanged and unconsumed",
|
| 24 |
+
"FNS": "Not implemented; offsets and DNA ID ranges exposed for future training integration",
|
| 25 |
+
"future_model_scope": "New vocabulary requires matching embedding/head rows; does not migrate old weights"
|
| 26 |
+
}
|
evaluation.csv
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
task,language,metric,filter,shots,examples,kroha_score_x100,cria_score_x100,gpt_x3_score_x100,supra2_score_x100,gpt2_score_x100
|
| 2 |
+
arc_challenge,en,acc_norm,none,0,1172,22.610921501706486,30.46075085324232,31.655290102389078,24.573378839590443,22.525597269624573
|
| 3 |
+
arc_easy,en,acc_norm,none,0,2376,36.82659932659932,58.333333333333336,59.553872053872055,47.72727272727273,39.64646464646464
|
| 4 |
+
arithmark3,en,acc_norm,none,0,1000,33.800000000000004,37.1,51.6,37.5,35.6
|
| 5 |
+
balanced_copa,en,acc,none,0,1000,52.7,58.699999999999996,60.099999999999994,57.8,55.400000000000006
|
| 6 |
+
blimp,en,acc,none,0,67000,74.41641791044776,80.38059701492537,79.80597014925372,80.90746268656717,83.33731343283581
|
| 7 |
+
boolq,en,acc,none,0,3270,60.550458715596335,53.97553516819572,58.31804281345566,61.7125382262997,49.9388379204893
|
| 8 |
+
commonsense_qa,en,acc,none,0,1221,20.638820638820636,20.475020475020475,21.294021294021295,21.294021294021295,19.574119574119575
|
| 9 |
+
hellaswag,en,acc_norm,none,0,10042,29.446325433180643,39.016132244572795,45.966938856801434,35.998805018920535,31.218880701055568
|
| 10 |
+
lambada_openai,en,acc,none,0,5153,25.926644673006017,38.327188045798565,36.75528818164176,35.64913642538327,30.62293809431399
|
| 11 |
+
mmlu_continuation,en,acc,none,0,14042,24.668850591083892,26.662868537245405,28.64976499074206,26.983335707164223,25.210084033613445
|
| 12 |
+
openbookqa,en,acc_norm,none,0,500,26.0,33.800000000000004,34.4,32.0,27.0
|
| 13 |
+
piqa,en,acc_norm,none,0,1838,55.549510337323184,64.68988030467901,71.10990206746463,65.12513601741023,63.43852013057671
|
| 14 |
+
sciq,en,acc_norm,none,0,1000,68.7,89.9,80.10000000000001,70.8,63.9
|
| 15 |
+
truthfulqa_mc2,en,acc,none,0,817,43.09439862757557,41.71062426671874,40.03218630845387,40.749000394836344,40.698004094957426
|
| 16 |
+
winogrande,en,acc,none,0,1267,50.74980268350434,52.56511444356748,53.74901341752171,51.223362273086025,50.82872928176796
|
| 17 |
+
bananamind_base,en,raw_accuracy,none,0,350,52.0,60.57142857142858,66.28571428571428,56.57142857142857,51.42857142857142
|
| 18 |
+
social_iqa,en,acc,none,0,1954,36.796315250767655,40.634595701125896,38.996929375639716,38.3828045035824,36.54042988741044
|
| 19 |
+
race,en,acc,none,0,1045,26.220095693779903,30.7177033492823,33.588516746411486,30.14354066985646,29.665071770334926
|
| 20 |
+
mmlu,en,acc,none,5,14042,26.264064948013104,25.580401652186296,25.31690642358638,25.13886910696482,26.292550918672553
|
| 21 |
+
triviaqa,en,exact_match,remove_whitespace,0,17944,0.35109228711547036,4.837271511368703,2.2848863129736956,1.1312973695942934,0.362238074008025
|
| 22 |
+
gsm8k,en,exact_match,flexible-extract,5,1319,1.819560272934041,1.9711902956785443,4.927975739196361,1.1372251705837757,1.2130401819560273
|
| 23 |
+
hendrycks_math500,en,exact_match,none,0,500,0.2,0.0,1.6,0.4,0.2
|
| 24 |
+
bbh,en,exact_match,get-answer,3,6511,20.488404238980188,17.90815542927354,23.51405314083858,6.896022116418369,4.761173398863462
|
| 25 |
+
humaneval,en,pass@1,create_test,0,164,3.6585365853658534,0.0,1.8292682926829267,0.0,0.0
|
| 26 |
+
mbpp,en,pass_at_1,none,3,500,0.0,0.2,1.2,0.0,0.0
|
| 27 |
+
mbpp_plus,en,pass_at_1,none,3,378,0.26455026455026454,0.0,1.0582010582010581,0.0,0.0
|
| 28 |
+
mmlu_pro_mc0,en,acc,none,0,12032,11.328125,,,,
|
| 29 |
+
global_mmlu_full_ru,ru,acc,none,5,14042,26.47058823529412,,,,
|
| 30 |
+
mmlu_prox_ru_mc0,ru,acc,none,0,11759,11.318989710009355,,,,
|
| 31 |
+
mera_rummlu_mc0,ru,acc,none,0,14012,23.10876391664288,,,,
|
| 32 |
+
include_base_44_russian,ru,acc,none,0,552,28.07971014492754,,,,
|
| 33 |
+
rublimp_sum_ll,ru,acc,none,0,45000,91.98888888888888,,,,
|
| 34 |
+
rucola_dev,ru,mcc,none,0,2787,0.2637654467725006,,,,
|
| 35 |
+
sberquad_dev,ru,f1,none,0,5036,7.848110874929681,,,,
|
| 36 |
+
rsg_danetqa,ru,acc,none,0,821,48.96467722289891,,,,
|
| 37 |
+
rsg_parus,ru,acc,none,0,100,64.0,,,,
|
| 38 |
+
rsg_rcb,ru,acc,none,0,220,32.27272727272727,,,,
|
| 39 |
+
rsg_russe,ru,acc,none,0,8505,38.506760728982954,,,,
|
| 40 |
+
rsg_rwsd,ru,acc,none,0,204,51.470588235294116,,,,
|
| 41 |
+
rsg_terra,ru,acc,none,0,307,48.534201954397396,,,,
|
| 42 |
+
belebele_rus_Cyrl,ru,acc,none,0,900,24.88888888888889,,,,
|
| 43 |
+
xnli_ru,ru,acc,none,0,2490,39.75903614457831,,,,
|
| 44 |
+
xquad_ru,ru,f1,none,0,1190,2.6520583546919987,,,,
|
| 45 |
+
xwinograd_ru,ru,acc,none,0,315,54.6031746031746,,,,
|
| 46 |
+
xstorycloze_ru,ru,acc,none,0,1511,52.08471211118465,,,,
|
| 47 |
+
mgsm_native_cot_ru,ru,exact_match,flexible-extract,8,250,1.6,,,,
|
| 48 |
+
arc_ru,ru,acc_norm,none,0,1169,24.46535500427716,,,,
|
| 49 |
+
hellaswag_ru,ru,acc_norm,none,0,9272,29.227782571182054,,,,
|
| 50 |
+
truthfulqa_ru_mc2,ru,acc,none,0,788,47.53698298393998,,,,
|
| 51 |
+
global_piqa_completions_rus_cyrl,ru,acc_norm,none,0,100,64.0,,,,
|
evaluation.json
ADDED
|
@@ -0,0 +1,1878 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
"step": 11448,
|
| 5 |
+
"parameters": 71685712,
|
| 6 |
+
"weight_sha256": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884",
|
| 7 |
+
"tokenizer_sha256": "243c73710d5bff983000eadf9b6d71d802b7291afffb8503cbbe6770da2084e8",
|
| 8 |
+
"source_csv_sha256": "068707e88c929e355e8dc2461f7ec3bc94b8229e64eac902d996e81e9ccdf4ae",
|
| 9 |
+
"protocol": {
|
| 10 |
+
"engine": "vLLM",
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
+
"logical_context_cap": 2048,
|
| 13 |
+
"seed": 1234,
|
| 14 |
+
"apply_chat_template": false,
|
| 15 |
+
"full_evaluation_population": true,
|
| 16 |
+
"generation_budget_override": null,
|
| 17 |
+
"lm_eval_version": "0.4.12",
|
| 18 |
+
"coordinator_transformers": "5.17.0",
|
| 19 |
+
"note": "Task-specific caps and metric filters are retained below. ArithMark and BananaMind use token-normalized continuation scoring; these are not official leaderboard submissions."
|
| 20 |
+
},
|
| 21 |
+
"value_scale": "value is unscaled; score_x100, comparison scores and summary fields are metric times 100; null means not evaluated",
|
| 22 |
+
"summary": [
|
| 23 |
+
{
|
| 24 |
+
"name": "Mean50",
|
| 25 |
+
"tasks": 50,
|
| 26 |
+
"kroha": 32.37430516548068,
|
| 27 |
+
"comparison_scores_x100": {
|
| 28 |
+
"cria": null,
|
| 29 |
+
"gpt_x3": null,
|
| 30 |
+
"supra2": null,
|
| 31 |
+
"gpt2": null
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"name": "Russian",
|
| 36 |
+
"tasks": 23,
|
| 37 |
+
"kroha": 35.37590275189927,
|
| 38 |
+
"comparison_scores_x100": {
|
| 39 |
+
"cria": null,
|
| 40 |
+
"gpt_x3": null,
|
| 41 |
+
"supra2": null,
|
| 42 |
+
"gpt2": null
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"name": "English",
|
| 47 |
+
"tasks": 27,
|
| 48 |
+
"kroha": 29.81738870297595,
|
| 49 |
+
"comparison_scores_x100": {
|
| 50 |
+
"cria": null,
|
| 51 |
+
"gpt_x3": null,
|
| 52 |
+
"supra2": null,
|
| 53 |
+
"gpt2": null
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"name": "Original Mean26",
|
| 58 |
+
"tasks": 26,
|
| 59 |
+
"kroha": 30.52851423001349,
|
| 60 |
+
"comparison_scores_x100": {
|
| 61 |
+
"cria": 34.94299196914012,
|
| 62 |
+
"gpt_x3": 36.68049006195622,
|
| 63 |
+
"supra2": 32.68633219688387,
|
| 64 |
+
"gpt2": 30.361637109216762
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "English/Russian suite",
|
| 69 |
+
"tasks": 26,
|
| 70 |
+
"kroha": 33.6887232243377,
|
| 71 |
+
"comparison_scores_x100": {
|
| 72 |
+
"cria": null,
|
| 73 |
+
"gpt_x3": null,
|
| 74 |
+
"supra2": null,
|
| 75 |
+
"gpt2": null
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"results": [
|
| 80 |
+
{
|
| 81 |
+
"task": "arc_challenge",
|
| 82 |
+
"language": "en",
|
| 83 |
+
"examples": 1172,
|
| 84 |
+
"shots": 0,
|
| 85 |
+
"dataset": {
|
| 86 |
+
"id": "allenai/ai2_arc",
|
| 87 |
+
"split": "test",
|
| 88 |
+
"config": "ARC-Challenge"
|
| 89 |
+
},
|
| 90 |
+
"metric": "acc_norm",
|
| 91 |
+
"filter": "none",
|
| 92 |
+
"value": 0.22610921501706485,
|
| 93 |
+
"score_x100": 22.610921501706486,
|
| 94 |
+
"effective_context_cap": 2048,
|
| 95 |
+
"result_sha256": "7f4b9e9b1dcd878efc267c42838e98e083e6f1aee667c4709524f16eb50a193c",
|
| 96 |
+
"comparison_scores_x100": {
|
| 97 |
+
"cria": 30.46075085324232,
|
| 98 |
+
"gpt_x3": 31.655290102389078,
|
| 99 |
+
"supra2": 24.573378839590443,
|
| 100 |
+
"gpt2": 22.525597269624573
|
| 101 |
+
}
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"task": "arc_easy",
|
| 105 |
+
"language": "en",
|
| 106 |
+
"examples": 2376,
|
| 107 |
+
"shots": 0,
|
| 108 |
+
"dataset": {
|
| 109 |
+
"id": "allenai/ai2_arc",
|
| 110 |
+
"split": "test",
|
| 111 |
+
"config": "ARC-Easy"
|
| 112 |
+
},
|
| 113 |
+
"metric": "acc_norm",
|
| 114 |
+
"filter": "none",
|
| 115 |
+
"value": 0.36826599326599324,
|
| 116 |
+
"score_x100": 36.82659932659932,
|
| 117 |
+
"effective_context_cap": 2048,
|
| 118 |
+
"result_sha256": "f99db698d09e822e4f2e22c891d797fc1f8fe8f97a9db731357b93602d59931c",
|
| 119 |
+
"comparison_scores_x100": {
|
| 120 |
+
"cria": 58.333333333333336,
|
| 121 |
+
"gpt_x3": 59.553872053872055,
|
| 122 |
+
"supra2": 47.72727272727273,
|
| 123 |
+
"gpt2": 39.64646464646464
|
| 124 |
+
}
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"task": "arithmark3",
|
| 128 |
+
"language": "en",
|
| 129 |
+
"examples": 1000,
|
| 130 |
+
"shots": 0,
|
| 131 |
+
"dataset": {
|
| 132 |
+
"id": "AxiomicLabs/Arithmark-3.0",
|
| 133 |
+
"revision": "6f6e59dd9b7e2c63455f7af7f838f9ecc3d0a746",
|
| 134 |
+
"split": "train"
|
| 135 |
+
},
|
| 136 |
+
"metric": "acc_norm",
|
| 137 |
+
"filter": "none",
|
| 138 |
+
"value": 0.338,
|
| 139 |
+
"score_x100": 33.800000000000004,
|
| 140 |
+
"effective_context_cap": 1024,
|
| 141 |
+
"result_sha256": "38fbe15268bd0261c3c16931b39120f2136f6e1cf3919f13bc2f6c2bf99dd63e",
|
| 142 |
+
"comparison_scores_x100": {
|
| 143 |
+
"cria": 37.1,
|
| 144 |
+
"gpt_x3": 51.6,
|
| 145 |
+
"supra2": 37.5,
|
| 146 |
+
"gpt2": 35.6
|
| 147 |
+
}
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"task": "balanced_copa",
|
| 151 |
+
"language": "en",
|
| 152 |
+
"examples": 1000,
|
| 153 |
+
"shots": 0,
|
| 154 |
+
"dataset": {
|
| 155 |
+
"id": "pkavumba/balanced-copa",
|
| 156 |
+
"revision": "813bd03cd6e07d9bd8d7333896ad5d40abb95ea9",
|
| 157 |
+
"split": "train"
|
| 158 |
+
},
|
| 159 |
+
"metric": "acc",
|
| 160 |
+
"filter": "none",
|
| 161 |
+
"value": 0.527,
|
| 162 |
+
"score_x100": 52.7,
|
| 163 |
+
"effective_context_cap": 2048,
|
| 164 |
+
"result_sha256": "cd74f37590c1d6a92da398f2dba3295391255eae2cf4212f8cd253f3c3a468b3",
|
| 165 |
+
"comparison_scores_x100": {
|
| 166 |
+
"cria": 58.699999999999996,
|
| 167 |
+
"gpt_x3": 60.099999999999994,
|
| 168 |
+
"supra2": 57.8,
|
| 169 |
+
"gpt2": 55.400000000000006
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"task": "blimp",
|
| 174 |
+
"language": "en",
|
| 175 |
+
"examples": 67000,
|
| 176 |
+
"shots": 0,
|
| 177 |
+
"dataset": {
|
| 178 |
+
"id": "nyu-mll/blimp",
|
| 179 |
+
"split": "train"
|
| 180 |
+
},
|
| 181 |
+
"metric": "acc",
|
| 182 |
+
"filter": "none",
|
| 183 |
+
"value": 0.7441641791044776,
|
| 184 |
+
"score_x100": 74.41641791044776,
|
| 185 |
+
"effective_context_cap": 2048,
|
| 186 |
+
"result_sha256": "aee3fb27560719075439fd381d6fc217a2a4024a3d7b9a4c61a0fd7fd6ad1eca",
|
| 187 |
+
"comparison_scores_x100": {
|
| 188 |
+
"cria": 80.38059701492537,
|
| 189 |
+
"gpt_x3": 79.80597014925372,
|
| 190 |
+
"supra2": 80.90746268656717,
|
| 191 |
+
"gpt2": 83.33731343283581
|
| 192 |
+
}
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"task": "boolq",
|
| 196 |
+
"language": "en",
|
| 197 |
+
"examples": 3270,
|
| 198 |
+
"shots": 0,
|
| 199 |
+
"dataset": {
|
| 200 |
+
"id": "aps/super_glue",
|
| 201 |
+
"split": "validation",
|
| 202 |
+
"config": "boolq"
|
| 203 |
+
},
|
| 204 |
+
"metric": "acc",
|
| 205 |
+
"filter": "none",
|
| 206 |
+
"value": 0.6055045871559633,
|
| 207 |
+
"score_x100": 60.550458715596335,
|
| 208 |
+
"effective_context_cap": 2048,
|
| 209 |
+
"result_sha256": "470c1eafe5346370670fa47b66cfbad76ca472342585e9c85e6c62cda3a94693",
|
| 210 |
+
"comparison_scores_x100": {
|
| 211 |
+
"cria": 53.97553516819572,
|
| 212 |
+
"gpt_x3": 58.31804281345566,
|
| 213 |
+
"supra2": 61.7125382262997,
|
| 214 |
+
"gpt2": 49.9388379204893
|
| 215 |
+
}
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"task": "commonsense_qa",
|
| 219 |
+
"language": "en",
|
| 220 |
+
"examples": 1221,
|
| 221 |
+
"shots": 0,
|
| 222 |
+
"dataset": {
|
| 223 |
+
"id": "tau/commonsense_qa",
|
| 224 |
+
"split": "validation"
|
| 225 |
+
},
|
| 226 |
+
"metric": "acc",
|
| 227 |
+
"filter": "none",
|
| 228 |
+
"value": 0.20638820638820637,
|
| 229 |
+
"score_x100": 20.638820638820636,
|
| 230 |
+
"effective_context_cap": 2048,
|
| 231 |
+
"result_sha256": "7be8bc8ad5865fc5ba1fa4ea06c72be07438013d3b1b1411e0b1b80b15f00590",
|
| 232 |
+
"comparison_scores_x100": {
|
| 233 |
+
"cria": 20.475020475020475,
|
| 234 |
+
"gpt_x3": 21.294021294021295,
|
| 235 |
+
"supra2": 21.294021294021295,
|
| 236 |
+
"gpt2": 19.574119574119575
|
| 237 |
+
}
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"task": "hellaswag",
|
| 241 |
+
"language": "en",
|
| 242 |
+
"examples": 10042,
|
| 243 |
+
"shots": 0,
|
| 244 |
+
"dataset": {
|
| 245 |
+
"id": "Rowan/hellaswag",
|
| 246 |
+
"split": "validation"
|
| 247 |
+
},
|
| 248 |
+
"metric": "acc_norm",
|
| 249 |
+
"filter": "none",
|
| 250 |
+
"value": 0.2944632543318064,
|
| 251 |
+
"score_x100": 29.446325433180643,
|
| 252 |
+
"effective_context_cap": 2048,
|
| 253 |
+
"result_sha256": "68223b680a48fd8848b46a5ce0361e6058e21e8538b78da8cb8e12c70748746c",
|
| 254 |
+
"comparison_scores_x100": {
|
| 255 |
+
"cria": 39.016132244572795,
|
| 256 |
+
"gpt_x3": 45.966938856801434,
|
| 257 |
+
"supra2": 35.998805018920535,
|
| 258 |
+
"gpt2": 31.218880701055568
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"task": "lambada_openai",
|
| 263 |
+
"language": "en",
|
| 264 |
+
"examples": 5153,
|
| 265 |
+
"shots": 0,
|
| 266 |
+
"dataset": {
|
| 267 |
+
"id": "EleutherAI/lambada_openai",
|
| 268 |
+
"split": "test",
|
| 269 |
+
"config": "default"
|
| 270 |
+
},
|
| 271 |
+
"metric": "acc",
|
| 272 |
+
"filter": "none",
|
| 273 |
+
"value": 0.25926644673006016,
|
| 274 |
+
"score_x100": 25.926644673006017,
|
| 275 |
+
"effective_context_cap": 2048,
|
| 276 |
+
"result_sha256": "ff903511d497ee44ffbe425ad684aeedbb7b84fa9c2aa2a5c5383e01104db88b",
|
| 277 |
+
"comparison_scores_x100": {
|
| 278 |
+
"cria": 38.327188045798565,
|
| 279 |
+
"gpt_x3": 36.75528818164176,
|
| 280 |
+
"supra2": 35.64913642538327,
|
| 281 |
+
"gpt2": 30.62293809431399
|
| 282 |
+
}
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"task": "mmlu_continuation",
|
| 286 |
+
"language": "en",
|
| 287 |
+
"examples": 14042,
|
| 288 |
+
"shots": 0,
|
| 289 |
+
"dataset": {
|
| 290 |
+
"id": "cais/mmlu",
|
| 291 |
+
"split": "test"
|
| 292 |
+
},
|
| 293 |
+
"metric": "acc",
|
| 294 |
+
"filter": "none",
|
| 295 |
+
"value": 0.2466885059108389,
|
| 296 |
+
"score_x100": 24.668850591083892,
|
| 297 |
+
"effective_context_cap": 2048,
|
| 298 |
+
"result_sha256": "8b2a308fba8da0b4f5ddc50a0dcc925c7808b8d6897d2bb753e6e010e1889cbe",
|
| 299 |
+
"comparison_scores_x100": {
|
| 300 |
+
"cria": 26.662868537245405,
|
| 301 |
+
"gpt_x3": 28.64976499074206,
|
| 302 |
+
"supra2": 26.983335707164223,
|
| 303 |
+
"gpt2": 25.210084033613445
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"task": "openbookqa",
|
| 308 |
+
"language": "en",
|
| 309 |
+
"examples": 500,
|
| 310 |
+
"shots": 0,
|
| 311 |
+
"dataset": {
|
| 312 |
+
"id": "allenai/openbookqa",
|
| 313 |
+
"split": "test",
|
| 314 |
+
"config": "main"
|
| 315 |
+
},
|
| 316 |
+
"metric": "acc_norm",
|
| 317 |
+
"filter": "none",
|
| 318 |
+
"value": 0.26,
|
| 319 |
+
"score_x100": 26.0,
|
| 320 |
+
"effective_context_cap": 2048,
|
| 321 |
+
"result_sha256": "5dfc5b03a237b995d89da0c886d7a3a25082b5d8ca8ff9e176988fe970e55ab9",
|
| 322 |
+
"comparison_scores_x100": {
|
| 323 |
+
"cria": 33.800000000000004,
|
| 324 |
+
"gpt_x3": 34.4,
|
| 325 |
+
"supra2": 32.0,
|
| 326 |
+
"gpt2": 27.0
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"task": "piqa",
|
| 331 |
+
"language": "en",
|
| 332 |
+
"examples": 1838,
|
| 333 |
+
"shots": 0,
|
| 334 |
+
"dataset": {
|
| 335 |
+
"id": "baber/piqa",
|
| 336 |
+
"split": "validation"
|
| 337 |
+
},
|
| 338 |
+
"metric": "acc_norm",
|
| 339 |
+
"filter": "none",
|
| 340 |
+
"value": 0.5554951033732318,
|
| 341 |
+
"score_x100": 55.549510337323184,
|
| 342 |
+
"effective_context_cap": 2048,
|
| 343 |
+
"result_sha256": "9ecc7710d95f1c2a430b118a872bb9482b2555611d43f5f894e63a5a8db2c57e",
|
| 344 |
+
"comparison_scores_x100": {
|
| 345 |
+
"cria": 64.68988030467901,
|
| 346 |
+
"gpt_x3": 71.10990206746463,
|
| 347 |
+
"supra2": 65.12513601741023,
|
| 348 |
+
"gpt2": 63.43852013057671
|
| 349 |
+
}
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"task": "sciq",
|
| 353 |
+
"language": "en",
|
| 354 |
+
"examples": 1000,
|
| 355 |
+
"shots": 0,
|
| 356 |
+
"dataset": {
|
| 357 |
+
"id": "allenai/sciq",
|
| 358 |
+
"split": "test"
|
| 359 |
+
},
|
| 360 |
+
"metric": "acc_norm",
|
| 361 |
+
"filter": "none",
|
| 362 |
+
"value": 0.687,
|
| 363 |
+
"score_x100": 68.7,
|
| 364 |
+
"effective_context_cap": 2048,
|
| 365 |
+
"result_sha256": "70423d82cf7db8683ba532514c7582dac5d2668ffa5efafbd9299bb8d82fb8e0",
|
| 366 |
+
"comparison_scores_x100": {
|
| 367 |
+
"cria": 89.9,
|
| 368 |
+
"gpt_x3": 80.10000000000001,
|
| 369 |
+
"supra2": 70.8,
|
| 370 |
+
"gpt2": 63.9
|
| 371 |
+
}
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"task": "truthfulqa_mc2",
|
| 375 |
+
"language": "en",
|
| 376 |
+
"examples": 817,
|
| 377 |
+
"shots": 0,
|
| 378 |
+
"dataset": {
|
| 379 |
+
"id": "truthfulqa/truthful_qa",
|
| 380 |
+
"split": "validation",
|
| 381 |
+
"config": "multiple_choice"
|
| 382 |
+
},
|
| 383 |
+
"metric": "acc",
|
| 384 |
+
"filter": "none",
|
| 385 |
+
"value": 0.4309439862757557,
|
| 386 |
+
"score_x100": 43.09439862757557,
|
| 387 |
+
"effective_context_cap": 2048,
|
| 388 |
+
"result_sha256": "d6785a332c6f75c903cf96567ebd8fce41a5dad60ce72f3172d02d5d520dbfd8",
|
| 389 |
+
"comparison_scores_x100": {
|
| 390 |
+
"cria": 41.71062426671874,
|
| 391 |
+
"gpt_x3": 40.03218630845387,
|
| 392 |
+
"supra2": 40.749000394836344,
|
| 393 |
+
"gpt2": 40.698004094957426
|
| 394 |
+
}
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"task": "winogrande",
|
| 398 |
+
"language": "en",
|
| 399 |
+
"examples": 1267,
|
| 400 |
+
"shots": 0,
|
| 401 |
+
"dataset": {
|
| 402 |
+
"id": "allenai/winogrande",
|
| 403 |
+
"split": "validation",
|
| 404 |
+
"config": "winogrande_xl"
|
| 405 |
+
},
|
| 406 |
+
"metric": "acc",
|
| 407 |
+
"filter": "none",
|
| 408 |
+
"value": 0.5074980268350434,
|
| 409 |
+
"score_x100": 50.74980268350434,
|
| 410 |
+
"effective_context_cap": 2048,
|
| 411 |
+
"result_sha256": "bee7f2eb11b14c4f03f19eb57eef4ee87542481e10f3e18d854a346c4df4cb04",
|
| 412 |
+
"comparison_scores_x100": {
|
| 413 |
+
"cria": 52.56511444356748,
|
| 414 |
+
"gpt_x3": 53.74901341752171,
|
| 415 |
+
"supra2": 51.223362273086025,
|
| 416 |
+
"gpt2": 50.82872928176796
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"task": "bananamind_base",
|
| 421 |
+
"language": "en",
|
| 422 |
+
"examples": 350,
|
| 423 |
+
"shots": 0,
|
| 424 |
+
"dataset": {
|
| 425 |
+
"id": "BananaMind/BananaMind-Base-Bench-1.1",
|
| 426 |
+
"revision": "d4aade51312889e8580963e1ce960c6eaef1a450",
|
| 427 |
+
"split": "test"
|
| 428 |
+
},
|
| 429 |
+
"metric": "raw_accuracy",
|
| 430 |
+
"filter": "none",
|
| 431 |
+
"value": 0.52,
|
| 432 |
+
"score_x100": 52.0,
|
| 433 |
+
"effective_context_cap": 2048,
|
| 434 |
+
"result_sha256": "685291232f6a245e336a3c8ef3b7d8ccc2b92c38e7c96c80b51099d331c5f04b",
|
| 435 |
+
"comparison_scores_x100": {
|
| 436 |
+
"cria": 60.57142857142858,
|
| 437 |
+
"gpt_x3": 66.28571428571428,
|
| 438 |
+
"supra2": 56.57142857142857,
|
| 439 |
+
"gpt2": 51.42857142857142
|
| 440 |
+
}
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"task": "social_iqa",
|
| 444 |
+
"language": "en",
|
| 445 |
+
"examples": 1954,
|
| 446 |
+
"shots": 0,
|
| 447 |
+
"dataset": {
|
| 448 |
+
"id": "allenai/social_i_qa",
|
| 449 |
+
"revision": "537a2ec8ec565adc0b70b70752893e59e024df26",
|
| 450 |
+
"split": "validation"
|
| 451 |
+
},
|
| 452 |
+
"metric": "acc",
|
| 453 |
+
"filter": "none",
|
| 454 |
+
"value": 0.3679631525076766,
|
| 455 |
+
"score_x100": 36.796315250767655,
|
| 456 |
+
"effective_context_cap": 2048,
|
| 457 |
+
"result_sha256": "17d612a21245c5fd85bba1673615c52a9c2af79ddb11be0345b68f36e8815b5e",
|
| 458 |
+
"comparison_scores_x100": {
|
| 459 |
+
"cria": 40.634595701125896,
|
| 460 |
+
"gpt_x3": 38.996929375639716,
|
| 461 |
+
"supra2": 38.3828045035824,
|
| 462 |
+
"gpt2": 36.54042988741044
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"task": "race",
|
| 467 |
+
"language": "en",
|
| 468 |
+
"examples": 1045,
|
| 469 |
+
"shots": 0,
|
| 470 |
+
"dataset": {
|
| 471 |
+
"id": "EleutherAI/race",
|
| 472 |
+
"revision": "4648d37b02a337d6ed57861667d9655e7799ce31",
|
| 473 |
+
"split": "test"
|
| 474 |
+
},
|
| 475 |
+
"metric": "acc",
|
| 476 |
+
"filter": "none",
|
| 477 |
+
"value": 0.26220095693779905,
|
| 478 |
+
"score_x100": 26.220095693779903,
|
| 479 |
+
"effective_context_cap": 2048,
|
| 480 |
+
"result_sha256": "d160589c486f627d4d69d7546f14dfd99edff2681e74cbca6fa57854df9f2267",
|
| 481 |
+
"comparison_scores_x100": {
|
| 482 |
+
"cria": 30.7177033492823,
|
| 483 |
+
"gpt_x3": 33.588516746411486,
|
| 484 |
+
"supra2": 30.14354066985646,
|
| 485 |
+
"gpt2": 29.665071770334926
|
| 486 |
+
}
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"task": "mmlu",
|
| 490 |
+
"language": "en",
|
| 491 |
+
"examples": 14042,
|
| 492 |
+
"shots": 5,
|
| 493 |
+
"dataset": {
|
| 494 |
+
"id": "cais/mmlu",
|
| 495 |
+
"split": "test"
|
| 496 |
+
},
|
| 497 |
+
"metric": "acc",
|
| 498 |
+
"filter": "none",
|
| 499 |
+
"value": 0.26264064948013105,
|
| 500 |
+
"score_x100": 26.264064948013104,
|
| 501 |
+
"effective_context_cap": 2048,
|
| 502 |
+
"result_sha256": "a9a35b102a48dd774899426ccfba791e4435db7d5b56e27c017a2a10a12fe34b",
|
| 503 |
+
"comparison_scores_x100": {
|
| 504 |
+
"cria": 25.580401652186296,
|
| 505 |
+
"gpt_x3": 25.31690642358638,
|
| 506 |
+
"supra2": 25.13886910696482,
|
| 507 |
+
"gpt2": 26.292550918672553
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"task": "triviaqa",
|
| 512 |
+
"language": "en",
|
| 513 |
+
"examples": 17944,
|
| 514 |
+
"shots": 0,
|
| 515 |
+
"dataset": {
|
| 516 |
+
"id": "mandarjoshi/trivia_qa",
|
| 517 |
+
"revision": "bd67746ffd85804fdc6b2ec5b00222ea26f8117e",
|
| 518 |
+
"split": "validation"
|
| 519 |
+
},
|
| 520 |
+
"metric": "exact_match",
|
| 521 |
+
"filter": "remove_whitespace",
|
| 522 |
+
"value": 0.0035109228711547036,
|
| 523 |
+
"score_x100": 0.35109228711547036,
|
| 524 |
+
"effective_context_cap": 2048,
|
| 525 |
+
"result_sha256": "27c51f3dbb548ba5c87147d3400ff5a957daeef2e9827f12d5d446d10b3078cd",
|
| 526 |
+
"comparison_scores_x100": {
|
| 527 |
+
"cria": 4.837271511368703,
|
| 528 |
+
"gpt_x3": 2.2848863129736956,
|
| 529 |
+
"supra2": 1.1312973695942934,
|
| 530 |
+
"gpt2": 0.362238074008025
|
| 531 |
+
}
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"task": "gsm8k",
|
| 535 |
+
"language": "en",
|
| 536 |
+
"examples": 1319,
|
| 537 |
+
"shots": 5,
|
| 538 |
+
"dataset": {
|
| 539 |
+
"id": "openai/gsm8k",
|
| 540 |
+
"split": "test",
|
| 541 |
+
"config": "main"
|
| 542 |
+
},
|
| 543 |
+
"metric": "exact_match",
|
| 544 |
+
"filter": "flexible-extract",
|
| 545 |
+
"value": 0.01819560272934041,
|
| 546 |
+
"score_x100": 1.819560272934041,
|
| 547 |
+
"effective_context_cap": 2048,
|
| 548 |
+
"result_sha256": "2bb2657f31557a6bc2285c9423cdf045f9e9fa8781223abfd71a29f77c883fcb",
|
| 549 |
+
"comparison_scores_x100": {
|
| 550 |
+
"cria": 1.9711902956785443,
|
| 551 |
+
"gpt_x3": 4.927975739196361,
|
| 552 |
+
"supra2": 1.1372251705837757,
|
| 553 |
+
"gpt2": 1.2130401819560273
|
| 554 |
+
}
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"task": "hendrycks_math500",
|
| 558 |
+
"language": "en",
|
| 559 |
+
"examples": 500,
|
| 560 |
+
"shots": 0,
|
| 561 |
+
"dataset": {
|
| 562 |
+
"id": "HuggingFaceH4/MATH-500",
|
| 563 |
+
"split": "test",
|
| 564 |
+
"config": "default"
|
| 565 |
+
},
|
| 566 |
+
"metric": "exact_match",
|
| 567 |
+
"filter": "none",
|
| 568 |
+
"value": 0.002,
|
| 569 |
+
"score_x100": 0.2,
|
| 570 |
+
"effective_context_cap": 2048,
|
| 571 |
+
"result_sha256": "cbbd7778d7a5fb4c4881cd8730411f65aee67dbb72205696315392792963cbc0",
|
| 572 |
+
"comparison_scores_x100": {
|
| 573 |
+
"cria": 0.0,
|
| 574 |
+
"gpt_x3": 1.6,
|
| 575 |
+
"supra2": 0.4,
|
| 576 |
+
"gpt2": 0.2
|
| 577 |
+
}
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"task": "bbh",
|
| 581 |
+
"language": "en",
|
| 582 |
+
"examples": 6511,
|
| 583 |
+
"shots": 3,
|
| 584 |
+
"dataset": {
|
| 585 |
+
"id": "SaylorTwift/bbh",
|
| 586 |
+
"split": "test"
|
| 587 |
+
},
|
| 588 |
+
"metric": "exact_match",
|
| 589 |
+
"filter": "get-answer",
|
| 590 |
+
"value": 0.20488404238980187,
|
| 591 |
+
"score_x100": 20.488404238980188,
|
| 592 |
+
"effective_context_cap": 2048,
|
| 593 |
+
"result_sha256": "7bdd4d7446e925d2b8a01b959d9c6beebf5b803c6c659ca3ce45cb5debb53211",
|
| 594 |
+
"comparison_scores_x100": {
|
| 595 |
+
"cria": 17.90815542927354,
|
| 596 |
+
"gpt_x3": 23.51405314083858,
|
| 597 |
+
"supra2": 6.896022116418369,
|
| 598 |
+
"gpt2": 4.761173398863462
|
| 599 |
+
}
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"task": "humaneval",
|
| 603 |
+
"language": "en",
|
| 604 |
+
"examples": 164,
|
| 605 |
+
"shots": 0,
|
| 606 |
+
"dataset": {
|
| 607 |
+
"id": "openai/openai_humaneval",
|
| 608 |
+
"split": "test"
|
| 609 |
+
},
|
| 610 |
+
"metric": "pass@1",
|
| 611 |
+
"filter": "create_test",
|
| 612 |
+
"value": 0.036585365853658534,
|
| 613 |
+
"score_x100": 3.6585365853658534,
|
| 614 |
+
"effective_context_cap": 2048,
|
| 615 |
+
"result_sha256": "e6478f954ac872f499d7ae0d4c19a8bee652636326b55cd9475a5c0c921e1e6d",
|
| 616 |
+
"comparison_scores_x100": {
|
| 617 |
+
"cria": 0.0,
|
| 618 |
+
"gpt_x3": 1.8292682926829267,
|
| 619 |
+
"supra2": 0.0,
|
| 620 |
+
"gpt2": 0.0
|
| 621 |
+
}
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"task": "mbpp",
|
| 625 |
+
"language": "en",
|
| 626 |
+
"examples": 500,
|
| 627 |
+
"shots": 3,
|
| 628 |
+
"dataset": {
|
| 629 |
+
"id": "google-research-datasets/mbpp",
|
| 630 |
+
"split": "test",
|
| 631 |
+
"config": "full"
|
| 632 |
+
},
|
| 633 |
+
"metric": "pass_at_1",
|
| 634 |
+
"filter": "none",
|
| 635 |
+
"value": 0.0,
|
| 636 |
+
"score_x100": 0.0,
|
| 637 |
+
"effective_context_cap": 2048,
|
| 638 |
+
"result_sha256": "48efadc7c13956540b94e786ad20c5163be278353a03d76463fe050080b92bc1",
|
| 639 |
+
"comparison_scores_x100": {
|
| 640 |
+
"cria": 0.2,
|
| 641 |
+
"gpt_x3": 1.2,
|
| 642 |
+
"supra2": 0.0,
|
| 643 |
+
"gpt2": 0.0
|
| 644 |
+
}
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"task": "mbpp_plus",
|
| 648 |
+
"language": "en",
|
| 649 |
+
"examples": 378,
|
| 650 |
+
"shots": 3,
|
| 651 |
+
"dataset": {
|
| 652 |
+
"id": "evalplus/mbppplus",
|
| 653 |
+
"split": "test"
|
| 654 |
+
},
|
| 655 |
+
"metric": "pass_at_1",
|
| 656 |
+
"filter": "none",
|
| 657 |
+
"value": 0.0026455026455026454,
|
| 658 |
+
"score_x100": 0.26455026455026454,
|
| 659 |
+
"effective_context_cap": 2048,
|
| 660 |
+
"result_sha256": "bac0f868acd9d747659ffcfe8dd9aeccbc6129e4f00c92561642069454c4f2ae",
|
| 661 |
+
"comparison_scores_x100": {
|
| 662 |
+
"cria": 0.0,
|
| 663 |
+
"gpt_x3": 1.0582010582010581,
|
| 664 |
+
"supra2": 0.0,
|
| 665 |
+
"gpt2": 0.0
|
| 666 |
+
}
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"task": "mmlu_pro_mc0",
|
| 670 |
+
"language": "en",
|
| 671 |
+
"examples": 12032,
|
| 672 |
+
"shots": 0,
|
| 673 |
+
"dataset": {
|
| 674 |
+
"id": "TIGER-Lab/MMLU-Pro",
|
| 675 |
+
"revision": "b189ec765aa7ed75c8acfea42df31fdae71f97be",
|
| 676 |
+
"split": "test"
|
| 677 |
+
},
|
| 678 |
+
"metric": "acc",
|
| 679 |
+
"filter": "none",
|
| 680 |
+
"value": 0.11328125,
|
| 681 |
+
"score_x100": 11.328125,
|
| 682 |
+
"effective_context_cap": 2048,
|
| 683 |
+
"result_sha256": "f28ceb77cbcbf6b141064859c1e9a3e33275cc95f957f135077426915d45fa48",
|
| 684 |
+
"comparison_scores_x100": {
|
| 685 |
+
"cria": null,
|
| 686 |
+
"gpt_x3": null,
|
| 687 |
+
"supra2": null,
|
| 688 |
+
"gpt2": null
|
| 689 |
+
}
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"task": "global_mmlu_full_ru",
|
| 693 |
+
"language": "ru",
|
| 694 |
+
"examples": 14042,
|
| 695 |
+
"shots": 5,
|
| 696 |
+
"dataset": {
|
| 697 |
+
"id": "CohereForAI/Global-MMLU",
|
| 698 |
+
"split": "test",
|
| 699 |
+
"config": "ru"
|
| 700 |
+
},
|
| 701 |
+
"metric": "acc",
|
| 702 |
+
"filter": "none",
|
| 703 |
+
"value": 0.2647058823529412,
|
| 704 |
+
"score_x100": 26.47058823529412,
|
| 705 |
+
"effective_context_cap": 2048,
|
| 706 |
+
"result_sha256": "4adc65ebd21235481aa3d44e6f11fcc1bb30da1e418dc40314f8999b6c927c79",
|
| 707 |
+
"comparison_scores_x100": {
|
| 708 |
+
"cria": null,
|
| 709 |
+
"gpt_x3": null,
|
| 710 |
+
"supra2": null,
|
| 711 |
+
"gpt2": null
|
| 712 |
+
}
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"task": "mmlu_prox_ru_mc0",
|
| 716 |
+
"language": "ru",
|
| 717 |
+
"examples": 11759,
|
| 718 |
+
"shots": 0,
|
| 719 |
+
"dataset": {
|
| 720 |
+
"id": "li-lab/MMLU-ProX",
|
| 721 |
+
"revision": "8e6106a6c6ce1c5027e66cc338143cf997b2aa09",
|
| 722 |
+
"split": "test",
|
| 723 |
+
"config": "ru"
|
| 724 |
+
},
|
| 725 |
+
"metric": "acc",
|
| 726 |
+
"filter": "none",
|
| 727 |
+
"value": 0.11318989710009354,
|
| 728 |
+
"score_x100": 11.318989710009355,
|
| 729 |
+
"effective_context_cap": 2048,
|
| 730 |
+
"result_sha256": "c03f7cbbc5a6a2d818edda4137123fa59e495d0e5779acf85cf2833a3b5806c3",
|
| 731 |
+
"comparison_scores_x100": {
|
| 732 |
+
"cria": null,
|
| 733 |
+
"gpt_x3": null,
|
| 734 |
+
"supra2": null,
|
| 735 |
+
"gpt2": null
|
| 736 |
+
}
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"task": "mera_rummlu_mc0",
|
| 740 |
+
"language": "ru",
|
| 741 |
+
"examples": 14012,
|
| 742 |
+
"shots": 0,
|
| 743 |
+
"dataset": {
|
| 744 |
+
"id": "MERA-evaluation/MERA",
|
| 745 |
+
"revision": "15c0e5b8e27551b50aa27f5497074810c8740661",
|
| 746 |
+
"split": "test"
|
| 747 |
+
},
|
| 748 |
+
"metric": "acc",
|
| 749 |
+
"filter": "none",
|
| 750 |
+
"value": 0.23108763916642877,
|
| 751 |
+
"score_x100": 23.10876391664288,
|
| 752 |
+
"effective_context_cap": 2048,
|
| 753 |
+
"result_sha256": "1f5027d61a7bf5599b0b18a8e9796b4fbc115829dfcfe213f374b49886415771",
|
| 754 |
+
"comparison_scores_x100": {
|
| 755 |
+
"cria": null,
|
| 756 |
+
"gpt_x3": null,
|
| 757 |
+
"supra2": null,
|
| 758 |
+
"gpt2": null
|
| 759 |
+
}
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"task": "include_base_44_russian",
|
| 763 |
+
"language": "ru",
|
| 764 |
+
"examples": 552,
|
| 765 |
+
"shots": 0,
|
| 766 |
+
"dataset": {
|
| 767 |
+
"id": "CohereForAI/include-base-44",
|
| 768 |
+
"split": "test",
|
| 769 |
+
"config": "Russian"
|
| 770 |
+
},
|
| 771 |
+
"metric": "acc",
|
| 772 |
+
"filter": "none",
|
| 773 |
+
"value": 0.2807971014492754,
|
| 774 |
+
"score_x100": 28.07971014492754,
|
| 775 |
+
"effective_context_cap": 2048,
|
| 776 |
+
"result_sha256": "af900521d3078a6540e7dba503f31e19c09ff8574d5808cb51738ee5f23463b8",
|
| 777 |
+
"comparison_scores_x100": {
|
| 778 |
+
"cria": null,
|
| 779 |
+
"gpt_x3": null,
|
| 780 |
+
"supra2": null,
|
| 781 |
+
"gpt2": null
|
| 782 |
+
}
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"task": "rublimp_sum_ll",
|
| 786 |
+
"language": "ru",
|
| 787 |
+
"examples": 45000,
|
| 788 |
+
"shots": 0,
|
| 789 |
+
"dataset": {
|
| 790 |
+
"id": "RussianNLP/rublimp",
|
| 791 |
+
"revision": "88f0934bf26992d67d4a457eba3a25444efaae9c",
|
| 792 |
+
"split": "test"
|
| 793 |
+
},
|
| 794 |
+
"metric": "acc",
|
| 795 |
+
"filter": "none",
|
| 796 |
+
"value": 0.9198888888888889,
|
| 797 |
+
"score_x100": 91.98888888888888,
|
| 798 |
+
"effective_context_cap": 2048,
|
| 799 |
+
"result_sha256": "fbb3f65b73dee9b528ea4e34cf6bdeaf1d79db24f1a82e99c4efcc2a4472201a",
|
| 800 |
+
"comparison_scores_x100": {
|
| 801 |
+
"cria": null,
|
| 802 |
+
"gpt_x3": null,
|
| 803 |
+
"supra2": null,
|
| 804 |
+
"gpt2": null
|
| 805 |
+
}
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"task": "rucola_dev",
|
| 809 |
+
"language": "ru",
|
| 810 |
+
"examples": 2787,
|
| 811 |
+
"shots": 0,
|
| 812 |
+
"dataset": {
|
| 813 |
+
"id": "RussianNLP/rucola",
|
| 814 |
+
"revision": "00e61d446ceb0daff4ac584798221bd0c7aa90c4",
|
| 815 |
+
"split": "validation"
|
| 816 |
+
},
|
| 817 |
+
"metric": "mcc",
|
| 818 |
+
"filter": "none",
|
| 819 |
+
"value": 0.002637654467725006,
|
| 820 |
+
"score_x100": 0.2637654467725006,
|
| 821 |
+
"effective_context_cap": 2048,
|
| 822 |
+
"result_sha256": "65fd6746cdc5cb9275d7fc20b5cda3c3de94000059815c353662204a054e7ace",
|
| 823 |
+
"comparison_scores_x100": {
|
| 824 |
+
"cria": null,
|
| 825 |
+
"gpt_x3": null,
|
| 826 |
+
"supra2": null,
|
| 827 |
+
"gpt2": null
|
| 828 |
+
}
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"task": "sberquad_dev",
|
| 832 |
+
"language": "ru",
|
| 833 |
+
"examples": 5036,
|
| 834 |
+
"shots": 0,
|
| 835 |
+
"dataset": {
|
| 836 |
+
"id": "kuznetsoffandrey/sberquad",
|
| 837 |
+
"revision": "deb870ee29b280657470f2c3851e9b23899fdbc3",
|
| 838 |
+
"split": "validation"
|
| 839 |
+
},
|
| 840 |
+
"metric": "f1",
|
| 841 |
+
"filter": "none",
|
| 842 |
+
"value": 0.07848110874929681,
|
| 843 |
+
"score_x100": 7.848110874929681,
|
| 844 |
+
"effective_context_cap": 2048,
|
| 845 |
+
"result_sha256": "6e05c5f82766476114bd5d32a630ef5b60b6cc74da4302720fb433fa7a7ddd3d",
|
| 846 |
+
"comparison_scores_x100": {
|
| 847 |
+
"cria": null,
|
| 848 |
+
"gpt_x3": null,
|
| 849 |
+
"supra2": null,
|
| 850 |
+
"gpt2": null
|
| 851 |
+
}
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"task": "rsg_danetqa",
|
| 855 |
+
"language": "ru",
|
| 856 |
+
"examples": 821,
|
| 857 |
+
"shots": 0,
|
| 858 |
+
"dataset": {
|
| 859 |
+
"id": "RussianNLP/russian_super_glue",
|
| 860 |
+
"revision": "e2ce2b9b11b2c7005531b4fc205f45f4b59cae73",
|
| 861 |
+
"split": "validation"
|
| 862 |
+
},
|
| 863 |
+
"metric": "acc",
|
| 864 |
+
"filter": "none",
|
| 865 |
+
"value": 0.48964677222898906,
|
| 866 |
+
"score_x100": 48.96467722289891,
|
| 867 |
+
"effective_context_cap": 2048,
|
| 868 |
+
"result_sha256": "5f55fba51667a64ef06e2f6a343744838ffc3c47079035fcd98f4896e37f0710",
|
| 869 |
+
"comparison_scores_x100": {
|
| 870 |
+
"cria": null,
|
| 871 |
+
"gpt_x3": null,
|
| 872 |
+
"supra2": null,
|
| 873 |
+
"gpt2": null
|
| 874 |
+
}
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"task": "rsg_parus",
|
| 878 |
+
"language": "ru",
|
| 879 |
+
"examples": 100,
|
| 880 |
+
"shots": 0,
|
| 881 |
+
"dataset": {
|
| 882 |
+
"id": "RussianNLP/russian_super_glue",
|
| 883 |
+
"revision": "e2ce2b9b11b2c7005531b4fc205f45f4b59cae73",
|
| 884 |
+
"split": "validation"
|
| 885 |
+
},
|
| 886 |
+
"metric": "acc",
|
| 887 |
+
"filter": "none",
|
| 888 |
+
"value": 0.64,
|
| 889 |
+
"score_x100": 64.0,
|
| 890 |
+
"effective_context_cap": 2048,
|
| 891 |
+
"result_sha256": "5a08618b70969377d68f1e6608c9165942c5ffdf6cd66f5f5dc5cc9645902bb0",
|
| 892 |
+
"comparison_scores_x100": {
|
| 893 |
+
"cria": null,
|
| 894 |
+
"gpt_x3": null,
|
| 895 |
+
"supra2": null,
|
| 896 |
+
"gpt2": null
|
| 897 |
+
}
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"task": "rsg_rcb",
|
| 901 |
+
"language": "ru",
|
| 902 |
+
"examples": 220,
|
| 903 |
+
"shots": 0,
|
| 904 |
+
"dataset": {
|
| 905 |
+
"id": "RussianNLP/russian_super_glue",
|
| 906 |
+
"revision": "e2ce2b9b11b2c7005531b4fc205f45f4b59cae73",
|
| 907 |
+
"split": "validation"
|
| 908 |
+
},
|
| 909 |
+
"metric": "acc",
|
| 910 |
+
"filter": "none",
|
| 911 |
+
"value": 0.32272727272727275,
|
| 912 |
+
"score_x100": 32.27272727272727,
|
| 913 |
+
"effective_context_cap": 2048,
|
| 914 |
+
"result_sha256": "51c5ee71df7df7f65d4d4df95bb021e17871cc2207dc91f154a507efbd1460f0",
|
| 915 |
+
"comparison_scores_x100": {
|
| 916 |
+
"cria": null,
|
| 917 |
+
"gpt_x3": null,
|
| 918 |
+
"supra2": null,
|
| 919 |
+
"gpt2": null
|
| 920 |
+
}
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"task": "rsg_russe",
|
| 924 |
+
"language": "ru",
|
| 925 |
+
"examples": 8505,
|
| 926 |
+
"shots": 0,
|
| 927 |
+
"dataset": {
|
| 928 |
+
"id": "RussianNLP/russian_super_glue",
|
| 929 |
+
"revision": "e2ce2b9b11b2c7005531b4fc205f45f4b59cae73",
|
| 930 |
+
"split": "validation"
|
| 931 |
+
},
|
| 932 |
+
"metric": "acc",
|
| 933 |
+
"filter": "none",
|
| 934 |
+
"value": 0.3850676072898295,
|
| 935 |
+
"score_x100": 38.506760728982954,
|
| 936 |
+
"effective_context_cap": 2048,
|
| 937 |
+
"result_sha256": "71147ffc8c0e7ebf191784e3e1cb9dd8a3ff77b22941089af9138b4cc07f23fd",
|
| 938 |
+
"comparison_scores_x100": {
|
| 939 |
+
"cria": null,
|
| 940 |
+
"gpt_x3": null,
|
| 941 |
+
"supra2": null,
|
| 942 |
+
"gpt2": null
|
| 943 |
+
}
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"task": "rsg_rwsd",
|
| 947 |
+
"language": "ru",
|
| 948 |
+
"examples": 204,
|
| 949 |
+
"shots": 0,
|
| 950 |
+
"dataset": {
|
| 951 |
+
"id": "RussianNLP/russian_super_glue",
|
| 952 |
+
"revision": "e2ce2b9b11b2c7005531b4fc205f45f4b59cae73",
|
| 953 |
+
"split": "validation"
|
| 954 |
+
},
|
| 955 |
+
"metric": "acc",
|
| 956 |
+
"filter": "none",
|
| 957 |
+
"value": 0.5147058823529411,
|
| 958 |
+
"score_x100": 51.470588235294116,
|
| 959 |
+
"effective_context_cap": 2048,
|
| 960 |
+
"result_sha256": "4580bc8b5ea2232e91a9a1300fb89c9762478a915f97fb3569fd19b62e6c78c6",
|
| 961 |
+
"comparison_scores_x100": {
|
| 962 |
+
"cria": null,
|
| 963 |
+
"gpt_x3": null,
|
| 964 |
+
"supra2": null,
|
| 965 |
+
"gpt2": null
|
| 966 |
+
}
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"task": "rsg_terra",
|
| 970 |
+
"language": "ru",
|
| 971 |
+
"examples": 307,
|
| 972 |
+
"shots": 0,
|
| 973 |
+
"dataset": {
|
| 974 |
+
"id": "RussianNLP/russian_super_glue",
|
| 975 |
+
"revision": "e2ce2b9b11b2c7005531b4fc205f45f4b59cae73",
|
| 976 |
+
"split": "validation"
|
| 977 |
+
},
|
| 978 |
+
"metric": "acc",
|
| 979 |
+
"filter": "none",
|
| 980 |
+
"value": 0.48534201954397393,
|
| 981 |
+
"score_x100": 48.534201954397396,
|
| 982 |
+
"effective_context_cap": 2048,
|
| 983 |
+
"result_sha256": "ce48e0c569d1835bcf6402c09a014b403e70132e64d80afca44568e2d30b7ebd",
|
| 984 |
+
"comparison_scores_x100": {
|
| 985 |
+
"cria": null,
|
| 986 |
+
"gpt_x3": null,
|
| 987 |
+
"supra2": null,
|
| 988 |
+
"gpt2": null
|
| 989 |
+
}
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"task": "belebele_rus_Cyrl",
|
| 993 |
+
"language": "ru",
|
| 994 |
+
"examples": 900,
|
| 995 |
+
"shots": 0,
|
| 996 |
+
"dataset": {
|
| 997 |
+
"id": "facebook/belebele",
|
| 998 |
+
"split": "test",
|
| 999 |
+
"config": "rus_Cyrl"
|
| 1000 |
+
},
|
| 1001 |
+
"metric": "acc",
|
| 1002 |
+
"filter": "none",
|
| 1003 |
+
"value": 0.24888888888888888,
|
| 1004 |
+
"score_x100": 24.88888888888889,
|
| 1005 |
+
"effective_context_cap": 2048,
|
| 1006 |
+
"result_sha256": "13a286dacffadd41af24ed3f376bc5d7e9f776a60881d3cee719b523b813099a",
|
| 1007 |
+
"comparison_scores_x100": {
|
| 1008 |
+
"cria": null,
|
| 1009 |
+
"gpt_x3": null,
|
| 1010 |
+
"supra2": null,
|
| 1011 |
+
"gpt2": null
|
| 1012 |
+
}
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"task": "xnli_ru",
|
| 1016 |
+
"language": "ru",
|
| 1017 |
+
"examples": 2490,
|
| 1018 |
+
"shots": 0,
|
| 1019 |
+
"dataset": {
|
| 1020 |
+
"id": "facebook/xnli",
|
| 1021 |
+
"revision": "b8dd5d7af51114dbda02c0e3f6133f332186418e",
|
| 1022 |
+
"split": "validation",
|
| 1023 |
+
"config": "ru"
|
| 1024 |
+
},
|
| 1025 |
+
"metric": "acc",
|
| 1026 |
+
"filter": "none",
|
| 1027 |
+
"value": 0.39759036144578314,
|
| 1028 |
+
"score_x100": 39.75903614457831,
|
| 1029 |
+
"effective_context_cap": 2048,
|
| 1030 |
+
"result_sha256": "40d5c893329a838abb4cef48e41dc74463d043b614355dab879ebc9bc63a6e33",
|
| 1031 |
+
"comparison_scores_x100": {
|
| 1032 |
+
"cria": null,
|
| 1033 |
+
"gpt_x3": null,
|
| 1034 |
+
"supra2": null,
|
| 1035 |
+
"gpt2": null
|
| 1036 |
+
}
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"task": "xquad_ru",
|
| 1040 |
+
"language": "ru",
|
| 1041 |
+
"examples": 1190,
|
| 1042 |
+
"shots": 0,
|
| 1043 |
+
"dataset": {
|
| 1044 |
+
"id": "google/xquad",
|
| 1045 |
+
"revision": "51adfef1c1287aab1d2d91b5bead9bcfb9c68583",
|
| 1046 |
+
"split": "validation",
|
| 1047 |
+
"config": "xquad.ru"
|
| 1048 |
+
},
|
| 1049 |
+
"metric": "f1",
|
| 1050 |
+
"filter": "none",
|
| 1051 |
+
"value": 0.02652058354691999,
|
| 1052 |
+
"score_x100": 2.6520583546919987,
|
| 1053 |
+
"effective_context_cap": 2048,
|
| 1054 |
+
"result_sha256": "de6f3fe6883d33520dcfb1769af8326d0cc1da7619607dc3bdfa57a9405a69b2",
|
| 1055 |
+
"comparison_scores_x100": {
|
| 1056 |
+
"cria": null,
|
| 1057 |
+
"gpt_x3": null,
|
| 1058 |
+
"supra2": null,
|
| 1059 |
+
"gpt2": null
|
| 1060 |
+
}
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"task": "xwinograd_ru",
|
| 1064 |
+
"language": "ru",
|
| 1065 |
+
"examples": 315,
|
| 1066 |
+
"shots": 0,
|
| 1067 |
+
"dataset": {
|
| 1068 |
+
"id": "Muennighoff/xwinograd",
|
| 1069 |
+
"split": "test",
|
| 1070 |
+
"config": "ru"
|
| 1071 |
+
},
|
| 1072 |
+
"metric": "acc",
|
| 1073 |
+
"filter": "none",
|
| 1074 |
+
"value": 0.546031746031746,
|
| 1075 |
+
"score_x100": 54.6031746031746,
|
| 1076 |
+
"effective_context_cap": 2048,
|
| 1077 |
+
"result_sha256": "e3b5b2e17d36e5633ca1208bdc49b5610b77ebc4dd9e9da9b7a4fba8706fc3a9",
|
| 1078 |
+
"comparison_scores_x100": {
|
| 1079 |
+
"cria": null,
|
| 1080 |
+
"gpt_x3": null,
|
| 1081 |
+
"supra2": null,
|
| 1082 |
+
"gpt2": null
|
| 1083 |
+
}
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"task": "xstorycloze_ru",
|
| 1087 |
+
"language": "ru",
|
| 1088 |
+
"examples": 1511,
|
| 1089 |
+
"shots": 0,
|
| 1090 |
+
"dataset": {
|
| 1091 |
+
"id": "juletxara/xstory_cloze",
|
| 1092 |
+
"split": "eval",
|
| 1093 |
+
"config": "ru"
|
| 1094 |
+
},
|
| 1095 |
+
"metric": "acc",
|
| 1096 |
+
"filter": "none",
|
| 1097 |
+
"value": 0.5208471211118465,
|
| 1098 |
+
"score_x100": 52.08471211118465,
|
| 1099 |
+
"effective_context_cap": 2048,
|
| 1100 |
+
"result_sha256": "5abc6914b5dd035bbc4b64422b656a8772dff5eb0f839a62816f51140a5f7b0f",
|
| 1101 |
+
"comparison_scores_x100": {
|
| 1102 |
+
"cria": null,
|
| 1103 |
+
"gpt_x3": null,
|
| 1104 |
+
"supra2": null,
|
| 1105 |
+
"gpt2": null
|
| 1106 |
+
}
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"task": "mgsm_native_cot_ru",
|
| 1110 |
+
"language": "ru",
|
| 1111 |
+
"examples": 250,
|
| 1112 |
+
"shots": 8,
|
| 1113 |
+
"dataset": {
|
| 1114 |
+
"id": "juletxara/mgsm",
|
| 1115 |
+
"split": "test",
|
| 1116 |
+
"config": "ru"
|
| 1117 |
+
},
|
| 1118 |
+
"metric": "exact_match",
|
| 1119 |
+
"filter": "flexible-extract",
|
| 1120 |
+
"value": 0.016,
|
| 1121 |
+
"score_x100": 1.6,
|
| 1122 |
+
"effective_context_cap": 2048,
|
| 1123 |
+
"result_sha256": "80eee47b10b7d072e2b5dcf91060e997a5963a749c2263f07b1c7d10bff43ed5",
|
| 1124 |
+
"comparison_scores_x100": {
|
| 1125 |
+
"cria": null,
|
| 1126 |
+
"gpt_x3": null,
|
| 1127 |
+
"supra2": null,
|
| 1128 |
+
"gpt2": null
|
| 1129 |
+
}
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"task": "arc_ru",
|
| 1133 |
+
"language": "ru",
|
| 1134 |
+
"examples": 1169,
|
| 1135 |
+
"shots": 0,
|
| 1136 |
+
"dataset": {
|
| 1137 |
+
"id": "alexandrainst/m_arc",
|
| 1138 |
+
"split": "test",
|
| 1139 |
+
"config": "ru"
|
| 1140 |
+
},
|
| 1141 |
+
"metric": "acc_norm",
|
| 1142 |
+
"filter": "none",
|
| 1143 |
+
"value": 0.2446535500427716,
|
| 1144 |
+
"score_x100": 24.46535500427716,
|
| 1145 |
+
"effective_context_cap": 2048,
|
| 1146 |
+
"result_sha256": "2cfbaed4301b9488271d9a6f060bbb6026bb0467b944f6d2f4689f24617e0eaa",
|
| 1147 |
+
"comparison_scores_x100": {
|
| 1148 |
+
"cria": null,
|
| 1149 |
+
"gpt_x3": null,
|
| 1150 |
+
"supra2": null,
|
| 1151 |
+
"gpt2": null
|
| 1152 |
+
}
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"task": "hellaswag_ru",
|
| 1156 |
+
"language": "ru",
|
| 1157 |
+
"examples": 9272,
|
| 1158 |
+
"shots": 0,
|
| 1159 |
+
"dataset": {
|
| 1160 |
+
"id": "alexandrainst/m_hellaswag",
|
| 1161 |
+
"split": "val",
|
| 1162 |
+
"config": "ru"
|
| 1163 |
+
},
|
| 1164 |
+
"metric": "acc_norm",
|
| 1165 |
+
"filter": "none",
|
| 1166 |
+
"value": 0.29227782571182054,
|
| 1167 |
+
"score_x100": 29.227782571182054,
|
| 1168 |
+
"effective_context_cap": 2048,
|
| 1169 |
+
"result_sha256": "9be249a862f7c170ced6863300774cca2fb9fb4548bc8c8eb7e2d5633853dbef",
|
| 1170 |
+
"comparison_scores_x100": {
|
| 1171 |
+
"cria": null,
|
| 1172 |
+
"gpt_x3": null,
|
| 1173 |
+
"supra2": null,
|
| 1174 |
+
"gpt2": null
|
| 1175 |
+
}
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"task": "truthfulqa_ru_mc2",
|
| 1179 |
+
"language": "ru",
|
| 1180 |
+
"examples": 788,
|
| 1181 |
+
"shots": 0,
|
| 1182 |
+
"dataset": {
|
| 1183 |
+
"id": "alexandrainst/m_truthfulqa",
|
| 1184 |
+
"split": "val",
|
| 1185 |
+
"config": "ru"
|
| 1186 |
+
},
|
| 1187 |
+
"metric": "acc",
|
| 1188 |
+
"filter": "none",
|
| 1189 |
+
"value": 0.4753698298393998,
|
| 1190 |
+
"score_x100": 47.53698298393998,
|
| 1191 |
+
"effective_context_cap": 2048,
|
| 1192 |
+
"result_sha256": "b8ed1fa2179316421ae74ea9d0a6b10327ff56b2ec8907afdac0c7c1339dd72c",
|
| 1193 |
+
"comparison_scores_x100": {
|
| 1194 |
+
"cria": null,
|
| 1195 |
+
"gpt_x3": null,
|
| 1196 |
+
"supra2": null,
|
| 1197 |
+
"gpt2": null
|
| 1198 |
+
}
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"task": "global_piqa_completions_rus_cyrl",
|
| 1202 |
+
"language": "ru",
|
| 1203 |
+
"examples": 100,
|
| 1204 |
+
"shots": 0,
|
| 1205 |
+
"dataset": {
|
| 1206 |
+
"id": "mrlbenchmarks/global-piqa-nonparallel",
|
| 1207 |
+
"split": "test",
|
| 1208 |
+
"config": "rus_cyrl"
|
| 1209 |
+
},
|
| 1210 |
+
"metric": "acc_norm",
|
| 1211 |
+
"filter": "none",
|
| 1212 |
+
"value": 0.64,
|
| 1213 |
+
"score_x100": 64.0,
|
| 1214 |
+
"effective_context_cap": 2048,
|
| 1215 |
+
"result_sha256": "92c73302104bbbf118b50867c3e307a738650b95a8957a49ec5865f6c70434a1",
|
| 1216 |
+
"comparison_scores_x100": {
|
| 1217 |
+
"cria": null,
|
| 1218 |
+
"gpt_x3": null,
|
| 1219 |
+
"supra2": null,
|
| 1220 |
+
"gpt2": null
|
| 1221 |
+
}
|
| 1222 |
+
}
|
| 1223 |
+
],
|
| 1224 |
+
"comparisons": [
|
| 1225 |
+
{
|
| 1226 |
+
"id": "reference-cria",
|
| 1227 |
+
"key": "cria",
|
| 1228 |
+
"name": "cRia-75M (benchmark-adapted)",
|
| 1229 |
+
"parameters": 75719395,
|
| 1230 |
+
"evaluated_tasks": 26,
|
| 1231 |
+
"benchmark_adapted": true,
|
| 1232 |
+
"source_sha256": "95e7d96094ea7815179c5726eb476f3a1c104dcb60ea057cb1fb717732187d81",
|
| 1233 |
+
"evidence": {
|
| 1234 |
+
"hellaswag": {
|
| 1235 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/hellaswag.json",
|
| 1236 |
+
"sha256": "7b7159e931343ff67f9577a6472230e5e5f818e06fe175de6a77c2c912558196",
|
| 1237 |
+
"historical": true
|
| 1238 |
+
},
|
| 1239 |
+
"arc_easy": {
|
| 1240 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/arc_easy.json",
|
| 1241 |
+
"sha256": "acf8e4d1c5f7e3d955b6c4f0df02c03ce9533a4b082c107460c4b1de177da7ed",
|
| 1242 |
+
"historical": true
|
| 1243 |
+
},
|
| 1244 |
+
"arc_challenge": {
|
| 1245 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/arc_challenge.json",
|
| 1246 |
+
"sha256": "0e9ce2057f0fe25e5900b2ac5403c7f824ae7e95401fdef11af9980ca50a2cae",
|
| 1247 |
+
"historical": true
|
| 1248 |
+
},
|
| 1249 |
+
"piqa": {
|
| 1250 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/piqa.json",
|
| 1251 |
+
"sha256": "fbf32f2ae284c92ea1dae17bb68b43bddaf15ccd4854034f96351e9e932eaadf",
|
| 1252 |
+
"historical": true
|
| 1253 |
+
},
|
| 1254 |
+
"winogrande": {
|
| 1255 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/winogrande.json",
|
| 1256 |
+
"sha256": "516e28344f9c1991a551409c659f4f177554dbec4756dc4175250a0d4dbf5a7f",
|
| 1257 |
+
"historical": true
|
| 1258 |
+
},
|
| 1259 |
+
"openbookqa": {
|
| 1260 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/openbookqa.json",
|
| 1261 |
+
"sha256": "90d0be9893fdf060de8ef8a2cfd7956ec5298616ded968f86fffb0594e3116fa",
|
| 1262 |
+
"historical": true
|
| 1263 |
+
},
|
| 1264 |
+
"boolq": {
|
| 1265 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/boolq.json",
|
| 1266 |
+
"sha256": "93fc4068b158a76dcd991063112edf100781bb36b99dbec3083f1a53c0f3b948",
|
| 1267 |
+
"historical": true
|
| 1268 |
+
},
|
| 1269 |
+
"lambada_openai": {
|
| 1270 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/lambada_openai.json",
|
| 1271 |
+
"sha256": "0c691e9b7ff1443b5d01f1e0e93dff4c50e011c07f2dc9cd023809a88af6e3b9",
|
| 1272 |
+
"historical": true
|
| 1273 |
+
},
|
| 1274 |
+
"arithmark3": {
|
| 1275 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/arithmark3.json",
|
| 1276 |
+
"sha256": "1d23020b8bdb4169c95bbbbe28db08a7d330292a9f71b34db6ad54ffa3593a95",
|
| 1277 |
+
"historical": true
|
| 1278 |
+
},
|
| 1279 |
+
"balanced_copa": {
|
| 1280 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/balanced_copa.json",
|
| 1281 |
+
"sha256": "d8e8de00a5b6700df45e24e1b13d215efc53be2ca0ab9036c21bc0d1f146e888",
|
| 1282 |
+
"historical": true
|
| 1283 |
+
},
|
| 1284 |
+
"blimp": {
|
| 1285 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/blimp.json",
|
| 1286 |
+
"sha256": "45b831e0d953b90d1e2b4ac6cb79e0485587f5aada6540ca0eb3755a8cb40060",
|
| 1287 |
+
"historical": true
|
| 1288 |
+
},
|
| 1289 |
+
"commonsense_qa": {
|
| 1290 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/commonsense_qa.json",
|
| 1291 |
+
"sha256": "d910cbde77713e3b299ec9f077b32303cc0e585d920b44ac4154c7b242deab66",
|
| 1292 |
+
"historical": true
|
| 1293 |
+
},
|
| 1294 |
+
"mmlu_continuation": {
|
| 1295 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/mmlu_continuation.json",
|
| 1296 |
+
"sha256": "d061019d753e6d723486ffef30842a0d02da058b3d6ab777b8d27858f2e67b2a",
|
| 1297 |
+
"historical": true
|
| 1298 |
+
},
|
| 1299 |
+
"sciq": {
|
| 1300 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/sciq.json",
|
| 1301 |
+
"sha256": "56932460afd3fa6429498c3f6f690d30aeb852a977f1f544b400bf6b4cf1a475",
|
| 1302 |
+
"historical": true
|
| 1303 |
+
},
|
| 1304 |
+
"truthfulqa_mc2": {
|
| 1305 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/truthfulqa_mc2.json",
|
| 1306 |
+
"sha256": "d12329fc2de08eff34e23e845509c6406ef12df7ffc509b9a5a9598d14beb66f",
|
| 1307 |
+
"historical": true
|
| 1308 |
+
},
|
| 1309 |
+
"bananamind_base": {
|
| 1310 |
+
"path": "runs/eval/pending-release-20261001/reference-cria/attempt-001/bananamind_base.json",
|
| 1311 |
+
"sha256": "e035ae68bcb37e309c694bff114686eadb5d7894edcf18404fc4a4324691787a",
|
| 1312 |
+
"historical": true
|
| 1313 |
+
},
|
| 1314 |
+
"social_iqa": {
|
| 1315 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/social_iqa.json",
|
| 1316 |
+
"sha256": "ec4a126aee5669dd9b852885035bf0abf8836c767abb977d9672713fcdc67e02",
|
| 1317 |
+
"metric": "acc,none",
|
| 1318 |
+
"historical": false
|
| 1319 |
+
},
|
| 1320 |
+
"race": {
|
| 1321 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/race.json",
|
| 1322 |
+
"sha256": "934c21e404c2d4f77a97664204759ea3b5958094f9036005126217179d25c076",
|
| 1323 |
+
"metric": "acc,none",
|
| 1324 |
+
"historical": false
|
| 1325 |
+
},
|
| 1326 |
+
"mmlu": {
|
| 1327 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/mmlu.json",
|
| 1328 |
+
"sha256": "05573c987ba94f6c545c4471a27eafd74218a074b227bab42723b1fd0dc6f30b",
|
| 1329 |
+
"metric": "acc,none",
|
| 1330 |
+
"historical": false
|
| 1331 |
+
},
|
| 1332 |
+
"triviaqa": {
|
| 1333 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/triviaqa.json",
|
| 1334 |
+
"sha256": "76bfd9715976f87de6cc40a83cff3fc8a1d9cc17a8b12cbc9fff86cb33f4068a",
|
| 1335 |
+
"metric": "exact_match,remove_whitespace",
|
| 1336 |
+
"historical": false
|
| 1337 |
+
},
|
| 1338 |
+
"gsm8k": {
|
| 1339 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/gsm8k.json",
|
| 1340 |
+
"sha256": "f30137fe01af2eb592a08d1dd7c910c74721c275773e23043f3ac21a276e2954",
|
| 1341 |
+
"metric": "exact_match,flexible-extract",
|
| 1342 |
+
"historical": false
|
| 1343 |
+
},
|
| 1344 |
+
"hendrycks_math500": {
|
| 1345 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/hendrycks_math500.json",
|
| 1346 |
+
"sha256": "1e9c5ee01748fccc059e0cdbc583fc7b66038b278775c7328368d466574c9100",
|
| 1347 |
+
"metric": "exact_match,none",
|
| 1348 |
+
"historical": false
|
| 1349 |
+
},
|
| 1350 |
+
"bbh": {
|
| 1351 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/bbh.json",
|
| 1352 |
+
"sha256": "3f1ea577a11039fc1cce9504b95d009c93499560060eb926dc4d4c8c4cce51c9",
|
| 1353 |
+
"metric": "exact_match,get-answer",
|
| 1354 |
+
"historical": false
|
| 1355 |
+
},
|
| 1356 |
+
"humaneval": {
|
| 1357 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/humaneval.json",
|
| 1358 |
+
"sha256": "dceae648982690123f54c9c491ecf31a0393d6237b853f9ada192ea8c4d3ce46",
|
| 1359 |
+
"metric": "pass@1,create_test",
|
| 1360 |
+
"historical": false
|
| 1361 |
+
},
|
| 1362 |
+
"mbpp": {
|
| 1363 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/mbpp.json",
|
| 1364 |
+
"sha256": "f90fbe174a053686cbf689b027728241aca7d87701d8a4863583c3459b3efdf3",
|
| 1365 |
+
"metric": "pass_at_1,none",
|
| 1366 |
+
"historical": false
|
| 1367 |
+
},
|
| 1368 |
+
"mbpp_plus": {
|
| 1369 |
+
"path": "runs/eval/expanded-20261017/reference-cria/attempt-001/mbpp_plus.json",
|
| 1370 |
+
"sha256": "ff33b6e41bcf0fa64896f22e704a70442c3efafdc987b9af1129817cd69d1561",
|
| 1371 |
+
"metric": "pass_at_1,none",
|
| 1372 |
+
"historical": false
|
| 1373 |
+
}
|
| 1374 |
+
}
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"id": "reference-gptx3-150m",
|
| 1378 |
+
"key": "gpt_x3",
|
| 1379 |
+
"name": "GPT-X3-150M",
|
| 1380 |
+
"parameters": 149400930,
|
| 1381 |
+
"evaluated_tasks": 26,
|
| 1382 |
+
"benchmark_adapted": false,
|
| 1383 |
+
"source_sha256": "95e7d96094ea7815179c5726eb476f3a1c104dcb60ea057cb1fb717732187d81",
|
| 1384 |
+
"evidence": {
|
| 1385 |
+
"arc_challenge": {
|
| 1386 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-003/arc_challenge.json",
|
| 1387 |
+
"sha256": "429441c11638c8a1e1e049f8e295fed4fd932072979e9935b42de17bb8ad900a",
|
| 1388 |
+
"metric": "acc_norm,none",
|
| 1389 |
+
"historical": false
|
| 1390 |
+
},
|
| 1391 |
+
"arc_easy": {
|
| 1392 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-003/arc_easy.json",
|
| 1393 |
+
"sha256": "b41ef1b8dfaf8cc8743d410fc31dcf2848ffd6ea42bb0930f333575030779007",
|
| 1394 |
+
"metric": "acc_norm,none",
|
| 1395 |
+
"historical": false
|
| 1396 |
+
},
|
| 1397 |
+
"arithmark3": {
|
| 1398 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-003/arithmark3.json",
|
| 1399 |
+
"sha256": "31172e8bde0ffc367b0c6e3f431106072a3a73e441f804e69076f52e43afe39b",
|
| 1400 |
+
"metric": "acc_norm,none",
|
| 1401 |
+
"historical": false
|
| 1402 |
+
},
|
| 1403 |
+
"balanced_copa": {
|
| 1404 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-003/balanced_copa.json",
|
| 1405 |
+
"sha256": "44730a462d379fec0bd7c24bae70922ab62fe84e24fd934837fc516faa3f7184",
|
| 1406 |
+
"metric": "acc,none",
|
| 1407 |
+
"historical": false
|
| 1408 |
+
},
|
| 1409 |
+
"blimp": {
|
| 1410 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/blimp.json",
|
| 1411 |
+
"sha256": "374c5ac5d16df321c83e0692cac1c43cf1c891a8a1b831b25605a1bf6b6a40ac",
|
| 1412 |
+
"metric": "acc,none",
|
| 1413 |
+
"historical": false
|
| 1414 |
+
},
|
| 1415 |
+
"boolq": {
|
| 1416 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/boolq.json",
|
| 1417 |
+
"sha256": "80a6c0bf860835d4abc9435f1a000bbfc1822d7529ed6b2e939216191ba27204",
|
| 1418 |
+
"metric": "acc,none",
|
| 1419 |
+
"historical": false
|
| 1420 |
+
},
|
| 1421 |
+
"commonsense_qa": {
|
| 1422 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/commonsense_qa.json",
|
| 1423 |
+
"sha256": "e226dfa7e3178950c15c1e659de0b56bdc6547bda157dc348d6daa05536a2205",
|
| 1424 |
+
"metric": "acc,none",
|
| 1425 |
+
"historical": false
|
| 1426 |
+
},
|
| 1427 |
+
"hellaswag": {
|
| 1428 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/hellaswag.json",
|
| 1429 |
+
"sha256": "a3a6120c49b294dfb5febee8bacfcac7ce0f70f754cf516fb3116901f0b4d1f4",
|
| 1430 |
+
"metric": "acc_norm,none",
|
| 1431 |
+
"historical": false
|
| 1432 |
+
},
|
| 1433 |
+
"lambada_openai": {
|
| 1434 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/lambada_openai.json",
|
| 1435 |
+
"sha256": "b5b890281480c29ad96f1a6ec6d3e8a3db6648b0e32bc39484c2dc8faf6c3aed",
|
| 1436 |
+
"metric": "acc,none",
|
| 1437 |
+
"historical": false
|
| 1438 |
+
},
|
| 1439 |
+
"mmlu_continuation": {
|
| 1440 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/mmlu_continuation.json",
|
| 1441 |
+
"sha256": "928e2683cb23bbde196f466dbb476c19d1bd59560d46af02107474c06a4a78e0",
|
| 1442 |
+
"metric": "acc,none",
|
| 1443 |
+
"historical": false
|
| 1444 |
+
},
|
| 1445 |
+
"openbookqa": {
|
| 1446 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/openbookqa.json",
|
| 1447 |
+
"sha256": "bdbf5beb9f4149aad822fce572ddd6286e1c9094804c3a6e45ba3a7bd2e3ff41",
|
| 1448 |
+
"metric": "acc_norm,none",
|
| 1449 |
+
"historical": false
|
| 1450 |
+
},
|
| 1451 |
+
"piqa": {
|
| 1452 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/piqa.json",
|
| 1453 |
+
"sha256": "97e4bd34ecc25312b3b65b54aadf33f4d4a73f11fd0a97659800465bc854c464",
|
| 1454 |
+
"metric": "acc_norm,none",
|
| 1455 |
+
"historical": false
|
| 1456 |
+
},
|
| 1457 |
+
"sciq": {
|
| 1458 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/sciq.json",
|
| 1459 |
+
"sha256": "98fbe1708e81e1ceba51b92ae5ead629d29377db4fa3a54e82c1206abd7b7414",
|
| 1460 |
+
"metric": "acc_norm,none",
|
| 1461 |
+
"historical": false
|
| 1462 |
+
},
|
| 1463 |
+
"truthfulqa_mc2": {
|
| 1464 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/truthfulqa_mc2.json",
|
| 1465 |
+
"sha256": "55965f746bf4614e12263424500bdc9b614a5abf6ec63f57dac7b09e91407857",
|
| 1466 |
+
"metric": "acc,none",
|
| 1467 |
+
"historical": false
|
| 1468 |
+
},
|
| 1469 |
+
"winogrande": {
|
| 1470 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/winogrande.json",
|
| 1471 |
+
"sha256": "0185929d29ab6540e7bd72f465dae1c7cd5da5f880ea20dea9b662f3f385cc22",
|
| 1472 |
+
"metric": "acc,none",
|
| 1473 |
+
"historical": false
|
| 1474 |
+
},
|
| 1475 |
+
"bananamind_base": {
|
| 1476 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/bananamind_base.json",
|
| 1477 |
+
"sha256": "3e699a4a8a4abeae63e46e6ee65ea6a663b63916a82de50359df367764f8840f",
|
| 1478 |
+
"metric": "raw_accuracy,none",
|
| 1479 |
+
"historical": false
|
| 1480 |
+
},
|
| 1481 |
+
"social_iqa": {
|
| 1482 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/social_iqa.json",
|
| 1483 |
+
"sha256": "20233ad581e2e7d4629030a8515ac489789bd2300cffe0910b34097de764dec2",
|
| 1484 |
+
"metric": "acc,none",
|
| 1485 |
+
"historical": false
|
| 1486 |
+
},
|
| 1487 |
+
"race": {
|
| 1488 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/race.json",
|
| 1489 |
+
"sha256": "005d9191f27802cad1a2b73f33a2f160158d671219dfc7887e7afc093d68442c",
|
| 1490 |
+
"metric": "acc,none",
|
| 1491 |
+
"historical": false
|
| 1492 |
+
},
|
| 1493 |
+
"mmlu": {
|
| 1494 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/mmlu.json",
|
| 1495 |
+
"sha256": "03e0197068db5b9631f13faab57aaf28f2b18a687cc528eea190497c2704c91c",
|
| 1496 |
+
"metric": "acc,none",
|
| 1497 |
+
"historical": false
|
| 1498 |
+
},
|
| 1499 |
+
"triviaqa": {
|
| 1500 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/triviaqa.json",
|
| 1501 |
+
"sha256": "238a2adb580a1ce2fefcf71533f625b9f093ab1aea137e667b2b6c7d3a499657",
|
| 1502 |
+
"metric": "exact_match,remove_whitespace",
|
| 1503 |
+
"historical": false
|
| 1504 |
+
},
|
| 1505 |
+
"gsm8k": {
|
| 1506 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/gsm8k.json",
|
| 1507 |
+
"sha256": "b93e17d737437429aa8c71f7b7cb3d8dd0db2b003fe745a395a7ac3b8c428097",
|
| 1508 |
+
"metric": "exact_match,flexible-extract",
|
| 1509 |
+
"historical": false
|
| 1510 |
+
},
|
| 1511 |
+
"hendrycks_math500": {
|
| 1512 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/hendrycks_math500.json",
|
| 1513 |
+
"sha256": "9dae15a0f7908efa9464197380f29c7eb6ced2897f8af2ea3b3a0f87ed1d36c8",
|
| 1514 |
+
"metric": "exact_match,none",
|
| 1515 |
+
"historical": false
|
| 1516 |
+
},
|
| 1517 |
+
"bbh": {
|
| 1518 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/bbh.json",
|
| 1519 |
+
"sha256": "7ea824cc95fd9bb69684d91d0951c3cad365449d1bf9797ea959f57ef951133a",
|
| 1520 |
+
"metric": "exact_match,get-answer",
|
| 1521 |
+
"historical": false
|
| 1522 |
+
},
|
| 1523 |
+
"humaneval": {
|
| 1524 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/humaneval.json",
|
| 1525 |
+
"sha256": "2bd1992c12f13680b14c5249e87fcfa983eb6574ee0cc9023ad4b28c455a4d38",
|
| 1526 |
+
"metric": "pass@1,create_test",
|
| 1527 |
+
"historical": false
|
| 1528 |
+
},
|
| 1529 |
+
"mbpp": {
|
| 1530 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/mbpp.json",
|
| 1531 |
+
"sha256": "dc92c12094f61b5547c52652f0c21bd50546619c6346ea79a1a660b7f0e43f55",
|
| 1532 |
+
"metric": "pass_at_1,none",
|
| 1533 |
+
"historical": false
|
| 1534 |
+
},
|
| 1535 |
+
"mbpp_plus": {
|
| 1536 |
+
"path": "runs/eval/gptx3-150m-20261103/reference-gptx3-150m/attempt-004/mbpp_plus.json",
|
| 1537 |
+
"sha256": "a8d3e51ac5e656437cea3ac530be6a0a15d224ba1b947e431eb47509c17daba3",
|
| 1538 |
+
"metric": "pass_at_1,none",
|
| 1539 |
+
"historical": false
|
| 1540 |
+
}
|
| 1541 |
+
}
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"id": "reference-supra2-100m",
|
| 1545 |
+
"key": "supra2",
|
| 1546 |
+
"name": "Supra2-100M-Base",
|
| 1547 |
+
"parameters": 100684032,
|
| 1548 |
+
"evaluated_tasks": 26,
|
| 1549 |
+
"benchmark_adapted": false,
|
| 1550 |
+
"source_sha256": "95e7d96094ea7815179c5726eb476f3a1c104dcb60ea057cb1fb717732187d81",
|
| 1551 |
+
"evidence": {
|
| 1552 |
+
"arc_challenge": {
|
| 1553 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/arc_challenge.json",
|
| 1554 |
+
"sha256": "1b8ac5e92a3fca266e4b9413740601fbd7c8a321aa30922bbcfc211416eabc18",
|
| 1555 |
+
"metric": "acc_norm,none",
|
| 1556 |
+
"historical": false
|
| 1557 |
+
},
|
| 1558 |
+
"arc_easy": {
|
| 1559 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/arc_easy.json",
|
| 1560 |
+
"sha256": "b5c62af36bb19d1c2e1970f4cb99937b31a87c989cd765a9aaead62fb421ad1d",
|
| 1561 |
+
"metric": "acc_norm,none",
|
| 1562 |
+
"historical": false
|
| 1563 |
+
},
|
| 1564 |
+
"arithmark3": {
|
| 1565 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/arithmark3.json",
|
| 1566 |
+
"sha256": "d8eace8d58645a2bae2a3cb7672d37144843be35a6467c785c85710b13a477d7",
|
| 1567 |
+
"metric": "acc_norm,none",
|
| 1568 |
+
"historical": false
|
| 1569 |
+
},
|
| 1570 |
+
"balanced_copa": {
|
| 1571 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/balanced_copa.json",
|
| 1572 |
+
"sha256": "9e46e23a1c1deb94a534dc0ad371d4636ad31fba5070152c8f4009dc8fe212f5",
|
| 1573 |
+
"metric": "acc,none",
|
| 1574 |
+
"historical": false
|
| 1575 |
+
},
|
| 1576 |
+
"blimp": {
|
| 1577 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/blimp.json",
|
| 1578 |
+
"sha256": "adea2c06b8777d0b99d7a21580641e697249c5e87b92aa8853262bf0aa31a480",
|
| 1579 |
+
"metric": "acc,none",
|
| 1580 |
+
"historical": false
|
| 1581 |
+
},
|
| 1582 |
+
"boolq": {
|
| 1583 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/boolq.json",
|
| 1584 |
+
"sha256": "0286e506bed6ceb0037a8f2863f762d6e9d152ac0331a104750d02824c19af32",
|
| 1585 |
+
"metric": "acc,none",
|
| 1586 |
+
"historical": false
|
| 1587 |
+
},
|
| 1588 |
+
"commonsense_qa": {
|
| 1589 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/commonsense_qa.json",
|
| 1590 |
+
"sha256": "c1e2d8e1c8173276a2339cc7095c30c647a59b35ce302e7c95960854a46a56dd",
|
| 1591 |
+
"metric": "acc,none",
|
| 1592 |
+
"historical": false
|
| 1593 |
+
},
|
| 1594 |
+
"hellaswag": {
|
| 1595 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/hellaswag.json",
|
| 1596 |
+
"sha256": "ed16f05df4380ebc16661fd6d9b6639c0aad5153c6cb588c1d1a0f6188443898",
|
| 1597 |
+
"metric": "acc_norm,none",
|
| 1598 |
+
"historical": false
|
| 1599 |
+
},
|
| 1600 |
+
"lambada_openai": {
|
| 1601 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/lambada_openai.json",
|
| 1602 |
+
"sha256": "cc4a2514ae42056031b15af157058d358f3f3b9b867d59a9e0013e360741ce62",
|
| 1603 |
+
"metric": "acc,none",
|
| 1604 |
+
"historical": false
|
| 1605 |
+
},
|
| 1606 |
+
"mmlu_continuation": {
|
| 1607 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/mmlu_continuation.json",
|
| 1608 |
+
"sha256": "69447f08ea84d3f0e400b09829ddce5992762028e455256572baef24e2c5c2cf",
|
| 1609 |
+
"metric": "acc,none",
|
| 1610 |
+
"historical": false
|
| 1611 |
+
},
|
| 1612 |
+
"openbookqa": {
|
| 1613 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/openbookqa.json",
|
| 1614 |
+
"sha256": "2bf771bad7c1b5569b00c3ff2e71e0d480cc6275d83df846e05f018973fa12f9",
|
| 1615 |
+
"metric": "acc_norm,none",
|
| 1616 |
+
"historical": false
|
| 1617 |
+
},
|
| 1618 |
+
"piqa": {
|
| 1619 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/piqa.json",
|
| 1620 |
+
"sha256": "47a8562d64dd8bb38129466c48c042361df6ff3219e4c892a54d5ba72fc4abda",
|
| 1621 |
+
"metric": "acc_norm,none",
|
| 1622 |
+
"historical": false
|
| 1623 |
+
},
|
| 1624 |
+
"sciq": {
|
| 1625 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/sciq.json",
|
| 1626 |
+
"sha256": "0fce84a873a5ac364a3e1351595810ff2d48497bf9e05bd279d29a21882fd401",
|
| 1627 |
+
"metric": "acc_norm,none",
|
| 1628 |
+
"historical": false
|
| 1629 |
+
},
|
| 1630 |
+
"truthfulqa_mc2": {
|
| 1631 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/truthfulqa_mc2.json",
|
| 1632 |
+
"sha256": "e94fd0d55cdebd127e99898522da5f0db62fec11d64f88f0ee31c8f72ddb92f0",
|
| 1633 |
+
"metric": "acc,none",
|
| 1634 |
+
"historical": false
|
| 1635 |
+
},
|
| 1636 |
+
"winogrande": {
|
| 1637 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/winogrande.json",
|
| 1638 |
+
"sha256": "ae3a9cff9601b754547bbef4d96c5267471ae0c9ae85e3bda8a272e95611ccdc",
|
| 1639 |
+
"metric": "acc,none",
|
| 1640 |
+
"historical": false
|
| 1641 |
+
},
|
| 1642 |
+
"bananamind_base": {
|
| 1643 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/bananamind_base.json",
|
| 1644 |
+
"sha256": "dcef0ed62ac75613c9f62d797aba04612983cd756c9ebc764b61aa4d5fa86811",
|
| 1645 |
+
"metric": "raw_accuracy,none",
|
| 1646 |
+
"historical": false
|
| 1647 |
+
},
|
| 1648 |
+
"social_iqa": {
|
| 1649 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/social_iqa.json",
|
| 1650 |
+
"sha256": "22b74ae574f4fdbdf7f1de062c1bc8e8b34c802be431b69c1208a97dc0f35dd9",
|
| 1651 |
+
"metric": "acc,none",
|
| 1652 |
+
"historical": false
|
| 1653 |
+
},
|
| 1654 |
+
"race": {
|
| 1655 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/race.json",
|
| 1656 |
+
"sha256": "392aa7457eca139f0446b229c6515a6cc19651ced1b0bb832368724388fd2f81",
|
| 1657 |
+
"metric": "acc,none",
|
| 1658 |
+
"historical": false
|
| 1659 |
+
},
|
| 1660 |
+
"mmlu": {
|
| 1661 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/mmlu.json",
|
| 1662 |
+
"sha256": "283c9bb67a35b1a29c5002d6227bd425c897271066fcbb4c9a0589042985e793",
|
| 1663 |
+
"metric": "acc,none",
|
| 1664 |
+
"historical": false
|
| 1665 |
+
},
|
| 1666 |
+
"triviaqa": {
|
| 1667 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/triviaqa.json",
|
| 1668 |
+
"sha256": "98d6df6f003f0e2044132220080bf1949e8b2d8a835916f1b52dabed3a65bf2a",
|
| 1669 |
+
"metric": "exact_match,remove_whitespace",
|
| 1670 |
+
"historical": false
|
| 1671 |
+
},
|
| 1672 |
+
"gsm8k": {
|
| 1673 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/gsm8k.json",
|
| 1674 |
+
"sha256": "25dacee74c0de83dcf8c40ee72de7db086691c47419b9e3640756eab7065a2bc",
|
| 1675 |
+
"metric": "exact_match,flexible-extract",
|
| 1676 |
+
"historical": false
|
| 1677 |
+
},
|
| 1678 |
+
"hendrycks_math500": {
|
| 1679 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/hendrycks_math500.json",
|
| 1680 |
+
"sha256": "b12d204e117d4870eb5c195f39f74caf321ab520fa576c9966ee45a75511caec",
|
| 1681 |
+
"metric": "exact_match,none",
|
| 1682 |
+
"historical": false
|
| 1683 |
+
},
|
| 1684 |
+
"bbh": {
|
| 1685 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/bbh.json",
|
| 1686 |
+
"sha256": "f6896de06a4e554cd81d6cc53f95322b126273b86179793056a85625a85307a9",
|
| 1687 |
+
"metric": "exact_match,get-answer",
|
| 1688 |
+
"historical": false
|
| 1689 |
+
},
|
| 1690 |
+
"humaneval": {
|
| 1691 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/humaneval.json",
|
| 1692 |
+
"sha256": "c3083423de912ca6c2eeb648021d553bc1e48273b259844a07e8b5f0fc39fa46",
|
| 1693 |
+
"metric": "pass@1,create_test",
|
| 1694 |
+
"historical": false
|
| 1695 |
+
},
|
| 1696 |
+
"mbpp": {
|
| 1697 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/mbpp.json",
|
| 1698 |
+
"sha256": "a7a12d4261391642ac4d013a300a02f9d0a92368e764169ec7b65cb4c3fd3527",
|
| 1699 |
+
"metric": "pass_at_1,none",
|
| 1700 |
+
"historical": false
|
| 1701 |
+
},
|
| 1702 |
+
"mbpp_plus": {
|
| 1703 |
+
"path": "runs/eval/expanded-20261017-supra2/reference-supra2-100m/attempt-001/mbpp_plus.json",
|
| 1704 |
+
"sha256": "163b2d1694e6aada8b20833c0dccd04418089ae55f618f15f8000b678177c106",
|
| 1705 |
+
"metric": "pass_at_1,none",
|
| 1706 |
+
"historical": false
|
| 1707 |
+
}
|
| 1708 |
+
}
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"id": "reference-gpt2-124m",
|
| 1712 |
+
"key": "gpt2",
|
| 1713 |
+
"name": "GPT-2 Small 124M",
|
| 1714 |
+
"parameters": 124439808,
|
| 1715 |
+
"evaluated_tasks": 26,
|
| 1716 |
+
"benchmark_adapted": false,
|
| 1717 |
+
"source_sha256": "95e7d96094ea7815179c5726eb476f3a1c104dcb60ea057cb1fb717732187d81",
|
| 1718 |
+
"evidence": {
|
| 1719 |
+
"arc_challenge": {
|
| 1720 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/arc_challenge.json",
|
| 1721 |
+
"sha256": "a14e45082f791d6435252f44378e3a5557d3674590a9d5f0fef7707c37ba7f4a",
|
| 1722 |
+
"metric": "acc_norm,none",
|
| 1723 |
+
"historical": false
|
| 1724 |
+
},
|
| 1725 |
+
"arc_easy": {
|
| 1726 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/arc_easy.json",
|
| 1727 |
+
"sha256": "af7f57c5eb0d333c7b64548940ed7fc90e740e113580f6096424c517c0b3776b",
|
| 1728 |
+
"metric": "acc_norm,none",
|
| 1729 |
+
"historical": false
|
| 1730 |
+
},
|
| 1731 |
+
"arithmark3": {
|
| 1732 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/arithmark3.json",
|
| 1733 |
+
"sha256": "eb536b7e67a578ea03c3631e9e2953b95985a3d53f5e560f7e5b6117140798b4",
|
| 1734 |
+
"metric": "acc_norm,none",
|
| 1735 |
+
"historical": false
|
| 1736 |
+
},
|
| 1737 |
+
"balanced_copa": {
|
| 1738 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/balanced_copa.json",
|
| 1739 |
+
"sha256": "5cd821ca73a84b75b0009ceb8c92c41b5ccde465f8cfa16cbadec61271729882",
|
| 1740 |
+
"metric": "acc,none",
|
| 1741 |
+
"historical": false
|
| 1742 |
+
},
|
| 1743 |
+
"blimp": {
|
| 1744 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/blimp.json",
|
| 1745 |
+
"sha256": "2faadc9996aed6dfba4bfb5ec1e90ebf5da836b605688559cd270e9e17ead0ee",
|
| 1746 |
+
"metric": "acc,none",
|
| 1747 |
+
"historical": false
|
| 1748 |
+
},
|
| 1749 |
+
"boolq": {
|
| 1750 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/boolq.json",
|
| 1751 |
+
"sha256": "514737dfe7ed14eae925e8dd8e074434b5e69c58f42bd395c48e3d9aca471f31",
|
| 1752 |
+
"metric": "acc,none",
|
| 1753 |
+
"historical": false
|
| 1754 |
+
},
|
| 1755 |
+
"commonsense_qa": {
|
| 1756 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/commonsense_qa.json",
|
| 1757 |
+
"sha256": "e339ce94403594bedc74ce7f3b50300b376696b46a2a89641db55925ffd3940b",
|
| 1758 |
+
"metric": "acc,none",
|
| 1759 |
+
"historical": false
|
| 1760 |
+
},
|
| 1761 |
+
"hellaswag": {
|
| 1762 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/hellaswag.json",
|
| 1763 |
+
"sha256": "1d3a4226b0e119819f675a7d3212b576970006880b9e73fc08e96be8782d9b49",
|
| 1764 |
+
"metric": "acc_norm,none",
|
| 1765 |
+
"historical": false
|
| 1766 |
+
},
|
| 1767 |
+
"lambada_openai": {
|
| 1768 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/lambada_openai.json",
|
| 1769 |
+
"sha256": "c42bfc8b1905459c32293589ff542945a5066ebf08eb4068d86e2c05b1c31c5f",
|
| 1770 |
+
"metric": "acc,none",
|
| 1771 |
+
"historical": false
|
| 1772 |
+
},
|
| 1773 |
+
"mmlu_continuation": {
|
| 1774 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/mmlu_continuation.json",
|
| 1775 |
+
"sha256": "fb955289faae294cab658e64c7465f1a731be28652437dbf8efc13628d106847",
|
| 1776 |
+
"metric": "acc,none",
|
| 1777 |
+
"historical": false
|
| 1778 |
+
},
|
| 1779 |
+
"openbookqa": {
|
| 1780 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/openbookqa.json",
|
| 1781 |
+
"sha256": "900619a44078dccd21682dfa759a60da61155c8e4e9f4fee3a5c5f77f583a75f",
|
| 1782 |
+
"metric": "acc_norm,none",
|
| 1783 |
+
"historical": false
|
| 1784 |
+
},
|
| 1785 |
+
"piqa": {
|
| 1786 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/piqa.json",
|
| 1787 |
+
"sha256": "57c1bae6da425404802a9145cd135e684110e72267f3c208132bf042f4034dab",
|
| 1788 |
+
"metric": "acc_norm,none",
|
| 1789 |
+
"historical": false
|
| 1790 |
+
},
|
| 1791 |
+
"sciq": {
|
| 1792 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/sciq.json",
|
| 1793 |
+
"sha256": "9d231fadd16fa32143b725d4a1f6b8943cfda8d817671588130d1bea532051c3",
|
| 1794 |
+
"metric": "acc_norm,none",
|
| 1795 |
+
"historical": false
|
| 1796 |
+
},
|
| 1797 |
+
"truthfulqa_mc2": {
|
| 1798 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/truthfulqa_mc2.json",
|
| 1799 |
+
"sha256": "ffecfbd83cc0967480122bf1f4b1e43af4e72664fa388bdbd6867d64f4602ea1",
|
| 1800 |
+
"metric": "acc,none",
|
| 1801 |
+
"historical": false
|
| 1802 |
+
},
|
| 1803 |
+
"winogrande": {
|
| 1804 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/winogrande.json",
|
| 1805 |
+
"sha256": "fc8f2cec15391e5563009e7d1315459d2329db58c14fda79499bbcacd9302f7c",
|
| 1806 |
+
"metric": "acc,none",
|
| 1807 |
+
"historical": false
|
| 1808 |
+
},
|
| 1809 |
+
"bananamind_base": {
|
| 1810 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/bananamind_base.json",
|
| 1811 |
+
"sha256": "099a0241335668d3b266be0855e2ef43707c55352b11204704d98b26cad0140f",
|
| 1812 |
+
"metric": "raw_accuracy,none",
|
| 1813 |
+
"historical": false
|
| 1814 |
+
},
|
| 1815 |
+
"social_iqa": {
|
| 1816 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/social_iqa.json",
|
| 1817 |
+
"sha256": "21c07d670c100f2bef8f9a289548c9252a8e3abd374355c58043536f7c31c59f",
|
| 1818 |
+
"metric": "acc,none",
|
| 1819 |
+
"historical": false
|
| 1820 |
+
},
|
| 1821 |
+
"race": {
|
| 1822 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/race.json",
|
| 1823 |
+
"sha256": "7f10fdef3f3b3d90a6f722d66dc9c04b823227ce738d28628300c32dba4e4cb8",
|
| 1824 |
+
"metric": "acc,none",
|
| 1825 |
+
"historical": false
|
| 1826 |
+
},
|
| 1827 |
+
"mmlu": {
|
| 1828 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/mmlu.json",
|
| 1829 |
+
"sha256": "4989d8cd02f614abfc14dc15b3bc6b6e750c43d53eb327f162c15b056efe7c21",
|
| 1830 |
+
"metric": "acc,none",
|
| 1831 |
+
"historical": false
|
| 1832 |
+
},
|
| 1833 |
+
"triviaqa": {
|
| 1834 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/triviaqa.json",
|
| 1835 |
+
"sha256": "e2b13489d29e5f7747487e95f6b44a44948bacdd7793c5f3be702c3399aaecba",
|
| 1836 |
+
"metric": "exact_match,remove_whitespace",
|
| 1837 |
+
"historical": false
|
| 1838 |
+
},
|
| 1839 |
+
"gsm8k": {
|
| 1840 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/gsm8k.json",
|
| 1841 |
+
"sha256": "992709e1c493c2ab234d53cb4607109cc737d6797fe6cdfd67e99d1304dec7f3",
|
| 1842 |
+
"metric": "exact_match,flexible-extract",
|
| 1843 |
+
"historical": false
|
| 1844 |
+
},
|
| 1845 |
+
"hendrycks_math500": {
|
| 1846 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/hendrycks_math500.json",
|
| 1847 |
+
"sha256": "e1d285fe53418056692ec35458e73d8b3a1295284bfeefe8e584bba008896a09",
|
| 1848 |
+
"metric": "exact_match,none",
|
| 1849 |
+
"historical": false
|
| 1850 |
+
},
|
| 1851 |
+
"bbh": {
|
| 1852 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/bbh.json",
|
| 1853 |
+
"sha256": "c56732901745174e71596963c367342b5b2e7db0d45e0ed4377315950d59ba61",
|
| 1854 |
+
"metric": "exact_match,get-answer",
|
| 1855 |
+
"historical": false
|
| 1856 |
+
},
|
| 1857 |
+
"humaneval": {
|
| 1858 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/humaneval.json",
|
| 1859 |
+
"sha256": "41d676341395795364cb8c7e3e0b7e2fd2c43439989a31a3b8eaff6324ad4a4c",
|
| 1860 |
+
"metric": "pass@1,create_test",
|
| 1861 |
+
"historical": false
|
| 1862 |
+
},
|
| 1863 |
+
"mbpp": {
|
| 1864 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/mbpp.json",
|
| 1865 |
+
"sha256": "aa17fad33da3ef717f7c55d5d27df85f0ee7f517b108a85157f170c3bb06594e",
|
| 1866 |
+
"metric": "pass_at_1,none",
|
| 1867 |
+
"historical": false
|
| 1868 |
+
},
|
| 1869 |
+
"mbpp_plus": {
|
| 1870 |
+
"path": "runs/eval/expanded-20261017-gpt2/reference-gpt2-124m/attempt-001/mbpp_plus.json",
|
| 1871 |
+
"sha256": "77f7f5c1af4c5988d600ade7d378dc2912d01073f64f65f925b4ff7bcfa59662",
|
| 1872 |
+
"metric": "pass_at_1,none",
|
| 1873 |
+
"historical": false
|
| 1874 |
+
}
|
| 1875 |
+
}
|
| 1876 |
+
}
|
| 1877 |
+
]
|
| 1878 |
+
}
|
export.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"status": "exported",
|
| 3 |
+
"model": "Kroha",
|
| 4 |
+
"source_stage": "powerup_8x",
|
| 5 |
+
"source_config_sha256": "e1f8da93e02e113d4d7603ff8c0c96928d43685e869d66819ca5e58694441ad7",
|
| 6 |
+
"source_weight_sha256": {
|
| 7 |
+
"model.safetensors": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884"
|
| 8 |
+
},
|
| 9 |
+
"learned_tensors_unchanged": true,
|
| 10 |
+
"code_files": [
|
| 11 |
+
"configuration_kroha.py",
|
| 12 |
+
"modeling_kroha.py"
|
| 13 |
+
],
|
| 14 |
+
"training_repository": "d0rj/Kroha-base-dev",
|
| 15 |
+
"files_sha256": {
|
| 16 |
+
"chat_template.jinja": "b51e43a90a9c7da4db3bce84bd27cd798699191b83663d1c75c234481c040966",
|
| 17 |
+
"config.json": "a095714decc73d9b17c7bbe019e3c98c55f32716252983c5886092bd4ca9df74",
|
| 18 |
+
"configuration_kroha.py": "9d83cd17f1bcb26e98d695da72411c4e2aebf7580d939d7ba43d5adfa00e23d5",
|
| 19 |
+
"dna_config.json": "e6fc6908e68998130a574bf3a0439b135bf4bd121601b3ce7ccd56c8a6903da1",
|
| 20 |
+
"evaluation.csv": "0c842258817c4be5ce43c6078bba313b8858d91fe93ad530ee1b81eb3b11f84a",
|
| 21 |
+
"evaluation.json": "2334711b413c148757174d36e6992a72812eb6f0498de415e1bbfd2ec0b05d2f",
|
| 22 |
+
"generation_config.json": "ec36960ffaccb09d682bc355b89a64a969a16417de96d64350fcb66aebaec7eb",
|
| 23 |
+
"LICENSE": "9e5f1b3c610b9c2da5c313bf81d577a7d1acec686bdb0384edefa6df0f90cd94",
|
| 24 |
+
"model.safetensors": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884",
|
| 25 |
+
"modeling_kroha.py": "d99422d839dc0ad82bad9c9c4870aa73b9462172079840639bb05e0678f86809",
|
| 26 |
+
"README.md": "366f07225f1d39f07627d436cd8f821258150b24b72036ef6ec5042c74b5c11e",
|
| 27 |
+
"requirements.txt": "a73cacbfdd9eb35af8044c73de19a8444c01d9cfe163f65563432e5dbba38ecc",
|
| 28 |
+
"tokenizer.json": "243c73710d5bff983000eadf9b6d71d802b7291afffb8503cbbe6770da2084e8",
|
| 29 |
+
"tokenizer_config.json": "afa0226ffe5b2fe7b0f546f041cad7e33a29cf2ac55c954808f85ddbd79a3f5a"
|
| 30 |
+
}
|
| 31 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 0,
|
| 8 |
+
"transformers_version": "5.17.0",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Public Kroha architecture, including routed-output RMSNorm.
|
| 2 |
+
"""KrohaRoutedNorm: self-contained Hugging Face hybrid language model.
|
| 3 |
+
|
| 4 |
+
Only this file and configuration_kroha.py are required alongside the weights.
|
| 5 |
+
Transformers supplies RoPE, RMSNorm, dense SwiGLU, attention dispatch/masks,
|
| 6 |
+
hybrid caches, generation, causal loss and the portable gated-delta kernel.
|
| 7 |
+
PyTorch supplies projections, convolutions, grouped GEMMs and checkpointing.
|
| 8 |
+
FLA is an optional CUDA acceleration, never a CPU/import-time requirement.
|
| 9 |
+
|
| 10 |
+
The architecture-specific pieces retained here are the SharedGate router,
|
| 11 |
+
latent experts, recursive adapters and Block AttnRes history. They cannot be
|
| 12 |
+
replaced with a dense Llama/Qwen block without changing the trained function.
|
| 13 |
+
"""
|
| 14 |
+
from contextlib import contextmanager
|
| 15 |
+
from functools import lru_cache, partial
|
| 16 |
+
|
| 17 |
+
import torch
|
| 18 |
+
from torch import nn
|
| 19 |
+
from torch.nn import functional as F
|
| 20 |
+
from transformers import GenerationMixin, PreTrainedModel
|
| 21 |
+
from transformers.cache_utils import DynamicCache
|
| 22 |
+
from transformers.masking_utils import create_causal_mask
|
| 23 |
+
from transformers.modeling_outputs import BaseModelOutputWithPast, CausalLMOutputWithPast
|
| 24 |
+
from transformers.modeling_utils import ALL_ATTENTION_FUNCTIONS
|
| 25 |
+
from transformers.models.llama.modeling_llama import (
|
| 26 |
+
LlamaAttention, LlamaMLP, LlamaRMSNorm, LlamaRotaryEmbedding,
|
| 27 |
+
apply_rotary_pos_emb, eager_attention_forward, repeat_kv,
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
from .configuration_kroha import KrohaRoutedNormConfig
|
| 31 |
+
|
| 32 |
+
# The HF hub-kernel decorator can select an installed CUDA FLA function even
|
| 33 |
+
# for CPU tensors. The explicit portable/reference path must call its original
|
| 34 |
+
# torch implementation; the CUDA branch below dispatches to FLA explicitly.
|
| 35 |
+
@lru_cache(maxsize=1)
|
| 36 |
+
def _torch_delta_implementation():
|
| 37 |
+
# Lazy import: merely importing the model/registry must not probe CUDA or
|
| 38 |
+
# import optional FLA kernels before a caller acquires its GPU lease.
|
| 39 |
+
from transformers.models.qwen3_next.modeling_qwen3_next import torch_recurrent_gated_delta_rule
|
| 40 |
+
return getattr(torch_recurrent_gated_delta_rule, "__wrapped__", torch_recurrent_gated_delta_rule)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class KrohaRoutedNormRMSNorm(LlamaRMSNorm):
|
| 44 |
+
"""HF RMSNorm, plus the trained model's explicit output-dtype boundary.
|
| 45 |
+
|
| 46 |
+
HF returns FP32 when its weights are FP32 under BF16 autocast. This cast
|
| 47 |
+
retains the former QK/activation dtype; all normalization math is HF's.
|
| 48 |
+
"""
|
| 49 |
+
def forward(self, hidden_states):
|
| 50 |
+
return super().forward(hidden_states).to(hidden_states.dtype)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
class KrohaRoutedNormMLP(LlamaMLP):
|
| 54 |
+
"""Standard HF dense SwiGLU with KrohaRoutedNorm's trained scalar output gate."""
|
| 55 |
+
def __init__(self, config):
|
| 56 |
+
super().__init__(config)
|
| 57 |
+
self.output_gate = KrohaRoutedNormScalarGate(config.hidden_size, config.gate_multiplier) if config.mlp_scalar_gate else None
|
| 58 |
+
|
| 59 |
+
def forward(self, hidden_states):
|
| 60 |
+
branch = super().forward(hidden_states)
|
| 61 |
+
return self.output_gate(branch, hidden_states) if self.output_gate is not None else branch
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
class KrohaRoutedNormHeadGate(nn.Linear):
|
| 65 |
+
"""Standard Linear and sigmoid, identity initialized, before the O projection."""
|
| 66 |
+
def __init__(self, config):
|
| 67 |
+
super().__init__(config.hidden_size, config.num_attention_heads, bias=False)
|
| 68 |
+
nn.init.zeros_(self.weight)
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def _head_gate_values(output, hidden_states, weight):
|
| 73 |
+
gate = 2 * torch.sigmoid(F.linear(hidden_states, weight))
|
| 74 |
+
return output * gate.unsqueeze(-1).to(output.dtype)
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
class KrohaRoutedNormAttention(LlamaAttention):
|
| 78 |
+
"""HF projections/attention backends with QK norm and per-application cache.
|
| 79 |
+
|
| 80 |
+
Shared physical blocks require a different cache slot on each pass. This
|
| 81 |
+
small adapter is the reason vanilla LlamaAttention.forward cannot be used.
|
| 82 |
+
"""
|
| 83 |
+
def __init__(self, config, layer_idx):
|
| 84 |
+
super().__init__(config, layer_idx)
|
| 85 |
+
self.num_heads, self.num_kv_heads = config.num_attention_heads, config.num_key_value_heads
|
| 86 |
+
self.use_rope = layer_idx not in config.nope_layers
|
| 87 |
+
self.q_norm = KrohaRoutedNormRMSNorm(self.head_dim, config.rms_norm_eps) if config.qk_norm else None
|
| 88 |
+
self.k_norm = KrohaRoutedNormRMSNorm(self.head_dim, config.rms_norm_eps) if config.qk_norm else None
|
| 89 |
+
self.output_gate = KrohaRoutedNormScalarGate(config.hidden_size, config.gate_multiplier) if config.attention_scalar_gate else None
|
| 90 |
+
self.head_gate = KrohaRoutedNormHeadGate(config) if config.headwise_attention_gate else None
|
| 91 |
+
|
| 92 |
+
def gate_heads(self, output, hidden_states):
|
| 93 |
+
if self.head_gate is None:
|
| 94 |
+
return output
|
| 95 |
+
kernel = getattr(self, '_compiled_head_gate', None)
|
| 96 |
+
if kernel is not None and isinstance(self.head_gate, KrohaRoutedNormHeadGate):
|
| 97 |
+
return kernel(output, hidden_states, self.head_gate.weight)
|
| 98 |
+
gate = 2 * torch.sigmoid(self.head_gate(hidden_states))
|
| 99 |
+
return output * gate.unsqueeze(-1).to(output.dtype)
|
| 100 |
+
|
| 101 |
+
def forward(self, hidden_states, position_embeddings, attention_mask=None,
|
| 102 |
+
past_key_values=None, cache_layer_idx=None, q_adapter=None, v_adapter=None,
|
| 103 |
+
document_cu_seqlens_cpu=None, **kwargs):
|
| 104 |
+
shape = (*hidden_states.shape[:-1], -1, self.head_dim)
|
| 105 |
+
q, k, v = self.q_proj(hidden_states), self.k_proj(hidden_states), self.v_proj(hidden_states)
|
| 106 |
+
if q_adapter is not None:
|
| 107 |
+
q, v = q + q_adapter(hidden_states), v + v_adapter(hidden_states)
|
| 108 |
+
q, k, v = (x.view(shape).transpose(1, 2) for x in (q, k, v))
|
| 109 |
+
if self.q_norm is not None:
|
| 110 |
+
q, k = self.q_norm(q), self.k_norm(k)
|
| 111 |
+
if self.use_rope:
|
| 112 |
+
q, k = apply_rotary_pos_emb(q, k, *position_embeddings)
|
| 113 |
+
if past_key_values is not None:
|
| 114 |
+
k, v = past_key_values.update(k, v, cache_layer_idx)
|
| 115 |
+
interface = ALL_ATTENTION_FUNCTIONS.get_interface(self.config._attn_implementation, eager_attention_forward)
|
| 116 |
+
# Official FlashAttention consumes standard packed cumulative lengths.
|
| 117 |
+
# The caller's dense document mask is used by SDPA/eager/flex instead.
|
| 118 |
+
flash = "flash_attention" in self.config._attn_implementation
|
| 119 |
+
if "flash_attention_4" in self.config._attn_implementation and self.num_key_value_groups > 1:
|
| 120 |
+
# Keep the established SM120-safe expanded-KV compute layout while
|
| 121 |
+
# retaining native GQA cache storage. Dispatch remains HF's FA4.
|
| 122 |
+
k, v = repeat_kv(k, self.num_key_value_groups), repeat_kv(v, self.num_key_value_groups)
|
| 123 |
+
cu = kwargs.pop("document_cu_seqlens", None)
|
| 124 |
+
maximum = kwargs.pop("document_max_seqlen", None)
|
| 125 |
+
kwargs.pop("document_ids", None)
|
| 126 |
+
kwargs.pop("document_ranges", None)
|
| 127 |
+
if flash and cu is not None:
|
| 128 |
+
b, _, t, _ = q.shape
|
| 129 |
+
q, k, v = (x.transpose(1, 2).reshape(1, b*t, x.shape[1], x.shape[-1]).transpose(1, 2)
|
| 130 |
+
for x in (q, k, v))
|
| 131 |
+
kwargs.update(cu_seq_lens_q=cu, cu_seq_lens_k=cu, max_length_q=maximum, max_length_k=maximum)
|
| 132 |
+
# Explicit offsets, rather than token values, define isolation.
|
| 133 |
+
kwargs.pop("position_ids", None)
|
| 134 |
+
output, _ = interface(self, q, k, v, attention_mask,
|
| 135 |
+
scaling=self.scaling, dropout=self.attention_dropout if self.training else 0., **kwargs)
|
| 136 |
+
output = output.reshape(*hidden_states.shape[:-1], self.num_heads, self.head_dim)
|
| 137 |
+
output = self.gate_heads(output, hidden_states)
|
| 138 |
+
output = self.o_proj(output.flatten(-2).contiguous())
|
| 139 |
+
return self.output_gate(output, hidden_states) if self.output_gate is not None else output
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
def recurrent_delta_reference(q, k, v, g, beta, initial_state=None,
|
| 143 |
+
output_final_state=False, document_ids=None, **kwargs):
|
| 144 |
+
"""Use Transformers' actual gated-delta implementation, with segment resets."""
|
| 145 |
+
options = dict(initial_state=initial_state, output_final_state=output_final_state,
|
| 146 |
+
use_qk_l2norm_in_kernel=True)
|
| 147 |
+
implementation = _torch_delta_implementation()
|
| 148 |
+
if document_ids is None:
|
| 149 |
+
return implementation(q, k, v, g, beta, **options)
|
| 150 |
+
if initial_state is not None or output_final_state:
|
| 151 |
+
raise ValueError("Packed documents cannot carry an inference state")
|
| 152 |
+
rows = []
|
| 153 |
+
for b, ids in enumerate(document_ids.tolist()):
|
| 154 |
+
starts = [0] + [i for i in range(1, len(ids)) if ids[i] != ids[i-1]] + [len(ids)]
|
| 155 |
+
pieces = []
|
| 156 |
+
for start, end in zip(starts, starts[1:]):
|
| 157 |
+
tensors = [x[b:b+1, start:end] for x in (q, k, v, g, beta)]
|
| 158 |
+
out, _ = implementation(*tensors, use_qk_l2norm_in_kernel=True)
|
| 159 |
+
pieces.append(out)
|
| 160 |
+
rows.append(torch.cat(pieces, dim=1))
|
| 161 |
+
return torch.cat(rows, dim=0), None
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
# BEGIN GENERATED ARCHITECTURE HELPERS
|
| 165 |
+
|
| 166 |
+
def document_positions(document_ids):
|
| 167 |
+
positions = torch.arange(document_ids.shape[1], device=document_ids.device).expand_as(document_ids)
|
| 168 |
+
starts = torch.ones_like(document_ids, dtype=torch.bool)
|
| 169 |
+
starts[:, 1:] = document_ids[:, 1:] != document_ids[:, :-1]
|
| 170 |
+
return positions - positions.masked_fill(~starts, 0).cummax(1).values
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
def document_mask(document_ids, dtype, *, causal=True, key_document_ids=None, attention_mask=None, prefix_lengths=None):
|
| 174 |
+
"""Portable SDPA/eager mask; real queries never see another document or padding."""
|
| 175 |
+
keys = document_ids if key_document_ids is None else key_document_ids
|
| 176 |
+
allowed = (document_ids[:, :, None] == keys[:, None, :]) & (keys[:, None, :] >= 0)
|
| 177 |
+
if attention_mask is not None:
|
| 178 |
+
allowed = allowed & attention_mask[:, None, :].bool()
|
| 179 |
+
if causal:
|
| 180 |
+
q = torch.arange(document_ids.shape[1], device=document_ids.device)
|
| 181 |
+
k = torch.arange(keys.shape[1], device=keys.device)
|
| 182 |
+
order = k[None, :] <= q[:, None]
|
| 183 |
+
if prefix_lengths is not None:
|
| 184 |
+
pos = document_positions(document_ids)
|
| 185 |
+
prefix = prefix_lengths[:, None] if prefix_lengths.ndim == 1 else prefix_lengths
|
| 186 |
+
order = order | (pos[:, :, None] < prefix[:, :, None]) & (pos[:, None, :] < prefix[:, :, None])
|
| 187 |
+
allowed = allowed & order
|
| 188 |
+
allowed[:, :, 0] |= document_ids < 0
|
| 189 |
+
return torch.zeros(allowed.shape, dtype=dtype, device=allowed.device).masked_fill_(~allowed, -torch.inf)[:, None]
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
def segmented_depthwise_conv(x, weight, document_ids, *, lag_masks=None):
|
| 193 |
+
"""Causal [B,C,L] depthwise convolution with zero history at every boundary."""
|
| 194 |
+
length, width = (x.shape[-1], weight.shape[-1])
|
| 195 |
+
result = torch.zeros_like(x)
|
| 196 |
+
for lag in range(min(width, length)):
|
| 197 |
+
shifted = x if lag == 0 else F.pad(x[..., :-lag], (lag, 0))
|
| 198 |
+
if lag:
|
| 199 |
+
valid = lag_masks[lag - 1] if lag_masks is not None else F.pad(document_ids[:, lag:] == document_ids[:, :-lag], (lag, 0))
|
| 200 |
+
shifted = shifted * valid[:, None].to(x.dtype)
|
| 201 |
+
result = result + shifted * weight[:, 0, width - 1 - lag].to(x.dtype)[None, :, None]
|
| 202 |
+
return result
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
def routing_statistics(probabilities, indices, valid_mask):
|
| 206 |
+
probabilities = probabilities.reshape(-1, probabilities.shape[-1]).float()
|
| 207 |
+
indices = indices.reshape(probabilities.shape[0], -1)
|
| 208 |
+
valid = valid_mask.reshape(-1).to(device=probabilities.device, dtype=torch.float32)
|
| 209 |
+
counts = torch.zeros(probabilities.shape[-1], device=probabilities.device)
|
| 210 |
+
counts.scatter_add_(0, indices.reshape(-1), valid[:, None].expand_as(indices).reshape(-1))
|
| 211 |
+
return (counts, valid.sum(), (probabilities * valid[:, None]).sum(0))
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
class _RouterPool:
|
| 215 |
+
|
| 216 |
+
def __init__(self, owner):
|
| 217 |
+
self.owner = owner
|
| 218 |
+
self.census = {}
|
| 219 |
+
self.replayed = {}
|
| 220 |
+
self.frozen = {}
|
| 221 |
+
self.buffer = {}
|
| 222 |
+
self.calls = {}
|
| 223 |
+
self.current_calls = set()
|
| 224 |
+
|
| 225 |
+
@torch.compiler.disable
|
| 226 |
+
def loss(self, probabilities, indices, valid_mask, slot=0):
|
| 227 |
+
counts, tokens, prob_sum = routing_statistics(probabilities, indices, valid_mask)
|
| 228 |
+
phase = self.owner.phase
|
| 229 |
+
if phase == 'census':
|
| 230 |
+
value = torch.cat((counts, tokens[None]))
|
| 231 |
+
self.census[slot] = self.census.get(slot, torch.zeros_like(value)) + value.detach()
|
| 232 |
+
return (prob_sum.sum() * 0, counts)
|
| 233 |
+
if not torch.is_grad_enabled() and (not self.owner.forward_only):
|
| 234 |
+
raise RuntimeError('Global LBL replay requires nonreentrant checkpointing and enabled gradients')
|
| 235 |
+
if self.owner.algorithm == 'buffered':
|
| 236 |
+
return self.buffered_loss(probabilities, counts, tokens, prob_sum, slot)
|
| 237 |
+
if phase not in ('forward', 'backward') or slot not in self.frozen:
|
| 238 |
+
raise RuntimeError('Global router LBL requires a completed census for every block application')
|
| 239 |
+
if phase == 'forward':
|
| 240 |
+
value = torch.cat((counts, tokens[None]))
|
| 241 |
+
self.replayed[slot] = self.replayed.get(slot, torch.zeros_like(value)) + value.detach()
|
| 242 |
+
frequency, total_tokens = self.frozen[slot]
|
| 243 |
+
scale = self.owner.accumulation_steps * self.owner.world_size / total_tokens.clamp_min(1)
|
| 244 |
+
return (probabilities.shape[-1] * (frequency * prob_sum).sum() * scale, counts)
|
| 245 |
+
|
| 246 |
+
def buffered_loss(self, probabilities, counts, tokens, prob_sum, slot):
|
| 247 |
+
if self.owner.phase == 'forward':
|
| 248 |
+
if slot in self.current_calls:
|
| 249 |
+
raise RuntimeError('Each router application needs a distinct balance slot')
|
| 250 |
+
self.current_calls.add(slot)
|
| 251 |
+
current = torch.cat((counts, tokens[None])).detach()
|
| 252 |
+
if self.owner.distributed:
|
| 253 |
+
torch.distributed.all_reduce(current, group=self.owner.process_group)
|
| 254 |
+
cumulative = self.buffer.get(slot, torch.zeros_like(current)) + current
|
| 255 |
+
self.buffer[slot] = cumulative
|
| 256 |
+
frequency = cumulative[:-1] / cumulative[:-1].sum().clamp_min(1)
|
| 257 |
+
self.frozen[slot] = (frequency, current[-1])
|
| 258 |
+
self.calls[slot] = self.calls.get(slot, 0) + 1
|
| 259 |
+
elif self.owner.phase != 'backward' or slot not in self.frozen:
|
| 260 |
+
raise RuntimeError('Buffered LBL requires an original differentiable forward')
|
| 261 |
+
frequency, current_tokens = self.frozen[slot]
|
| 262 |
+
scale = self.owner.world_size / current_tokens.clamp_min(1)
|
| 263 |
+
return (probabilities.shape[-1] * (frequency * prob_sum).sum() * scale, counts)
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
class GlobalRouterBalance:
|
| 267 |
+
"""Step-scoped prefix buffering or exact census, per virtual layer.
|
| 268 |
+
|
| 269 |
+
The distributed group, when used, must be the replicated-router data-parallel
|
| 270 |
+
group, not a tensor/expert-parallel group. This does not turn train.py into a
|
| 271 |
+
distributed launcher; its ordinary runner remains single-device.
|
| 272 |
+
"""
|
| 273 |
+
|
| 274 |
+
def __init__(self, model, accumulation_steps, *, algorithm='exact', process_group=None, forward_only=False):
|
| 275 |
+
if isinstance(accumulation_steps, bool) or not isinstance(accumulation_steps, int) or accumulation_steps < 1:
|
| 276 |
+
raise ValueError('accumulation_steps must be a positive integer')
|
| 277 |
+
self.model = model
|
| 278 |
+
self.accumulation_steps = accumulation_steps
|
| 279 |
+
if algorithm not in ('buffered', 'exact'):
|
| 280 |
+
raise ValueError('Router balance algorithm must be buffered or exact')
|
| 281 |
+
self.algorithm = algorithm
|
| 282 |
+
self.forward_only = forward_only
|
| 283 |
+
self.requires_census = algorithm == 'exact'
|
| 284 |
+
self.microbatches = 0
|
| 285 |
+
self.process_group = process_group
|
| 286 |
+
self.distributed = torch.distributed.is_available() and torch.distributed.is_initialized()
|
| 287 |
+
self.world_size = torch.distributed.get_world_size(process_group) if self.distributed else 1
|
| 288 |
+
self.modules = [module for module in model.modules() if getattr(module, 'supports_global_router_balance', False)]
|
| 289 |
+
if not self.modules:
|
| 290 |
+
raise ValueError('The model has no supported routed experts')
|
| 291 |
+
if not model.training or getattr(model.config, 'router_balance_scope', 'legacy') != 'global':
|
| 292 |
+
raise ValueError('Global router balance requires training with router_balance_scope=global')
|
| 293 |
+
self.phase = 'idle'
|
| 294 |
+
self.pools = [_RouterPool(self) for _ in self.modules]
|
| 295 |
+
|
| 296 |
+
def __enter__(self):
|
| 297 |
+
if any((getattr(module, '_global_router_balance', None) is not None for module in self.modules)):
|
| 298 |
+
raise RuntimeError('Global router balance contexts cannot be nested')
|
| 299 |
+
for module, pool in zip(self.modules, self.pools):
|
| 300 |
+
module._global_router_balance = pool
|
| 301 |
+
return self
|
| 302 |
+
|
| 303 |
+
def _clear_forward_state(self):
|
| 304 |
+
for module in self.modules:
|
| 305 |
+
if hasattr(module, 'aux_loss'):
|
| 306 |
+
module.aux_loss, module.counts = (None, None)
|
| 307 |
+
if hasattr(self.model.model, 'router_state'):
|
| 308 |
+
self.model.model.router_state = None
|
| 309 |
+
|
| 310 |
+
def __exit__(self, *exc):
|
| 311 |
+
for module in self.modules:
|
| 312 |
+
module._global_router_balance = None
|
| 313 |
+
self._clear_forward_state()
|
| 314 |
+
self.phase = 'closed'
|
| 315 |
+
|
| 316 |
+
@contextmanager
|
| 317 |
+
def census(self):
|
| 318 |
+
if not self.requires_census:
|
| 319 |
+
raise RuntimeError('Buffered global LBL does not use a census')
|
| 320 |
+
if self.phase != 'idle':
|
| 321 |
+
raise RuntimeError('Take exactly one routing census per optimizer step')
|
| 322 |
+
self.phase = 'census'
|
| 323 |
+
devices = sorted({p.device.index for p in self.model.parameters() if p.device.type == 'cuda'})
|
| 324 |
+
try:
|
| 325 |
+
with torch.random.fork_rng(devices=devices), torch.no_grad():
|
| 326 |
+
yield
|
| 327 |
+
for pool in self.pools:
|
| 328 |
+
if not pool.census:
|
| 329 |
+
raise RuntimeError('Routing census missed an expert module')
|
| 330 |
+
for slot, local in pool.census.items():
|
| 331 |
+
total = local.clone()
|
| 332 |
+
if self.distributed:
|
| 333 |
+
torch.distributed.all_reduce(total, group=self.process_group)
|
| 334 |
+
counts, tokens = (total[:-1], total[-1])
|
| 335 |
+
pool.frozen[slot] = (counts / counts.sum().clamp_min(1), tokens)
|
| 336 |
+
self.phase = 'ready'
|
| 337 |
+
finally:
|
| 338 |
+
self._clear_forward_state()
|
| 339 |
+
|
| 340 |
+
@contextmanager
|
| 341 |
+
def forward(self):
|
| 342 |
+
allowed = ('idle', 'backward') if not self.requires_census else ('ready', 'backward')
|
| 343 |
+
if self.phase not in allowed:
|
| 344 |
+
raise RuntimeError("A differentiable forward requires the step's frozen census")
|
| 345 |
+
if not self.requires_census:
|
| 346 |
+
if self.microbatches >= self.accumulation_steps:
|
| 347 |
+
raise RuntimeError('Buffered LBL received too many microbatches for this step')
|
| 348 |
+
for pool in self.pools:
|
| 349 |
+
pool.current_calls.clear()
|
| 350 |
+
pool.frozen.clear()
|
| 351 |
+
self.phase = 'forward'
|
| 352 |
+
try:
|
| 353 |
+
yield
|
| 354 |
+
self.microbatches += 1
|
| 355 |
+
finally:
|
| 356 |
+
self.phase = 'backward'
|
| 357 |
+
|
| 358 |
+
def validate(self):
|
| 359 |
+
"""Fail before optimizer.step if census/replay routing or coverage differs."""
|
| 360 |
+
if self.phase != 'backward':
|
| 361 |
+
raise RuntimeError('Validate after every microbatch has been backpropagated')
|
| 362 |
+
if not self.requires_census:
|
| 363 |
+
if self.microbatches != self.accumulation_steps or any((not pool.calls or any((n != self.accumulation_steps for n in pool.calls.values())) for pool in self.pools)):
|
| 364 |
+
raise RuntimeError('Buffered LBL missed a microbatch or router application; optimizer step cancelled')
|
| 365 |
+
return
|
| 366 |
+
differences = []
|
| 367 |
+
for pool in self.pools:
|
| 368 |
+
if pool.census.keys() != pool.replayed.keys():
|
| 369 |
+
raise RuntimeError('Census/replay block applications differ')
|
| 370 |
+
differences.extend(((value != pool.replayed[slot]).any().float() for slot, value in pool.census.items()))
|
| 371 |
+
mismatches = torch.stack(differences).sum()
|
| 372 |
+
if self.distributed:
|
| 373 |
+
torch.distributed.all_reduce(mismatches, group=self.process_group)
|
| 374 |
+
if mismatches.item():
|
| 375 |
+
raise RuntimeError('Global LBL routing census differs from training replay; optimizer step cancelled')
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
def global_router_loss(module, probabilities, indices, valid_mask, slot=0):
|
| 379 |
+
pool = getattr(module, "_global_router_balance", None)
|
| 380 |
+
if pool is None:
|
| 381 |
+
raise RuntimeError("Global LBL requires model.router_balance() over the optimizer step")
|
| 382 |
+
return pool.loss(probabilities, indices, valid_mask, slot)
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
class KrohaRoutedNormScalarGate(nn.Module):
|
| 387 |
+
"""Content-dependent scalar gate: output = branch * multiplier * sigmoid(W x)."""
|
| 388 |
+
|
| 389 |
+
def __init__(self, hidden_size: int, multiplier: float=2.0):
|
| 390 |
+
super().__init__()
|
| 391 |
+
self.projection = nn.Linear(hidden_size, 1, bias=False)
|
| 392 |
+
self.multiplier = multiplier
|
| 393 |
+
|
| 394 |
+
def forward(self, branch: torch.Tensor, residual_input: torch.Tensor) -> torch.Tensor:
|
| 395 |
+
kernel = getattr(self, '_compiled_gate', None)
|
| 396 |
+
if kernel is not None:
|
| 397 |
+
return kernel(branch, residual_input, self.projection.weight, self.multiplier)
|
| 398 |
+
return branch * self.multiplier * torch.sigmoid(self.projection(residual_input))
|
| 399 |
+
|
| 400 |
+
def reset_parameters(self):
|
| 401 |
+
nn.init.zeros_(self.projection.weight)
|
| 402 |
+
|
| 403 |
+
|
| 404 |
+
class KrohaRoutedNormLowRank(nn.Module):
|
| 405 |
+
|
| 406 |
+
def __init__(self, in_features, out_features, rank, alpha):
|
| 407 |
+
super().__init__()
|
| 408 |
+
self.a = nn.Linear(in_features, rank, bias=False)
|
| 409 |
+
self.b = nn.Linear(rank, out_features, bias=False)
|
| 410 |
+
nn.init.normal_(self.a.weight, std=0.02)
|
| 411 |
+
nn.init.zeros_(self.b.weight)
|
| 412 |
+
self.scaling = alpha / rank
|
| 413 |
+
|
| 414 |
+
def forward(self, x):
|
| 415 |
+
return self.b(self.a(x)) * self.scaling
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
def swiglu(gate, up, limit):
|
| 419 |
+
return F.silu(gate.clamp(max=limit)) * up.clamp(min=-limit, max=limit)
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
class KrohaRoutedNormMoE(nn.Module):
|
| 423 |
+
supports_global_router_balance = True
|
| 424 |
+
|
| 425 |
+
def __init__(self, config):
|
| 426 |
+
super().__init__()
|
| 427 |
+
self.config = config
|
| 428 |
+
d, e, m = (config.hidden_size, config.num_experts, config.expert_intermediate_size)
|
| 429 |
+
l = config.latent_size or d
|
| 430 |
+
self.router = nn.Linear(d, e, bias=False)
|
| 431 |
+
self.register_buffer('expert_bias', torch.zeros(e, dtype=torch.float32))
|
| 432 |
+
self.register_buffer('step_counts', torch.zeros(e, dtype=torch.float32))
|
| 433 |
+
self.register_buffer('last_load', torch.zeros(e, dtype=torch.float32))
|
| 434 |
+
self.gate_up = nn.Parameter(torch.empty(e, 2 * m, l))
|
| 435 |
+
self.down = nn.Parameter(torch.empty(e, l, m))
|
| 436 |
+
nn.init.normal_(self.gate_up, std=0.02)
|
| 437 |
+
nn.init.normal_(self.down, std=0.02)
|
| 438 |
+
self.latent_down = nn.Linear(d, l, bias=False) if config.latent_size else nn.Identity()
|
| 439 |
+
self.routed_norm = KrohaRoutedNormRMSNorm(l, config.rms_norm_eps)
|
| 440 |
+
self.latent_up = nn.Linear(l, d, bias=False) if config.latent_size else nn.Identity()
|
| 441 |
+
self.shared_gate_up = nn.Linear(d, 2 * config.shared_intermediate_size, bias=False)
|
| 442 |
+
self.shared_down = nn.Linear(config.shared_intermediate_size, d, bias=False)
|
| 443 |
+
self.shared_expert_gate = nn.Linear(d, 1, bias=False) if config.shared_expert_gate else None
|
| 444 |
+
if self.shared_expert_gate is not None:
|
| 445 |
+
nn.init.zeros_(self.shared_expert_gate.weight)
|
| 446 |
+
self.output_gate = KrohaRoutedNormScalarGate(d, config.gate_multiplier) if config.mlp_scalar_gate else None
|
| 447 |
+
self.valid_mask = None
|
| 448 |
+
self.aux_loss = None
|
| 449 |
+
self.counts = None
|
| 450 |
+
self.second_router_weight = nn.Parameter(torch.zeros(e, d)) if getattr(config, 'pass2_router', False) else None
|
| 451 |
+
if self.second_router_weight is not None:
|
| 452 |
+
for name in ('second_expert_bias', 'second_step_counts', 'second_last_load'):
|
| 453 |
+
self.register_buffer(name, torch.zeros(e, dtype=torch.float32))
|
| 454 |
+
|
| 455 |
+
def route(self, x, *, budget=None, balance_slot=0):
|
| 456 |
+
k = self.config.experts_per_token if budget is None else budget
|
| 457 |
+
if isinstance(k, bool) or not isinstance(k, int) or (not 1 <= k <= self.config.num_experts):
|
| 458 |
+
raise ValueError('Expert budget must be an integer in [1, num_experts]')
|
| 459 |
+
with torch.autocast(device_type=x.device.type, enabled=False):
|
| 460 |
+
second = self.second_router_weight is not None and balance_slot == 1
|
| 461 |
+
weight = self.second_router_weight if second else self.router.weight
|
| 462 |
+
bias = self.second_expert_bias if second else self.expert_bias
|
| 463 |
+
logits = (self.router(x.float()) if not second and weight.dtype == torch.float32
|
| 464 |
+
else F.linear(x.float(), weight.float()))
|
| 465 |
+
scores = F.softplus(logits).clamp_min(1e-20).sqrt()
|
| 466 |
+
selection = scores.detach() + bias.float()
|
| 467 |
+
indices = selection.argsort(dim=-1, descending=True, stable=True)[..., :k] if getattr(self.config, 'stable_expert_order', False) else selection.topk(k, dim=-1).indices
|
| 468 |
+
weights = scores.gather(-1, indices)
|
| 469 |
+
weights = weights / weights.sum(-1, keepdim=True).clamp_min(1e-20)
|
| 470 |
+
return (scores, indices, weights * self.config.routed_scaling_factor)
|
| 471 |
+
|
| 472 |
+
def experts(self, x, indices, weights):
|
| 473 |
+
activate = getattr(self, '_compiled_swiglu', swiglu)
|
| 474 |
+
flat_ids = indices.reshape(-1)
|
| 475 |
+
order = flat_ids.argsort(stable=True)
|
| 476 |
+
token_ids = order // indices.shape[-1]
|
| 477 |
+
selected = x[token_ids]
|
| 478 |
+
counts = torch.zeros(self.config.num_experts, device=x.device, dtype=torch.int32)
|
| 479 |
+
counts.scatter_add_(0, flat_ids, torch.ones_like(flat_ids, dtype=torch.int32))
|
| 480 |
+
use_grouped = x.is_cuda and (x.dtype == torch.bfloat16 or (torch.is_autocast_enabled('cuda') and torch.get_autocast_dtype('cuda') == torch.bfloat16))
|
| 481 |
+
use_grouped = use_grouped and self.config.expert_backend != 'reference'
|
| 482 |
+
if self.config.expert_backend == 'grouped' and (not use_grouped):
|
| 483 |
+
raise ValueError('grouped backend requires CUDA BF16 (or BF16 autocast)')
|
| 484 |
+
if use_grouped:
|
| 485 |
+
grouped_mm = getattr(self, '_compiled_grouped_mm', F.grouped_mm)
|
| 486 |
+
offsets = counts.cumsum(0).to(torch.int32)
|
| 487 |
+
selected = selected.to(torch.bfloat16)
|
| 488 |
+
gu = grouped_mm(selected, self.gate_up.to(selected.dtype).transpose(1, 2), offs=offsets)
|
| 489 |
+
g, u = gu.chunk(2, dim=-1)
|
| 490 |
+
h = activate(g, u, self.config.swiglu_limit)
|
| 491 |
+
output = grouped_mm(h, self.down.to(h.dtype).transpose(1, 2), offs=offsets)
|
| 492 |
+
else:
|
| 493 |
+
chunks = selected.split(counts.tolist())
|
| 494 |
+
outputs = []
|
| 495 |
+
token_chunks = token_ids.split(counts.tolist())
|
| 496 |
+
for i, (chunk, tokens) in enumerate(zip(chunks, token_chunks)):
|
| 497 |
+
g, u = F.linear(chunk, self.gate_up[i]).chunk(2, dim=-1)
|
| 498 |
+
outputs.append(F.linear(activate(g, u, self.config.swiglu_limit), self.down[i]))
|
| 499 |
+
output = torch.cat(outputs)
|
| 500 |
+
weighted = output * weights.reshape(-1)[order, None].to(output.dtype)
|
| 501 |
+
if getattr(self.config, 'stable_expert_order', False):
|
| 502 |
+
slots = torch.empty_like(weighted).index_copy(0, order, weighted)
|
| 503 |
+
return slots.reshape(x.shape[0], indices.shape[-1], -1).float().sum(1).to(output.dtype)
|
| 504 |
+
combined = torch.zeros(x.shape, device=x.device, dtype=output.dtype)
|
| 505 |
+
return combined.index_add(0, token_ids, weighted)
|
| 506 |
+
|
| 507 |
+
def forward(self, hidden_states, *, valid_mask=None, return_router_state=False, budget=None, router_input=None, routing_state=None, balance_slot=0):
|
| 508 |
+
b, s, d = hidden_states.shape
|
| 509 |
+
x = hidden_states.reshape(-1, d)
|
| 510 |
+
if router_input is not None and router_input.shape != hidden_states.shape:
|
| 511 |
+
raise ValueError('Router context must match hidden_states shape')
|
| 512 |
+
if routing_state is None:
|
| 513 |
+
route_x = x if router_input is None else router_input.reshape(-1, d)
|
| 514 |
+
scores, ids, weights = self.route(route_x, budget=budget, balance_slot=balance_slot)
|
| 515 |
+
else:
|
| 516 |
+
scores, ids, weights = routing_state
|
| 517 |
+
if scores.shape != (x.shape[0], self.config.num_experts) or ids.shape != weights.shape:
|
| 518 |
+
raise ValueError('Invalid precomputed router state')
|
| 519 |
+
if ids.shape != (x.shape[0], budget):
|
| 520 |
+
raise ValueError('Precomputed router state differs from the block budget')
|
| 521 |
+
aux_loss, counts = (None, None)
|
| 522 |
+
global_balance = getattr(self.config, 'router_balance_scope', 'legacy') == 'global'
|
| 523 |
+
if self.training and (torch.is_grad_enabled() or global_balance):
|
| 524 |
+
valid_mask = self.valid_mask if valid_mask is None else valid_mask
|
| 525 |
+
valid = torch.ones((b, s), device=x.device, dtype=torch.float32) if valid_mask is None else valid_mask.to(device=x.device, dtype=torch.float32)
|
| 526 |
+
prob = scores / scores.sum(-1, keepdim=True).clamp_min(1e-20)
|
| 527 |
+
if global_balance:
|
| 528 |
+
if torch.is_grad_enabled() or getattr(self, '_global_router_balance', None) is not None:
|
| 529 |
+
aux_loss, counts = global_router_loss(self, prob, ids, valid, balance_slot)
|
| 530 |
+
else:
|
| 531 |
+
assignments = F.one_hot(ids, self.config.num_experts).sum(1).reshape(b, s, -1).float()
|
| 532 |
+
assignments = assignments * valid[..., None]
|
| 533 |
+
counts = assignments.sum((0, 1)).detach()
|
| 534 |
+
lengths = valid.sum(1, keepdim=True).clamp_min(1)
|
| 535 |
+
freq = assignments.sum(1) / (lengths * ids.shape[-1])
|
| 536 |
+
prob = (prob.reshape(b, s, -1) * valid[..., None]).sum(1) / lengths
|
| 537 |
+
per_seq = self.config.num_experts * (freq * prob).sum(-1)
|
| 538 |
+
aux_loss = per_seq.sum() / valid.sum(1).gt(0).sum().clamp_min(1)
|
| 539 |
+
if not return_router_state:
|
| 540 |
+
self.aux_loss, self.counts = (aux_loss, counts)
|
| 541 |
+
latent = self.latent_down(x)
|
| 542 |
+
routed = self.latent_up(self.routed_norm(self.experts(latent, ids, weights)))
|
| 543 |
+
g, u = self.shared_gate_up(x).chunk(2, dim=-1)
|
| 544 |
+
activate = getattr(self, '_compiled_swiglu', swiglu)
|
| 545 |
+
shared = self.shared_down(activate(g, u, self.config.swiglu_limit))
|
| 546 |
+
if self.shared_expert_gate is not None:
|
| 547 |
+
gate = getattr(self, '_compiled_shared_gate', None)
|
| 548 |
+
shared = (gate(shared, x, self.shared_expert_gate.weight, 2.0) if gate is not None else
|
| 549 |
+
shared * (2 * torch.sigmoid(self.shared_expert_gate(x))))
|
| 550 |
+
result = (routed + shared).reshape(b, s, d)
|
| 551 |
+
result = self.output_gate(result, hidden_states) if self.output_gate is not None else result
|
| 552 |
+
return (result, aux_loss, counts) if return_router_state else result
|
| 553 |
+
|
| 554 |
+
|
| 555 |
+
class KrohaRoutedNormDeltaNet(nn.Module):
|
| 556 |
+
|
| 557 |
+
def __init__(self, config, layer_idx):
|
| 558 |
+
super().__init__()
|
| 559 |
+
self.config = config
|
| 560 |
+
self.layer_idx = layer_idx
|
| 561 |
+
self.head_dim = config.head_dim
|
| 562 |
+
self.num_heads = config.num_attention_heads
|
| 563 |
+
self.num_kv_heads = config.num_key_value_heads
|
| 564 |
+
self.num_query_heads = getattr(config, 'delta_num_query_heads', self.num_heads)
|
| 565 |
+
self.num_value_heads = getattr(config, 'delta_num_value_heads', self.num_kv_heads)
|
| 566 |
+
if any((h < 1 or self.num_heads % h for h in (self.num_query_heads, self.num_kv_heads, self.num_value_heads))):
|
| 567 |
+
raise ValueError('Delta Q/K/V head counts must divide the recurrent state head count')
|
| 568 |
+
self.groups = self.num_heads // self.num_kv_heads
|
| 569 |
+
q_dim = self.num_query_heads * self.head_dim
|
| 570 |
+
kv_dim = self.num_kv_heads * self.head_dim
|
| 571 |
+
v_dim = self.num_value_heads * self.head_dim
|
| 572 |
+
output_dim = self.num_heads * self.head_dim
|
| 573 |
+
self.q_proj = nn.Linear(config.hidden_size, q_dim, bias=False)
|
| 574 |
+
self.k_proj = nn.Linear(config.hidden_size, kv_dim, bias=False)
|
| 575 |
+
self.v_proj = nn.Linear(config.hidden_size, v_dim, bias=False)
|
| 576 |
+
self.o_proj = nn.Linear(output_dim, config.hidden_size, bias=False)
|
| 577 |
+
self.z_proj = nn.Linear(config.hidden_size, output_dim, bias=False)
|
| 578 |
+
self.a_proj = nn.Linear(config.hidden_size, self.num_heads, bias=False)
|
| 579 |
+
self.b_proj = nn.Linear(config.hidden_size, self.num_heads, bias=False)
|
| 580 |
+
conv_dim = q_dim + kv_dim + v_dim
|
| 581 |
+
self.conv1d = nn.Conv1d(conv_dim, conv_dim, config.delta_conv_kernel, groups=conv_dim, bias=False)
|
| 582 |
+
self.A_log = nn.Parameter(torch.empty(self.num_heads).uniform_(0.01, 16).log())
|
| 583 |
+
self.dt_bias = nn.Parameter(torch.ones(self.num_heads))
|
| 584 |
+
self.gated_norm = KrohaRoutedNormRMSNorm(self.head_dim, config.rms_norm_eps)
|
| 585 |
+
self.output_gate = KrohaRoutedNormScalarGate(config.hidden_size, config.gate_multiplier) if config.attention_scalar_gate else None
|
| 586 |
+
|
| 587 |
+
def forward(self, hidden_states, position_embeddings=None, attention_mask=None, past_key_values=None, cache_layer_idx=None, q_adapter=None, v_adapter=None, valid_mask=None, document_ids=None, document_cu_seqlens=None, **kwargs):
|
| 588 |
+
if past_key_values is not None and self.training and torch.is_grad_enabled():
|
| 589 |
+
raise ValueError('DeltaNet training requires no mutable inference cache')
|
| 590 |
+
x = hidden_states
|
| 591 |
+
if valid_mask is not None:
|
| 592 |
+
x = x * valid_mask[..., None].to(x.dtype)
|
| 593 |
+
q, k, v = (self.q_proj(x), self.k_proj(x), self.v_proj(x))
|
| 594 |
+
if q_adapter is not None:
|
| 595 |
+
q, v = (q + q_adapter(x), v + v_adapter(x))
|
| 596 |
+
mixed = torch.cat((q, k, v), -1).transpose(1, 2)
|
| 597 |
+
initial_state = None
|
| 598 |
+
if past_key_values is not None:
|
| 599 |
+
layer = past_key_values.layers[cache_layer_idx]
|
| 600 |
+
if layer.is_recurrent_states_initialized[0]:
|
| 601 |
+
initial_state = layer.recurrent_states[0]
|
| 602 |
+
mixed = past_key_values.update_conv_state(mixed, cache_layer_idx, conv_kernel_size=self.config.delta_conv_kernel)
|
| 603 |
+
if initial_state is None:
|
| 604 |
+
mixed = F.pad(mixed, (self.config.delta_conv_kernel - 1, 0))
|
| 605 |
+
else:
|
| 606 |
+
mixed = F.pad(mixed, (self.config.delta_conv_kernel - 1, 0))
|
| 607 |
+
if document_ids is None:
|
| 608 |
+
mixed = self.conv1d(mixed)[..., -x.shape[1]:]
|
| 609 |
+
else:
|
| 610 |
+
if past_key_values is not None:
|
| 611 |
+
raise ValueError('Packed DeltaNet requires no inference cache')
|
| 612 |
+
mixed = getattr(self, '_compiled_segmented_conv', segmented_depthwise_conv)(mixed[..., -x.shape[1]:], self.conv1d.weight, document_ids)
|
| 613 |
+
mixed = F.silu(mixed).transpose(1, 2)
|
| 614 |
+
q_dim = self.num_query_heads * self.head_dim
|
| 615 |
+
kv_dim = self.num_kv_heads * self.head_dim
|
| 616 |
+
v_dim = self.num_value_heads * self.head_dim
|
| 617 |
+
q, k, v = mixed.split((q_dim, kv_dim, v_dim), -1)
|
| 618 |
+
q = q.reshape(*x.shape[:2], self.num_query_heads, self.head_dim)
|
| 619 |
+
if self.num_query_heads != self.num_heads:
|
| 620 |
+
q = q.repeat_interleave(self.num_heads // self.num_query_heads, 2)
|
| 621 |
+
k = k.reshape(*x.shape[:2], self.num_kv_heads, self.head_dim).repeat_interleave(self.groups, 2)
|
| 622 |
+
v = v.reshape(*x.shape[:2], self.num_value_heads, self.head_dim)
|
| 623 |
+
if self.num_value_heads != self.num_heads:
|
| 624 |
+
v = v.repeat_interleave(self.num_heads // self.num_value_heads, 2)
|
| 625 |
+
beta = self.b_proj(x).sigmoid()
|
| 626 |
+
if getattr(self.config, 'delta_beta_multiplier', 1.0) != 1.0:
|
| 627 |
+
beta = beta * self.config.delta_beta_multiplier
|
| 628 |
+
g = -self.A_log.float().exp() * F.softplus(self.a_proj(x).float() + self.dt_bias)
|
| 629 |
+
if valid_mask is not None:
|
| 630 |
+
beta = beta * valid_mask[..., None].to(beta.dtype)
|
| 631 |
+
g = g * valid_mask[..., None].to(g.dtype)
|
| 632 |
+
backend = self.config.delta_backend
|
| 633 |
+
if backend == 'fla' or (backend == 'auto' and q.is_cuda):
|
| 634 |
+
try:
|
| 635 |
+
from fla.ops.gated_delta_rule import chunk_gated_delta_rule, fused_recurrent_gated_delta_rule
|
| 636 |
+
except ImportError as exc:
|
| 637 |
+
raise ImportError("CUDA DeltaNet requires the 'gdn' extra: pip install fla-core==0.5.2") from exc
|
| 638 |
+
if self.training and (not torch.is_autocast_enabled('cuda')) and (q.dtype not in (torch.bfloat16, torch.float16)):
|
| 639 |
+
raise ValueError('FLA training requires BF16/FP16 tensors or CUDA autocast')
|
| 640 |
+
kernel = fused_recurrent_gated_delta_rule if x.shape[1] == 1 and (not self.training) else chunk_gated_delta_rule
|
| 641 |
+
else:
|
| 642 |
+
kernel = recurrent_delta_reference
|
| 643 |
+
kernel_options = {}
|
| 644 |
+
original_shape = q.shape
|
| 645 |
+
if document_ids is not None:
|
| 646 |
+
if backend == 'fla' or (backend == 'auto' and q.is_cuda):
|
| 647 |
+
if document_cu_seqlens is None:
|
| 648 |
+
raise ValueError('Packed CUDA DeltaNet requires precomputed document_cu_seqlens')
|
| 649 |
+
q, k, v = (t.reshape(1, -1, *t.shape[2:]) for t in (q, k, v))
|
| 650 |
+
g, beta = (t.reshape(1, -1, t.shape[-1]) for t in (g, beta))
|
| 651 |
+
kernel_options['cu_seqlens'] = document_cu_seqlens
|
| 652 |
+
if kwargs.get('document_cu_seqlens_cpu') is not None:
|
| 653 |
+
kernel_options['cu_seqlens_cpu'] = kwargs['document_cu_seqlens_cpu']
|
| 654 |
+
else:
|
| 655 |
+
kernel_options['document_ids'] = document_ids
|
| 656 |
+
output, state = kernel(q.contiguous(), k.contiguous(), v.contiguous(), g=g.contiguous(), beta=beta.contiguous(), initial_state=initial_state, output_final_state=past_key_values is not None, use_qk_l2norm_in_kernel=True, **kernel_options)
|
| 657 |
+
output = output.reshape(*original_shape)
|
| 658 |
+
if past_key_values is not None:
|
| 659 |
+
past_key_values.update_recurrent_state(state, cache_layer_idx)
|
| 660 |
+
z = self.z_proj(x).reshape_as(output)
|
| 661 |
+
output = self.gated_norm(output) * z.float().sigmoid().to(output.dtype)
|
| 662 |
+
if valid_mask is not None:
|
| 663 |
+
output = output * valid_mask[..., None, None].to(output.dtype)
|
| 664 |
+
output = self.o_proj(output.flatten(-2))
|
| 665 |
+
return self.output_gate(output, hidden_states) if self.output_gate is not None else output
|
| 666 |
+
|
| 667 |
+
|
| 668 |
+
def _depth_attention_scores(keys, query):
|
| 669 |
+
"""Pure score reduction; normalized keys keep the original RMSNorm boundary."""
|
| 670 |
+
return torch.stack([(key.float() * query.float()).sum(-1) for key in keys])
|
| 671 |
+
|
| 672 |
+
|
| 673 |
+
def _depth_attention_mix(scores, sources):
|
| 674 |
+
"""Pure depth softmax/value reduction, retaining every per-source dtype cast."""
|
| 675 |
+
weights = scores.softmax(0)
|
| 676 |
+
result = sources[0] * weights[0].unsqueeze(-1).to(sources[0].dtype)
|
| 677 |
+
for i in range(1, len(sources)):
|
| 678 |
+
result = result + sources[i] * weights[i].unsqueeze(-1).to(sources[i].dtype)
|
| 679 |
+
return result
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
class KrohaRoutedNormDepthAttention(nn.Module):
|
| 683 |
+
"""Per-token softmax over depth; stream values instead of stacking N*B*T*D.
|
| 684 |
+
|
| 685 |
+
A zero pseudo-query gives the paper's uniform initialization. Keys alone are
|
| 686 |
+
RMS-normalized. Neither a token axis nor a document axis is ever reduced.
|
| 687 |
+
"""
|
| 688 |
+
|
| 689 |
+
def __init__(self, config):
|
| 690 |
+
super().__init__()
|
| 691 |
+
self.query = nn.Parameter(torch.zeros(config.hidden_size))
|
| 692 |
+
self.key_norm = KrohaRoutedNormRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 693 |
+
|
| 694 |
+
def forward(self, *sources):
|
| 695 |
+
if not sources:
|
| 696 |
+
raise ValueError('Depth attention requires at least the token embedding')
|
| 697 |
+
kernels = getattr(self, '_compiled_depth_attention', None)
|
| 698 |
+
if kernels is not None:
|
| 699 |
+
keys = tuple((self.key_norm(value) for value in sources))
|
| 700 |
+
scores = kernels[0](keys, self.query)
|
| 701 |
+
return kernels[1](scores, sources)
|
| 702 |
+
scores = torch.stack([(self.key_norm(value).float() * self.query.float()).sum(-1) for value in sources])
|
| 703 |
+
weights = scores.softmax(0)
|
| 704 |
+
result = sources[0] * weights[0].unsqueeze(-1).to(sources[0].dtype)
|
| 705 |
+
for i in range(1, len(sources)):
|
| 706 |
+
result = result + sources[i] * weights[i].unsqueeze(-1).to(sources[i].dtype)
|
| 707 |
+
return result
|
| 708 |
+
|
| 709 |
+
# END GENERATED ARCHITECTURE HELPERS
|
| 710 |
+
|
| 711 |
+
|
| 712 |
+
class KrohaRoutedNormLayer(nn.Module):
|
| 713 |
+
def __init__(self, config, layer_idx, core=False):
|
| 714 |
+
super().__init__()
|
| 715 |
+
self.self_attn = (KrohaRoutedNormDeltaNet(config, layer_idx) if config.layer_types[layer_idx] == "linear_attention"
|
| 716 |
+
else KrohaRoutedNormAttention(config, layer_idx))
|
| 717 |
+
self.mlp = KrohaRoutedNormMoE(config) if core else KrohaRoutedNormMLP(config)
|
| 718 |
+
self.input_layernorm = KrohaRoutedNormRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 719 |
+
self.post_attention_layernorm = KrohaRoutedNormRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 720 |
+
self.specialized = core and config.relaxed
|
| 721 |
+
if self.specialized:
|
| 722 |
+
delta = config.layer_types[layer_idx] == "linear_attention"
|
| 723 |
+
q_size = config.num_attention_heads * config.head_dim
|
| 724 |
+
v_size = config.num_key_value_heads * config.head_dim
|
| 725 |
+
self.q_adapter = KrohaRoutedNormLowRank(config.hidden_size, q_size, config.lora_rank, config.lora_alpha)
|
| 726 |
+
self.v_adapter = KrohaRoutedNormLowRank(config.hidden_size, v_size, config.lora_rank, config.lora_alpha)
|
| 727 |
+
self.second_input_layernorm = KrohaRoutedNormRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 728 |
+
self.second_post_attention_layernorm = KrohaRoutedNormRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 729 |
+
self.residual_gains = nn.Parameter(torch.ones(2))
|
| 730 |
+
self.attn_res, self.mlp_res = KrohaRoutedNormDepthAttention(config), KrohaRoutedNormDepthAttention(config)
|
| 731 |
+
|
| 732 |
+
|
| 733 |
+
def _apply_layer(partial_block, *blocks, layer, pass_index, core, cache_index,
|
| 734 |
+
positions, mask, valid, past_key_values, options, output_hidden_states=False):
|
| 735 |
+
sources = blocks + (() if partial_block is None else (partial_block,))
|
| 736 |
+
hidden = layer.attn_res(*sources)
|
| 737 |
+
application_input = hidden if output_hidden_states else None
|
| 738 |
+
second = layer.specialized and pass_index == 1
|
| 739 |
+
input_norm = layer.second_input_layernorm if second else layer.input_layernorm
|
| 740 |
+
ffn_norm = layer.second_post_attention_layernorm if second else layer.post_attention_layernorm
|
| 741 |
+
branch = layer.self_attn(input_norm(hidden), positions, attention_mask=mask, valid_mask=valid,
|
| 742 |
+
past_key_values=past_key_values, cache_layer_idx=cache_index,
|
| 743 |
+
q_adapter=layer.q_adapter if second else None, v_adapter=layer.v_adapter if second else None, **options)
|
| 744 |
+
if second:
|
| 745 |
+
branch = layer.residual_gains[0] * branch
|
| 746 |
+
partial_block = branch if partial_block is None else partial_block + branch
|
| 747 |
+
hidden = ffn_norm(layer.mlp_res(*blocks, partial_block))
|
| 748 |
+
if core:
|
| 749 |
+
branch, aux, counts = layer.mlp(hidden, valid_mask=valid, return_router_state=True, balance_slot=pass_index)
|
| 750 |
+
else:
|
| 751 |
+
branch, aux, counts = layer.mlp(hidden), None, None
|
| 752 |
+
if second:
|
| 753 |
+
branch = layer.residual_gains[1] * branch
|
| 754 |
+
return partial_block + branch, aux, counts, application_input
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
class KrohaRoutedNormPreTrainedModel(PreTrainedModel):
|
| 758 |
+
config_class = KrohaRoutedNormConfig
|
| 759 |
+
base_model_prefix = "model"
|
| 760 |
+
supports_gradient_checkpointing = True
|
| 761 |
+
_no_split_modules = ["KrohaRoutedNormLayer"]
|
| 762 |
+
_skip_keys_device_placement = ["past_key_values"]
|
| 763 |
+
_supports_sdpa = _supports_flash_attn = _supports_flex_attn = True
|
| 764 |
+
_supports_attention_backend = True
|
| 765 |
+
_keep_in_fp32_modules = ["router"]
|
| 766 |
+
# Unlike the non-strict list, HF also honors this under BF16 loading.
|
| 767 |
+
# Routing scores and recurrent decay parameters retain their FP32 contract.
|
| 768 |
+
_keep_in_fp32_modules_strict = ["router", "A_log", "dt_bias"]
|
| 769 |
+
|
| 770 |
+
def _init_weights(self, module):
|
| 771 |
+
super()._init_weights(module)
|
| 772 |
+
if isinstance(module, KrohaRoutedNormLowRank):
|
| 773 |
+
nn.init.zeros_(module.b.weight)
|
| 774 |
+
elif isinstance(module, KrohaRoutedNormHeadGate):
|
| 775 |
+
nn.init.zeros_(module.weight)
|
| 776 |
+
elif isinstance(module, KrohaRoutedNormMoE) and module.shared_expert_gate is not None:
|
| 777 |
+
nn.init.zeros_(module.shared_expert_gate.weight)
|
| 778 |
+
|
| 779 |
+
def gradient_checkpointing_enable(self, gradient_checkpointing_kwargs=None, every_n_layers=1, offload=False):
|
| 780 |
+
options = {"use_reentrant": False, **(gradient_checkpointing_kwargs or {})}
|
| 781 |
+
if options["use_reentrant"]:
|
| 782 |
+
raise ValueError("Recursive auxiliary gradients require nonreentrant checkpointing")
|
| 783 |
+
if every_n_layers != 1:
|
| 784 |
+
raise ValueError("Use KrohaRoutedNorm's explicit all/core checkpoint policy")
|
| 785 |
+
return super().gradient_checkpointing_enable(gradient_checkpointing_kwargs=options, every_n_layers=1, offload=offload)
|
| 786 |
+
|
| 787 |
+
|
| 788 |
+
class KrohaRoutedNormModel(KrohaRoutedNormPreTrainedModel):
|
| 789 |
+
def __init__(self, config):
|
| 790 |
+
super().__init__(config)
|
| 791 |
+
self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size, config.pad_token_id)
|
| 792 |
+
self.prelude = KrohaRoutedNormLayer(config, 0)
|
| 793 |
+
self.layers = nn.ModuleList(KrohaRoutedNormLayer(config, i+1, core=True) for i in range(config.num_core_layers))
|
| 794 |
+
self.coda = KrohaRoutedNormLayer(config, config.num_hidden_layers-1)
|
| 795 |
+
self.norm = KrohaRoutedNormRMSNorm(config.hidden_size, config.rms_norm_eps)
|
| 796 |
+
self.rotary_emb = LlamaRotaryEmbedding(config)
|
| 797 |
+
self.output_res = KrohaRoutedNormDepthAttention(config)
|
| 798 |
+
self.gradient_checkpointing = False
|
| 799 |
+
self.checkpoint_dense_edges = True
|
| 800 |
+
self.router_state = None
|
| 801 |
+
self.post_init()
|
| 802 |
+
|
| 803 |
+
def configure_checkpoint_policy(self, policy="all"):
|
| 804 |
+
if policy not in ("all", "core"):
|
| 805 |
+
raise ValueError("Unknown checkpoint policy")
|
| 806 |
+
self.checkpoint_dense_edges = policy == "all"
|
| 807 |
+
|
| 808 |
+
def forward(self, input_ids=None, attention_mask=None, position_ids=None,
|
| 809 |
+
past_key_values=None, inputs_embeds=None, use_cache=None,
|
| 810 |
+
document_ids=None, document_cu_seqlens=None, document_max_seqlen=None,
|
| 811 |
+
output_hidden_states=None, output_attentions=None, return_dict=None, **kwargs):
|
| 812 |
+
if (input_ids is None) == (inputs_embeds is None):
|
| 813 |
+
raise ValueError("Specify exactly one of input_ids or inputs_embeds")
|
| 814 |
+
if attention_mask is not None and attention_mask.ndim != 2:
|
| 815 |
+
raise ValueError("Provide an ordinary 2D padding mask; document_ids controls packing")
|
| 816 |
+
output_hidden_states = self.config.output_hidden_states if output_hidden_states is None else output_hidden_states
|
| 817 |
+
return_dict = self.config.return_dict if return_dict is None else return_dict
|
| 818 |
+
if output_attentions:
|
| 819 |
+
raise NotImplementedError("DeltaNet has no dense attention matrix; dense attention-map output is unsupported")
|
| 820 |
+
use_cache = (self.config.use_cache and not self.training) if use_cache is None else use_cache
|
| 821 |
+
if self.gradient_checkpointing and self.training and (use_cache or past_key_values is not None):
|
| 822 |
+
raise ValueError("Checkpointed training requires use_cache=False")
|
| 823 |
+
hidden = self.embed_tokens(input_ids) if inputs_embeds is None else inputs_embeds
|
| 824 |
+
passes = getattr(self, "inference_num_passes", None) or self.config.num_passes
|
| 825 |
+
if self.training and passes != self.config.num_passes:
|
| 826 |
+
raise ValueError("Reset inference passes before training")
|
| 827 |
+
if document_ids is not None and (use_cache or past_key_values is not None):
|
| 828 |
+
raise ValueError("Packed training cannot carry inference caches")
|
| 829 |
+
if use_cache and past_key_values is None:
|
| 830 |
+
past_key_values = DynamicCache(config=self.config)
|
| 831 |
+
if past_key_values is not None:
|
| 832 |
+
previous_passes = getattr(past_key_values, "kroha_num_passes", passes)
|
| 833 |
+
if past_key_values.get_seq_length() and previous_passes != passes:
|
| 834 |
+
raise ValueError("Use a fresh cache after changing inference depth")
|
| 835 |
+
past_key_values.kroha_num_passes = passes
|
| 836 |
+
if position_ids is None:
|
| 837 |
+
if document_ids is not None:
|
| 838 |
+
position_ids = document_positions(document_ids)
|
| 839 |
+
elif attention_mask is not None:
|
| 840 |
+
position_ids = (attention_mask.long().cumsum(-1)-1).clamp_min(0)[:, -hidden.shape[1]:]
|
| 841 |
+
else:
|
| 842 |
+
offset = past_key_values.get_seq_length() if past_key_values is not None else 0
|
| 843 |
+
position_ids = (torch.arange(hidden.shape[1], device=hidden.device)+offset)[None]
|
| 844 |
+
flash = "flash_attention" in self.config._attn_implementation
|
| 845 |
+
if document_ids is not None:
|
| 846 |
+
if document_cu_seqlens is None:
|
| 847 |
+
starts = torch.ones_like(document_ids, dtype=torch.bool)
|
| 848 |
+
starts[:, 1:] = document_ids[:, 1:] != document_ids[:, :-1]
|
| 849 |
+
indices = starts.flatten().nonzero().flatten()
|
| 850 |
+
document_cu_seqlens = torch.cat((indices, indices.new_tensor([document_ids.numel()]))).int()
|
| 851 |
+
if document_max_seqlen is None:
|
| 852 |
+
document_max_seqlen = int(document_cu_seqlens.diff().max())
|
| 853 |
+
if flash and attention_mask is not None:
|
| 854 |
+
raise ValueError("Flash packed documents require unpadded rows; use SDPA for padding")
|
| 855 |
+
mask = None if flash else document_mask(document_ids, hidden.dtype, attention_mask=attention_mask)
|
| 856 |
+
else:
|
| 857 |
+
mask = create_causal_mask(config=self.config, inputs_embeds=hidden,
|
| 858 |
+
attention_mask=attention_mask, past_key_values=past_key_values, position_ids=position_ids)
|
| 859 |
+
positions = self.rotary_emb(hidden, position_ids)
|
| 860 |
+
valid = attention_mask[:, -hidden.shape[1]:] if attention_mask is not None else None
|
| 861 |
+
options = dict(kwargs, position_ids=position_ids, document_ids=document_ids,
|
| 862 |
+
document_cu_seqlens=document_cu_seqlens, document_max_seqlen=document_max_seqlen)
|
| 863 |
+
blocks, partial_block, state = (hidden,), None, []
|
| 864 |
+
all_hidden_states = () if output_hidden_states else None
|
| 865 |
+
applications = [(self.prelude, False, 0, 0, None)]
|
| 866 |
+
applications += [(layer, True, p, 1+p*self.config.num_core_layers+i, i)
|
| 867 |
+
for p in range(passes) for i, layer in enumerate(self.layers)]
|
| 868 |
+
applications += [(self.coda, False, 0, self.config.num_hidden_layers-1, None)]
|
| 869 |
+
for i, (layer, core, p, cache_index, physical_index) in enumerate(applications):
|
| 870 |
+
function = partial(_apply_layer, layer=layer, core=core, pass_index=p, cache_index=cache_index,
|
| 871 |
+
positions=positions, mask=mask, valid=valid, past_key_values=past_key_values, options=options,
|
| 872 |
+
output_hidden_states=output_hidden_states)
|
| 873 |
+
checkpoint = self.gradient_checkpointing and self.training and (core or self.checkpoint_dense_edges)
|
| 874 |
+
partial_block, aux, counts, application_input = (self._gradient_checkpointing_func(function, partial_block, *blocks)
|
| 875 |
+
if checkpoint else function(partial_block, *blocks))
|
| 876 |
+
if output_hidden_states:
|
| 877 |
+
all_hidden_states += (application_input,)
|
| 878 |
+
if aux is not None:
|
| 879 |
+
state.append((physical_index, aux, counts))
|
| 880 |
+
if (2*(i+1)) % self.config.attnres_block_size == 0:
|
| 881 |
+
blocks, partial_block = (*blocks, partial_block), None
|
| 882 |
+
self.router_state = state if state else None
|
| 883 |
+
sources = blocks + (() if partial_block is None else (partial_block,))
|
| 884 |
+
hidden = (self._gradient_checkpointing_func(self.output_res, *sources)
|
| 885 |
+
if self.gradient_checkpointing and self.training else self.output_res(*sources))
|
| 886 |
+
hidden = self.norm(hidden)
|
| 887 |
+
if output_hidden_states:
|
| 888 |
+
all_hidden_states += (hidden,)
|
| 889 |
+
output = BaseModelOutputWithPast(last_hidden_state=hidden, past_key_values=past_key_values,
|
| 890 |
+
hidden_states=all_hidden_states)
|
| 891 |
+
return output if return_dict else output.to_tuple()
|
| 892 |
+
|
| 893 |
+
|
| 894 |
+
class KrohaRoutedNormForCausalLM(KrohaRoutedNormPreTrainedModel, GenerationMixin):
|
| 895 |
+
_tied_weights_keys = {"lm_head.weight": "model.embed_tokens.weight"}
|
| 896 |
+
|
| 897 |
+
def __init__(self, config):
|
| 898 |
+
super().__init__(config)
|
| 899 |
+
self.model = KrohaRoutedNormModel(config)
|
| 900 |
+
self.vocab_size = config.vocab_size
|
| 901 |
+
self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
|
| 902 |
+
self.post_init()
|
| 903 |
+
|
| 904 |
+
def get_input_embeddings(self):
|
| 905 |
+
return self.model.embed_tokens
|
| 906 |
+
|
| 907 |
+
def set_input_embeddings(self, value):
|
| 908 |
+
self.model.embed_tokens = value
|
| 909 |
+
|
| 910 |
+
def get_output_embeddings(self):
|
| 911 |
+
return self.lm_head
|
| 912 |
+
|
| 913 |
+
@staticmethod
|
| 914 |
+
def legacy_tensor_name(name):
|
| 915 |
+
if name.endswith('.head_gate_weight'):
|
| 916 |
+
return name.removesuffix('.head_gate_weight') + '.head_gate.weight'
|
| 917 |
+
suffixes = ('.q_adapter.a', '.q_adapter.b', '.v_adapter.a', '.v_adapter.b', '.shared_expert_gate')
|
| 918 |
+
return name + '.weight' if name.endswith(suffixes) else name
|
| 919 |
+
|
| 920 |
+
def load_legacy_state_dict(self, state_dict):
|
| 921 |
+
"""Migrate trained tensors; validate then retire the old frequency buffer.
|
| 922 |
+
|
| 923 |
+
HF recomputes its nonpersistent rotary buffers from configuration. Only
|
| 924 |
+
that known buffer and a redundant tied LM-head alias may be absent.
|
| 925 |
+
Every learned tensor must retain its original name, shape and value.
|
| 926 |
+
"""
|
| 927 |
+
state = {self.legacy_tensor_name(name): value for name, value in state_dict.items()}
|
| 928 |
+
frequencies = state.pop("model.rotary_emb.inv_freq", None)
|
| 929 |
+
if frequencies is None:
|
| 930 |
+
raise ValueError("Legacy checkpoint is missing its persisted RoPE frequencies")
|
| 931 |
+
torch.testing.assert_close(frequencies.float().cpu(), self.model.rotary_emb.inv_freq.float().cpu(), atol=0, rtol=0)
|
| 932 |
+
if self.config.tie_word_embeddings and "lm_head.weight" not in state:
|
| 933 |
+
state["lm_head.weight"] = state["model.embed_tokens.weight"]
|
| 934 |
+
result = self.load_state_dict(state, strict=True)
|
| 935 |
+
if self.config.tie_word_embeddings and self.lm_head.weight is not self.model.embed_tokens.weight:
|
| 936 |
+
raise RuntimeError("Embedding and LM head lost their shared parameter")
|
| 937 |
+
return result
|
| 938 |
+
|
| 939 |
+
def forward(self, input_ids=None, attention_mask=None, position_ids=None, past_key_values=None,
|
| 940 |
+
inputs_embeds=None, labels=None, use_cache=None, logits_to_keep=0,
|
| 941 |
+
output_hidden_states=None, output_attentions=None, return_dict=None, **kwargs):
|
| 942 |
+
return_dict = self.config.return_dict if return_dict is None else return_dict
|
| 943 |
+
outputs = self.model(input_ids=input_ids, attention_mask=attention_mask, position_ids=position_ids,
|
| 944 |
+
past_key_values=past_key_values, inputs_embeds=inputs_embeds, use_cache=use_cache,
|
| 945 |
+
output_hidden_states=output_hidden_states, output_attentions=output_attentions, return_dict=True, **kwargs)
|
| 946 |
+
indices = slice(-logits_to_keep, None) if isinstance(logits_to_keep, int) else logits_to_keep
|
| 947 |
+
logits = self.lm_head(outputs.last_hidden_state[:, indices])
|
| 948 |
+
loss = None
|
| 949 |
+
if labels is not None:
|
| 950 |
+
if logits_to_keep != 0:
|
| 951 |
+
raise ValueError("Training labels require full logits")
|
| 952 |
+
labels = labels.clone()
|
| 953 |
+
if attention_mask is not None:
|
| 954 |
+
labels.masked_fill_(~attention_mask.bool(), -100)
|
| 955 |
+
if kwargs.get("document_ids") is not None:
|
| 956 |
+
docs = kwargs["document_ids"]
|
| 957 |
+
labels[:, 1:].masked_fill_(docs[:, 1:] != docs[:, :-1], -100)
|
| 958 |
+
loss = self.loss_function(logits=logits, labels=labels, vocab_size=self.vocab_size,
|
| 959 |
+
num_items_in_batch=kwargs.get("num_items_in_batch"))
|
| 960 |
+
if self.training:
|
| 961 |
+
loss = loss + self.consume_router_loss()
|
| 962 |
+
output = CausalLMOutputWithPast(loss=loss, logits=logits, past_key_values=outputs.past_key_values,
|
| 963 |
+
hidden_states=outputs.hidden_states)
|
| 964 |
+
return output if return_dict else output.to_tuple()
|
| 965 |
+
|
| 966 |
+
# BEGIN GENERATED TRAINING METHODS
|
| 967 |
+
|
| 968 |
+
def set_inference_passes(self, passes=None):
|
| 969 |
+
"""Execute a trained core prefix without changing weights/config/cache slots.
|
| 970 |
+
|
| 971 |
+
Load the original checkpoint first and call in eval mode. Existing caches
|
| 972 |
+
must be discarded whenever this setting changes. None restores training
|
| 973 |
+
depth; the override is deliberately absent from saved checkpoints.
|
| 974 |
+
"""
|
| 975 |
+
if passes is not None:
|
| 976 |
+
if self.training:
|
| 977 |
+
raise ValueError('Set inference passes only in eval mode')
|
| 978 |
+
if type(passes) is not int or not 1 <= passes <= self.config.num_passes:
|
| 979 |
+
raise ValueError('Inference passes must be an integer within trained depth')
|
| 980 |
+
self.model.inference_num_passes = passes
|
| 981 |
+
return self
|
| 982 |
+
|
| 983 |
+
def consume_router_loss(self, metrics=None):
|
| 984 |
+
state = self.model.router_state
|
| 985 |
+
if state is None or len(state) != self.config.num_core_layers * self.config.num_passes:
|
| 986 |
+
raise RuntimeError('Consume router loss once after each training forward')
|
| 987 |
+
aux = torch.stack([loss for _, loss, _ in state]).mean()
|
| 988 |
+
for i, _, counts in state:
|
| 989 |
+
self.model.layers[i].mlp.step_counts.add_(counts)
|
| 990 |
+
self.model.router_state = None
|
| 991 |
+
if metrics is not None:
|
| 992 |
+
scope = 'global' if self.config.router_balance_scope == 'global' else 'seq'
|
| 993 |
+
metrics[f'train/router_{scope}_aux_raw'] = aux.detach()
|
| 994 |
+
metrics[f'train/router_{scope}_aux_weighted'] = aux.detach() * self.config.router_seq_aux_coef
|
| 995 |
+
return aux * self.config.router_seq_aux_coef
|
| 996 |
+
|
| 997 |
+
@torch.no_grad()
|
| 998 |
+
def update_router_bias(self):
|
| 999 |
+
for layer in self.model.layers:
|
| 1000 |
+
moe = layer.mlp
|
| 1001 |
+
counts = moe.step_counts
|
| 1002 |
+
if torch.distributed.is_initialized():
|
| 1003 |
+
torch.distributed.all_reduce(counts)
|
| 1004 |
+
mean = counts.mean()
|
| 1005 |
+
moe.expert_bias.add_(self.config.router_bias_speed * (mean - counts).sign())
|
| 1006 |
+
moe.expert_bias.sub_(moe.expert_bias.mean())
|
| 1007 |
+
moe.last_load.copy_(counts / mean.clamp_min(1))
|
| 1008 |
+
counts.zero_()
|
| 1009 |
+
|
| 1010 |
+
@torch.no_grad()
|
| 1011 |
+
def router_metrics(self):
|
| 1012 |
+
result = {}
|
| 1013 |
+
for i, layer in enumerate(self.model.layers):
|
| 1014 |
+
moe = layer.mlp
|
| 1015 |
+
result[f'moe/layer_{i}/max_relative_load'] = moe.last_load.max()
|
| 1016 |
+
result[f'moe/layer_{i}/bias_abs_max'] = moe.expert_bias.abs().max()
|
| 1017 |
+
for e in range(self.config.num_experts):
|
| 1018 |
+
result[f'moe/layer_{i}/expert_{e}_relative_load'] = moe.last_load[e]
|
| 1019 |
+
return result
|
| 1020 |
+
|
| 1021 |
+
def parameter_budget(self):
|
| 1022 |
+
total = sum((p.numel() for p in self.parameters()))
|
| 1023 |
+
routed = sum((layer.mlp.gate_up.numel() + layer.mlp.down.numel() for layer in self.model.layers))
|
| 1024 |
+
result = {'total': total, 'unique_blocks': self.config.num_core_layers + 2, 'block_applications': self.config.num_hidden_layers, 'pass_specialization': sum((p.numel() for name, p in self.named_parameters() if any((key in name for key in ('adapter', 'second_', 'residual_gains')))))}
|
| 1025 |
+
if self.config.num_passes == 1:
|
| 1026 |
+
result['active'] = total - routed + routed * self.config.experts_per_token // self.config.num_experts
|
| 1027 |
+
return result
|
| 1028 |
+
|
| 1029 |
+
# END GENERATED TRAINING METHODS
|
| 1030 |
+
|
| 1031 |
+
def router_balance(self, accumulation_steps=1, algorithm="buffered", **kwargs):
|
| 1032 |
+
return GlobalRouterBalance(self, accumulation_steps, algorithm=algorithm, **kwargs)
|
| 1033 |
+
|
| 1034 |
+
def enable_optimizations(self):
|
| 1035 |
+
"""Compile standard modules in place; no changes to parameters or code export."""
|
| 1036 |
+
if next(self.parameters()).device.type != "cuda":
|
| 1037 |
+
return 0
|
| 1038 |
+
torch._dynamo.config.recompile_limit = max(torch._dynamo.config.recompile_limit, 64)
|
| 1039 |
+
count = 0
|
| 1040 |
+
for module in self.modules():
|
| 1041 |
+
if isinstance(module, KrohaRoutedNormAttention) and module.head_gate is not None:
|
| 1042 |
+
module._compiled_head_gate = _head_gate_kernel()
|
| 1043 |
+
count += 1
|
| 1044 |
+
elif isinstance(module, (KrohaRoutedNormRMSNorm, KrohaRoutedNormScalarGate)):
|
| 1045 |
+
module.compile(dynamic=True, fullgraph=True)
|
| 1046 |
+
count += 1
|
| 1047 |
+
elif isinstance(module, KrohaRoutedNormDepthAttention):
|
| 1048 |
+
module._compiled_depth_attention = _depth_kernels()
|
| 1049 |
+
count += 1
|
| 1050 |
+
elif isinstance(module, KrohaRoutedNormMoE):
|
| 1051 |
+
module._compiled_swiglu = _swiglu_kernel()
|
| 1052 |
+
count += 1
|
| 1053 |
+
return count
|
| 1054 |
+
|
| 1055 |
+
|
| 1056 |
+
@lru_cache(maxsize=1)
|
| 1057 |
+
def _head_gate_kernel():
|
| 1058 |
+
return torch.compile(_head_gate_values, dynamic=True, fullgraph=True, options={"emulate_precision_casts": True})
|
| 1059 |
+
|
| 1060 |
+
|
| 1061 |
+
@lru_cache(maxsize=1)
|
| 1062 |
+
def _depth_kernels():
|
| 1063 |
+
return tuple(torch.compile(fn, dynamic=True, fullgraph=True, options={"emulate_precision_casts": True})
|
| 1064 |
+
for fn in (_depth_attention_scores, _depth_attention_mix))
|
| 1065 |
+
|
| 1066 |
+
|
| 1067 |
+
@lru_cache(maxsize=1)
|
| 1068 |
+
def _swiglu_kernel():
|
| 1069 |
+
return torch.compile(swiglu, dynamic=True, fullgraph=True)
|
| 1070 |
+
|
| 1071 |
+
|
| 1072 |
+
def make_kroha_trainer(**kwargs):
|
| 1073 |
+
"""Standard HF Trainer with optimizer-wide buffered LBL and bias callbacks.
|
| 1074 |
+
|
| 1075 |
+
Imports training dependencies lazily. Per-microbatch CE averaging matches
|
| 1076 |
+
the original recipe; the Trainer's global-token loss override is disabled.
|
| 1077 |
+
Tail accumulation uses Trainer.current_gradient_accumulation_steps.
|
| 1078 |
+
"""
|
| 1079 |
+
from transformers import Trainer, TrainerCallback
|
| 1080 |
+
|
| 1081 |
+
class RouterCallback(TrainerCallback):
|
| 1082 |
+
def __init__(self, trainer):
|
| 1083 |
+
self.trainer = trainer
|
| 1084 |
+
|
| 1085 |
+
def on_pre_optimizer_step(self, args, state, control, **callback_kwargs):
|
| 1086 |
+
owner = self.trainer
|
| 1087 |
+
if owner._kroha_balance is not None:
|
| 1088 |
+
owner._kroha_balance.validate()
|
| 1089 |
+
owner._kroha_balance.__exit__(None, None, None)
|
| 1090 |
+
owner._kroha_balance = None
|
| 1091 |
+
|
| 1092 |
+
def on_optimizer_step(self, args, state, control, **callback_kwargs):
|
| 1093 |
+
owner = self.trainer
|
| 1094 |
+
if not owner.accelerator.optimizer_step_was_skipped:
|
| 1095 |
+
owner.accelerator.unwrap_model(owner.model).update_router_bias()
|
| 1096 |
+
|
| 1097 |
+
def on_train_end(self, args, state, control, **callback_kwargs):
|
| 1098 |
+
owner = self.trainer
|
| 1099 |
+
if owner._kroha_balance is not None:
|
| 1100 |
+
owner._kroha_balance.__exit__(None, None, None)
|
| 1101 |
+
owner._kroha_balance = None
|
| 1102 |
+
|
| 1103 |
+
class KrohaRoutedNormTrainer(Trainer):
|
| 1104 |
+
def __init__(self, **trainer_kwargs):
|
| 1105 |
+
super().__init__(**trainer_kwargs)
|
| 1106 |
+
self._kroha_balance = None
|
| 1107 |
+
self.model_accepts_loss_kwargs = False
|
| 1108 |
+
self.add_callback(RouterCallback(self))
|
| 1109 |
+
|
| 1110 |
+
def compute_loss(self, model, inputs, return_outputs=False, num_items_in_batch=None):
|
| 1111 |
+
base = self.accelerator.unwrap_model(model)
|
| 1112 |
+
if base.training and base.config.router_balance_scope == "global":
|
| 1113 |
+
if self._kroha_balance is None:
|
| 1114 |
+
accumulation = getattr(self, "current_gradient_accumulation_steps", self.args.gradient_accumulation_steps)
|
| 1115 |
+
self._kroha_balance = base.router_balance(accumulation, algorithm="buffered")
|
| 1116 |
+
self._kroha_balance.__enter__()
|
| 1117 |
+
with self._kroha_balance.forward():
|
| 1118 |
+
return super().compute_loss(model, inputs, return_outputs=return_outputs, num_items_in_batch=None)
|
| 1119 |
+
return super().compute_loss(model, inputs, return_outputs=return_outputs, num_items_in_batch=None)
|
| 1120 |
+
|
| 1121 |
+
return KrohaRoutedNormTrainer(**kwargs)
|
| 1122 |
+
|
| 1123 |
+
|
| 1124 |
+
KrohaRoutedNormModel.register_for_auto_class("AutoModel")
|
| 1125 |
+
KrohaRoutedNormForCausalLM.register_for_auto_class("AutoModelForCausalLM")
|
| 1126 |
+
|
| 1127 |
+
# BEGIN BAKED STANDALONE TOKENIZER CODECS
|
| 1128 |
+
|
| 1129 |
+
# chat.py SHA-256: adb13223e488d8cb02c489bf64d1f3b5cb1331f3b6d12491e6a3f933db35b38b
|
| 1130 |
+
|
| 1131 |
+
import copy
|
| 1132 |
+
|
| 1133 |
+
import json
|
| 1134 |
+
|
| 1135 |
+
import re
|
| 1136 |
+
|
| 1137 |
+
BASE_TOKENS = ["<pad>", "<s>", "</s>", "<unk>"]
|
| 1138 |
+
|
| 1139 |
+
ACTIVE_TOKENS = BASE_TOKENS + [
|
| 1140 |
+
"<|im_start|>", "<|im_end|>", "<tool_call>", "</tool_call>",
|
| 1141 |
+
"<think>", "</think>", "<|fim_prefix|>", "<|fim_middle|>", "<|fim_suffix|>",
|
| 1142 |
+
]
|
| 1143 |
+
|
| 1144 |
+
RESERVED_TOKENS = [f"<|reserved_{i:03d}|>" for i in range(64 - len(ACTIVE_TOKENS))]
|
| 1145 |
+
|
| 1146 |
+
CONTROL_TOKENS = ACTIVE_TOKENS + RESERVED_TOKENS
|
| 1147 |
+
|
| 1148 |
+
VISIBLE_MARKERS = {"<tool_call>", "</tool_call>", "<think>", "</think>"}
|
| 1149 |
+
|
| 1150 |
+
TOOL_INSTRUCTIONS = (
|
| 1151 |
+
"Available tools are described by the following JSON schemas. "
|
| 1152 |
+
'To call a tool, emit <tool_call>{"id":"call_0","name":"tool_name",'
|
| 1153 |
+
'"arguments":{}}</tool_call>. Use a unique id for every call. '
|
| 1154 |
+
"Wait for matching tool results before continuing. Call tools only when needed.\n"
|
| 1155 |
+
)
|
| 1156 |
+
|
| 1157 |
+
NAME = re.compile(r"[A-Za-z_][A-Za-z0-9_.:-]{0,127}\Z")
|
| 1158 |
+
|
| 1159 |
+
CALL_ID = re.compile(r"[A-Za-z0-9_-]{1,64}\Z")
|
| 1160 |
+
|
| 1161 |
+
def json_text(value):
|
| 1162 |
+
return json.dumps(value, ensure_ascii=False, sort_keys=True, allow_nan=False)
|
| 1163 |
+
|
| 1164 |
+
def _pairs(pairs):
|
| 1165 |
+
result = {}
|
| 1166 |
+
for key, value in pairs:
|
| 1167 |
+
if key in result:
|
| 1168 |
+
raise ValueError(f"Duplicate JSON key: {key}")
|
| 1169 |
+
result[key] = value
|
| 1170 |
+
return result
|
| 1171 |
+
|
| 1172 |
+
def _constant(value):
|
| 1173 |
+
raise ValueError(f"Non-finite JSON value: {value}")
|
| 1174 |
+
|
| 1175 |
+
def _valid_name(value):
|
| 1176 |
+
if not isinstance(value, str) or not NAME.fullmatch(value):
|
| 1177 |
+
raise ValueError("Invalid function name")
|
| 1178 |
+
return value
|
| 1179 |
+
|
| 1180 |
+
def _valid_id(value):
|
| 1181 |
+
if not isinstance(value, str) or not CALL_ID.fullmatch(value):
|
| 1182 |
+
raise ValueError("Invalid tool_call_id")
|
| 1183 |
+
return value
|
| 1184 |
+
|
| 1185 |
+
def prepare_chat(messages, tools=None, *, add_generation_prompt=False):
|
| 1186 |
+
"""Validate history; normalize API argument strings exactly once.
|
| 1187 |
+
|
| 1188 |
+
Pending calls may end a training record, but cannot be followed by a new
|
| 1189 |
+
assistant/user turn until all results arrive. Missing call IDs are assigned
|
| 1190 |
+
reproducibly; tool result IDs must refer to the resulting IDs.
|
| 1191 |
+
"""
|
| 1192 |
+
if not messages:
|
| 1193 |
+
raise ValueError("A conversation must contain at least one message")
|
| 1194 |
+
messages, tools = copy.deepcopy(messages), copy.deepcopy(tools or [])
|
| 1195 |
+
names = set()
|
| 1196 |
+
for tool in tools:
|
| 1197 |
+
if not isinstance(tool, dict) or tool.get("type") != "function":
|
| 1198 |
+
raise ValueError("Tools must be function JSON Schema objects")
|
| 1199 |
+
function = tool.get("function", {})
|
| 1200 |
+
name = _valid_name(function.get("name"))
|
| 1201 |
+
if name in names:
|
| 1202 |
+
raise ValueError("Duplicate tool definition")
|
| 1203 |
+
names.add(name)
|
| 1204 |
+
parameters = function.get("parameters", {})
|
| 1205 |
+
if not isinstance(parameters, dict) or parameters.get("type", "object") != "object":
|
| 1206 |
+
raise ValueError("Tool parameters must describe a JSON object")
|
| 1207 |
+
json_text(tools) # Fail before rendering non-JSON metadata.
|
| 1208 |
+
pending, seen = {}, set()
|
| 1209 |
+
for mi, message in enumerate(messages):
|
| 1210 |
+
role = message.get("role")
|
| 1211 |
+
if role not in {"system", "developer", "user", "assistant", "tool"}:
|
| 1212 |
+
raise ValueError("Unknown message role")
|
| 1213 |
+
if pending and role != "tool":
|
| 1214 |
+
raise ValueError("Unresolved tool calls before next conversation turn")
|
| 1215 |
+
content = message.get("content")
|
| 1216 |
+
if content is None:
|
| 1217 |
+
content = ""
|
| 1218 |
+
if not isinstance(content, str):
|
| 1219 |
+
raise ValueError("This protocol accepts text content only")
|
| 1220 |
+
message["content"] = content
|
| 1221 |
+
reasoning = message.get("reasoning_content")
|
| 1222 |
+
if reasoning is not None and not isinstance(reasoning, str):
|
| 1223 |
+
raise ValueError("reasoning_content must be text")
|
| 1224 |
+
if role != "assistant" and (reasoning or message.get("tool_calls")):
|
| 1225 |
+
raise ValueError("Only assistant messages can contain reasoning/tool_calls")
|
| 1226 |
+
if role == "tool":
|
| 1227 |
+
call_id = _valid_id(message.get("tool_call_id"))
|
| 1228 |
+
if call_id not in pending:
|
| 1229 |
+
raise ValueError("Orphan or duplicate tool result")
|
| 1230 |
+
expected_name = pending.pop(call_id)
|
| 1231 |
+
if message.get("name", expected_name) != expected_name:
|
| 1232 |
+
raise ValueError("Tool result name does not match call")
|
| 1233 |
+
message["name"] = expected_name
|
| 1234 |
+
calls = message.get("tool_calls") or []
|
| 1235 |
+
if not isinstance(calls, list):
|
| 1236 |
+
raise ValueError("tool_calls must be a list")
|
| 1237 |
+
for ci, call in enumerate(calls):
|
| 1238 |
+
if call.get("type", "function") != "function":
|
| 1239 |
+
raise ValueError("Only function calls are supported")
|
| 1240 |
+
function = call.get("function", {})
|
| 1241 |
+
name = _valid_name(function.get("name"))
|
| 1242 |
+
if tools and name not in names:
|
| 1243 |
+
raise ValueError("Call refers to an undefined tool")
|
| 1244 |
+
arguments = function.get("arguments", {})
|
| 1245 |
+
if isinstance(arguments, str):
|
| 1246 |
+
arguments = json.loads(arguments, object_pairs_hook=_pairs, parse_constant=_constant)
|
| 1247 |
+
if not isinstance(arguments, dict):
|
| 1248 |
+
raise ValueError("Function arguments must be a JSON object")
|
| 1249 |
+
json_text(arguments)
|
| 1250 |
+
call_id = _valid_id(call.get("id", f"call_{mi}_{ci}"))
|
| 1251 |
+
if call_id in seen:
|
| 1252 |
+
raise ValueError("Duplicate tool call id")
|
| 1253 |
+
seen.add(call_id)
|
| 1254 |
+
pending[call_id] = name
|
| 1255 |
+
call.update(id=call_id, type="function", function={"name": name, "arguments": arguments})
|
| 1256 |
+
message["tool_calls"] = calls
|
| 1257 |
+
if add_generation_prompt and pending:
|
| 1258 |
+
raise ValueError("Cannot generate assistant response before tool results arrive")
|
| 1259 |
+
return messages, tools
|
| 1260 |
+
|
| 1261 |
+
def _segments(messages, tools, add_generation_prompt, enable_thinking, content_segments=None):
|
| 1262 |
+
"""Yield (text, inserted_control, generated_by_assistant)."""
|
| 1263 |
+
def content(message, field, generated):
|
| 1264 |
+
if content_segments is None:
|
| 1265 |
+
yield message.get(field) or "", False, generated
|
| 1266 |
+
else:
|
| 1267 |
+
yield from content_segments(message, field, generated)
|
| 1268 |
+
|
| 1269 |
+
if tools:
|
| 1270 |
+
yield "<|im_start|>", True, False
|
| 1271 |
+
yield "system\n", False, False
|
| 1272 |
+
# These two markers belong to our fixed protocol instructions. Schema
|
| 1273 |
+
# descriptions, in contrast, are always encoded as literal content.
|
| 1274 |
+
before, example = TOOL_INSTRUCTIONS.split("<tool_call>", 1)
|
| 1275 |
+
example, after = example.split("</tool_call>", 1)
|
| 1276 |
+
yield before, False, False
|
| 1277 |
+
yield "<tool_call>", True, False
|
| 1278 |
+
yield example, False, False
|
| 1279 |
+
yield "</tool_call>", True, False
|
| 1280 |
+
yield after + json_text(tools), False, False
|
| 1281 |
+
yield "<|im_end|>", True, False
|
| 1282 |
+
yield "\n", False, False
|
| 1283 |
+
for message in messages:
|
| 1284 |
+
role = message["role"]
|
| 1285 |
+
generated = role == "assistant"
|
| 1286 |
+
yield "<|im_start|>", True, False
|
| 1287 |
+
header = role
|
| 1288 |
+
if role == "tool":
|
| 1289 |
+
header += " name=" + message["name"] + " tool_call_id=" + message["tool_call_id"]
|
| 1290 |
+
yield header + "\n", False, False
|
| 1291 |
+
if generated and message.get("reasoning_content"):
|
| 1292 |
+
yield "<think>", True, True
|
| 1293 |
+
yield from content(message, "reasoning_content", True)
|
| 1294 |
+
yield "</think>", True, True
|
| 1295 |
+
yield from content(message, "content", generated)
|
| 1296 |
+
for call in message["tool_calls"]:
|
| 1297 |
+
payload = {"id": call["id"], **call["function"]}
|
| 1298 |
+
yield "<tool_call>", True, True
|
| 1299 |
+
yield json_text(payload), False, True
|
| 1300 |
+
yield "</tool_call>", True, True
|
| 1301 |
+
yield "<|im_end|>", True, generated
|
| 1302 |
+
yield "\n", False, False
|
| 1303 |
+
if add_generation_prompt:
|
| 1304 |
+
yield "<|im_start|>", True, False
|
| 1305 |
+
yield "assistant\n", False, False
|
| 1306 |
+
if enable_thinking:
|
| 1307 |
+
yield "<think>", True, False
|
| 1308 |
+
|
| 1309 |
+
class ChatCodec:
|
| 1310 |
+
"""Encode raw documents or structured chats without content/control confusion.
|
| 1311 |
+
|
| 1312 |
+
The tokenizer is cloned once, not mutated. No truncation/padding is applied;
|
| 1313 |
+
callers must pack/pad input_ids, attention_mask and labels together.
|
| 1314 |
+
"""
|
| 1315 |
+
def __init__(self, tokenizer):
|
| 1316 |
+
from tokenizers import Tokenizer
|
| 1317 |
+
self.tokenizer = tokenizer
|
| 1318 |
+
value = json.loads(tokenizer.backend_tokenizer.to_str())
|
| 1319 |
+
value["added_tokens"] = []
|
| 1320 |
+
value["post_processor"] = None
|
| 1321 |
+
value["padding"] = None
|
| 1322 |
+
value["truncation"] = None
|
| 1323 |
+
self.raw = Tokenizer.from_str(json.dumps(value))
|
| 1324 |
+
self.control_ids = {token: tokenizer.convert_tokens_to_ids(token) for token in CONTROL_TOKENS}
|
| 1325 |
+
if len(set(self.control_ids.values())) != 64 or any(
|
| 1326 |
+
self.control_ids[token] != i for i, token in enumerate(CONTROL_TOKENS)
|
| 1327 |
+
):
|
| 1328 |
+
raise ValueError("ChatCodec requires the multilingual B64 v2 control pool")
|
| 1329 |
+
|
| 1330 |
+
def encode_document(self, text, *, append_eos=True):
|
| 1331 |
+
ids = self.raw.encode(text, add_special_tokens=False).ids
|
| 1332 |
+
if append_eos:
|
| 1333 |
+
ids.append(self.control_ids["</s>"])
|
| 1334 |
+
return ids
|
| 1335 |
+
|
| 1336 |
+
def encode_fim(self, prefix, suffix, middle=None):
|
| 1337 |
+
"""PSM infilling prompt; an optional known middle is followed by EOS."""
|
| 1338 |
+
ids = [self.control_ids["<|fim_prefix|>"]]
|
| 1339 |
+
ids += self.encode_document(prefix, append_eos=False)
|
| 1340 |
+
ids += [self.control_ids["<|fim_suffix|>"]]
|
| 1341 |
+
ids += self.encode_document(suffix, append_eos=False)
|
| 1342 |
+
ids += [self.control_ids["<|fim_middle|>"]]
|
| 1343 |
+
if middle is not None:
|
| 1344 |
+
ids += self.encode_document(middle)
|
| 1345 |
+
return ids
|
| 1346 |
+
|
| 1347 |
+
def render(self, messages, tools=None, *, add_generation_prompt=False, enable_thinking=False):
|
| 1348 |
+
messages, tools = prepare_chat(messages, tools, add_generation_prompt=add_generation_prompt)
|
| 1349 |
+
return "".join(text for text, _, _ in _segments(messages, tools, add_generation_prompt, enable_thinking))
|
| 1350 |
+
|
| 1351 |
+
def encode(self, messages, tools=None, *, add_generation_prompt=False, enable_thinking=False):
|
| 1352 |
+
messages, tools = prepare_chat(messages, tools, add_generation_prompt=add_generation_prompt)
|
| 1353 |
+
return self._encode_segments(_segments(messages, tools, add_generation_prompt, enable_thinking))
|
| 1354 |
+
|
| 1355 |
+
def _encode_segments(self, segments):
|
| 1356 |
+
"""Shared SFT encoder; explicit atomic items can be control names or IDs."""
|
| 1357 |
+
ids, mask, buffer, spans = [], [], "", []
|
| 1358 |
+
|
| 1359 |
+
def flush():
|
| 1360 |
+
nonlocal buffer, spans
|
| 1361 |
+
if buffer:
|
| 1362 |
+
encoded = self.raw.encode(buffer, add_special_tokens=False)
|
| 1363 |
+
ids.extend(encoded.ids)
|
| 1364 |
+
mask.extend(int(any(a < end and start < b for a, b in spans))
|
| 1365 |
+
for start, end in encoded.offsets)
|
| 1366 |
+
buffer, spans = "", []
|
| 1367 |
+
|
| 1368 |
+
for text, control, generated in segments:
|
| 1369 |
+
if control:
|
| 1370 |
+
flush()
|
| 1371 |
+
ids.append(text if isinstance(text, int) else self.control_ids[text])
|
| 1372 |
+
mask.append(int(generated))
|
| 1373 |
+
else:
|
| 1374 |
+
if generated and text:
|
| 1375 |
+
spans.append((len(buffer), len(buffer) + len(text)))
|
| 1376 |
+
buffer += text
|
| 1377 |
+
flush()
|
| 1378 |
+
return {"input_ids": ids, "attention_mask": [1] * len(ids), "assistant_masks": mask,
|
| 1379 |
+
"labels": [token if generated else -100 for token, generated in zip(ids, mask)]}
|
| 1380 |
+
|
| 1381 |
+
class IncompleteToolCall(ValueError):
|
| 1382 |
+
"""Buffer more generated text before trying the final-message parser again."""
|
| 1383 |
+
|
| 1384 |
+
def parse_assistant(text):
|
| 1385 |
+
"""Parse a complete generated assistant body, never execute it.
|
| 1386 |
+
|
| 1387 |
+
raw_decode respects quoted closing tags, nested arguments and Unicode. This
|
| 1388 |
+
validates the envelope, not tool-specific JSON Schema or argument semantics.
|
| 1389 |
+
IncompleteToolCall is retryable; no partial call is returned for execution.
|
| 1390 |
+
"""
|
| 1391 |
+
if text.endswith("<|im_end|>"):
|
| 1392 |
+
text = text[:-len("<|im_end|>")]
|
| 1393 |
+
reasoning = None
|
| 1394 |
+
if text.startswith("<think>"):
|
| 1395 |
+
end = text.find("</think>", len("<think>"))
|
| 1396 |
+
if end < 0:
|
| 1397 |
+
raise IncompleteToolCall("Unclosed reasoning block")
|
| 1398 |
+
reasoning, text = text[len("<think>"):end], text[end + len("</think>"):]
|
| 1399 |
+
decoder = json.JSONDecoder(object_pairs_hook=_pairs, parse_constant=_constant)
|
| 1400 |
+
calls, content, seen = [], [], set()
|
| 1401 |
+
while "<tool_call>" in text:
|
| 1402 |
+
prefix, text = text.split("<tool_call>", 1)
|
| 1403 |
+
content.append(prefix)
|
| 1404 |
+
text = text.lstrip()
|
| 1405 |
+
try:
|
| 1406 |
+
payload, end = decoder.raw_decode(text)
|
| 1407 |
+
except json.JSONDecodeError as exc:
|
| 1408 |
+
raise IncompleteToolCall("Incomplete or invalid tool JSON") from exc
|
| 1409 |
+
remainder = text[end:].lstrip()
|
| 1410 |
+
if not remainder.startswith("</tool_call>"):
|
| 1411 |
+
if "</tool_call>".startswith(remainder):
|
| 1412 |
+
raise IncompleteToolCall("Unclosed tool call")
|
| 1413 |
+
raise ValueError("Expected closing tool_call immediately after JSON")
|
| 1414 |
+
if not isinstance(payload, dict) or set(payload) != {"id", "name", "arguments"}:
|
| 1415 |
+
raise ValueError("Tool call needs exactly id, name and arguments")
|
| 1416 |
+
call_id, name = _valid_id(payload["id"]), _valid_name(payload["name"])
|
| 1417 |
+
if call_id in seen or not isinstance(payload["arguments"], dict):
|
| 1418 |
+
raise ValueError("Duplicate call id or non-object arguments")
|
| 1419 |
+
seen.add(call_id)
|
| 1420 |
+
calls.append({"id": call_id, "type": "function", "function": {
|
| 1421 |
+
"name": name, "arguments": payload["arguments"]}})
|
| 1422 |
+
text = remainder[len("</tool_call>"):]
|
| 1423 |
+
content.append(text)
|
| 1424 |
+
result = {"role": "assistant", "content": "".join(content), "tool_calls": calls}
|
| 1425 |
+
if reasoning is not None:
|
| 1426 |
+
result["reasoning_content"] = reasoning
|
| 1427 |
+
return result
|
| 1428 |
+
|
| 1429 |
+
# dna.py SHA-256: adb54fc1d8bc17059ad7274b7a38507de9c6d0ffe798d11303c81cc13d6c85ce
|
| 1430 |
+
|
| 1431 |
+
import itertools
|
| 1432 |
+
|
| 1433 |
+
import re
|
| 1434 |
+
|
| 1435 |
+
BASE_VOCAB_SIZE = 65536
|
| 1436 |
+
|
| 1437 |
+
K = 6
|
| 1438 |
+
|
| 1439 |
+
CANONICAL = "ACGT"
|
| 1440 |
+
|
| 1441 |
+
ALPHABET = "ACGTURYSWKMBDHVN"
|
| 1442 |
+
|
| 1443 |
+
DNA_BEGIN = "<dna>"
|
| 1444 |
+
|
| 1445 |
+
DNA_END = "</dna>"
|
| 1446 |
+
|
| 1447 |
+
DNA_BEGIN_ID = BASE_VOCAB_SIZE
|
| 1448 |
+
|
| 1449 |
+
DNA_END_ID = BASE_VOCAB_SIZE + 1
|
| 1450 |
+
|
| 1451 |
+
KMER_START = BASE_VOCAB_SIZE + 2
|
| 1452 |
+
|
| 1453 |
+
BASE_START = KMER_START + 4 ** K
|
| 1454 |
+
|
| 1455 |
+
VOCAB_SIZE = BASE_START + len(ALPHABET)
|
| 1456 |
+
|
| 1457 |
+
LEFT, RIGHT = "⟦", "⟧"
|
| 1458 |
+
|
| 1459 |
+
TAG = re.compile(r"</?dna>")
|
| 1460 |
+
|
| 1461 |
+
def kmer_token(sequence):
|
| 1462 |
+
return "DNA6" + LEFT + sequence + RIGHT
|
| 1463 |
+
|
| 1464 |
+
def base_token(symbol):
|
| 1465 |
+
return "DNABASE" + LEFT + symbol + RIGHT
|
| 1466 |
+
|
| 1467 |
+
def dna_tokens():
|
| 1468 |
+
return [DNA_BEGIN, DNA_END] + [kmer_token("".join(chars))
|
| 1469 |
+
for chars in itertools.product(CANONICAL, repeat=K)] + [base_token(c) for c in ALPHABET]
|
| 1470 |
+
|
| 1471 |
+
def checked_spans(text, spans):
|
| 1472 |
+
"""Unicode character offsets; refuse overlap, reordering and invalid bounds."""
|
| 1473 |
+
previous = 0
|
| 1474 |
+
for span in spans:
|
| 1475 |
+
if isinstance(span, dict):
|
| 1476 |
+
start, end = span["start"], span["end"]
|
| 1477 |
+
else:
|
| 1478 |
+
start, end = span
|
| 1479 |
+
if type(start) is not int or type(end) is not int or not previous <= start <= end <= len(text):
|
| 1480 |
+
raise ValueError("DNA spans must be ordered, disjoint character offsets within content")
|
| 1481 |
+
previous = end
|
| 1482 |
+
yield start, end
|
| 1483 |
+
|
| 1484 |
+
def split_tagged(text):
|
| 1485 |
+
"""Yield (body, is_dna) for explicitly tagged input; validate tag balance."""
|
| 1486 |
+
cursor, opened = 0, False
|
| 1487 |
+
for match in TAG.finditer(text):
|
| 1488 |
+
if match.group() == DNA_BEGIN:
|
| 1489 |
+
if opened:
|
| 1490 |
+
raise ValueError("Nested DNA tags")
|
| 1491 |
+
yield text[cursor:match.start()], False
|
| 1492 |
+
opened = True
|
| 1493 |
+
else:
|
| 1494 |
+
if not opened:
|
| 1495 |
+
raise ValueError("Closing DNA tag without opening tag")
|
| 1496 |
+
yield text[cursor:match.start()], True
|
| 1497 |
+
opened = False
|
| 1498 |
+
cursor = match.end()
|
| 1499 |
+
if opened:
|
| 1500 |
+
raise ValueError("Unclosed DNA tag")
|
| 1501 |
+
yield text[cursor:], False
|
| 1502 |
+
|
| 1503 |
+
class DNACodec(ChatCodec):
|
| 1504 |
+
"""B64-compatible raw text/chat, with opt-in DNA sequence/span encoding.
|
| 1505 |
+
|
| 1506 |
+
Six-character windows are taken from the exact input. Only a full uppercase
|
| 1507 |
+
A/C/G/T window becomes a 6-mer. A noncanonical window or short tail falls
|
| 1508 |
+
back character by character. IUPAC uppercase symbols have dedicated DNA IDs;
|
| 1509 |
+
lowercase, whitespace, gaps and any other Unicode use the unchanged raw BPE.
|
| 1510 |
+
There is no uppercasing, stripping, U->T conversion or dropped remainder.
|
| 1511 |
+
"""
|
| 1512 |
+
def __init__(self, tokenizer):
|
| 1513 |
+
super().__init__(tokenizer)
|
| 1514 |
+
if len(tokenizer) != VOCAB_SIZE:
|
| 1515 |
+
raise ValueError(f"DNA6 codec requires vocabulary {VOCAB_SIZE}")
|
| 1516 |
+
for i, token in enumerate(dna_tokens(), BASE_VOCAB_SIZE):
|
| 1517 |
+
if tokenizer.convert_tokens_to_ids(token) != i:
|
| 1518 |
+
raise ValueError("DNA6 token mapping differs from the saved protocol")
|
| 1519 |
+
self.control_ids.update({DNA_BEGIN: DNA_BEGIN_ID, DNA_END: DNA_END_ID})
|
| 1520 |
+
self._base_ids = {c: BASE_START + i for i, c in enumerate(ALPHABET)}
|
| 1521 |
+
self._digits = {c: i for i, c in enumerate(CANONICAL)}
|
| 1522 |
+
|
| 1523 |
+
def encode_sequence(self, sequence, *, phase=0, include_markers=True):
|
| 1524 |
+
"""Return IDs, exact character offsets and IUPAC-base offsets.
|
| 1525 |
+
|
| 1526 |
+
bp_offsets count IUPAC letters (case-insensitive, including U), while
|
| 1527 |
+
whitespace/gaps/other characters have zero base width. They are still
|
| 1528 |
+
preserved in input_ids. Offset metadata is for this sequence only.
|
| 1529 |
+
"""
|
| 1530 |
+
if not isinstance(sequence, str):
|
| 1531 |
+
raise TypeError("DNA sequence must be a string")
|
| 1532 |
+
if type(phase) is not int or not 0 <= phase < K:
|
| 1533 |
+
raise ValueError("DNA phase must be an integer in 0..5")
|
| 1534 |
+
ids, offsets, bp_offsets, bp_lengths = [], [], [], []
|
| 1535 |
+
bp = 0
|
| 1536 |
+
|
| 1537 |
+
def append(token_id, start, end, bases):
|
| 1538 |
+
nonlocal bp
|
| 1539 |
+
ids.append(token_id)
|
| 1540 |
+
offsets.append((start, end))
|
| 1541 |
+
bp_offsets.append((bp, bp + bases))
|
| 1542 |
+
bp_lengths.append(bases)
|
| 1543 |
+
bp += bases
|
| 1544 |
+
|
| 1545 |
+
def fallback(start, end):
|
| 1546 |
+
for pos in range(start, end):
|
| 1547 |
+
char = sequence[pos]
|
| 1548 |
+
bases = int(char in ALPHABET + ALPHABET.lower())
|
| 1549 |
+
if char in self._base_ids:
|
| 1550 |
+
append(self._base_ids[char], pos, pos + 1, 1)
|
| 1551 |
+
else:
|
| 1552 |
+
encoded = self.raw.encode(char, add_special_tokens=False)
|
| 1553 |
+
for index, token_id in enumerate(encoded.ids):
|
| 1554 |
+
append(token_id, pos, pos + 1, bases if index == 0 else 0)
|
| 1555 |
+
|
| 1556 |
+
if include_markers:
|
| 1557 |
+
append(DNA_BEGIN_ID, 0, 0, 0)
|
| 1558 |
+
prefix = min(phase, len(sequence))
|
| 1559 |
+
fallback(0, prefix)
|
| 1560 |
+
for start in range(prefix, len(sequence), K):
|
| 1561 |
+
block = sequence[start:start + K]
|
| 1562 |
+
if len(block) == K and all(c in self._digits for c in block):
|
| 1563 |
+
rank = 0
|
| 1564 |
+
for char in block:
|
| 1565 |
+
rank = rank * 4 + self._digits[char]
|
| 1566 |
+
append(KMER_START + rank, start, start + K, K)
|
| 1567 |
+
else:
|
| 1568 |
+
fallback(start, start + len(block))
|
| 1569 |
+
if include_markers:
|
| 1570 |
+
append(DNA_END_ID, len(sequence), len(sequence), 0)
|
| 1571 |
+
return {"input_ids": ids, "attention_mask": [1] * len(ids),
|
| 1572 |
+
"offset_mapping": offsets, "bp_offset_mapping": bp_offsets,
|
| 1573 |
+
"bp_lengths": bp_lengths, "num_bases": bp, "phase": phase}
|
| 1574 |
+
|
| 1575 |
+
def decode_sequence(self, ids):
|
| 1576 |
+
"""Remove only DNA boundaries, retaining every encoded content byte."""
|
| 1577 |
+
return self.tokenizer.decode([i for i in ids if i not in (DNA_BEGIN_ID, DNA_END_ID)],
|
| 1578 |
+
skip_special_tokens=False, clean_up_tokenization_spaces=False)
|
| 1579 |
+
|
| 1580 |
+
def _content_parts(self, text, *, dna_mode=False, dna_spans=None):
|
| 1581 |
+
if type(dna_mode) is not bool:
|
| 1582 |
+
raise TypeError("dna_mode must be a boolean")
|
| 1583 |
+
if dna_spans is not None:
|
| 1584 |
+
cursor = 0
|
| 1585 |
+
for start, end in checked_spans(text, dna_spans):
|
| 1586 |
+
yield text[cursor:start], False
|
| 1587 |
+
yield text[start:end], True
|
| 1588 |
+
cursor = end
|
| 1589 |
+
yield text[cursor:], False
|
| 1590 |
+
elif dna_mode:
|
| 1591 |
+
yield from split_tagged(text)
|
| 1592 |
+
else:
|
| 1593 |
+
yield text, False
|
| 1594 |
+
|
| 1595 |
+
def _content_segments(self, text, generated, *, dna_mode=False, dna_spans=None, phase=0):
|
| 1596 |
+
for body, is_dna in self._content_parts(text, dna_mode=dna_mode, dna_spans=dna_spans):
|
| 1597 |
+
if is_dna:
|
| 1598 |
+
for token_id in self.encode_sequence(body, phase=phase)["input_ids"]:
|
| 1599 |
+
yield token_id, True, generated
|
| 1600 |
+
else:
|
| 1601 |
+
yield body, False, generated
|
| 1602 |
+
|
| 1603 |
+
def encode_document(self, text, *, append_eos=True, dna_mode=False, dna_spans=None, phase=0):
|
| 1604 |
+
"""Default is exactly old text BPE. dna_mode=True parses explicit tags.
|
| 1605 |
+
|
| 1606 |
+
dna_spans inserts DNA markers around indexed substrings of untagged text.
|
| 1607 |
+
Decode those IDs with skip_special_tokens=True to recover untagged text.
|
| 1608 |
+
"""
|
| 1609 |
+
if not dna_mode and dna_spans is None:
|
| 1610 |
+
return super().encode_document(text, append_eos=append_eos)
|
| 1611 |
+
result = self._encode_segments(self._content_segments(text, False, dna_mode=dna_mode,
|
| 1612 |
+
dna_spans=dna_spans, phase=phase))["input_ids"]
|
| 1613 |
+
if append_eos:
|
| 1614 |
+
result.append(self.control_ids["</s>"])
|
| 1615 |
+
return result
|
| 1616 |
+
|
| 1617 |
+
def encode(self, messages, tools=None, *, add_generation_prompt=False, enable_thinking=False,
|
| 1618 |
+
dna_mode=False, phase=0):
|
| 1619 |
+
"""Encode text/DNA chats with the existing assistant-only mask.
|
| 1620 |
+
|
| 1621 |
+
Explicit message `dna_spans` and `reasoning_dna_spans` use Unicode offsets.
|
| 1622 |
+
A message's `dna_mode` can override the conversation default. Tool schemas
|
| 1623 |
+
and JSON call payloads remain text; content/reasoning/tool results can
|
| 1624 |
+
contain explicitly marked DNA. No automatic DNA detection is performed.
|
| 1625 |
+
"""
|
| 1626 |
+
messages, tools = prepare_chat(messages, tools, add_generation_prompt=add_generation_prompt)
|
| 1627 |
+
|
| 1628 |
+
def content(message, field, generated):
|
| 1629 |
+
spans_key = "dna_spans" if field == "content" else "reasoning_dna_spans"
|
| 1630 |
+
yield from self._content_segments(message.get(field) or "", generated,
|
| 1631 |
+
dna_mode=message.get("dna_mode", dna_mode), dna_spans=message.get(spans_key), phase=phase)
|
| 1632 |
+
|
| 1633 |
+
return self._encode_segments(_segments(messages, tools, add_generation_prompt, enable_thinking, content))
|
| 1634 |
+
|
| 1635 |
+
def render(self, messages, tools=None, *, add_generation_prompt=False, enable_thinking=False,
|
| 1636 |
+
dna_mode=False, phase=0):
|
| 1637 |
+
encoded = self.encode(messages, tools, add_generation_prompt=add_generation_prompt,
|
| 1638 |
+
enable_thinking=enable_thinking, dna_mode=dna_mode, phase=phase)
|
| 1639 |
+
return self.tokenizer.decode(encoded["input_ids"], skip_special_tokens=False,
|
| 1640 |
+
clean_up_tokenization_spaces=False)
|
| 1641 |
+
|
| 1642 |
+
# END BAKED STANDALONE TOKENIZER CODECS
|
release-manifest.json
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repository": "d0rj/Kroha-base-dev",
|
| 3 |
+
"public": true,
|
| 4 |
+
"license": "cc-by-4.0",
|
| 5 |
+
"training_code_snapshot": "415460f4e30fb8edf0f4dae1bf898ef04651c4ab",
|
| 6 |
+
"checkpoint_stage": "powerup_8x",
|
| 7 |
+
"checkpoint_step": 11448,
|
| 8 |
+
"source_tokens": 36000000000,
|
| 9 |
+
"decoder_parameters": 71685712,
|
| 10 |
+
"checkpoint_weights_sha256": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884",
|
| 11 |
+
"files": {
|
| 12 |
+
"chat_template.jinja": {
|
| 13 |
+
"bytes": 4518,
|
| 14 |
+
"sha256": "b51e43a90a9c7da4db3bce84bd27cd798699191b83663d1c75c234481c040966"
|
| 15 |
+
},
|
| 16 |
+
"checkpoints/powerup_2x.tar.gz": {
|
| 17 |
+
"bytes": 698127762,
|
| 18 |
+
"sha256": "3be957ec7fce3324d20d30e4290a8013ab56559b16c030bdb19016001d4b81b8"
|
| 19 |
+
},
|
| 20 |
+
"checkpoints/powerup_8x.tar.gz": {
|
| 21 |
+
"bytes": 698823583,
|
| 22 |
+
"sha256": "880cf7aa13927e0bec1c1268cdc37c46e954c26fbe0a229fdc03219828050bbd"
|
| 23 |
+
},
|
| 24 |
+
"checkpoints/pretrain.tar.gz": {
|
| 25 |
+
"bytes": 697955705,
|
| 26 |
+
"sha256": "ca18924b7001d7730cc59d22cf012ac196a0e3f83430972b70dbd6189bb35c9c"
|
| 27 |
+
},
|
| 28 |
+
"code/requirements-training.txt": {
|
| 29 |
+
"bytes": 2349,
|
| 30 |
+
"sha256": "243952a980057d61429712cb8cd113c28cff3d35904b1b1abc274916c463439c"
|
| 31 |
+
},
|
| 32 |
+
"code/runtime-sources.json": {
|
| 33 |
+
"bytes": 14819,
|
| 34 |
+
"sha256": "1608f43c29a2ff00908cafd46e333f0ed7f27afe0079f659ea92ab3f673ef4ac"
|
| 35 |
+
},
|
| 36 |
+
"code/runtime-sources.tar.gz": {
|
| 37 |
+
"bytes": 861815,
|
| 38 |
+
"sha256": "87f7d911ee688f612d6646caabd7ee27f007f51e3b79599a07c1d754d474d187"
|
| 39 |
+
},
|
| 40 |
+
"code/training-code.tar.gz": {
|
| 41 |
+
"bytes": 383935,
|
| 42 |
+
"sha256": "f96a1852ac4f94c58a87bdf5a5be348ef845d36903833a4e115bb658742940bf"
|
| 43 |
+
},
|
| 44 |
+
"config.json": {
|
| 45 |
+
"bytes": 4154,
|
| 46 |
+
"sha256": "a095714decc73d9b17c7bbe019e3c98c55f32716252983c5886092bd4ca9df74"
|
| 47 |
+
},
|
| 48 |
+
"configuration_kroha.py": {
|
| 49 |
+
"bytes": 8902,
|
| 50 |
+
"sha256": "9d83cd17f1bcb26e98d695da72411c4e2aebf7580d939d7ba43d5adfa00e23d5"
|
| 51 |
+
},
|
| 52 |
+
"dna_config.json": {
|
| 53 |
+
"bytes": 1276,
|
| 54 |
+
"sha256": "e6fc6908e68998130a574bf3a0439b135bf4bd121601b3ce7ccd56c8a6903da1"
|
| 55 |
+
},
|
| 56 |
+
"evaluation.csv": {
|
| 57 |
+
"bytes": 4294,
|
| 58 |
+
"sha256": "0c842258817c4be5ce43c6078bba313b8858d91fe93ad530ee1b81eb3b11f84a"
|
| 59 |
+
},
|
| 60 |
+
"evaluation.json": {
|
| 61 |
+
"bytes": 65056,
|
| 62 |
+
"sha256": "2334711b413c148757174d36e6992a72812eb6f0498de415e1bbfd2ec0b05d2f"
|
| 63 |
+
},
|
| 64 |
+
"export.json": {
|
| 65 |
+
"bytes": 1767,
|
| 66 |
+
"sha256": "26ab218baea2d3c50ec5e1a56792d409fe291ef83533b82f96e4831ee094b4b8"
|
| 67 |
+
},
|
| 68 |
+
"generation_config.json": {
|
| 69 |
+
"bytes": 216,
|
| 70 |
+
"sha256": "ec36960ffaccb09d682bc355b89a64a969a16417de96d64350fcb66aebaec7eb"
|
| 71 |
+
},
|
| 72 |
+
"LICENSE": {
|
| 73 |
+
"bytes": 18656,
|
| 74 |
+
"sha256": "9e5f1b3c610b9c2da5c313bf81d577a7d1acec686bdb0384edefa6df0f90cd94"
|
| 75 |
+
},
|
| 76 |
+
"model.safetensors": {
|
| 77 |
+
"bytes": 286779000,
|
| 78 |
+
"sha256": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884"
|
| 79 |
+
},
|
| 80 |
+
"modeling_kroha.py": {
|
| 81 |
+
"bytes": 86093,
|
| 82 |
+
"sha256": "d99422d839dc0ad82bad9c9c4870aa73b9462172079840639bb05e0678f86809"
|
| 83 |
+
},
|
| 84 |
+
"README.md": {
|
| 85 |
+
"bytes": 32129,
|
| 86 |
+
"sha256": "1d30c7139b6a6326a8eebc71068c85bce6354c0fbc2558152dfcb5604c25329b"
|
| 87 |
+
},
|
| 88 |
+
"requirements.txt": {
|
| 89 |
+
"bytes": 178,
|
| 90 |
+
"sha256": "a73cacbfdd9eb35af8044c73de19a8444c01d9cfe163f65563432e5dbba38ecc"
|
| 91 |
+
},
|
| 92 |
+
"RESTORE.md": {
|
| 93 |
+
"bytes": 1803,
|
| 94 |
+
"sha256": "6c569ac437be5036b56beb85ea6420a92156939e6d75500fd5192d1e0f50d151"
|
| 95 |
+
},
|
| 96 |
+
"tensorboard/powerup_2x/events.out.tfevents.1795214806.DESKTOP-OU3A33R.1431865.0": {
|
| 97 |
+
"bytes": 463576,
|
| 98 |
+
"sha256": "6268c7cd8db465563ce1c1c49a72b72c32c7e546fb519ab8f128c4ee25f038bd"
|
| 99 |
+
},
|
| 100 |
+
"tensorboard/powerup_2x/events.out.tfevents.1795295344.DESKTOP-OU3A33R.1440174.0": {
|
| 101 |
+
"bytes": 340554,
|
| 102 |
+
"sha256": "7ff610e56d760735f3d260cb3e5e1af9ff8fb2a9b7edbd3e46b4479673f30ba9"
|
| 103 |
+
},
|
| 104 |
+
"tensorboard/powerup_8x/events.out.tfevents.1795346043.DESKTOP-OU3A33R.1451003.0": {
|
| 105 |
+
"bytes": 734434,
|
| 106 |
+
"sha256": "fdfec9c4dfa55b3ce4f48006493e06163fe9121b117c02cd1e20cd934baa006e"
|
| 107 |
+
},
|
| 108 |
+
"tensorboard/pretrain/events.out.tfevents.1794160308.DESKTOP-OU3A33R.32891.0": {
|
| 109 |
+
"bytes": 168946,
|
| 110 |
+
"sha256": "553344397e102b9d6bf9117c63f3a2deae228111b9a1bbb7c2b24166ff3a52e3"
|
| 111 |
+
},
|
| 112 |
+
"tensorboard/pretrain/events.out.tfevents.1794229726.DESKTOP-OU3A33R.35404.0": {
|
| 113 |
+
"bytes": 6714818,
|
| 114 |
+
"sha256": "375bf2ede144fa9c5372ca7046536b3a60c3c488daf54d3f2209350d40e86ff3"
|
| 115 |
+
},
|
| 116 |
+
"tokenizer.json": {
|
| 117 |
+
"bytes": 5946164,
|
| 118 |
+
"sha256": "243c73710d5bff983000eadf9b6d71d802b7291afffb8503cbbe6770da2084e8"
|
| 119 |
+
},
|
| 120 |
+
"tokenizer_config.json": {
|
| 121 |
+
"bytes": 4524,
|
| 122 |
+
"sha256": "afa0226ffe5b2fe7b0f546f041cad7e33a29cf2ac55c954808f85ddbd79a3f5a"
|
| 123 |
+
},
|
| 124 |
+
"training/data-provenance.tar.gz": {
|
| 125 |
+
"bytes": 12667945,
|
| 126 |
+
"sha256": "96e1c4072f70686b0eb450410428269a554f26edb4d086c67d158501f7af88d1"
|
| 127 |
+
},
|
| 128 |
+
"training/model-validation.json": {
|
| 129 |
+
"bytes": 318,
|
| 130 |
+
"sha256": "ff5205e29c9cbeb3d5f2289c120e09cde35d823b3585073eaf4850588b48841c"
|
| 131 |
+
},
|
| 132 |
+
"training/powerup_2x-contract.json": {
|
| 133 |
+
"bytes": 14936,
|
| 134 |
+
"sha256": "5af058f35f6cc187d750006a5bb35e94015985cea5d53e74d88ad73656cb1370"
|
| 135 |
+
},
|
| 136 |
+
"training/powerup_2x-metrics.jsonl": {
|
| 137 |
+
"bytes": 498118,
|
| 138 |
+
"sha256": "81a29a3a557ffeb004039420de670702790b6296dc6e8d406c92ae91fb12980c"
|
| 139 |
+
},
|
| 140 |
+
"training/powerup_8x-contract.json": {
|
| 141 |
+
"bytes": 14937,
|
| 142 |
+
"sha256": "e4bf281ec3ffca04c2d092598a7435073e32fcddb5eb3102cfbbd641a1f5c944"
|
| 143 |
+
},
|
| 144 |
+
"training/powerup_8x-metrics.jsonl": {
|
| 145 |
+
"bytes": 495861,
|
| 146 |
+
"sha256": "c2c454c6cd051ef306af52e0e447ce222dcfa4d5c4e9096a4a25b7b1386af403"
|
| 147 |
+
},
|
| 148 |
+
"training/pretrain-contract.json": {
|
| 149 |
+
"bytes": 14906,
|
| 150 |
+
"sha256": "60230e865ca03e877fcfc03e4588941b1aa48e1a90d8d4d4063f6e21565a44e6"
|
| 151 |
+
},
|
| 152 |
+
"training/pretrain-metrics.jsonl": {
|
| 153 |
+
"bytes": 4974555,
|
| 154 |
+
"sha256": "9fc33123b0cde4476e389d5cef74c506f2ead6b961d042be6127c27487a905f0"
|
| 155 |
+
},
|
| 156 |
+
"training/telemetry-audit.json": {
|
| 157 |
+
"bytes": 429024,
|
| 158 |
+
"sha256": "55774a4e881fa5d5742de62c672a0c8ce4d0e2b725783b663c181c58f4f7306d"
|
| 159 |
+
}
|
| 160 |
+
},
|
| 161 |
+
"training_checkpoints": {
|
| 162 |
+
"pretrain": {
|
| 163 |
+
"step": 114442,
|
| 164 |
+
"source_tokens": 30000000000,
|
| 165 |
+
"files_sha256": {
|
| 166 |
+
"chat_template.jinja": "b51e43a90a9c7da4db3bce84bd27cd798699191b83663d1c75c234481c040966",
|
| 167 |
+
"config.json": "eb92889d858d77f691a66f9735644aece4ab4897aa45b6e6e167bdfa411d7cd0",
|
| 168 |
+
"configuration_kroha_routed_norm.py": "3858d2d79d8b87857b50ac0395e6be0967963771c8395d0756d5302910064a66",
|
| 169 |
+
"dna_config.json": "e6fc6908e68998130a574bf3a0439b135bf4bd121601b3ce7ccd56c8a6903da1",
|
| 170 |
+
"generation_config.json": "ec36960ffaccb09d682bc355b89a64a969a16417de96d64350fcb66aebaec7eb",
|
| 171 |
+
"model.safetensors": "0d60d14880d08c7cdd7609d2d38b6c752a2f6f0c322aa56869e8a910826a6803",
|
| 172 |
+
"modeling_kroha_routed_norm.py": "fdb855455cf4ff4d5236cbdfa9e3f7202bdbafdafba4247073d49cffb0100831",
|
| 173 |
+
"tokenizer.json": "243c73710d5bff983000eadf9b6d71d802b7291afffb8503cbbe6770da2084e8",
|
| 174 |
+
"tokenizer_config.json": "5db6d997f784155bc17d3b40b1feb0f94567e44666b911d32c2bc9d086ea1636",
|
| 175 |
+
"train_state.pt": "475b4ecf1d3f247daf762a89cd1335e39b897dc864c1dff421bc6d9f8e422bfa"
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
"powerup_2x": {
|
| 179 |
+
"step": 11446,
|
| 180 |
+
"source_tokens": 3000000000,
|
| 181 |
+
"files_sha256": {
|
| 182 |
+
"chat_template.jinja": "b51e43a90a9c7da4db3bce84bd27cd798699191b83663d1c75c234481c040966",
|
| 183 |
+
"config.json": "c5644db0133de609668146c949487ea1f81d436ae716824d1c785b737833f328",
|
| 184 |
+
"configuration_kroha_routed_norm.py": "3858d2d79d8b87857b50ac0395e6be0967963771c8395d0756d5302910064a66",
|
| 185 |
+
"dna_config.json": "e6fc6908e68998130a574bf3a0439b135bf4bd121601b3ce7ccd56c8a6903da1",
|
| 186 |
+
"generation_config.json": "ec36960ffaccb09d682bc355b89a64a969a16417de96d64350fcb66aebaec7eb",
|
| 187 |
+
"model.safetensors": "396dd0d729f159c28e33417755e8a4c00995137b37371d2cb10a7954a5c8105a",
|
| 188 |
+
"modeling_kroha_routed_norm.py": "fdb855455cf4ff4d5236cbdfa9e3f7202bdbafdafba4247073d49cffb0100831",
|
| 189 |
+
"tokenizer.json": "243c73710d5bff983000eadf9b6d71d802b7291afffb8503cbbe6770da2084e8",
|
| 190 |
+
"tokenizer_config.json": "5db6d997f784155bc17d3b40b1feb0f94567e44666b911d32c2bc9d086ea1636",
|
| 191 |
+
"train_state.pt": "357a2e0f395fcefa4a1fdf43a8cbf11c11146a07b61b2205c4045a1ad94bed38"
|
| 192 |
+
}
|
| 193 |
+
},
|
| 194 |
+
"powerup_8x": {
|
| 195 |
+
"step": 11448,
|
| 196 |
+
"source_tokens": 3000000000,
|
| 197 |
+
"files_sha256": {
|
| 198 |
+
"chat_template.jinja": "b51e43a90a9c7da4db3bce84bd27cd798699191b83663d1c75c234481c040966",
|
| 199 |
+
"config.json": "e1f8da93e02e113d4d7603ff8c0c96928d43685e869d66819ca5e58694441ad7",
|
| 200 |
+
"configuration_kroha_routed_norm.py": "3858d2d79d8b87857b50ac0395e6be0967963771c8395d0756d5302910064a66",
|
| 201 |
+
"dna_config.json": "e6fc6908e68998130a574bf3a0439b135bf4bd121601b3ce7ccd56c8a6903da1",
|
| 202 |
+
"generation_config.json": "ec36960ffaccb09d682bc355b89a64a969a16417de96d64350fcb66aebaec7eb",
|
| 203 |
+
"model.safetensors": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884",
|
| 204 |
+
"modeling_kroha_routed_norm.py": "fdb855455cf4ff4d5236cbdfa9e3f7202bdbafdafba4247073d49cffb0100831",
|
| 205 |
+
"tokenizer.json": "243c73710d5bff983000eadf9b6d71d802b7291afffb8503cbbe6770da2084e8",
|
| 206 |
+
"tokenizer_config.json": "5db6d997f784155bc17d3b40b1feb0f94567e44666b911d32c2bc9d086ea1636",
|
| 207 |
+
"train_state.pt": "08fb1b9327d60b568673339874abcb9ea13756550d0c9596f30dcca923dbe944"
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
"tensorboard": {
|
| 212 |
+
"raw_files": 5,
|
| 213 |
+
"complete_expected_loss_logging": true,
|
| 214 |
+
"stages": [
|
| 215 |
+
"pretrain",
|
| 216 |
+
"powerup_2x",
|
| 217 |
+
"powerup_8x"
|
| 218 |
+
]
|
| 219 |
+
},
|
| 220 |
+
"corpus_shards_included": false
|
| 221 |
+
}
|
requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
torch>=2.11
|
| 2 |
+
transformers>=5.17
|
| 3 |
+
# Optional CUDA Delta kernels used in validation: fla-core==0.5.2
|
| 4 |
+
# Install a hardware-compatible HF FlashAttention kernel for the chosen backend.
|
tensorboard/powerup_2x/events.out.tfevents.1795214806.DESKTOP-OU3A33R.1431865.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6268c7cd8db465563ce1c1c49a72b72c32c7e546fb519ab8f128c4ee25f038bd
|
| 3 |
+
size 463576
|
tensorboard/powerup_2x/events.out.tfevents.1795295344.DESKTOP-OU3A33R.1440174.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ff610e56d760735f3d260cb3e5e1af9ff8fb2a9b7edbd3e46b4479673f30ba9
|
| 3 |
+
size 340554
|
tensorboard/powerup_8x/events.out.tfevents.1795346043.DESKTOP-OU3A33R.1451003.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdfec9c4dfa55b3ce4f48006493e06163fe9121b117c02cd1e20cd934baa006e
|
| 3 |
+
size 734434
|
tensorboard/pretrain/events.out.tfevents.1794160308.DESKTOP-OU3A33R.32891.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:553344397e102b9d6bf9117c63f3a2deae228111b9a1bbb7c2b24166ff3a52e3
|
| 3 |
+
size 168946
|
tensorboard/pretrain/events.out.tfevents.1794229726.DESKTOP-OU3A33R.35404.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:375bf2ede144fa9c5372ca7046536b3a60c3c488daf54d3f2209350d40e86ff3
|
| 3 |
+
size 6714818
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
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okenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"chat_control_tokens": [
|
| 5 |
+
"<pad>",
|
| 6 |
+
"<s>",
|
| 7 |
+
"</s>",
|
| 8 |
+
"<unk>",
|
| 9 |
+
"<|im_start|>",
|
| 10 |
+
"<|im_end|>",
|
| 11 |
+
"<tool_call>",
|
| 12 |
+
"</tool_call>",
|
| 13 |
+
"<think>",
|
| 14 |
+
"</think>",
|
| 15 |
+
"<|fim_prefix|>",
|
| 16 |
+
"<|fim_middle|>",
|
| 17 |
+
"<|fim_suffix|>",
|
| 18 |
+
"<|reserved_000|>",
|
| 19 |
+
"<|reserved_001|>",
|
| 20 |
+
"<|reserved_002|>",
|
| 21 |
+
"<|reserved_003|>",
|
| 22 |
+
"<|reserved_004|>",
|
| 23 |
+
"<|reserved_005|>",
|
| 24 |
+
"<|reserved_006|>",
|
| 25 |
+
"<|reserved_007|>",
|
| 26 |
+
"<|reserved_008|>",
|
| 27 |
+
"<|reserved_009|>",
|
| 28 |
+
"<|reserved_010|>",
|
| 29 |
+
"<|reserved_011|>",
|
| 30 |
+
"<|reserved_012|>",
|
| 31 |
+
"<|reserved_013|>",
|
| 32 |
+
"<|reserved_014|>",
|
| 33 |
+
"<|reserved_015|>",
|
| 34 |
+
"<|reserved_016|>",
|
| 35 |
+
"<|reserved_017|>",
|
| 36 |
+
"<|reserved_018|>",
|
| 37 |
+
"<|reserved_019|>",
|
| 38 |
+
"<|reserved_020|>",
|
| 39 |
+
"<|reserved_021|>",
|
| 40 |
+
"<|reserved_022|>",
|
| 41 |
+
"<|reserved_023|>",
|
| 42 |
+
"<|reserved_024|>",
|
| 43 |
+
"<|reserved_025|>",
|
| 44 |
+
"<|reserved_026|>",
|
| 45 |
+
"<|reserved_027|>",
|
| 46 |
+
"<|reserved_028|>",
|
| 47 |
+
"<|reserved_029|>",
|
| 48 |
+
"<|reserved_030|>",
|
| 49 |
+
"<|reserved_031|>",
|
| 50 |
+
"<|reserved_032|>",
|
| 51 |
+
"<|reserved_033|>",
|
| 52 |
+
"<|reserved_034|>",
|
| 53 |
+
"<|reserved_035|>",
|
| 54 |
+
"<|reserved_036|>",
|
| 55 |
+
"<|reserved_037|>",
|
| 56 |
+
"<|reserved_038|>",
|
| 57 |
+
"<|reserved_039|>",
|
| 58 |
+
"<|reserved_040|>",
|
| 59 |
+
"<|reserved_041|>",
|
| 60 |
+
"<|reserved_042|>",
|
| 61 |
+
"<|reserved_043|>",
|
| 62 |
+
"<|reserved_044|>",
|
| 63 |
+
"<|reserved_045|>",
|
| 64 |
+
"<|reserved_046|>",
|
| 65 |
+
"<|reserved_047|>",
|
| 66 |
+
"<|reserved_048|>",
|
| 67 |
+
"<|reserved_049|>",
|
| 68 |
+
"<|reserved_050|>",
|
| 69 |
+
"<dna>",
|
| 70 |
+
"</dna>"
|
| 71 |
+
],
|
| 72 |
+
"clean_up_tokenization_spaces": false,
|
| 73 |
+
"dna6_config": {
|
| 74 |
+
"FNS": "Not implemented; offsets and DNA ID ranges exposed for future training integration",
|
| 75 |
+
"auto_detection": false,
|
| 76 |
+
"base_count": 16,
|
| 77 |
+
"base_id_start": 69634,
|
| 78 |
+
"base_vocabulary_size": 65536,
|
| 79 |
+
"begin_id": 65536,
|
| 80 |
+
"canonical_alphabet": "ACGT",
|
| 81 |
+
"canonical_order": "itertools.product(ACGT, repeat=6), lexicographic",
|
| 82 |
+
"chat": "Same text chat template; DNACodec.encode enables tagged DNA/spans and preserves assistant masks",
|
| 83 |
+
"decoder": "Native Tokenizers Replace-per-piece then unchanged ByteLevel; no remote/custom decoder",
|
| 84 |
+
"encoding_entrypoint": "tiny_llm.dna.DNACodec",
|
| 85 |
+
"end_id": 65537,
|
| 86 |
+
"fallback": "Each noncanonical six-character block/short tail is encoded character by character; uppercase IUPAC gets DNA symbols; other characters use unchanged raw BPE",
|
| 87 |
+
"fallback_alphabet": "ACGTURYSWKMBDHVN",
|
| 88 |
+
"future_model_scope": "New vocabulary requires matching embedding/head rows; does not migrate old weights",
|
| 89 |
+
"k": 6,
|
| 90 |
+
"kmer_count": 4096,
|
| 91 |
+
"kmer_id_start": 65538,
|
| 92 |
+
"normalization": "identity",
|
| 93 |
+
"offsets": "Unicode character offsets and IUPAC-base offsets; gaps/layout have zero bp width",
|
| 94 |
+
"raw_text_default": true,
|
| 95 |
+
"reserve": "Original 51 reserved IDs remain unchanged and unconsumed",
|
| 96 |
+
"version": "b64-dna6-v3",
|
| 97 |
+
"vocab_size": 69650
|
| 98 |
+
},
|
| 99 |
+
"eos_token": "</s>",
|
| 100 |
+
"extra_special_tokens": [
|
| 101 |
+
"<|im_start|>",
|
| 102 |
+
"<|im_end|>",
|
| 103 |
+
"<|fim_prefix|>",
|
| 104 |
+
"<|fim_middle|>",
|
| 105 |
+
"<|fim_suffix|>",
|
| 106 |
+
"<|reserved_000|>",
|
| 107 |
+
"<|reserved_001|>",
|
| 108 |
+
"<|reserved_002|>",
|
| 109 |
+
"<|reserved_003|>",
|
| 110 |
+
"<|reserved_004|>",
|
| 111 |
+
"<|reserved_005|>",
|
| 112 |
+
"<|reserved_006|>",
|
| 113 |
+
"<|reserved_007|>",
|
| 114 |
+
"<|reserved_008|>",
|
| 115 |
+
"<|reserved_009|>",
|
| 116 |
+
"<|reserved_010|>",
|
| 117 |
+
"<|reserved_011|>",
|
| 118 |
+
"<|reserved_012|>",
|
| 119 |
+
"<|reserved_013|>",
|
| 120 |
+
"<|reserved_014|>",
|
| 121 |
+
"<|reserved_015|>",
|
| 122 |
+
"<|reserved_016|>",
|
| 123 |
+
"<|reserved_017|>",
|
| 124 |
+
"<|reserved_018|>",
|
| 125 |
+
"<|reserved_019|>",
|
| 126 |
+
"<|reserved_020|>",
|
| 127 |
+
"<|reserved_021|>",
|
| 128 |
+
"<|reserved_022|>",
|
| 129 |
+
"<|reserved_023|>",
|
| 130 |
+
"<|reserved_024|>",
|
| 131 |
+
"<|reserved_025|>",
|
| 132 |
+
"<|reserved_026|>",
|
| 133 |
+
"<|reserved_027|>",
|
| 134 |
+
"<|reserved_028|>",
|
| 135 |
+
"<|reserved_029|>",
|
| 136 |
+
"<|reserved_030|>",
|
| 137 |
+
"<|reserved_031|>",
|
| 138 |
+
"<|reserved_032|>",
|
| 139 |
+
"<|reserved_033|>",
|
| 140 |
+
"<|reserved_034|>",
|
| 141 |
+
"<|reserved_035|>",
|
| 142 |
+
"<|reserved_036|>",
|
| 143 |
+
"<|reserved_037|>",
|
| 144 |
+
"<|reserved_038|>",
|
| 145 |
+
"<|reserved_039|>",
|
| 146 |
+
"<|reserved_040|>",
|
| 147 |
+
"<|reserved_041|>",
|
| 148 |
+
"<|reserved_042|>",
|
| 149 |
+
"<|reserved_043|>",
|
| 150 |
+
"<|reserved_044|>",
|
| 151 |
+
"<|reserved_045|>",
|
| 152 |
+
"<|reserved_046|>",
|
| 153 |
+
"<|reserved_047|>",
|
| 154 |
+
"<|reserved_048|>",
|
| 155 |
+
"<|reserved_049|>",
|
| 156 |
+
"<|reserved_050|>",
|
| 157 |
+
"<dna>",
|
| 158 |
+
"</dna>"
|
| 159 |
+
],
|
| 160 |
+
"is_local": true,
|
| 161 |
+
"local_files_only": true,
|
| 162 |
+
"model_max_length": 1000000000,
|
| 163 |
+
"pad_token": "<pad>",
|
| 164 |
+
"tokenizer_class": "TokenizersBackend",
|
| 165 |
+
"unk_token": "<unk>"
|
| 166 |
+
}
|
training/data-provenance.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96e1c4072f70686b0eb450410428269a554f26edb4d086c67d158501f7af88d1
|
| 3 |
+
size 12667945
|
training/model-validation.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"status": "passed",
|
| 3 |
+
"independent_hf_remote_code": true,
|
| 4 |
+
"cpu_dtype": "float32",
|
| 5 |
+
"parameters": 71685712,
|
| 6 |
+
"tokenizer_vocab": 69650,
|
| 7 |
+
"context": 16384,
|
| 8 |
+
"tied_embeddings": true,
|
| 9 |
+
"cached_generation": true,
|
| 10 |
+
"checkpoint_weights_sha256": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884"
|
| 11 |
+
}
|
training/powerup_2x-contract.json
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"data": {
|
| 4 |
+
"version": 1,
|
| 5 |
+
"stage": "powerup_2x",
|
| 6 |
+
"context": 4096,
|
| 7 |
+
"global_batch_positions": 262144,
|
| 8 |
+
"source_tokens": 3000000000,
|
| 9 |
+
"global_batches": 11446,
|
| 10 |
+
"ready_sha256": "973a4838667b92494e5fe0c1acf9e22487bd49db5037f157567e03a9caa3a780",
|
| 11 |
+
"manifest_sha256": "b1dbb6907d479e1643f08ff6d2db3c83e6accfc20c620e4355e2bae35a33570c",
|
| 12 |
+
"tokenizer_sha256": "4e60b1fae62473ac658fea33fe68acfd8aeb3a2b6dc31bca3169356e4c072dd9",
|
| 13 |
+
"recipe_sha256": "e76fcfb70207ef516cf82d3d15234a4b725da5644aad371a4271c5696bc8c185",
|
| 14 |
+
"validation_sha256": "5abea73d87a8d95959df1b8cdb672d1ba9ca4751fd71a79f1a4676c6ef92c9c1"
|
| 15 |
+
},
|
| 16 |
+
"profile": {
|
| 17 |
+
"stage": "powerup_2x",
|
| 18 |
+
"microbatch": 16,
|
| 19 |
+
"checkpoint_policy": "core",
|
| 20 |
+
"runtime": "fused",
|
| 21 |
+
"dtype": "bf16",
|
| 22 |
+
"optimizer": "muon",
|
| 23 |
+
"lr": 0.001,
|
| 24 |
+
"muon_lr": 0.001,
|
| 25 |
+
"muon_momentum": 0.95,
|
| 26 |
+
"muon_ns_steps": 5,
|
| 27 |
+
"muon_adjust_lr": "match_rms_adamw",
|
| 28 |
+
"weight_decay": 0.1,
|
| 29 |
+
"betas": [
|
| 30 |
+
0.9,
|
| 31 |
+
0.95
|
| 32 |
+
],
|
| 33 |
+
"grad_clip": 1.0,
|
| 34 |
+
"warmup_frac": 0.01,
|
| 35 |
+
"min_lr_frac": 0.1,
|
| 36 |
+
"compile_pointwise": true,
|
| 37 |
+
"compile_optimizer": true,
|
| 38 |
+
"ce_backend": "fla",
|
| 39 |
+
"ce_chunk": 4096,
|
| 40 |
+
"prefetch": true,
|
| 41 |
+
"cpu_threads": 4,
|
| 42 |
+
"allocator_fraction": 0.95,
|
| 43 |
+
"seed": 2026,
|
| 44 |
+
"save_steps": 500,
|
| 45 |
+
"log_every": 20,
|
| 46 |
+
"expert_runtime": "sonic",
|
| 47 |
+
"model_type": "kroha_routed_norm",
|
| 48 |
+
"schedule_lr": 0.0001,
|
| 49 |
+
"mtp": true,
|
| 50 |
+
"mtp_ce": "tc"
|
| 51 |
+
},
|
| 52 |
+
"tokenizer": {
|
| 53 |
+
"version": 1,
|
| 54 |
+
"vocab_size": 69650,
|
| 55 |
+
"backend_sha256": "b7a96ed7050060b1fa1cbcdb25a9c0602d10ea417bb76ed8c844ee15626625aa",
|
| 56 |
+
"chat_template_sha256": "5a3826a188af44bb579a40a257727bdc815cf91ffcd87ad03f0e7ef012f180dd",
|
| 57 |
+
"special_ids": {
|
| 58 |
+
"pad": 0,
|
| 59 |
+
"bos": 1,
|
| 60 |
+
"eos": 2,
|
| 61 |
+
"unk": 3
|
| 62 |
+
},
|
| 63 |
+
"control_tokens": [
|
| 64 |
+
"<pad>",
|
| 65 |
+
"<s>",
|
| 66 |
+
"</s>",
|
| 67 |
+
"<unk>",
|
| 68 |
+
"<|im_start|>",
|
| 69 |
+
"<|im_end|>",
|
| 70 |
+
"<tool_call>",
|
| 71 |
+
"</tool_call>",
|
| 72 |
+
"<think>",
|
| 73 |
+
"</think>",
|
| 74 |
+
"<|fim_prefix|>",
|
| 75 |
+
"<|fim_middle|>",
|
| 76 |
+
"<|fim_suffix|>",
|
| 77 |
+
"<|reserved_000|>",
|
| 78 |
+
"<|reserved_001|>",
|
| 79 |
+
"<|reserved_002|>",
|
| 80 |
+
"<|reserved_003|>",
|
| 81 |
+
"<|reserved_004|>",
|
| 82 |
+
"<|reserved_005|>",
|
| 83 |
+
"<|reserved_006|>",
|
| 84 |
+
"<|reserved_007|>",
|
| 85 |
+
"<|reserved_008|>",
|
| 86 |
+
"<|reserved_009|>",
|
| 87 |
+
"<|reserved_010|>",
|
| 88 |
+
"<|reserved_011|>",
|
| 89 |
+
"<|reserved_012|>",
|
| 90 |
+
"<|reserved_013|>",
|
| 91 |
+
"<|reserved_014|>",
|
| 92 |
+
"<|reserved_015|>",
|
| 93 |
+
"<|reserved_016|>",
|
| 94 |
+
"<|reserved_017|>",
|
| 95 |
+
"<|reserved_018|>",
|
| 96 |
+
"<|reserved_019|>",
|
| 97 |
+
"<|reserved_020|>",
|
| 98 |
+
"<|reserved_021|>",
|
| 99 |
+
"<|reserved_022|>",
|
| 100 |
+
"<|reserved_023|>",
|
| 101 |
+
"<|reserved_024|>",
|
| 102 |
+
"<|reserved_025|>",
|
| 103 |
+
"<|reserved_026|>",
|
| 104 |
+
"<|reserved_027|>",
|
| 105 |
+
"<|reserved_028|>",
|
| 106 |
+
"<|reserved_029|>",
|
| 107 |
+
"<|reserved_030|>",
|
| 108 |
+
"<|reserved_031|>",
|
| 109 |
+
"<|reserved_032|>",
|
| 110 |
+
"<|reserved_033|>",
|
| 111 |
+
"<|reserved_034|>",
|
| 112 |
+
"<|reserved_035|>",
|
| 113 |
+
"<|reserved_036|>",
|
| 114 |
+
"<|reserved_037|>",
|
| 115 |
+
"<|reserved_038|>",
|
| 116 |
+
"<|reserved_039|>",
|
| 117 |
+
"<|reserved_040|>",
|
| 118 |
+
"<|reserved_041|>",
|
| 119 |
+
"<|reserved_042|>",
|
| 120 |
+
"<|reserved_043|>",
|
| 121 |
+
"<|reserved_044|>",
|
| 122 |
+
"<|reserved_045|>",
|
| 123 |
+
"<|reserved_046|>",
|
| 124 |
+
"<|reserved_047|>",
|
| 125 |
+
"<|reserved_048|>",
|
| 126 |
+
"<|reserved_049|>",
|
| 127 |
+
"<|reserved_050|>",
|
| 128 |
+
"<dna>",
|
| 129 |
+
"</dna>"
|
| 130 |
+
],
|
| 131 |
+
"raw_encoding": "bypass-all-added-token-matchers-v1",
|
| 132 |
+
"fingerprint": "f3b8d81cae428b64b45bf907b426397d7119ce9fa859d42b58655712ef989336"
|
| 133 |
+
},
|
| 134 |
+
"implementation": {
|
| 135 |
+
"packages": {
|
| 136 |
+
"torch": "2.11.0+cu128",
|
| 137 |
+
"transformers": "5.17.0",
|
| 138 |
+
"triton": "3.6.0",
|
| 139 |
+
"fla-core": "0.5.2",
|
| 140 |
+
"flash-attn-4": "4.0.0b35",
|
| 141 |
+
"nvidia-cutlass-dsl": "4.8.0",
|
| 142 |
+
"quack-kernels": "0.6.5"
|
| 143 |
+
},
|
| 144 |
+
"sources": {
|
| 145 |
+
"kroha_pretrain.py": "7f583b6e4ec84f3354b7bf1e57a2ae3dfc0cc19e22e67b074d43230e5b6238f5",
|
| 146 |
+
"kroha_pretrain_data.py": "4212001e3cb019e67e7f3b13aaf2f5329377967ef4ec3a3742c66d744e60b598",
|
| 147 |
+
"kroha_runtime.py": "0ae7fbe41bc280239228fd5d8cd7dde8b5d69d40cc7b4f46c4ed1b911018da63",
|
| 148 |
+
"optimizers.py": "1e3200ec42ab7368b460b18b96139380f4c9e755882e6c14bea991e6daa19a04",
|
| 149 |
+
"losses.py": "714c6fe946e3d0dc47ec4891f2c8f8a1af027ca76b1d6e73e86facfac64224bb",
|
| 150 |
+
"router_balance.py": "e607eee78483fa263d178b1b88db9110b9c6792d15860ab4bc97fb74b6f62ef5",
|
| 151 |
+
"checkpoint.py": "fdabb60b99ffc3ecedba995aca12e5693740e7129ae34ac1aaf9a024f878a9ef",
|
| 152 |
+
"models/kroha/modeling_kroha.py": "255d54e2565b1dbd3456e01817ae497554c55c9d4774b5e9a62dc7786b609594",
|
| 153 |
+
"models/kroha/configuration_kroha.py": "0eec6f39d77597aaabfb57dcb0c1bbd8639dfa7edaa19e8515f3a84f4012fd54",
|
| 154 |
+
"sonic_moe.py": "8e86e1bd54a91cb9e2aa05bdf4caafb2d08721a322c8d3d9dcd3ce11268df19a",
|
| 155 |
+
"kroha_curriculum.py": "5cbd596f60e62dcbceec36cb8a8507007690c4ef5afaf93d7aaa41503d447cf7",
|
| 156 |
+
"router_adamw.py": "5ff103cf7016dcd7be229f5369ee4a5d0713d99c9f729c86af706f4cd5465453",
|
| 157 |
+
"models/kroha_routed_norm/configuration_kroha_routed_norm.py": "3858d2d79d8b87857b50ac0395e6be0967963771c8395d0756d5302910064a66",
|
| 158 |
+
"models/kroha_routed_norm/modeling_kroha_routed_norm.py": "fdb855455cf4ff4d5236cbdfa9e3f7202bdbafdafba4247073d49cffb0100831",
|
| 159 |
+
"kroha_mtp.py": "99070e35da82c554d21e44a77f132c1ad412a7fed6de257b290ea89296a1ee26"
|
| 160 |
+
}
|
| 161 |
+
},
|
| 162 |
+
"loss_definition": "CE=sum valid causal token NLL/global valid targets; buffered global LBL=equal microbatch mean; no document-start/padding targets + 0.3 * (sum t+2 NLL/global valid t+2 targets), with document-local teacher forcing",
|
| 163 |
+
"model_config": {
|
| 164 |
+
"routed_output_norm": true,
|
| 165 |
+
"router_optimizer": "adamw",
|
| 166 |
+
"architectures": [
|
| 167 |
+
"KrohaRoutedNormForCausalLM"
|
| 168 |
+
],
|
| 169 |
+
"output_hidden_states": false,
|
| 170 |
+
"return_dict": true,
|
| 171 |
+
"chunk_size_feed_forward": 0,
|
| 172 |
+
"is_encoder_decoder": false,
|
| 173 |
+
"id2label": {
|
| 174 |
+
"0": "LABEL_0",
|
| 175 |
+
"1": "LABEL_1"
|
| 176 |
+
},
|
| 177 |
+
"label2id": {
|
| 178 |
+
"LABEL_0": 0,
|
| 179 |
+
"LABEL_1": 1
|
| 180 |
+
},
|
| 181 |
+
"problem_type": null,
|
| 182 |
+
"vocab_size": 69650,
|
| 183 |
+
"hidden_size": 512,
|
| 184 |
+
"intermediate_size": 1792,
|
| 185 |
+
"num_hidden_layers": 18,
|
| 186 |
+
"num_attention_heads": 8,
|
| 187 |
+
"num_key_value_heads": 2,
|
| 188 |
+
"hidden_act": "silu",
|
| 189 |
+
"max_position_embeddings": 4096,
|
| 190 |
+
"initializer_range": 0.02,
|
| 191 |
+
"rms_norm_eps": 1e-05,
|
| 192 |
+
"use_cache": true,
|
| 193 |
+
"pad_token_id": 0,
|
| 194 |
+
"bos_token_id": 1,
|
| 195 |
+
"eos_token_id": 2,
|
| 196 |
+
"pretraining_tp": 1,
|
| 197 |
+
"tie_word_embeddings": true,
|
| 198 |
+
"rope_parameters": {
|
| 199 |
+
"rope_type": "default",
|
| 200 |
+
"rope_theta": 10000.0
|
| 201 |
+
},
|
| 202 |
+
"attention_bias": false,
|
| 203 |
+
"attention_dropout": 0.0,
|
| 204 |
+
"mlp_bias": false,
|
| 205 |
+
"head_dim": 64,
|
| 206 |
+
"num_core_layers": 8,
|
| 207 |
+
"num_passes": 2,
|
| 208 |
+
"layer_types": [
|
| 209 |
+
"full_attention",
|
| 210 |
+
"linear_attention",
|
| 211 |
+
"full_attention",
|
| 212 |
+
"linear_attention",
|
| 213 |
+
"full_attention",
|
| 214 |
+
"linear_attention",
|
| 215 |
+
"full_attention",
|
| 216 |
+
"linear_attention",
|
| 217 |
+
"full_attention",
|
| 218 |
+
"linear_attention",
|
| 219 |
+
"full_attention",
|
| 220 |
+
"linear_attention",
|
| 221 |
+
"full_attention",
|
| 222 |
+
"linear_attention",
|
| 223 |
+
"full_attention",
|
| 224 |
+
"linear_attention",
|
| 225 |
+
"full_attention",
|
| 226 |
+
"full_attention"
|
| 227 |
+
],
|
| 228 |
+
"relaxed": true,
|
| 229 |
+
"lora_rank": 16,
|
| 230 |
+
"lora_alpha": 16,
|
| 231 |
+
"attnres_block_size": 4,
|
| 232 |
+
"num_experts": 8,
|
| 233 |
+
"experts_per_token": 2,
|
| 234 |
+
"expert_intermediate_size": 352,
|
| 235 |
+
"shared_intermediate_size": 256,
|
| 236 |
+
"latent_size": 256,
|
| 237 |
+
"gate_multiplier": 2.0,
|
| 238 |
+
"qk_norm": true,
|
| 239 |
+
"attention_scalar_gate": true,
|
| 240 |
+
"mlp_scalar_gate": true,
|
| 241 |
+
"shared_expert_gate": true,
|
| 242 |
+
"router_bias_speed": 0.001,
|
| 243 |
+
"router_seq_aux_coef": 0.0001,
|
| 244 |
+
"router_balance_scope": "global",
|
| 245 |
+
"routed_scaling_factor": 1.0,
|
| 246 |
+
"swiglu_limit": 10.0,
|
| 247 |
+
"delta_conv_kernel": 4,
|
| 248 |
+
"delta_backend": "auto",
|
| 249 |
+
"expert_backend": "auto",
|
| 250 |
+
"nope_layers": [],
|
| 251 |
+
"delta_num_query_heads": 8,
|
| 252 |
+
"delta_num_value_heads": 2,
|
| 253 |
+
"moe_budget": "total",
|
| 254 |
+
"pass2_router": false,
|
| 255 |
+
"gdn_version": 1,
|
| 256 |
+
"headwise_attention_gate": true,
|
| 257 |
+
"decoder_ablation": "headgate_blockattnres",
|
| 258 |
+
"linear_num_key_heads": 8,
|
| 259 |
+
"linear_num_value_heads": 8,
|
| 260 |
+
"linear_key_head_dim": 64,
|
| 261 |
+
"linear_value_head_dim": 64,
|
| 262 |
+
"linear_conv_kernel_dim": 4,
|
| 263 |
+
"layers_block_type": [
|
| 264 |
+
"attention",
|
| 265 |
+
"mamba",
|
| 266 |
+
"attention",
|
| 267 |
+
"mamba",
|
| 268 |
+
"attention",
|
| 269 |
+
"mamba",
|
| 270 |
+
"attention",
|
| 271 |
+
"mamba",
|
| 272 |
+
"attention",
|
| 273 |
+
"mamba",
|
| 274 |
+
"attention",
|
| 275 |
+
"mamba",
|
| 276 |
+
"attention",
|
| 277 |
+
"mamba",
|
| 278 |
+
"attention",
|
| 279 |
+
"mamba",
|
| 280 |
+
"attention",
|
| 281 |
+
"attention"
|
| 282 |
+
],
|
| 283 |
+
"auto_map": {
|
| 284 |
+
"AutoConfig": "configuration_kroha_routed_norm.KrohaRoutedNormConfig",
|
| 285 |
+
"AutoModel": "modeling_kroha_routed_norm.KrohaRoutedNormModel",
|
| 286 |
+
"AutoModelForCausalLM": "modeling_kroha_routed_norm.KrohaRoutedNormForCausalLM"
|
| 287 |
+
},
|
| 288 |
+
"training_tokenizer_contract": {
|
| 289 |
+
"version": 1,
|
| 290 |
+
"vocab_size": 69650,
|
| 291 |
+
"backend_sha256": "b7a96ed7050060b1fa1cbcdb25a9c0602d10ea417bb76ed8c844ee15626625aa",
|
| 292 |
+
"chat_template_sha256": "5a3826a188af44bb579a40a257727bdc815cf91ffcd87ad03f0e7ef012f180dd",
|
| 293 |
+
"special_ids": {
|
| 294 |
+
"pad": 0,
|
| 295 |
+
"bos": 1,
|
| 296 |
+
"eos": 2,
|
| 297 |
+
"unk": 3
|
| 298 |
+
},
|
| 299 |
+
"control_tokens": [
|
| 300 |
+
"<pad>",
|
| 301 |
+
"<s>",
|
| 302 |
+
"</s>",
|
| 303 |
+
"<unk>",
|
| 304 |
+
"<|im_start|>",
|
| 305 |
+
"<|im_end|>",
|
| 306 |
+
"<tool_call>",
|
| 307 |
+
"</tool_call>",
|
| 308 |
+
"<think>",
|
| 309 |
+
"</think>",
|
| 310 |
+
"<|fim_prefix|>",
|
| 311 |
+
"<|fim_middle|>",
|
| 312 |
+
"<|fim_suffix|>",
|
| 313 |
+
"<|reserved_000|>",
|
| 314 |
+
"<|reserved_001|>",
|
| 315 |
+
"<|reserved_002|>",
|
| 316 |
+
"<|reserved_003|>",
|
| 317 |
+
"<|reserved_004|>",
|
| 318 |
+
"<|reserved_005|>",
|
| 319 |
+
"<|reserved_006|>",
|
| 320 |
+
"<|reserved_007|>",
|
| 321 |
+
"<|reserved_008|>",
|
| 322 |
+
"<|reserved_009|>",
|
| 323 |
+
"<|reserved_010|>",
|
| 324 |
+
"<|reserved_011|>",
|
| 325 |
+
"<|reserved_012|>",
|
| 326 |
+
"<|reserved_013|>",
|
| 327 |
+
"<|reserved_014|>",
|
| 328 |
+
"<|reserved_015|>",
|
| 329 |
+
"<|reserved_016|>",
|
| 330 |
+
"<|reserved_017|>",
|
| 331 |
+
"<|reserved_018|>",
|
| 332 |
+
"<|reserved_019|>",
|
| 333 |
+
"<|reserved_020|>",
|
| 334 |
+
"<|reserved_021|>",
|
| 335 |
+
"<|reserved_022|>",
|
| 336 |
+
"<|reserved_023|>",
|
| 337 |
+
"<|reserved_024|>",
|
| 338 |
+
"<|reserved_025|>",
|
| 339 |
+
"<|reserved_026|>",
|
| 340 |
+
"<|reserved_027|>",
|
| 341 |
+
"<|reserved_028|>",
|
| 342 |
+
"<|reserved_029|>",
|
| 343 |
+
"<|reserved_030|>",
|
| 344 |
+
"<|reserved_031|>",
|
| 345 |
+
"<|reserved_032|>",
|
| 346 |
+
"<|reserved_033|>",
|
| 347 |
+
"<|reserved_034|>",
|
| 348 |
+
"<|reserved_035|>",
|
| 349 |
+
"<|reserved_036|>",
|
| 350 |
+
"<|reserved_037|>",
|
| 351 |
+
"<|reserved_038|>",
|
| 352 |
+
"<|reserved_039|>",
|
| 353 |
+
"<|reserved_040|>",
|
| 354 |
+
"<|reserved_041|>",
|
| 355 |
+
"<|reserved_042|>",
|
| 356 |
+
"<|reserved_043|>",
|
| 357 |
+
"<|reserved_044|>",
|
| 358 |
+
"<|reserved_045|>",
|
| 359 |
+
"<|reserved_046|>",
|
| 360 |
+
"<|reserved_047|>",
|
| 361 |
+
"<|reserved_048|>",
|
| 362 |
+
"<|reserved_049|>",
|
| 363 |
+
"<|reserved_050|>",
|
| 364 |
+
"<dna>",
|
| 365 |
+
"</dna>"
|
| 366 |
+
],
|
| 367 |
+
"raw_encoding": "bypass-all-added-token-matchers-v1",
|
| 368 |
+
"fingerprint": "f3b8d81cae428b64b45bf907b426397d7119ce9fa859d42b58655712ef989336"
|
| 369 |
+
},
|
| 370 |
+
"dna_config": {
|
| 371 |
+
"version": "b64-dna6-v3",
|
| 372 |
+
"base_vocabulary_size": 65536,
|
| 373 |
+
"vocab_size": 69650,
|
| 374 |
+
"k": 6,
|
| 375 |
+
"canonical_alphabet": "ACGT",
|
| 376 |
+
"fallback_alphabet": "ACGTURYSWKMBDHVN",
|
| 377 |
+
"begin_id": 65536,
|
| 378 |
+
"end_id": 65537,
|
| 379 |
+
"kmer_id_start": 65538,
|
| 380 |
+
"kmer_count": 4096,
|
| 381 |
+
"base_id_start": 69634,
|
| 382 |
+
"base_count": 16,
|
| 383 |
+
"canonical_order": "itertools.product(ACGT, repeat=6), lexicographic",
|
| 384 |
+
"raw_text_default": true,
|
| 385 |
+
"auto_detection": false,
|
| 386 |
+
"normalization": "identity",
|
| 387 |
+
"fallback": "Each noncanonical six-character block/short tail is encoded character by character; uppercase IUPAC gets DNA symbols; other characters use unchanged raw BPE",
|
| 388 |
+
"offsets": "Unicode character offsets and IUPAC-base offsets; gaps/layout have zero bp width",
|
| 389 |
+
"decoder": "Native Tokenizers Replace-per-piece then unchanged ByteLevel; no remote/custom decoder",
|
| 390 |
+
"encoding_entrypoint": "tiny_llm.dna.DNACodec",
|
| 391 |
+
"chat": "Same text chat template; DNACodec.encode enables tagged DNA/spans and preserves assistant masks",
|
| 392 |
+
"reserve": "Original 51 reserved IDs remain unchanged and unconsumed",
|
| 393 |
+
"FNS": "Not implemented; offsets and DNA ID ranges exposed for future training integration",
|
| 394 |
+
"future_model_scope": "New vocabulary requires matching embedding/head rows; does not migrate old weights"
|
| 395 |
+
},
|
| 396 |
+
"training_ce_backend": "fla",
|
| 397 |
+
"packed_attention_backend": "fa4",
|
| 398 |
+
"model_type": "kroha_routed_norm",
|
| 399 |
+
"output_attentions": false
|
| 400 |
+
},
|
| 401 |
+
"expert_execution": {
|
| 402 |
+
"runtime": "sonic",
|
| 403 |
+
"activation": "native-compiled-swiglu-bf16-boundaries",
|
| 404 |
+
"revision": "7396f3e604827d8186c2e16e64b28ee33d3defd0",
|
| 405 |
+
"sources": {
|
| 406 |
+
"sonicmoe/__init__.py": "3f3f19d7cc6a743e4553e1e86137f320f310c3e0753d627d23463f95bc85260d",
|
| 407 |
+
"sonicmoe/enums.py": "2ad1f833809a16ffc6bac4a366bd3bace7cef52c7955cd8054e450b0f04c342d",
|
| 408 |
+
"sonicmoe/functional/__init__.py": "af41a42d8fe5722615a4a1f2ce4157c992ef1fff4aaadc7fc9adec9097800a35",
|
| 409 |
+
"sonicmoe/functional/backward.py": "da559f5d342d01bb7f0c3602804d135ccbf273028085795a1f0e1d7e274c2e64",
|
| 410 |
+
"sonicmoe/functional/forward.py": "ab81bd844e862a200cb89beebac021f73b6347906fe970b95a31456a17d7459a",
|
| 411 |
+
"sonicmoe/functional/reduction_over_k_gather.py": "7c16136876c74d7a65ee2d9db49d489cd221d0f229c5f13ee889af3e835c39a5",
|
| 412 |
+
"sonicmoe/functional/topk.py": "c3fcc7e28466a60dd164890ea259bc438a6d4171ec6fa6bdd35f63537fed0fba",
|
| 413 |
+
"sonicmoe/functional/triton_kernels/__init__.py": "d84e207b63f5b44692e7ddec7b23ecdcaa55f9c104da10200d83b42cf47d9501",
|
| 414 |
+
"sonicmoe/functional/triton_kernels/bitmatrix.py": "909f9522bd3b9f47b8f3e5d01d28106cb9e671180567dd4cdcd214c4d3788702",
|
| 415 |
+
"sonicmoe/jit.py": "a64a3b2e4b6d91a6fed180d49176c000ddc8ff232f4e7c3b7768c913ace697e8",
|
| 416 |
+
"sonicmoe/moe.py": "2433ad3f03619dafdeda8a36a294b38ab738e44e859b83505065e1297bc1493d",
|
| 417 |
+
"sonicmoe/utils.py": "9a081b4a94981502094f262071c9e0badfd278ad80a897d25cbd7f08c67c5723"
|
| 418 |
+
},
|
| 419 |
+
"quack_patch_sha256": "d800420389640b22322f185ab778df74e9b0ab429dd6c8ff9a393c9176b29e80",
|
| 420 |
+
"packages": {
|
| 421 |
+
"torch": "2.11.0+cu128",
|
| 422 |
+
"transformers": "5.17.0",
|
| 423 |
+
"triton": "3.6.0",
|
| 424 |
+
"quack-kernels": "0.6.5",
|
| 425 |
+
"nvidia-cutlass-dsl": "4.8.0",
|
| 426 |
+
"sonic-moe": "0.1.2.post1"
|
| 427 |
+
}
|
| 428 |
+
}
|
| 429 |
+
}
|
training/powerup_2x-metrics.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training/powerup_8x-contract.json
ADDED
|
@@ -0,0 +1,429 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"data": {
|
| 4 |
+
"version": 1,
|
| 5 |
+
"stage": "powerup_8x",
|
| 6 |
+
"context": 16384,
|
| 7 |
+
"global_batch_positions": 262144,
|
| 8 |
+
"source_tokens": 3000000000,
|
| 9 |
+
"global_batches": 11448,
|
| 10 |
+
"ready_sha256": "973a4838667b92494e5fe0c1acf9e22487bd49db5037f157567e03a9caa3a780",
|
| 11 |
+
"manifest_sha256": "2941274fa7d5af0b7dc9764a735074aaaf31e1704199f7c34f1af767f3a992d3",
|
| 12 |
+
"tokenizer_sha256": "4e60b1fae62473ac658fea33fe68acfd8aeb3a2b6dc31bca3169356e4c072dd9",
|
| 13 |
+
"recipe_sha256": "e76fcfb70207ef516cf82d3d15234a4b725da5644aad371a4271c5696bc8c185",
|
| 14 |
+
"validation_sha256": "5abea73d87a8d95959df1b8cdb672d1ba9ca4751fd71a79f1a4676c6ef92c9c1"
|
| 15 |
+
},
|
| 16 |
+
"profile": {
|
| 17 |
+
"stage": "powerup_8x",
|
| 18 |
+
"microbatch": 4,
|
| 19 |
+
"checkpoint_policy": "core",
|
| 20 |
+
"runtime": "fused",
|
| 21 |
+
"dtype": "bf16",
|
| 22 |
+
"optimizer": "muon",
|
| 23 |
+
"lr": 0.001,
|
| 24 |
+
"muon_lr": 0.001,
|
| 25 |
+
"muon_momentum": 0.95,
|
| 26 |
+
"muon_ns_steps": 5,
|
| 27 |
+
"muon_adjust_lr": "match_rms_adamw",
|
| 28 |
+
"weight_decay": 0.1,
|
| 29 |
+
"betas": [
|
| 30 |
+
0.9,
|
| 31 |
+
0.95
|
| 32 |
+
],
|
| 33 |
+
"grad_clip": 1.0,
|
| 34 |
+
"warmup_frac": 0.01,
|
| 35 |
+
"min_lr_frac": 0.1,
|
| 36 |
+
"compile_pointwise": true,
|
| 37 |
+
"compile_optimizer": true,
|
| 38 |
+
"ce_backend": "fla",
|
| 39 |
+
"ce_chunk": 4096,
|
| 40 |
+
"prefetch": true,
|
| 41 |
+
"cpu_threads": 4,
|
| 42 |
+
"allocator_fraction": 0.95,
|
| 43 |
+
"seed": 2026,
|
| 44 |
+
"save_steps": 500,
|
| 45 |
+
"log_every": 20,
|
| 46 |
+
"expert_runtime": "sonic",
|
| 47 |
+
"model_type": "kroha_routed_norm",
|
| 48 |
+
"schedule_lr": 0.0001,
|
| 49 |
+
"mtp": true,
|
| 50 |
+
"mtp_ce": "tc"
|
| 51 |
+
},
|
| 52 |
+
"tokenizer": {
|
| 53 |
+
"version": 1,
|
| 54 |
+
"vocab_size": 69650,
|
| 55 |
+
"backend_sha256": "b7a96ed7050060b1fa1cbcdb25a9c0602d10ea417bb76ed8c844ee15626625aa",
|
| 56 |
+
"chat_template_sha256": "5a3826a188af44bb579a40a257727bdc815cf91ffcd87ad03f0e7ef012f180dd",
|
| 57 |
+
"special_ids": {
|
| 58 |
+
"pad": 0,
|
| 59 |
+
"bos": 1,
|
| 60 |
+
"eos": 2,
|
| 61 |
+
"unk": 3
|
| 62 |
+
},
|
| 63 |
+
"control_tokens": [
|
| 64 |
+
"<pad>",
|
| 65 |
+
"<s>",
|
| 66 |
+
"</s>",
|
| 67 |
+
"<unk>",
|
| 68 |
+
"<|im_start|>",
|
| 69 |
+
"<|im_end|>",
|
| 70 |
+
"<tool_call>",
|
| 71 |
+
"</tool_call>",
|
| 72 |
+
"<think>",
|
| 73 |
+
"</think>",
|
| 74 |
+
"<|fim_prefix|>",
|
| 75 |
+
"<|fim_middle|>",
|
| 76 |
+
"<|fim_suffix|>",
|
| 77 |
+
"<|reserved_000|>",
|
| 78 |
+
"<|reserved_001|>",
|
| 79 |
+
"<|reserved_002|>",
|
| 80 |
+
"<|reserved_003|>",
|
| 81 |
+
"<|reserved_004|>",
|
| 82 |
+
"<|reserved_005|>",
|
| 83 |
+
"<|reserved_006|>",
|
| 84 |
+
"<|reserved_007|>",
|
| 85 |
+
"<|reserved_008|>",
|
| 86 |
+
"<|reserved_009|>",
|
| 87 |
+
"<|reserved_010|>",
|
| 88 |
+
"<|reserved_011|>",
|
| 89 |
+
"<|reserved_012|>",
|
| 90 |
+
"<|reserved_013|>",
|
| 91 |
+
"<|reserved_014|>",
|
| 92 |
+
"<|reserved_015|>",
|
| 93 |
+
"<|reserved_016|>",
|
| 94 |
+
"<|reserved_017|>",
|
| 95 |
+
"<|reserved_018|>",
|
| 96 |
+
"<|reserved_019|>",
|
| 97 |
+
"<|reserved_020|>",
|
| 98 |
+
"<|reserved_021|>",
|
| 99 |
+
"<|reserved_022|>",
|
| 100 |
+
"<|reserved_023|>",
|
| 101 |
+
"<|reserved_024|>",
|
| 102 |
+
"<|reserved_025|>",
|
| 103 |
+
"<|reserved_026|>",
|
| 104 |
+
"<|reserved_027|>",
|
| 105 |
+
"<|reserved_028|>",
|
| 106 |
+
"<|reserved_029|>",
|
| 107 |
+
"<|reserved_030|>",
|
| 108 |
+
"<|reserved_031|>",
|
| 109 |
+
"<|reserved_032|>",
|
| 110 |
+
"<|reserved_033|>",
|
| 111 |
+
"<|reserved_034|>",
|
| 112 |
+
"<|reserved_035|>",
|
| 113 |
+
"<|reserved_036|>",
|
| 114 |
+
"<|reserved_037|>",
|
| 115 |
+
"<|reserved_038|>",
|
| 116 |
+
"<|reserved_039|>",
|
| 117 |
+
"<|reserved_040|>",
|
| 118 |
+
"<|reserved_041|>",
|
| 119 |
+
"<|reserved_042|>",
|
| 120 |
+
"<|reserved_043|>",
|
| 121 |
+
"<|reserved_044|>",
|
| 122 |
+
"<|reserved_045|>",
|
| 123 |
+
"<|reserved_046|>",
|
| 124 |
+
"<|reserved_047|>",
|
| 125 |
+
"<|reserved_048|>",
|
| 126 |
+
"<|reserved_049|>",
|
| 127 |
+
"<|reserved_050|>",
|
| 128 |
+
"<dna>",
|
| 129 |
+
"</dna>"
|
| 130 |
+
],
|
| 131 |
+
"raw_encoding": "bypass-all-added-token-matchers-v1",
|
| 132 |
+
"fingerprint": "f3b8d81cae428b64b45bf907b426397d7119ce9fa859d42b58655712ef989336"
|
| 133 |
+
},
|
| 134 |
+
"implementation": {
|
| 135 |
+
"packages": {
|
| 136 |
+
"torch": "2.11.0+cu128",
|
| 137 |
+
"transformers": "5.17.0",
|
| 138 |
+
"triton": "3.6.0",
|
| 139 |
+
"fla-core": "0.5.2",
|
| 140 |
+
"flash-attn-4": "4.0.0b35",
|
| 141 |
+
"nvidia-cutlass-dsl": "4.8.0",
|
| 142 |
+
"quack-kernels": "0.6.5"
|
| 143 |
+
},
|
| 144 |
+
"sources": {
|
| 145 |
+
"kroha_pretrain.py": "7f583b6e4ec84f3354b7bf1e57a2ae3dfc0cc19e22e67b074d43230e5b6238f5",
|
| 146 |
+
"kroha_pretrain_data.py": "4212001e3cb019e67e7f3b13aaf2f5329377967ef4ec3a3742c66d744e60b598",
|
| 147 |
+
"kroha_runtime.py": "0ae7fbe41bc280239228fd5d8cd7dde8b5d69d40cc7b4f46c4ed1b911018da63",
|
| 148 |
+
"optimizers.py": "1e3200ec42ab7368b460b18b96139380f4c9e755882e6c14bea991e6daa19a04",
|
| 149 |
+
"losses.py": "714c6fe946e3d0dc47ec4891f2c8f8a1af027ca76b1d6e73e86facfac64224bb",
|
| 150 |
+
"router_balance.py": "e607eee78483fa263d178b1b88db9110b9c6792d15860ab4bc97fb74b6f62ef5",
|
| 151 |
+
"checkpoint.py": "fdabb60b99ffc3ecedba995aca12e5693740e7129ae34ac1aaf9a024f878a9ef",
|
| 152 |
+
"models/kroha/modeling_kroha.py": "255d54e2565b1dbd3456e01817ae497554c55c9d4774b5e9a62dc7786b609594",
|
| 153 |
+
"models/kroha/configuration_kroha.py": "0eec6f39d77597aaabfb57dcb0c1bbd8639dfa7edaa19e8515f3a84f4012fd54",
|
| 154 |
+
"sonic_moe.py": "8e86e1bd54a91cb9e2aa05bdf4caafb2d08721a322c8d3d9dcd3ce11268df19a",
|
| 155 |
+
"kroha_curriculum.py": "5cbd596f60e62dcbceec36cb8a8507007690c4ef5afaf93d7aaa41503d447cf7",
|
| 156 |
+
"router_adamw.py": "5ff103cf7016dcd7be229f5369ee4a5d0713d99c9f729c86af706f4cd5465453",
|
| 157 |
+
"models/kroha_routed_norm/configuration_kroha_routed_norm.py": "3858d2d79d8b87857b50ac0395e6be0967963771c8395d0756d5302910064a66",
|
| 158 |
+
"models/kroha_routed_norm/modeling_kroha_routed_norm.py": "fdb855455cf4ff4d5236cbdfa9e3f7202bdbafdafba4247073d49cffb0100831",
|
| 159 |
+
"kroha_mtp.py": "99070e35da82c554d21e44a77f132c1ad412a7fed6de257b290ea89296a1ee26"
|
| 160 |
+
}
|
| 161 |
+
},
|
| 162 |
+
"loss_definition": "CE=sum valid causal token NLL/global valid targets; buffered global LBL=equal microbatch mean; no document-start/padding targets + 0.3 * (sum t+2 NLL/global valid t+2 targets), with document-local teacher forcing",
|
| 163 |
+
"model_config": {
|
| 164 |
+
"routed_output_norm": true,
|
| 165 |
+
"router_optimizer": "adamw",
|
| 166 |
+
"architectures": [
|
| 167 |
+
"KrohaRoutedNormForCausalLM"
|
| 168 |
+
],
|
| 169 |
+
"output_hidden_states": false,
|
| 170 |
+
"return_dict": true,
|
| 171 |
+
"chunk_size_feed_forward": 0,
|
| 172 |
+
"is_encoder_decoder": false,
|
| 173 |
+
"id2label": {
|
| 174 |
+
"0": "LABEL_0",
|
| 175 |
+
"1": "LABEL_1"
|
| 176 |
+
},
|
| 177 |
+
"label2id": {
|
| 178 |
+
"LABEL_0": 0,
|
| 179 |
+
"LABEL_1": 1
|
| 180 |
+
},
|
| 181 |
+
"problem_type": null,
|
| 182 |
+
"vocab_size": 69650,
|
| 183 |
+
"hidden_size": 512,
|
| 184 |
+
"intermediate_size": 1792,
|
| 185 |
+
"num_hidden_layers": 18,
|
| 186 |
+
"num_attention_heads": 8,
|
| 187 |
+
"num_key_value_heads": 2,
|
| 188 |
+
"hidden_act": "silu",
|
| 189 |
+
"max_position_embeddings": 16384,
|
| 190 |
+
"initializer_range": 0.02,
|
| 191 |
+
"rms_norm_eps": 1e-05,
|
| 192 |
+
"use_cache": true,
|
| 193 |
+
"pad_token_id": 0,
|
| 194 |
+
"bos_token_id": 1,
|
| 195 |
+
"eos_token_id": 2,
|
| 196 |
+
"pretraining_tp": 1,
|
| 197 |
+
"tie_word_embeddings": true,
|
| 198 |
+
"rope_parameters": {
|
| 199 |
+
"rope_type": "default",
|
| 200 |
+
"rope_theta": 10000.0
|
| 201 |
+
},
|
| 202 |
+
"attention_bias": false,
|
| 203 |
+
"attention_dropout": 0.0,
|
| 204 |
+
"mlp_bias": false,
|
| 205 |
+
"head_dim": 64,
|
| 206 |
+
"num_core_layers": 8,
|
| 207 |
+
"num_passes": 2,
|
| 208 |
+
"layer_types": [
|
| 209 |
+
"full_attention",
|
| 210 |
+
"linear_attention",
|
| 211 |
+
"full_attention",
|
| 212 |
+
"linear_attention",
|
| 213 |
+
"full_attention",
|
| 214 |
+
"linear_attention",
|
| 215 |
+
"full_attention",
|
| 216 |
+
"linear_attention",
|
| 217 |
+
"full_attention",
|
| 218 |
+
"linear_attention",
|
| 219 |
+
"full_attention",
|
| 220 |
+
"linear_attention",
|
| 221 |
+
"full_attention",
|
| 222 |
+
"linear_attention",
|
| 223 |
+
"full_attention",
|
| 224 |
+
"linear_attention",
|
| 225 |
+
"full_attention",
|
| 226 |
+
"full_attention"
|
| 227 |
+
],
|
| 228 |
+
"relaxed": true,
|
| 229 |
+
"lora_rank": 16,
|
| 230 |
+
"lora_alpha": 16,
|
| 231 |
+
"attnres_block_size": 4,
|
| 232 |
+
"num_experts": 8,
|
| 233 |
+
"experts_per_token": 2,
|
| 234 |
+
"expert_intermediate_size": 352,
|
| 235 |
+
"shared_intermediate_size": 256,
|
| 236 |
+
"latent_size": 256,
|
| 237 |
+
"gate_multiplier": 2.0,
|
| 238 |
+
"qk_norm": true,
|
| 239 |
+
"attention_scalar_gate": true,
|
| 240 |
+
"mlp_scalar_gate": true,
|
| 241 |
+
"shared_expert_gate": true,
|
| 242 |
+
"router_bias_speed": 0.001,
|
| 243 |
+
"router_seq_aux_coef": 0.0001,
|
| 244 |
+
"router_balance_scope": "global",
|
| 245 |
+
"routed_scaling_factor": 1.0,
|
| 246 |
+
"swiglu_limit": 10.0,
|
| 247 |
+
"delta_conv_kernel": 4,
|
| 248 |
+
"delta_backend": "auto",
|
| 249 |
+
"expert_backend": "auto",
|
| 250 |
+
"nope_layers": [],
|
| 251 |
+
"delta_num_query_heads": 8,
|
| 252 |
+
"delta_num_value_heads": 2,
|
| 253 |
+
"moe_budget": "total",
|
| 254 |
+
"pass2_router": false,
|
| 255 |
+
"gdn_version": 1,
|
| 256 |
+
"headwise_attention_gate": true,
|
| 257 |
+
"decoder_ablation": "headgate_blockattnres",
|
| 258 |
+
"linear_num_key_heads": 8,
|
| 259 |
+
"linear_num_value_heads": 8,
|
| 260 |
+
"linear_key_head_dim": 64,
|
| 261 |
+
"linear_value_head_dim": 64,
|
| 262 |
+
"linear_conv_kernel_dim": 4,
|
| 263 |
+
"layers_block_type": [
|
| 264 |
+
"attention",
|
| 265 |
+
"mamba",
|
| 266 |
+
"attention",
|
| 267 |
+
"mamba",
|
| 268 |
+
"attention",
|
| 269 |
+
"mamba",
|
| 270 |
+
"attention",
|
| 271 |
+
"mamba",
|
| 272 |
+
"attention",
|
| 273 |
+
"mamba",
|
| 274 |
+
"attention",
|
| 275 |
+
"mamba",
|
| 276 |
+
"attention",
|
| 277 |
+
"mamba",
|
| 278 |
+
"attention",
|
| 279 |
+
"mamba",
|
| 280 |
+
"attention",
|
| 281 |
+
"attention"
|
| 282 |
+
],
|
| 283 |
+
"auto_map": {
|
| 284 |
+
"AutoConfig": "configuration_kroha_routed_norm.KrohaRoutedNormConfig",
|
| 285 |
+
"AutoModel": "modeling_kroha_routed_norm.KrohaRoutedNormModel",
|
| 286 |
+
"AutoModelForCausalLM": "modeling_kroha_routed_norm.KrohaRoutedNormForCausalLM"
|
| 287 |
+
},
|
| 288 |
+
"training_tokenizer_contract": {
|
| 289 |
+
"version": 1,
|
| 290 |
+
"vocab_size": 69650,
|
| 291 |
+
"backend_sha256": "b7a96ed7050060b1fa1cbcdb25a9c0602d10ea417bb76ed8c844ee15626625aa",
|
| 292 |
+
"chat_template_sha256": "5a3826a188af44bb579a40a257727bdc815cf91ffcd87ad03f0e7ef012f180dd",
|
| 293 |
+
"special_ids": {
|
| 294 |
+
"pad": 0,
|
| 295 |
+
"bos": 1,
|
| 296 |
+
"eos": 2,
|
| 297 |
+
"unk": 3
|
| 298 |
+
},
|
| 299 |
+
"control_tokens": [
|
| 300 |
+
"<pad>",
|
| 301 |
+
"<s>",
|
| 302 |
+
"</s>",
|
| 303 |
+
"<unk>",
|
| 304 |
+
"<|im_start|>",
|
| 305 |
+
"<|im_end|>",
|
| 306 |
+
"<tool_call>",
|
| 307 |
+
"</tool_call>",
|
| 308 |
+
"<think>",
|
| 309 |
+
"</think>",
|
| 310 |
+
"<|fim_prefix|>",
|
| 311 |
+
"<|fim_middle|>",
|
| 312 |
+
"<|fim_suffix|>",
|
| 313 |
+
"<|reserved_000|>",
|
| 314 |
+
"<|reserved_001|>",
|
| 315 |
+
"<|reserved_002|>",
|
| 316 |
+
"<|reserved_003|>",
|
| 317 |
+
"<|reserved_004|>",
|
| 318 |
+
"<|reserved_005|>",
|
| 319 |
+
"<|reserved_006|>",
|
| 320 |
+
"<|reserved_007|>",
|
| 321 |
+
"<|reserved_008|>",
|
| 322 |
+
"<|reserved_009|>",
|
| 323 |
+
"<|reserved_010|>",
|
| 324 |
+
"<|reserved_011|>",
|
| 325 |
+
"<|reserved_012|>",
|
| 326 |
+
"<|reserved_013|>",
|
| 327 |
+
"<|reserved_014|>",
|
| 328 |
+
"<|reserved_015|>",
|
| 329 |
+
"<|reserved_016|>",
|
| 330 |
+
"<|reserved_017|>",
|
| 331 |
+
"<|reserved_018|>",
|
| 332 |
+
"<|reserved_019|>",
|
| 333 |
+
"<|reserved_020|>",
|
| 334 |
+
"<|reserved_021|>",
|
| 335 |
+
"<|reserved_022|>",
|
| 336 |
+
"<|reserved_023|>",
|
| 337 |
+
"<|reserved_024|>",
|
| 338 |
+
"<|reserved_025|>",
|
| 339 |
+
"<|reserved_026|>",
|
| 340 |
+
"<|reserved_027|>",
|
| 341 |
+
"<|reserved_028|>",
|
| 342 |
+
"<|reserved_029|>",
|
| 343 |
+
"<|reserved_030|>",
|
| 344 |
+
"<|reserved_031|>",
|
| 345 |
+
"<|reserved_032|>",
|
| 346 |
+
"<|reserved_033|>",
|
| 347 |
+
"<|reserved_034|>",
|
| 348 |
+
"<|reserved_035|>",
|
| 349 |
+
"<|reserved_036|>",
|
| 350 |
+
"<|reserved_037|>",
|
| 351 |
+
"<|reserved_038|>",
|
| 352 |
+
"<|reserved_039|>",
|
| 353 |
+
"<|reserved_040|>",
|
| 354 |
+
"<|reserved_041|>",
|
| 355 |
+
"<|reserved_042|>",
|
| 356 |
+
"<|reserved_043|>",
|
| 357 |
+
"<|reserved_044|>",
|
| 358 |
+
"<|reserved_045|>",
|
| 359 |
+
"<|reserved_046|>",
|
| 360 |
+
"<|reserved_047|>",
|
| 361 |
+
"<|reserved_048|>",
|
| 362 |
+
"<|reserved_049|>",
|
| 363 |
+
"<|reserved_050|>",
|
| 364 |
+
"<dna>",
|
| 365 |
+
"</dna>"
|
| 366 |
+
],
|
| 367 |
+
"raw_encoding": "bypass-all-added-token-matchers-v1",
|
| 368 |
+
"fingerprint": "f3b8d81cae428b64b45bf907b426397d7119ce9fa859d42b58655712ef989336"
|
| 369 |
+
},
|
| 370 |
+
"dna_config": {
|
| 371 |
+
"version": "b64-dna6-v3",
|
| 372 |
+
"base_vocabulary_size": 65536,
|
| 373 |
+
"vocab_size": 69650,
|
| 374 |
+
"k": 6,
|
| 375 |
+
"canonical_alphabet": "ACGT",
|
| 376 |
+
"fallback_alphabet": "ACGTURYSWKMBDHVN",
|
| 377 |
+
"begin_id": 65536,
|
| 378 |
+
"end_id": 65537,
|
| 379 |
+
"kmer_id_start": 65538,
|
| 380 |
+
"kmer_count": 4096,
|
| 381 |
+
"base_id_start": 69634,
|
| 382 |
+
"base_count": 16,
|
| 383 |
+
"canonical_order": "itertools.product(ACGT, repeat=6), lexicographic",
|
| 384 |
+
"raw_text_default": true,
|
| 385 |
+
"auto_detection": false,
|
| 386 |
+
"normalization": "identity",
|
| 387 |
+
"fallback": "Each noncanonical six-character block/short tail is encoded character by character; uppercase IUPAC gets DNA symbols; other characters use unchanged raw BPE",
|
| 388 |
+
"offsets": "Unicode character offsets and IUPAC-base offsets; gaps/layout have zero bp width",
|
| 389 |
+
"decoder": "Native Tokenizers Replace-per-piece then unchanged ByteLevel; no remote/custom decoder",
|
| 390 |
+
"encoding_entrypoint": "tiny_llm.dna.DNACodec",
|
| 391 |
+
"chat": "Same text chat template; DNACodec.encode enables tagged DNA/spans and preserves assistant masks",
|
| 392 |
+
"reserve": "Original 51 reserved IDs remain unchanged and unconsumed",
|
| 393 |
+
"FNS": "Not implemented; offsets and DNA ID ranges exposed for future training integration",
|
| 394 |
+
"future_model_scope": "New vocabulary requires matching embedding/head rows; does not migrate old weights"
|
| 395 |
+
},
|
| 396 |
+
"training_ce_backend": "fla",
|
| 397 |
+
"packed_attention_backend": "fa4",
|
| 398 |
+
"model_type": "kroha_routed_norm",
|
| 399 |
+
"output_attentions": false
|
| 400 |
+
},
|
| 401 |
+
"expert_execution": {
|
| 402 |
+
"runtime": "sonic",
|
| 403 |
+
"activation": "native-compiled-swiglu-bf16-boundaries",
|
| 404 |
+
"revision": "7396f3e604827d8186c2e16e64b28ee33d3defd0",
|
| 405 |
+
"sources": {
|
| 406 |
+
"sonicmoe/__init__.py": "3f3f19d7cc6a743e4553e1e86137f320f310c3e0753d627d23463f95bc85260d",
|
| 407 |
+
"sonicmoe/enums.py": "2ad1f833809a16ffc6bac4a366bd3bace7cef52c7955cd8054e450b0f04c342d",
|
| 408 |
+
"sonicmoe/functional/__init__.py": "af41a42d8fe5722615a4a1f2ce4157c992ef1fff4aaadc7fc9adec9097800a35",
|
| 409 |
+
"sonicmoe/functional/backward.py": "da559f5d342d01bb7f0c3602804d135ccbf273028085795a1f0e1d7e274c2e64",
|
| 410 |
+
"sonicmoe/functional/forward.py": "ab81bd844e862a200cb89beebac021f73b6347906fe970b95a31456a17d7459a",
|
| 411 |
+
"sonicmoe/functional/reduction_over_k_gather.py": "7c16136876c74d7a65ee2d9db49d489cd221d0f229c5f13ee889af3e835c39a5",
|
| 412 |
+
"sonicmoe/functional/topk.py": "c3fcc7e28466a60dd164890ea259bc438a6d4171ec6fa6bdd35f63537fed0fba",
|
| 413 |
+
"sonicmoe/functional/triton_kernels/__init__.py": "d84e207b63f5b44692e7ddec7b23ecdcaa55f9c104da10200d83b42cf47d9501",
|
| 414 |
+
"sonicmoe/functional/triton_kernels/bitmatrix.py": "909f9522bd3b9f47b8f3e5d01d28106cb9e671180567dd4cdcd214c4d3788702",
|
| 415 |
+
"sonicmoe/jit.py": "a64a3b2e4b6d91a6fed180d49176c000ddc8ff232f4e7c3b7768c913ace697e8",
|
| 416 |
+
"sonicmoe/moe.py": "2433ad3f03619dafdeda8a36a294b38ab738e44e859b83505065e1297bc1493d",
|
| 417 |
+
"sonicmoe/utils.py": "9a081b4a94981502094f262071c9e0badfd278ad80a897d25cbd7f08c67c5723"
|
| 418 |
+
},
|
| 419 |
+
"quack_patch_sha256": "d800420389640b22322f185ab778df74e9b0ab429dd6c8ff9a393c9176b29e80",
|
| 420 |
+
"packages": {
|
| 421 |
+
"torch": "2.11.0+cu128",
|
| 422 |
+
"transformers": "5.17.0",
|
| 423 |
+
"triton": "3.6.0",
|
| 424 |
+
"quack-kernels": "0.6.5",
|
| 425 |
+
"nvidia-cutlass-dsl": "4.8.0",
|
| 426 |
+
"sonic-moe": "0.1.2.post1"
|
| 427 |
+
}
|
| 428 |
+
}
|
| 429 |
+
}
|
training/powerup_8x-metrics.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training/pretrain-contract.json
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"data": {
|
| 4 |
+
"version": 1,
|
| 5 |
+
"stage": "pretrain",
|
| 6 |
+
"context": 2048,
|
| 7 |
+
"global_batch_positions": 262144,
|
| 8 |
+
"source_tokens": 30000000000,
|
| 9 |
+
"global_batches": 114442,
|
| 10 |
+
"ready_sha256": "973a4838667b92494e5fe0c1acf9e22487bd49db5037f157567e03a9caa3a780",
|
| 11 |
+
"manifest_sha256": "b0dabb90d5dd0a86321370af42de14f5c3f33bc5e92b475a32c5d964766518b4",
|
| 12 |
+
"tokenizer_sha256": "4e60b1fae62473ac658fea33fe68acfd8aeb3a2b6dc31bca3169356e4c072dd9",
|
| 13 |
+
"recipe_sha256": "e76fcfb70207ef516cf82d3d15234a4b725da5644aad371a4271c5696bc8c185",
|
| 14 |
+
"validation_sha256": "5abea73d87a8d95959df1b8cdb672d1ba9ca4751fd71a79f1a4676c6ef92c9c1"
|
| 15 |
+
},
|
| 16 |
+
"profile": {
|
| 17 |
+
"stage": "pretrain",
|
| 18 |
+
"microbatch": 32,
|
| 19 |
+
"checkpoint_policy": "core",
|
| 20 |
+
"runtime": "fused",
|
| 21 |
+
"dtype": "bf16",
|
| 22 |
+
"optimizer": "muon",
|
| 23 |
+
"lr": 0.001,
|
| 24 |
+
"muon_lr": 0.001,
|
| 25 |
+
"muon_momentum": 0.95,
|
| 26 |
+
"muon_ns_steps": 5,
|
| 27 |
+
"muon_adjust_lr": "match_rms_adamw",
|
| 28 |
+
"weight_decay": 0.1,
|
| 29 |
+
"betas": [
|
| 30 |
+
0.9,
|
| 31 |
+
0.95
|
| 32 |
+
],
|
| 33 |
+
"grad_clip": 1.0,
|
| 34 |
+
"warmup_frac": 0.01,
|
| 35 |
+
"min_lr_frac": 0.1,
|
| 36 |
+
"compile_pointwise": true,
|
| 37 |
+
"compile_optimizer": true,
|
| 38 |
+
"ce_backend": "fla",
|
| 39 |
+
"ce_chunk": 4096,
|
| 40 |
+
"prefetch": true,
|
| 41 |
+
"cpu_threads": 4,
|
| 42 |
+
"allocator_fraction": 0.95,
|
| 43 |
+
"seed": 2026,
|
| 44 |
+
"save_steps": 500,
|
| 45 |
+
"log_every": 20,
|
| 46 |
+
"expert_runtime": "sonic",
|
| 47 |
+
"model_type": "kroha_routed_norm",
|
| 48 |
+
"mtp": true,
|
| 49 |
+
"mtp_ce": "tc"
|
| 50 |
+
},
|
| 51 |
+
"tokenizer": {
|
| 52 |
+
"version": 1,
|
| 53 |
+
"vocab_size": 69650,
|
| 54 |
+
"backend_sha256": "b7a96ed7050060b1fa1cbcdb25a9c0602d10ea417bb76ed8c844ee15626625aa",
|
| 55 |
+
"chat_template_sha256": "5a3826a188af44bb579a40a257727bdc815cf91ffcd87ad03f0e7ef012f180dd",
|
| 56 |
+
"special_ids": {
|
| 57 |
+
"pad": 0,
|
| 58 |
+
"bos": 1,
|
| 59 |
+
"eos": 2,
|
| 60 |
+
"unk": 3
|
| 61 |
+
},
|
| 62 |
+
"control_tokens": [
|
| 63 |
+
"<pad>",
|
| 64 |
+
"<s>",
|
| 65 |
+
"</s>",
|
| 66 |
+
"<unk>",
|
| 67 |
+
"<|im_start|>",
|
| 68 |
+
"<|im_end|>",
|
| 69 |
+
"<tool_call>",
|
| 70 |
+
"</tool_call>",
|
| 71 |
+
"<think>",
|
| 72 |
+
"</think>",
|
| 73 |
+
"<|fim_prefix|>",
|
| 74 |
+
"<|fim_middle|>",
|
| 75 |
+
"<|fim_suffix|>",
|
| 76 |
+
"<|reserved_000|>",
|
| 77 |
+
"<|reserved_001|>",
|
| 78 |
+
"<|reserved_002|>",
|
| 79 |
+
"<|reserved_003|>",
|
| 80 |
+
"<|reserved_004|>",
|
| 81 |
+
"<|reserved_005|>",
|
| 82 |
+
"<|reserved_006|>",
|
| 83 |
+
"<|reserved_007|>",
|
| 84 |
+
"<|reserved_008|>",
|
| 85 |
+
"<|reserved_009|>",
|
| 86 |
+
"<|reserved_010|>",
|
| 87 |
+
"<|reserved_011|>",
|
| 88 |
+
"<|reserved_012|>",
|
| 89 |
+
"<|reserved_013|>",
|
| 90 |
+
"<|reserved_014|>",
|
| 91 |
+
"<|reserved_015|>",
|
| 92 |
+
"<|reserved_016|>",
|
| 93 |
+
"<|reserved_017|>",
|
| 94 |
+
"<|reserved_018|>",
|
| 95 |
+
"<|reserved_019|>",
|
| 96 |
+
"<|reserved_020|>",
|
| 97 |
+
"<|reserved_021|>",
|
| 98 |
+
"<|reserved_022|>",
|
| 99 |
+
"<|reserved_023|>",
|
| 100 |
+
"<|reserved_024|>",
|
| 101 |
+
"<|reserved_025|>",
|
| 102 |
+
"<|reserved_026|>",
|
| 103 |
+
"<|reserved_027|>",
|
| 104 |
+
"<|reserved_028|>",
|
| 105 |
+
"<|reserved_029|>",
|
| 106 |
+
"<|reserved_030|>",
|
| 107 |
+
"<|reserved_031|>",
|
| 108 |
+
"<|reserved_032|>",
|
| 109 |
+
"<|reserved_033|>",
|
| 110 |
+
"<|reserved_034|>",
|
| 111 |
+
"<|reserved_035|>",
|
| 112 |
+
"<|reserved_036|>",
|
| 113 |
+
"<|reserved_037|>",
|
| 114 |
+
"<|reserved_038|>",
|
| 115 |
+
"<|reserved_039|>",
|
| 116 |
+
"<|reserved_040|>",
|
| 117 |
+
"<|reserved_041|>",
|
| 118 |
+
"<|reserved_042|>",
|
| 119 |
+
"<|reserved_043|>",
|
| 120 |
+
"<|reserved_044|>",
|
| 121 |
+
"<|reserved_045|>",
|
| 122 |
+
"<|reserved_046|>",
|
| 123 |
+
"<|reserved_047|>",
|
| 124 |
+
"<|reserved_048|>",
|
| 125 |
+
"<|reserved_049|>",
|
| 126 |
+
"<|reserved_050|>",
|
| 127 |
+
"<dna>",
|
| 128 |
+
"</dna>"
|
| 129 |
+
],
|
| 130 |
+
"raw_encoding": "bypass-all-added-token-matchers-v1",
|
| 131 |
+
"fingerprint": "f3b8d81cae428b64b45bf907b426397d7119ce9fa859d42b58655712ef989336"
|
| 132 |
+
},
|
| 133 |
+
"implementation": {
|
| 134 |
+
"packages": {
|
| 135 |
+
"torch": "2.11.0+cu128",
|
| 136 |
+
"transformers": "5.17.0",
|
| 137 |
+
"triton": "3.6.0",
|
| 138 |
+
"fla-core": "0.5.2",
|
| 139 |
+
"flash-attn-4": "4.0.0b35",
|
| 140 |
+
"nvidia-cutlass-dsl": "4.8.0",
|
| 141 |
+
"quack-kernels": "0.6.5"
|
| 142 |
+
},
|
| 143 |
+
"sources": {
|
| 144 |
+
"kroha_pretrain.py": "7f583b6e4ec84f3354b7bf1e57a2ae3dfc0cc19e22e67b074d43230e5b6238f5",
|
| 145 |
+
"kroha_pretrain_data.py": "4212001e3cb019e67e7f3b13aaf2f5329377967ef4ec3a3742c66d744e60b598",
|
| 146 |
+
"kroha_runtime.py": "0ae7fbe41bc280239228fd5d8cd7dde8b5d69d40cc7b4f46c4ed1b911018da63",
|
| 147 |
+
"optimizers.py": "1e3200ec42ab7368b460b18b96139380f4c9e755882e6c14bea991e6daa19a04",
|
| 148 |
+
"losses.py": "714c6fe946e3d0dc47ec4891f2c8f8a1af027ca76b1d6e73e86facfac64224bb",
|
| 149 |
+
"router_balance.py": "e607eee78483fa263d178b1b88db9110b9c6792d15860ab4bc97fb74b6f62ef5",
|
| 150 |
+
"checkpoint.py": "fdabb60b99ffc3ecedba995aca12e5693740e7129ae34ac1aaf9a024f878a9ef",
|
| 151 |
+
"models/kroha/modeling_kroha.py": "255d54e2565b1dbd3456e01817ae497554c55c9d4774b5e9a62dc7786b609594",
|
| 152 |
+
"models/kroha/configuration_kroha.py": "0eec6f39d77597aaabfb57dcb0c1bbd8639dfa7edaa19e8515f3a84f4012fd54",
|
| 153 |
+
"sonic_moe.py": "8e86e1bd54a91cb9e2aa05bdf4caafb2d08721a322c8d3d9dcd3ce11268df19a",
|
| 154 |
+
"kroha_curriculum.py": "5cbd596f60e62dcbceec36cb8a8507007690c4ef5afaf93d7aaa41503d447cf7",
|
| 155 |
+
"router_adamw.py": "5ff103cf7016dcd7be229f5369ee4a5d0713d99c9f729c86af706f4cd5465453",
|
| 156 |
+
"models/kroha_routed_norm/configuration_kroha_routed_norm.py": "3858d2d79d8b87857b50ac0395e6be0967963771c8395d0756d5302910064a66",
|
| 157 |
+
"models/kroha_routed_norm/modeling_kroha_routed_norm.py": "fdb855455cf4ff4d5236cbdfa9e3f7202bdbafdafba4247073d49cffb0100831",
|
| 158 |
+
"kroha_mtp.py": "99070e35da82c554d21e44a77f132c1ad412a7fed6de257b290ea89296a1ee26"
|
| 159 |
+
}
|
| 160 |
+
},
|
| 161 |
+
"loss_definition": "CE=sum valid causal token NLL/global valid targets; buffered global LBL=equal microbatch mean; no document-start/padding targets + 0.3 * (sum t+2 NLL/global valid t+2 targets), with document-local teacher forcing",
|
| 162 |
+
"model_config": {
|
| 163 |
+
"routed_output_norm": true,
|
| 164 |
+
"router_optimizer": "adamw",
|
| 165 |
+
"architectures": [
|
| 166 |
+
"KrohaRoutedNormForCausalLM"
|
| 167 |
+
],
|
| 168 |
+
"output_hidden_states": false,
|
| 169 |
+
"return_dict": true,
|
| 170 |
+
"chunk_size_feed_forward": 0,
|
| 171 |
+
"is_encoder_decoder": false,
|
| 172 |
+
"id2label": {
|
| 173 |
+
"0": "LABEL_0",
|
| 174 |
+
"1": "LABEL_1"
|
| 175 |
+
},
|
| 176 |
+
"label2id": {
|
| 177 |
+
"LABEL_0": 0,
|
| 178 |
+
"LABEL_1": 1
|
| 179 |
+
},
|
| 180 |
+
"problem_type": null,
|
| 181 |
+
"vocab_size": 69650,
|
| 182 |
+
"hidden_size": 512,
|
| 183 |
+
"intermediate_size": 1792,
|
| 184 |
+
"num_hidden_layers": 18,
|
| 185 |
+
"num_attention_heads": 8,
|
| 186 |
+
"num_key_value_heads": 2,
|
| 187 |
+
"hidden_act": "silu",
|
| 188 |
+
"max_position_embeddings": 2048,
|
| 189 |
+
"initializer_range": 0.02,
|
| 190 |
+
"rms_norm_eps": 1e-05,
|
| 191 |
+
"use_cache": true,
|
| 192 |
+
"pad_token_id": 0,
|
| 193 |
+
"bos_token_id": 1,
|
| 194 |
+
"eos_token_id": 2,
|
| 195 |
+
"pretraining_tp": 1,
|
| 196 |
+
"tie_word_embeddings": true,
|
| 197 |
+
"rope_parameters": {
|
| 198 |
+
"rope_type": "default",
|
| 199 |
+
"rope_theta": 10000.0
|
| 200 |
+
},
|
| 201 |
+
"attention_bias": false,
|
| 202 |
+
"attention_dropout": 0.0,
|
| 203 |
+
"mlp_bias": false,
|
| 204 |
+
"head_dim": 64,
|
| 205 |
+
"num_core_layers": 8,
|
| 206 |
+
"num_passes": 2,
|
| 207 |
+
"layer_types": [
|
| 208 |
+
"full_attention",
|
| 209 |
+
"linear_attention",
|
| 210 |
+
"full_attention",
|
| 211 |
+
"linear_attention",
|
| 212 |
+
"full_attention",
|
| 213 |
+
"linear_attention",
|
| 214 |
+
"full_attention",
|
| 215 |
+
"linear_attention",
|
| 216 |
+
"full_attention",
|
| 217 |
+
"linear_attention",
|
| 218 |
+
"full_attention",
|
| 219 |
+
"linear_attention",
|
| 220 |
+
"full_attention",
|
| 221 |
+
"linear_attention",
|
| 222 |
+
"full_attention",
|
| 223 |
+
"linear_attention",
|
| 224 |
+
"full_attention",
|
| 225 |
+
"full_attention"
|
| 226 |
+
],
|
| 227 |
+
"relaxed": true,
|
| 228 |
+
"lora_rank": 16,
|
| 229 |
+
"lora_alpha": 16,
|
| 230 |
+
"attnres_block_size": 4,
|
| 231 |
+
"num_experts": 8,
|
| 232 |
+
"experts_per_token": 2,
|
| 233 |
+
"expert_intermediate_size": 352,
|
| 234 |
+
"shared_intermediate_size": 256,
|
| 235 |
+
"latent_size": 256,
|
| 236 |
+
"gate_multiplier": 2.0,
|
| 237 |
+
"qk_norm": true,
|
| 238 |
+
"attention_scalar_gate": true,
|
| 239 |
+
"mlp_scalar_gate": true,
|
| 240 |
+
"shared_expert_gate": true,
|
| 241 |
+
"router_bias_speed": 0.001,
|
| 242 |
+
"router_seq_aux_coef": 0.0001,
|
| 243 |
+
"router_balance_scope": "global",
|
| 244 |
+
"routed_scaling_factor": 1.0,
|
| 245 |
+
"swiglu_limit": 10.0,
|
| 246 |
+
"delta_conv_kernel": 4,
|
| 247 |
+
"delta_backend": "auto",
|
| 248 |
+
"expert_backend": "auto",
|
| 249 |
+
"nope_layers": [],
|
| 250 |
+
"delta_num_query_heads": 8,
|
| 251 |
+
"delta_num_value_heads": 2,
|
| 252 |
+
"moe_budget": "total",
|
| 253 |
+
"pass2_router": false,
|
| 254 |
+
"gdn_version": 1,
|
| 255 |
+
"headwise_attention_gate": true,
|
| 256 |
+
"decoder_ablation": "headgate_blockattnres",
|
| 257 |
+
"linear_num_key_heads": 8,
|
| 258 |
+
"linear_num_value_heads": 8,
|
| 259 |
+
"linear_key_head_dim": 64,
|
| 260 |
+
"linear_value_head_dim": 64,
|
| 261 |
+
"linear_conv_kernel_dim": 4,
|
| 262 |
+
"layers_block_type": [
|
| 263 |
+
"attention",
|
| 264 |
+
"mamba",
|
| 265 |
+
"attention",
|
| 266 |
+
"mamba",
|
| 267 |
+
"attention",
|
| 268 |
+
"mamba",
|
| 269 |
+
"attention",
|
| 270 |
+
"mamba",
|
| 271 |
+
"attention",
|
| 272 |
+
"mamba",
|
| 273 |
+
"attention",
|
| 274 |
+
"mamba",
|
| 275 |
+
"attention",
|
| 276 |
+
"mamba",
|
| 277 |
+
"attention",
|
| 278 |
+
"mamba",
|
| 279 |
+
"attention",
|
| 280 |
+
"attention"
|
| 281 |
+
],
|
| 282 |
+
"auto_map": {
|
| 283 |
+
"AutoConfig": "configuration_kroha_routed_norm.KrohaRoutedNormConfig",
|
| 284 |
+
"AutoModel": "modeling_kroha_routed_norm.KrohaRoutedNormModel",
|
| 285 |
+
"AutoModelForCausalLM": "modeling_kroha_routed_norm.KrohaRoutedNormForCausalLM"
|
| 286 |
+
},
|
| 287 |
+
"training_tokenizer_contract": {
|
| 288 |
+
"version": 1,
|
| 289 |
+
"vocab_size": 69650,
|
| 290 |
+
"backend_sha256": "b7a96ed7050060b1fa1cbcdb25a9c0602d10ea417bb76ed8c844ee15626625aa",
|
| 291 |
+
"chat_template_sha256": "5a3826a188af44bb579a40a257727bdc815cf91ffcd87ad03f0e7ef012f180dd",
|
| 292 |
+
"special_ids": {
|
| 293 |
+
"pad": 0,
|
| 294 |
+
"bos": 1,
|
| 295 |
+
"eos": 2,
|
| 296 |
+
"unk": 3
|
| 297 |
+
},
|
| 298 |
+
"control_tokens": [
|
| 299 |
+
"<pad>",
|
| 300 |
+
"<s>",
|
| 301 |
+
"</s>",
|
| 302 |
+
"<unk>",
|
| 303 |
+
"<|im_start|>",
|
| 304 |
+
"<|im_end|>",
|
| 305 |
+
"<tool_call>",
|
| 306 |
+
"</tool_call>",
|
| 307 |
+
"<think>",
|
| 308 |
+
"</think>",
|
| 309 |
+
"<|fim_prefix|>",
|
| 310 |
+
"<|fim_middle|>",
|
| 311 |
+
"<|fim_suffix|>",
|
| 312 |
+
"<|reserved_000|>",
|
| 313 |
+
"<|reserved_001|>",
|
| 314 |
+
"<|reserved_002|>",
|
| 315 |
+
"<|reserved_003|>",
|
| 316 |
+
"<|reserved_004|>",
|
| 317 |
+
"<|reserved_005|>",
|
| 318 |
+
"<|reserved_006|>",
|
| 319 |
+
"<|reserved_007|>",
|
| 320 |
+
"<|reserved_008|>",
|
| 321 |
+
"<|reserved_009|>",
|
| 322 |
+
"<|reserved_010|>",
|
| 323 |
+
"<|reserved_011|>",
|
| 324 |
+
"<|reserved_012|>",
|
| 325 |
+
"<|reserved_013|>",
|
| 326 |
+
"<|reserved_014|>",
|
| 327 |
+
"<|reserved_015|>",
|
| 328 |
+
"<|reserved_016|>",
|
| 329 |
+
"<|reserved_017|>",
|
| 330 |
+
"<|reserved_018|>",
|
| 331 |
+
"<|reserved_019|>",
|
| 332 |
+
"<|reserved_020|>",
|
| 333 |
+
"<|reserved_021|>",
|
| 334 |
+
"<|reserved_022|>",
|
| 335 |
+
"<|reserved_023|>",
|
| 336 |
+
"<|reserved_024|>",
|
| 337 |
+
"<|reserved_025|>",
|
| 338 |
+
"<|reserved_026|>",
|
| 339 |
+
"<|reserved_027|>",
|
| 340 |
+
"<|reserved_028|>",
|
| 341 |
+
"<|reserved_029|>",
|
| 342 |
+
"<|reserved_030|>",
|
| 343 |
+
"<|reserved_031|>",
|
| 344 |
+
"<|reserved_032|>",
|
| 345 |
+
"<|reserved_033|>",
|
| 346 |
+
"<|reserved_034|>",
|
| 347 |
+
"<|reserved_035|>",
|
| 348 |
+
"<|reserved_036|>",
|
| 349 |
+
"<|reserved_037|>",
|
| 350 |
+
"<|reserved_038|>",
|
| 351 |
+
"<|reserved_039|>",
|
| 352 |
+
"<|reserved_040|>",
|
| 353 |
+
"<|reserved_041|>",
|
| 354 |
+
"<|reserved_042|>",
|
| 355 |
+
"<|reserved_043|>",
|
| 356 |
+
"<|reserved_044|>",
|
| 357 |
+
"<|reserved_045|>",
|
| 358 |
+
"<|reserved_046|>",
|
| 359 |
+
"<|reserved_047|>",
|
| 360 |
+
"<|reserved_048|>",
|
| 361 |
+
"<|reserved_049|>",
|
| 362 |
+
"<|reserved_050|>",
|
| 363 |
+
"<dna>",
|
| 364 |
+
"</dna>"
|
| 365 |
+
],
|
| 366 |
+
"raw_encoding": "bypass-all-added-token-matchers-v1",
|
| 367 |
+
"fingerprint": "f3b8d81cae428b64b45bf907b426397d7119ce9fa859d42b58655712ef989336"
|
| 368 |
+
},
|
| 369 |
+
"dna_config": {
|
| 370 |
+
"version": "b64-dna6-v3",
|
| 371 |
+
"base_vocabulary_size": 65536,
|
| 372 |
+
"vocab_size": 69650,
|
| 373 |
+
"k": 6,
|
| 374 |
+
"canonical_alphabet": "ACGT",
|
| 375 |
+
"fallback_alphabet": "ACGTURYSWKMBDHVN",
|
| 376 |
+
"begin_id": 65536,
|
| 377 |
+
"end_id": 65537,
|
| 378 |
+
"kmer_id_start": 65538,
|
| 379 |
+
"kmer_count": 4096,
|
| 380 |
+
"base_id_start": 69634,
|
| 381 |
+
"base_count": 16,
|
| 382 |
+
"canonical_order": "itertools.product(ACGT, repeat=6), lexicographic",
|
| 383 |
+
"raw_text_default": true,
|
| 384 |
+
"auto_detection": false,
|
| 385 |
+
"normalization": "identity",
|
| 386 |
+
"fallback": "Each noncanonical six-character block/short tail is encoded character by character; uppercase IUPAC gets DNA symbols; other characters use unchanged raw BPE",
|
| 387 |
+
"offsets": "Unicode character offsets and IUPAC-base offsets; gaps/layout have zero bp width",
|
| 388 |
+
"decoder": "Native Tokenizers Replace-per-piece then unchanged ByteLevel; no remote/custom decoder",
|
| 389 |
+
"encoding_entrypoint": "tiny_llm.dna.DNACodec",
|
| 390 |
+
"chat": "Same text chat template; DNACodec.encode enables tagged DNA/spans and preserves assistant masks",
|
| 391 |
+
"reserve": "Original 51 reserved IDs remain unchanged and unconsumed",
|
| 392 |
+
"FNS": "Not implemented; offsets and DNA ID ranges exposed for future training integration",
|
| 393 |
+
"future_model_scope": "New vocabulary requires matching embedding/head rows; does not migrate old weights"
|
| 394 |
+
},
|
| 395 |
+
"training_ce_backend": "fla",
|
| 396 |
+
"packed_attention_backend": "fa4",
|
| 397 |
+
"model_type": "kroha_routed_norm",
|
| 398 |
+
"output_attentions": false
|
| 399 |
+
},
|
| 400 |
+
"expert_execution": {
|
| 401 |
+
"runtime": "sonic",
|
| 402 |
+
"activation": "native-compiled-swiglu-bf16-boundaries",
|
| 403 |
+
"revision": "7396f3e604827d8186c2e16e64b28ee33d3defd0",
|
| 404 |
+
"sources": {
|
| 405 |
+
"sonicmoe/__init__.py": "3f3f19d7cc6a743e4553e1e86137f320f310c3e0753d627d23463f95bc85260d",
|
| 406 |
+
"sonicmoe/enums.py": "2ad1f833809a16ffc6bac4a366bd3bace7cef52c7955cd8054e450b0f04c342d",
|
| 407 |
+
"sonicmoe/functional/__init__.py": "af41a42d8fe5722615a4a1f2ce4157c992ef1fff4aaadc7fc9adec9097800a35",
|
| 408 |
+
"sonicmoe/functional/backward.py": "da559f5d342d01bb7f0c3602804d135ccbf273028085795a1f0e1d7e274c2e64",
|
| 409 |
+
"sonicmoe/functional/forward.py": "ab81bd844e862a200cb89beebac021f73b6347906fe970b95a31456a17d7459a",
|
| 410 |
+
"sonicmoe/functional/reduction_over_k_gather.py": "7c16136876c74d7a65ee2d9db49d489cd221d0f229c5f13ee889af3e835c39a5",
|
| 411 |
+
"sonicmoe/functional/topk.py": "c3fcc7e28466a60dd164890ea259bc438a6d4171ec6fa6bdd35f63537fed0fba",
|
| 412 |
+
"sonicmoe/functional/triton_kernels/__init__.py": "d84e207b63f5b44692e7ddec7b23ecdcaa55f9c104da10200d83b42cf47d9501",
|
| 413 |
+
"sonicmoe/functional/triton_kernels/bitmatrix.py": "909f9522bd3b9f47b8f3e5d01d28106cb9e671180567dd4cdcd214c4d3788702",
|
| 414 |
+
"sonicmoe/jit.py": "a64a3b2e4b6d91a6fed180d49176c000ddc8ff232f4e7c3b7768c913ace697e8",
|
| 415 |
+
"sonicmoe/moe.py": "2433ad3f03619dafdeda8a36a294b38ab738e44e859b83505065e1297bc1493d",
|
| 416 |
+
"sonicmoe/utils.py": "9a081b4a94981502094f262071c9e0badfd278ad80a897d25cbd7f08c67c5723"
|
| 417 |
+
},
|
| 418 |
+
"quack_patch_sha256": "d800420389640b22322f185ab778df74e9b0ab429dd6c8ff9a393c9176b29e80",
|
| 419 |
+
"packages": {
|
| 420 |
+
"torch": "2.11.0+cu128",
|
| 421 |
+
"transformers": "5.17.0",
|
| 422 |
+
"triton": "3.6.0",
|
| 423 |
+
"quack-kernels": "0.6.5",
|
| 424 |
+
"nvidia-cutlass-dsl": "4.8.0",
|
| 425 |
+
"sonic-moe": "0.1.2.post1"
|
| 426 |
+
}
|
| 427 |
+
}
|
| 428 |
+
}
|
training/pretrain-metrics.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training/telemetry-audit.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|