RocoreMatrix commited on
Commit ·
a512fa8
0
Parent(s):
Release YANchor-4B
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .dockerignoreAdded+5
- .gitattributesAdded+12
- .gitignoreAdded+4
- CITATION.cffAdded+13
- DockerfileAdded+9
- LICENSEAdded+333
- LICENSE-CODEAdded+203
- NOTICEAdded+686
- README.mdAdded+372
- README.pdfAdded+3
- USAGE.mdAdded+137
- assets/architecture.pngAdded
- assets/capability-comparison.pngAdded
- assets/gpu-memory.pngAdded
- assets/inference-efficiency.pngAdded
- assets/inference-overview.pngAdded
- config.jsonAdded+102
- data/MANIFEST.jsonAdded+3
- data/code_tests/00603386e33146708372369b0529edc249360cc628a616bf5585c33937166e03.jsonAdded+3
- data/code_tests/008e5fd815fb45d4823097504b5d078c9b15eba546c49225b6e89f2251f33473.jsonAdded+3
- data/code_tests/009bb73fc41415009d9fdf2a2b2210e958eb878338902731104736ece6d0c9b0.jsonAdded+3
- data/code_tests/00a2bb02643c951c0b177fff6fef17933e0a82223f055996a8f8f4214e046892.jsonAdded+3
- data/code_tests/00b8f2fdf1fbd1d01c27daf50e1a0b0329c0ebdf20ea0721a8a7fb1ec2b07953.jsonAdded+3
- data/code_tests/0175a63483d6f94f13ad4a9dcbc364d27e494cf4421f2c76e3a5b96c312965ad.jsonAdded+3
- data/code_tests/0182dca3e8cd4ad434516786aaccb4aba48964e7a0d42ae2e89cb27aa31ee8d6.jsonAdded+3
- data/code_tests/01fd91449478485cfac0b5372172e4575c34c089fba421e9749dec61f8f2bdb1.jsonAdded+3
- data/code_tests/02141810795aab0ec079efd12dab0579c39695cbd7598c93ead45180f7f5d2ad.jsonAdded+3
- data/code_tests/023998ba5a1bc02b63305e16857a12bf24eca81e9c98adcc1aa9eed586cda294.jsonAdded+3
- data/code_tests/0258177156a9969969739bb1fd01f8fa55490e292db9888db4517cc9ea742f7e.jsonAdded+3
- data/code_tests/026916bfa9ab8dbe602a934f51c63ac5cbf3ec2bd5a9f59d5374ee7631cdcf4f.jsonAdded+3
- data/code_tests/02ce7c0cc0e8129f960d61faaca43e14d0790aea04f585823538f44685b2b1c2.jsonAdded+3
- data/code_tests/0358720d4a0e4ecc710b8f8c75662a5cb6203e96bc84249f305b9a1b3967a23e.jsonAdded+3
- data/code_tests/03ebec5b377d1b7ee7705619de2ac11c71a53f6987056ad59dcec65fdaad61eb.jsonAdded+3
- data/code_tests/046d0423ce1a80e23dc37780e481bf1e31110b6bbdf67154fd9773206390a25d.jsonAdded+3
- data/code_tests/04a7b6395694f4d803803812a75276bb20036871d6745a29f7a2d921e5a305a9.jsonAdded+3
- data/code_tests/04ad14d9946a767eeb8811d45d809a17e09469aecd4ab9bed8f5fefda8f39cc0.jsonAdded+3
- data/code_tests/04ad2618a7fe10a34a25a9d4a15d08f7762d7c8f0e9358c3be8bf9819d4cbb22.jsonAdded+3
- data/code_tests/04c807407de43d847106aed325a1d42d4cdc0f0be1937f08eec383d1bddc03a6.jsonAdded+3
- data/code_tests/051fbe417401b9ed6639559e30e684b3471af0402db6ec5233119d69b695002c.jsonAdded+3
- data/code_tests/05719de5fdeb5e1298ce54c02dcb7394c98423b70396383eaa835fa9bad909be.jsonAdded+3
- data/code_tests/05a48f450ff615887acb1a5a2b6495ed7c91cf1ba3b0ce06d39365e5d19b320d.jsonAdded+3
- data/code_tests/05bb86cdaeeaa59d7dbf8f2fd28a205517b7011cd3bfaedaf3def3ca88a202d4.jsonAdded+3
- data/code_tests/0670783b46c5906cf84d0501e8a44dc5a1e446dad06a4b2f443d54242cb78054.jsonAdded+3
- data/code_tests/0673c84a150ae556f1a43d32ad8f08fadb2690f7e25f8d1c9fe052bfd977d7d7.jsonAdded+3
- data/code_tests/06850e3019342a618e031af96b5c5586baf0ae0fd2d94df6a56841d546d7b9b8.jsonAdded+3
- data/code_tests/069ad6fa5205f2a06ee82104db4d32628a4282c347c1ce7bf248f38f4067cf90.jsonAdded+3
- data/code_tests/0737b8d92f97f428e0a5de0fa66cf283fc1410a3e63cb61efb9c834f5068d484.jsonAdded+3
- data/code_tests/07915fe7c4d1b930ab31e4807dcaa0b2f5ce124030ce6d365283fc38fce478cd.jsonAdded+3
- data/code_tests/07b8b94068db589a68843ee0336731da4d91d2da138681056ba6009719193922.jsonAdded+3
- data/code_tests/084f2f45e39d211a97f1cf48d0850e19ada716dbb325bfe4e295d45ddbe39225.jsonAdded+3
12345*!Dockerfile!requirements.txt!wheels/!wheels/*.whl123456789101112*.safetensors filter=lfs diff=lfs merge=lfs -text*.whl filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -textdata/** filter=lfs diff=lfs merge=lfs -textdata/MANIFEST.json -filter -diff -merge texttokenizer.json filter=lfs diff=lfs merge=lfs -textREADME.pdf filter=lfs diff=lfs merge=lfs -textassets/architecture.png filter=lfs diff=lfs merge=lfs -textassets/capability-comparison.png filter=lfs diff=lfs merge=lfs -textassets/gpu-memory.png filter=lfs diff=lfs merge=lfs -textassets/inference-efficiency.png filter=lfs diff=lfs merge=lfs -textassets/inference-overview.png filter=lfs diff=lfs merge=lfs -text1234outputs/__pycache__/*.pyc.DS_Store12345678910111213cff-version: 1.2.0message: "Please cite YANchor-4B using the metadata below."title: "YANchor-4B: Effective Long-Horizon Reasoning in O(N) Time with O(1) Memory"authors: - family-names: Ji given-names: Huishan - family-names: Xu given-names: Hua - family-names: Zhang given-names: Weiming - family-names: Ye given-names: Qiruirepository-code: "https://github.com/RocoreMatrix/YANchor"123456789FROM nvcr.io/nvidia/pytorch:26.03-py3WORKDIR /opt/yanchor-runtimeCOPY requirements.txt .COPY wheels/ ./wheels/ARG PIP_INDEX_URL=https://pypi.org/simpleRUN CAUSAL_CONV1D_FORCE_BUILD=TRUE python -m pip install --no-cache-dir --no-build-isolation -r requirements.txt \ && rm -rf wheels requirements.txtWORKDIR /modelENTRYPOINT ["python", "-I", "/model/run.py"]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333YANchor Model License 1.0Mandatory Supplement: Physical Hardwiring of Model Weights
Released model: YANchor-4BLicense version: 1.0, 7 October 2026Licensor: Rocore Matrix (岩芯矩阵)Licensing contact: jihs@stonehill-tech.com
Copyright 2026 Alibaba Cloud.Copyright 2026 the YANchor contributors.
1. Scope and governing terms
This Supplement and the complete Apache License, Version 2.0, reproducedbelow together form the YANchor Model License 1.0. They apply cumulatively,not as alternative licenses. Within the scope of this Supplement, itcontrols in the event of a conflict with the Apache terms.
"Licensor" means Rocore Matrix (岩芯矩阵), acting as the copyright owner orthe entity authorized to grant this License for the covered YANchor material."You" has the meaning given in the Apache terms below.
"Covered Model" means the YANchor-4B trained text-model weights distributedwith this License, including its independent-memory weights, solely to theextent of the YANchor modifications and derivative model as a whole thatthe Licensor is entitled to license on these terms.
"Covered Variants" means versions made by incorporating or transformingCovered Model weights, including further-trained, fine-tuned, merged,quantized, pruned, compressed, decomposed, reordered or format-convertedweights, to the extent they contain or represent the covered weights.Splitting weights across files, devices or components does not change thisscope. A model independently trained without incorporating covered weightsis not a Covered Variant merely because it uses the same architecture orwas trained on outputs of the Covered Model.
This Supplement does not alter the licenses of original Qwen3.5-4Bmaterials, separately licensed code or third-party materials. Unmodifiedupstream visual-frontend weights, tokenizer and processor assets, andupstream portions of configuration files retain their original licenses.It does not revoke rights already validly granted. Sharing a repository,package, interface or runtime with the Covered Model does not itself bringa component within this Supplement.
2. Open permissions
Subject to this License, You may access, use, copy, study, modify, furthertrain, fine-tune, distill, quantize, deploy, host, sublicense and redistributethe Covered Model and Covered Variants on a no-charge, royalty-free basis.These permissions include commercial use, paid APIs, SaaS, private oroffline deployment, and charging for permitted services or copies.Ordinary permitted uses require no separate commercial authorization,registration, revenue threshold or user-count threshold.
You may use model outputs, generate synthetic data and train other modelson those outputs. This License does not automatically apply to ordinaryoutputs or to models trained solely on them. It does not require disclosureof Your application code, training data, training procedures or businessprocesses. Attribution, notices and the other applicable Apache obligationsremain in force.
3. Sole additional restriction: physical hardwiring of weights
Without separate written authorization from the Licensor, You may notphysically hardwire Covered Model or Covered Variant weights, in whole orin a functional weight block, into a chip's non-reprogrammable physicalstructure, or commission fabrication that does so.
"Physical hardwiring" means permanently encoding covered weight values orequivalent representations of them in weight-specific circuit topology,interconnects, mask-programmed ROM or fixed physical coefficients used formodel computation. Changing those encoded values requires refabricationor alteration of the chip's physical structure, rather than writing modeldata or reconfiguring programmable hardware.
A functional weight block is a set of weights that implements a modeloperation or submodule. Generic mathematical constants, architecturedimensions and operator settings alone are outside this restriction.Quantizing, encoding, decomposing, reordering or splitting covered weightsdoes not exempt those weights if they remain physically hardwired asdefined above. Adding an updateable component does not change the statusof weights that remain physically hardwired.
4. Permitted hardware uses
Storing, loading, compiling, mapping and executing weights as model dataremain permitted, including on CPUs, GPUs, NPUs, programmable ASICs,reconfigurable FPGAs, memory and rewritable compute-in-memory devices.Preinstalling weights in a device, selling devices, and ordinary firmwareor storage distribution are permitted.
Read-only storage, non-volatility, write protection, offline operation,a dedicated product purpose or a decision not to update a model does notby itself constitute physical hardwiring. The names ROM, OTP, fuse orantifuse do not alone determine whether the restriction applies; onlyphysical encoding of covered weights as defined in Section 3 does so.Software, access-control or product-policy limits on updates are notphysical hardwiring. Calibration constants, security keys and deviceidentifiers that do not encode covered model weights are outside it.
Hardware design, compilation, simulation and supplying design files donot themselves constitute physical hardwiring. This Supplement adds noindependent restriction on those activities or on distributing hardware.The physical-hardwiring act described in Section 3 remains restricted.Separately licensed software, independently trained models, architectureideas and generic operators remain outside this restriction. There areno other additional field-of-use restrictions or royalties.
5. Redistribution
When redistributing the Covered Model or Covered Variants, include thiscomplete License and retain applicable attribution and notices. TheSupplement remains part of the license for covered YANchor material andmust not be omitted or represented as an Apache-only grant. No separaterecipient registration or signed agreement is required by this License.
These requirements do not relicense upstream materials, unrelatedsoftware, ordinary outputs or independently trained models, and do notrequire publication of proprietary applications, data or processes.
6. Interpretation
The English text is authoritative; translations are explanatory. TheApache definitions, attribution requirements, patent provisions, warrantydisclaimer and liability limitations apply subject to the scope andmandatory restriction above. Nothing in this License limits rights thatcannot be restricted under applicable law.
Apache License, Version 2.0General terms incorporated into YANchor Model License 1.0
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright 2026 Alibaba Cloud Copyright 2026 the YANchor contributors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686YANchor-4BCopyright 2026 the YANchor contributors.YANchor model licensor: Rocore Matrix (岩芯矩阵).
Based on Qwen3.5-4B, Copyright 2026 Alibaba Cloud, Apache License 2.0.https://huggingface.co/Qwen/Qwen3.5-4B
The YANchor text model modifies the Qwen3.5-4B attention and memoryarchitecture and includes further-trained model weights.
Licensing scope for this Hugging Face bundle:- LICENSE: YANchor Model License 1.0 for covered YANchor text-model weights and covered weight-derived variants.- LICENSE-CODE: Apache License 2.0 for YANchor inference and evaluation code.- Original Qwen visual-frontend weights, tokenizer and processor assets, and unmodified upstream configuration material retain Apache License 2.0.- Independently licensed software, dependencies and evaluation material retain their own terms.
The model restriction is stated in LICENSE, not created by this NOTICE.Upstream rights and rights already validly granted remain unchanged.
The included Transformers wheel is built from the unmodified public commitf53ca05d02d24372c3de27e2c59d5cf857050efb, under Apache License 2.0.https://github.com/huggingface/transformers/commit/f53ca05d02d24372c3de27e2c59d5cf857050efbIts original license and notices are included in the wheel.
Required third-party metric implementations retain their own licenses.Benchmark questions, images, references and executable tests remain subjectto their original authors' and distributors' terms; they are not relicensedunder either the model license or the code license.
The DROP metric is adapted from AllenAI allennlp-models (Apache-2.0):https://github.com/allenai/allennlp-models/tree/b1f372248c17ad12684d344955fbcd98e957e77eOfficial BBEH, IFEval and IFBench code retains its Apache-2.0 notices.LiveCodeBench retains its MIT license beside the execution backend.
Required NLTK English tokenization and tagging resources are included for theinstruction-following metrics. Punkt contributors: Jan Strunk and Tibor Kiss;see Kiss and Strunk (2006), Computational Linguistics 32, 485-525. The Englishstop-word list comes from Snowball/PostgreSQL with NLTK corrections. Resourceattribution: https://github.com/nltk/nltk_data
NLTK averaged_perceptron_tagger_eng (MIT):https://github.com/sloria/textblob-aptaggerCopyright 2013 Matthew Honnibal
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.
Evaluation-data notices
GPQA-Diamond: Copyright (c) 2022 I. David Rein. MIT License.https://github.com/idavidrein/gpqaThe MIT permission and warranty text above also applies to the GPQA material.
HumanEval: Copyright (c) OpenAI (https://openai.com). MIT License.https://github.com/openai/human-evalGSM8K: Copyright (c) 2021 OpenAI. MIT License.https://github.com/openai/grade-school-mathThe MIT permission and warranty text above also applies to these materials.
ChartQA: Ahmed Masry, Xuan Long Do, Jia Qing Tan, Shafiq Joty and Enamul Hoque.https://github.com/vis-nlp/ChartQAhttps://huggingface.co/datasets/HuggingFaceM4/ChartQAChartQA data retains GNU GPL version 3, reproduced below. Included questionsare repackaged for evaluation; images retain their original content. Promptformatting and documented reference errata were applied in October 2026.The corresponding editable questions, references and image files are providedin data/vision/questions and data/vision/media.zip. ChartQA is an independentbenchmark component; its license does not relicense YANchor model weights orindependent inference code. Original image owners retain their rights.
GNU GPL version 3 (ChartQA data only)
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license forsoftware and other kinds of works. The licenses for most software and other practical works are designedto take away your freedom to share and change the works. By contrast,the GNU General Public License is intended to guarantee your freedom toshare and change all versions of a program--to make sure it remains freesoftware for all its users. We, the Free Software Foundation, use theGNU General Public License for most of our software; it applies also toany other work released this way by its authors. You can apply it toyour programs, too. When we speak of free software, we are referring to freedom, notprice. Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthem if you wish), that you receive source code or can get it if youwant it, that you can change the software or use pieces of it in newfree programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying youthese rights or asking you to surrender the rights. Therefore, you havecertain responsibilities if you distribute copies of the software, or ifyou modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whethergratis or for a fee, you must pass on to the recipients the samefreedoms that you received. You must make sure that they, too, receiveor can get the source code. And you must show them these terms so theyknow their rights.
Developers that use the GNU GPL protect your rights with two steps:(1) assert copyright on the software, and (2) offer you this Licensegiving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explainsthat there is no warranty for this free software. For both users' andauthors' sake, the GPL requires that modified versions be marked aschanged, so that their problems will not be attributed erroneously toauthors of previous versions. Some devices are designed to deny users access to install or runmodified versions of the software inside them, although the manufacturercan do so. This is fundamentally incompatible with the aim ofprotecting users' freedom to change the software. The systematicpattern of such abuse occurs in the area of products for individuals touse, which is precisely where it is most unacceptable. Therefore, wehave designed this version of the GPL to prohibit the practice for thoseproducts. If such problems arise substantially in other domains, westand ready to extend this provision to those domains in future versionsof the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents.States should not allow patents to restrict development and use ofsoftware on general-purpose computers, but in those that do, we wish toavoid the special danger that patents applied to a free program couldmake it effectively proprietary. To prevent this, the GPL assures thatpatents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution andmodification follow. TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds ofworks, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under thisLicense. Each licensee is addressed as "you". "Licensees" and"recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the workin a fashion requiring copyright permission, other than the making of anexact copy. The resulting work is called a "modified version" of theearlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work basedon the Program. To "propagate" a work means to do anything with it that, withoutpermission, would make you directly or secondarily liable forinfringement under applicable copyright law, except executing it on acomputer or modifying a private copy. Propagation includes copying,distribution (with or without modification), making available to thepublic, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables otherparties to make or receive copies. Mere interaction with a user througha computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices"to the extent that it includes a convenient and prominently visiblefeature that (1) displays an appropriate copyright notice, and (2)tells the user that there is no warranty for the work (except to theextent that warranties are provided), that licensees may convey thework under this License, and how to view a copy of this License. Ifthe interface presents a list of user commands or options, such as amenu, a prominent item in the list meets this criterion. 1. Source Code.
The "source code" for a work means the preferred form of the workfor making modifications to it. "Object code" means any non-sourceform of a work.
A "Standard Interface" means an interface that either is an officialstandard defined by a recognized standards body, or, in the case ofinterfaces specified for a particular programming language, one thatis widely used among developers working in that language. The "System Libraries" of an executable work include anything, otherthan the work as a whole, that (a) is included in the normal form ofpackaging a Major Component, but which is not part of that MajorComponent, and (b) serves only to enable use of the work with thatMajor Component, or to implement a Standard Interface for which animplementation is available to the public in source code form. A"Major Component", in this context, means a major essential component(kernel, window system, and so on) of the specific operating system(if any) on which the executable work runs, or a compiler used toproduce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means allthe source code needed to generate, install, and (for an executablework) run the object code and to modify the work, including scripts tocontrol those activities. However, it does not include the work'sSystem Libraries, or general-purpose tools or generally available freeprograms which are used unmodified in performing those activities butwhich are not part of the work. For example, Corresponding Sourceincludes interface definition files associated with source files forthe work, and the source code for shared libraries and dynamicallylinked subprograms that the work is specifically designed to require,such as by intimate data communication or control flow between thosesubprograms and other parts of the work. The Corresponding Source need not include anything that userscan regenerate automatically from other parts of the CorrespondingSource.
The Corresponding Source for a work in source code form is thatsame work.
2. Basic Permissions. All rights granted under this License are granted for the term ofcopyright on the Program, and are irrevocable provided the statedconditions are met. This License explicitly affirms your unlimitedpermission to run the unmodified Program. The output from running acovered work is covered by this License only if the output, given itscontent, constitutes a covered work. This License acknowledges yourrights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do notconvey, without conditions so long as your license otherwise remainsin force. You may convey covered works to others for the sole purposeof having them make modifications exclusively for you, or provide youwith facilities for running those works, provided that you comply withthe terms of this License in conveying all material for which you donot control copyright. Those thus making or running the covered worksfor you must do so exclusively on your behalf, under your directionand control, on terms that prohibit them from making any copies ofyour copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely underthe conditions stated below. Sublicensing is not allowed; section 10makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technologicalmeasure under any applicable law fulfilling obligations under article11 of the WIPO copyright treaty adopted on 20 December 1996, orsimilar laws prohibiting or restricting circumvention of suchmeasures. When you convey a covered work, you waive any legal power to forbidcircumvention of technological measures to the extent such circumventionis effected by exercising rights under this License with respect tothe covered work, and you disclaim any intention to limit operation ormodification of the work as a means of enforcing, against the work'susers, your or third parties' legal rights to forbid circumvention oftechnological measures.
4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as youreceive it, in any medium, provided that you conspicuously andappropriately publish on each copy an appropriate copyright notice;keep intact all notices stating that this License and anynon-permissive terms added in accord with section 7 apply to the code;keep intact all notices of the absence of any warranty; and give allrecipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications toproduce it from the Program, in the form of source code under theterms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independentworks, which are not by their nature extensions of the covered work,and which are not combined with it such as to form a larger program,in or on a volume of a storage or distribution medium, is called an"aggregate" if the compilation and its resulting copyright are notused to limit the access or legal rights of the compilation's usersbeyond what the individual works permit. Inclusion of a covered workin an aggregate does not cause this License to apply to the otherparts of the aggregate. 6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the termsof sections 4 and 5, provided that you also convey themachine-readable Corresponding Source under the terms of this License,in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excludedfrom the Corresponding Source as a System Library, need not beincluded in conveying the object code work. A "User Product" is either (1) a "consumer product", which means anytangible personal property which is normally used for personal, family,or household purposes, or (2) anything designed or sold for incorporationinto a dwelling. In determining whether a product is a consumer product,doubtful cases shall be resolved in favor of coverage. For a particularproduct received by a particular user, "normally used" refers to atypical or common use of that class of product, regardless of the statusof the particular user or of the way in which the particular useractually uses, or expects or is expected to use, the product. A productis a consumer product regardless of whether the product has substantialcommercial, industrial or non-consumer uses, unless such uses representthe only significant mode of use of the product. "Installation Information" for a User Product means any methods,procedures, authorization keys, or other information required to installand execute modified versions of a covered work in that User Product froma modified version of its Corresponding Source. The information mustsuffice to ensure that the continued functioning of the modified objectcode is in no case prevented or interfered with solely becausemodification has been made. If you convey an object code work under this section in, or with, orspecifically for use in, a User Product, and the conveying occurs aspart of a transaction in which the right of possession and use of theUser Product is transferred to the recipient in perpetuity or for afixed term (regardless of how the transaction is characterized), theCorresponding Source conveyed under this section must be accompaniedby the Installation Information. But this requirement does not applyif neither you nor any third party retains the ability to installmodified object code on the User Product (for example, the work hasbeen installed in ROM). The requirement to provide Installation Information does not include arequirement to continue to provide support service, warranty, or updatesfor a work that has been modified or installed by the recipient, or forthe User Product in which it has been modified or installed. Access to anetwork may be denied when the modification itself materially andadversely affects the operation of the network or violates the rules andprotocols for communication across the network. Corresponding Source conveyed, and Installation Information provided,in accord with this section must be in a format that is publiclydocumented (and with an implementation available to the public insource code form), and must require no special password or key forunpacking, reading or copying.
7. Additional Terms. "Additional permissions" are terms that supplement the terms of thisLicense by making exceptions from one or more of its conditions.Additional permissions that are applicable to the entire Program shallbe treated as though they were included in this License, to the extentthat they are valid under applicable law. If additional permissionsapply only to part of the Program, that part may be used separatelyunder those permissions, but the entire Program remains governed bythis License without regard to the additional permissions. When you convey a copy of a covered work, you may at your optionremove any additional permissions from that copy, or from any part ofit. (Additional permissions may be written to require their ownremoval in certain cases when you modify the work.) You may placeadditional permissions on material, added by you to a covered work,for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material youadd to a covered work, you may (if authorized by the copyright holders ofthat material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "furtherrestrictions" within the meaning of section 10. If the Program as youreceived it, or any part of it, contains a notice stating that it isgoverned by this License along with a term that is a furtherrestriction, you may remove that term. If a license document containsa further restriction but permits relicensing or conveying under thisLicense, you may add to a covered work material governed by the termsof that license document, provided that the further restriction doesnot survive such relicensing or conveying. If you add terms to a covered work in accord with this section, youmust place, in the relevant source files, a statement of theadditional terms that apply to those files, or a notice indicatingwhere to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in theform of a separately written license, or stated as exceptions;the above requirements apply either way.
8. Termination. You may not propagate or modify a covered work except as expresslyprovided under this License. Any attempt otherwise to propagate ormodify it is void, and will automatically terminate your rights underthis License (including any patent licenses granted under the thirdparagraph of section 11). However, if you cease all violation of this License, then yourlicense from a particular copyright holder is reinstated (a)provisionally, unless and until the copyright holder explicitly andfinally terminates your license, and (b) permanently, if the copyrightholder fails to notify you of the violation by some reasonable meansprior to 60 days after the cessation. Moreover, your license from a particular copyright holder isreinstated permanently if the copyright holder notifies you of theviolation by some reasonable means, this is the first time you havereceived notice of violation of this License (for any work) from thatcopyright holder, and you cure the violation prior to 30 days afteryour receipt of the notice. Termination of your rights under this section does not terminate thelicenses of parties who have received copies or rights from you underthis License. If your rights have been terminated and not permanentlyreinstated, you do not qualify to receive new licenses for the samematerial under section 10.
9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive orrun a copy of the Program. Ancillary propagation of a covered workoccurring solely as a consequence of using peer-to-peer transmissionto receive a copy likewise does not require acceptance. However,nothing other than this License grants you permission to propagate ormodify any covered work. These actions infringe copyright if you donot accept this License. Therefore, by modifying or propagating acovered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automaticallyreceives a license from the original licensors, to run, modify andpropagate that work, subject to this License. You are not responsiblefor enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of anorganization, or substantially all assets of one, or subdividing anorganization, or merging organizations. If propagation of a coveredwork results from an entity transaction, each party to thattransaction who receives a copy of the work also receives whateverlicenses to the work the party's predecessor in interest had or couldgive under the previous paragraph, plus a right to possession of theCorresponding Source of the work from the predecessor in interest, ifthe predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of therights granted or affirmed under this License. For example, you maynot impose a license fee, royalty, or other charge for exercise ofrights granted under this License, and you may not initiate litigation(including a cross-claim or counterclaim in a lawsuit) alleging thatany patent claim is infringed by making, using, selling, offering forsale, or importing the Program or any portion of it.
11. Patents. A "contributor" is a copyright holder who authorizes use under thisLicense of the Program or a work on which the Program is based. Thework thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claimsowned or controlled by the contributor, whether already acquired orhereafter acquired, that would be infringed by some manner, permittedby this License, of making, using, or selling its contributor version,but do not include claims that would be infringed only as aconsequence of further modification of the contributor version. Forpurposes of this definition, "control" includes the right to grantpatent sublicenses in a manner consistent with the requirements ofthis License. Each contributor grants you a non-exclusive, worldwide, royalty-freepatent license under the contributor's essential patent claims, tomake, use, sell, offer for sale, import and otherwise run, modify andpropagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any expressagreement or commitment, however denominated, not to enforce a patent(such as an express permission to practice a patent or covenant not tosue for patent infringement). To "grant" such a patent license to aparty means to make such an agreement or commitment not to enforce apatent against the party. If you convey a covered work, knowingly relying on a patent license,and the Corresponding Source of the work is not available for anyoneto copy, free of charge and under the terms of this License, through apublicly available network server or other readily accessible means,then you must either (1) cause the Corresponding Source to be soavailable, or (2) arrange to deprive yourself of the benefit of thepatent license for this particular work, or (3) arrange, in a mannerconsistent with the requirements of this License, to extend the patentlicense to downstream recipients. "Knowingly relying" means you haveactual knowledge that, but for the patent license, your conveying thecovered work in a country, or your recipient's use of the covered workin a country, would infringe one or more identifiable patents in thatcountry that you have reason to believe are valid. If, pursuant to or in connection with a single transaction orarrangement, you convey, or propagate by procuring conveyance of, acovered work, and grant a patent license to some of the partiesreceiving the covered work authorizing them to use, propagate, modifyor convey a specific copy of the covered work, then the patent licenseyou grant is automatically extended to all recipients of the coveredwork and works based on it. A patent license is "discriminatory" if it does not include withinthe scope of its coverage, prohibits the exercise of, or isconditioned on the non-exercise of one or more of the rights that arespecifically granted under this License. You may not convey a coveredwork if you are a party to an arrangement with a third party that isin the business of distributing software, under which you make paymentto the third party based on the extent of your activity of conveyingthe work, and under which the third party grants, to any of theparties who would receive the covered work from you, a discriminatorypatent license (a) in connection with copies of the covered workconveyed by you (or copies made from those copies), or (b) primarilyfor and in connection with specific products or compilations thatcontain the covered work, unless you entered into that arrangement,or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limitingany implied license or other defenses to infringement that mayotherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement orotherwise) that contradict the conditions of this License, they do notexcuse you from the conditions of this License. If you cannot convey acovered work so as to satisfy simultaneously your obligations under thisLicense and any other pertinent obligations, then as a consequence you maynot convey it at all. For example, if you agree to terms that obligate youto collect a royalty for further conveying from those to whom you conveythe Program, the only way you could satisfy both those terms and thisLicense would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you havepermission to link or combine any covered work with a work licensedunder version 3 of the GNU Affero General Public License into a singlecombined work, and to convey the resulting work. The terms of thisLicense will continue to apply to the part which is the covered work,but the special requirements of the GNU Affero General Public License,section 13, concerning interaction through a network will apply to thecombination as such. 14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions ofthe GNU General Public License from time to time. Such new versions willbe similar in spirit to the present version, but may differ in detail toaddress new problems or concerns. Each version is given a distinguishing version number. If theProgram specifies that a certain numbered version of the GNU GeneralPublic License "or any later version" applies to it, you have theoption of following the terms and conditions either of that numberedversion or of any later version published by the Free SoftwareFoundation. If the Program does not specify a version number of theGNU General Public License, you may choose any version ever publishedby the Free Software Foundation. If the Program specifies that a proxy can decide which futureversions of the GNU General Public License can be used, that proxy'spublic statement of acceptance of a version permanently authorizes youto choose that version for the Program.
Later license versions may give you additional or differentpermissions. However, no additional obligations are imposed on anyauthor or copyright holder as a result of your choosing to follow alater version.
15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BYAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHTHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTYOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAMIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OFALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITINGWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYSTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANYGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THEUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OFDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRDPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OFSUCH DAMAGES. 17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability providedabove cannot be given local legal effect according to their terms,reviewing courts shall apply local law that most closely approximatesan absolute waiver of all civil liability in connection with theProgram, unless a warranty or assumption of liability accompanies acopy of the Program in return for a fee.
END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatestpossible use to the public, the best way to achieve this is to make itfree software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safestto attach them to the start of each source file to most effectivelystate the exclusion of warranty; and each file should have at leastthe "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a shortnotice like this when it starts in an interactive mode: <program> Copyright (C) <year> <name of author> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriateparts of the General Public License. Of course, your program's commandsmight be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school,if any, to sign a "copyright disclaimer" for the program, if necessary.For more information on this, and how to apply and follow the GNU GPL, see<https://www.gnu.org/licenses/>. The GNU General Public License does not permit incorporating your programinto proprietary programs. If your program is a subroutine library, youmay consider it more useful to permit linking proprietary applications withthe library. If this is what you want to do, use the GNU Lesser GeneralPublic License instead of this License. But first, please read<https://www.gnu.org/licenses/why-not-lgpl.html>.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372---license: otherlicense_name: yanchor-model-license-1.0license_link: LICENSElanguage:- en- zhpipeline_tag: text-generationtags:- custom-code- long-context- image-text-to-text- open-weights- commercial-use---
# YANchor-4B
## Effective Long-Horizon Reasoning in O(N) Time with O(1) Memory
Rocore Matrix · October 2026
[Demo, deployment and evaluation](USAGE.md)
YANchor-4B is a general-purpose recurrent model that preserves crucial memory as ANchors for retrieval during subsequent reasoning. Its multidimensional memory mechanism enables effective long-horizon reasoning with O(N) generation time and O(1) history-state memory.
For example, on challenging math problems, YANchor achieves 82.93% mean pass@1 on AIME 2024–2026 and 63.64% on HMMT, substantially outperforming linear-time, constant-state counterparts, including 7B–14B models.
YANchor delivers several-fold higher batched long-generation throughput than Transformer and hybrid baselines on H100. Evaluations across dozens of benchmarks demonstrate its superiority in general-purpose capabilities.

AIME averages 2024–2026; HMMT uses February 2026. Code averages HumanEval, MBPP, and LiveCodeBench v6; science averages GPQA-Diamond, ARC-C, and ARC-E. Benchmarks have equal weight within each aggregate. [Evaluation settings](#evaluation-settings).
**Single-H100 inference: speed, throughput, and memory.**

Throughput uses repeated prompts and 32K outputs. Solid memory curves use measured components; dashed curves project KV growth. [Inference settings](#inference-configurations) · [Memory comparison](#gpu-memory).
## Evaluation
Evaluation covers 27 text benchmarks and six VL benchmarks. YANchor reports mean pass@1 for correctness-based tasks; Evaluation Settings defines the metrics. Bold marks row-best scores, including ties.
### Linear-time, constant-state models
YANchor leads all 16 evaluated linear-time, constant-state baselines on 20 of the 24 common benchmarks. Its 24-benchmark mean is **78.64**, exceeding the strongest baseline, RWKV-7 G1j 13.3B at 56.29, by **22.35 points**. On AIME and HMMT, YANchor scores 82.93 and 63.64, compared with 18.89 and 12.12 for that 13.3B model. The lead spans 7B–14B counterparts and extends to knowledge, code, and instruction following.
| Benchmark | YANchor-4B | ARWKV-R1 7B [[2]](#ref-2) | Falcon3-Mamba 7B Instruct [[4]](#ref-4) | QRWKV7 7B Instruct [[5]](#ref-5) | xLSTM 7B [[6]](#ref-6) | Recurrent Gemma 9B IT [[8]](#ref-8) | RWKV-7 G1j 13.3B [[7]](#ref-7) | AHN-GDN Qwen2.5 14B [[3]](#ref-3) | Phi-3 Medium 4K Instruct W2047 [[9]](#ref-9) || --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: || **Mathematics** | | | | | | | | | || AIME 2024 [[12]](#ref-12) | **86.72** | 0.00 | 1.67 | 0.00 | 0.00 | 0.42 | 17.50 | 13.75 | 3.33 || AIME 2025 [[12]](#ref-12) | **77.45** | 0.00 | 0.83 | 0.00 | 0.00 | 0.42 | 27.92 | 10.00 | 3.33 || AIME 2026 [[12]](#ref-12) | **84.64** | 0.42 | 0.83 | 0.00 | 0.00 | 0.00 | 11.25 | 10.42 | 0.00 || HMMT Feb 2026 [[13]](#ref-13) | **63.64** | 0.76 | 2.27 | 0.00 | 1.52 | 1.89 | 12.12 | 4.92 | 3.03 || MATH-500 [[11]](#ref-11) | **97.49** | 31.00 | 41.20 | 41.00 | 24.80 | 22.60 | 77.00 | 80.00 | 49.00 || GSM8K [[10]](#ref-10) | **94.45** | 44.50 | 60.60 | 65.00 | 41.60 | 51.80 | 94.30 | 93.10 | 84.60 || **Knowledge** | | | | | | | | | || MMLU [[14]](#ref-14) | **87.87** | 36.10 | 61.50 | 66.20 | 23.50 | 56.00 | 76.80 | 77.30 | 75.90 || MMLU-Pro [[15]](#ref-15) | **79.60** | 13.30 | 31.70 | 27.60 | 21.00 | 19.90 | 60.60 | 64.70 | 58.80 || MMLU-Redux [[16]](#ref-16) | **92.00** | 36.69 | 64.26 | 35.32 | 38.99 | 54.82 | 79.66 | 83.33 | 81.45 || CMMLU [[17]](#ref-17) | 72.40 | 29.47 | 35.28 | 57.90 | 19.35 | 40.42 | 66.14 | **75.78** | 53.60 || C-Eval [[18]](#ref-18) | 74.47 | 28.60 | 39.00 | 57.20 | 19.20 | 40.70 | 66.60 | **76.40** | 50.90 || **Science** | | | | | | | | | || GPQA-Diamond [[19]](#ref-19) | **64.61** | 13.64 | 24.24 | 10.61 | 12.63 | 25.25 | 42.42 | 40.91 | 29.80 || SuperGPQA [[20]](#ref-20) | **61.69** | 9.90 | 12.30 | 16.90 | 5.90 | 19.30 | 35.50 | 36.30 | 25.30 || ARC-C [[23]](#ref-23) | **95.50** | 50.30 | 76.70 | 86.00 | 27.10 | 73.20 | 91.60 | 90.90 | 90.20 || ARC-E [[23]](#ref-23) | **98.02** | 58.10 | 86.90 | 96.00 | 29.00 | 87.40 | 96.60 | 95.10 | 95.50 || **Commonsense and reasoning** | | | | | | | | | || WinoGrande [[21]](#ref-21) | 77.90 | 36.50 | 59.90 | 61.80 | 25.80 | 56.40 | 72.50 | 77.20 | **80.60** || HellaSwag [[22]](#ref-22) | 64.57 | 12.70 | 41.00 | 45.20 | 9.20 | 44.90 | **76.40** | 70.00 | 76.10 || BBH [[24]](#ref-24) | **85.88** | 12.00 | 31.50 | 37.39 | 10.90 | 35.30 | 48.89 | 53.57 | 51.87 || BBEH [[25]](#ref-25) | **29.07** | 2.11 | 3.51 | 1.91 | 3.32 | 2.41 | 7.64 | 4.50 | 2.61 || DROP F1 [[31]](#ref-31) | **77.22** | 10.38 | 19.87 | 21.02 | 30.71 | 38.25 | 54.38 | 65.32 | 50.30 || MuSR [[32]](#ref-32) | **60.42** | 10.96 | 23.34 | 1.84 | 10.92 | 35.04 | 51.35 | 56.13 | 50.55 || LogiQA2 [[33]](#ref-33) | **72.23** | 21.10 | 40.20 | 26.10 | 18.00 | 40.40 | 66.70 | 70.70 | 61.50 || **Code** | | | | | | | | | || HumanEval [[26]](#ref-26) | **96.72** | 16.46 | 34.15 | 61.59 | 36.59 | 37.20 | 85.98 | 75.61 | 73.78 || MBPP [[27]](#ref-27) | **87.81** | 21.20 | 39.20 | 30.20 | 9.20 | 19.00 | 67.40 | 68.60 | 59.40 || LiveCodeBench v6 [[28]](#ref-28) | **61.63** | 2.60 | 9.50 | 12.70 | 2.30 | 8.20 | 31.00 | 33.30 | 19.60 || **Instruction following** | | | | | | | | | || IFEval [[29]](#ref-29) | **88.03** | 10.35 | 64.70 | 58.78 | 35.49 | 39.56 | 77.82 | 77.26 | 61.55 || IFBench [[30]](#ref-30) | **65.29** | 8.33 | 18.67 | 21.33 | 14.67 | 12.67 | 27.33 | 33.33 | 22.00 |
## Model
| Model | Text parameters | Model license ||---|---:|---|| YANchor-4B | 4.58B | [YANchor Model License 1.0](LICENSE) |
### Architecture

Long-horizon reasoning needs access to crucial information after it leaves the local context. YANchor preserves this information as persistent memory anchors, making distant context available for retrieval during subsequent reasoning.
YANchor retains the recurrent layers of Qwen3.5-4B and combines local attention with independent grouped-query memory at its former global-attention positions.
Recurrence summarizes history, local attention accesses recent detail, and independent memory stores individually addressable records. New records compete for space through Top-K selection; retained records preserve their written representations for later queries. These fixed-capacity paths generate N tokens in O(N) time using O(1) history-state memory. The technical report describes the memory mechanism.
### Inputs and context
YANchor accepts text and image-text inputs and generates text. Image tokens precede the accompanying text and enter the same language backbone.
## Inference efficiency
Fixed-capacity history supports sustained decoding and larger active batches. All comparisons use one H100 80GB.
**Single-sequence speed.** YANchor sustains 212.98 cumulative decode tokens/s at 128K input + 128K output; Qwen3.5-4B, Gemma 4 E4B, and MiniCPM5-2B reach 153.91, 133.75, and 164.53 tokens/s, respectively. YANchor's curve remains nearly flat as generation extends.
**Batched throughput.** YANchor delivers 5.66–6.58 times the throughput of Gemma, MiniCPM, and Qwen at 32K input + 32K output. It reaches 12,431 end-to-end tokens/s, compared with 2,196, 2,117, and 1,889, respectively.

### Inference configurations
Tests use synthetic token inputs and fixed-length generation with EOS ignored; tokenizer and text-decoding costs are excluded. Batch tests use repeated prompts with independent continuation states. Batch candidates are 32–512 for YANchor, 64/128 for Gemma, and 32/64 for Qwen and MiniCPM; the comparison reports each model's highest measured throughput. Tensor-parallel size is one. Pure decode is timed after first-token delivery; end-to-end throughput covers the complete generation call, including prefill, queueing, scheduling, and cache-preemption recomputation. Loading and warmup are outside both intervals. Here 1K is 1,024 tokens.
YANchor uses CUDA Graphs and fused kernels, with INT8 MLP / FP32 recurrent state at B1 and BF16 MLP / FP16 recurrent state in batch tests. Qwen uses BF16, FlashAttention-4, FlashInfer GDN prefill, and fused CUDA GDN decode. Gemma uses BF16 and full-layer FlashAttention-4; MiniCPM uses BF16 and FlashAttention-3. All three baselines enable vLLM O3, CUDA Graphs, chunked prefill, and asynchronous scheduling.
Gemma and MiniCPM extend runtime and position-table capacity to 256K for the B1 speed measurement, keeping weights and RoPE frequencies unchanged. Deployment references: [Gemma/vLLM](https://docs.vllm.ai/projects/recipes/en/stable/Google/Gemma4.html), [MiniCPM5](https://huggingface.co/openbmb/MiniCPM5-2B#quickstart).
## GPU memory
YANchor keeps 512 independent long-context sequences resident on one H100 80GB. Its history cache stays fixed at 48.90 GiB as context grows from 512 to 65,536 tokens per sequence. Peak memory demand remains near 67 GiB; the 1 GiB increase comes from input buffers.

Each sequence retains an independent history. Solid curves reconstruct peak demand from measured occupied cache, workspace, and runtime overhead, excluding unused preallocated cache. Dashed curves project full-batch demand from the last successful point. The device has 79.65 GiB of memory.
Cache preemption begins at 4K context for Qwen and MiniCPM, and at 8K for Gemma. Their projected demands at 64K are 1,061, 1,352, and 541 GiB, respectively. YANchor's fixed history storage enables the longer contexts and larger active batches that drive its throughput.
## Long-memory capability
YANchor retrieves and uses distant information with 94.14% query accuracy over 16K–130,000-token contexts. The tasks cover exact retrieval, state updates, cross-document combination, and variable binding.
| Memory path | Query accuracy | All four answers correct ||---|---:|---:|| Enabled | 94.14% | 80.08% || Disabled | 0.39% | 0.00% |
Disabling memory reduces query accuracy to 0.39%. Paired evidence-change tests further show that YANchor uses distant content to update its answers. The technical report gives the task breakdown and experimental settings.
## Transformer and global-attention hybrid references
These models provide cross-architecture references with context-dependent history storage. Qwen3.5-4B combines Gated DeltaNet with global attention and serves as the backbone reference for YANchor’s conversion to bounded-state inference.
YANchor surpasses MiniCPM4.1-8B, Gemma4-E4B, Phi-4-mini-reasoning, and Nemotron-3-Nano-4B on all three AIME editions while using constant history-state memory. Compared with Qwen3.5-4B, YANchor scores higher on MMLU, MMLU-Pro, MMLU-Redux, SuperGPQA, HumanEval, MBPP, and IFBench. Across the 24 common benchmarks, YANchor and Qwen score 78.64 and 80.44, respectively. YANchor retains 96.31% of Qwen’s three-year AIME mean while using 43–47% fewer output tokens, and delivers 4.12–6.58 times its measured end-to-end throughput in batched long generation.
| Benchmark | YANchor-4B | Qwen3.5-4B Backbone [[1]](#ref-1) | Granite4.2 3B [[41]](#ref-41) | Phi-4-mini-reasoning [[42]](#ref-42) | Gemma4 E4B-it [[40]](#ref-40) | Nemotron-3 Nano-4B [[43]](#ref-43) | MiniCPM4.1 8B [[39]](#ref-39) || --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: || **Mathematics** | | | | | | | || AIME 2024 [[12]](#ref-12) | 86.72 | **89.58** | 85.00 | 44.58 | 41.25 | 60.83 | 77.08 || AIME 2025 [[12]](#ref-12) | 77.45 | **80.83** | 78.75 | 30.83 | 39.58 | 56.67 | 70.00 || AIME 2026 [[12]](#ref-12) | 84.64 | **87.92** | 82.92 | 35.00 | 38.33 | 53.75 | 70.83 || HMMT Feb 2026 [[13]](#ref-13) | 63.64 | **65.91** | 58.71 | 26.14 | 28.03 | 36.36 | 50.00 || MATH-500 [[11]](#ref-11) | 97.49 | **98.00** | 97.80 | 91.40 | 87.40 | 94.80 | 96.40 || GSM8K [[10]](#ref-10) | 94.45 | **94.50** | 93.50 | 92.40 | 90.30 | 91.80 | 93.30 || **Knowledge** | | | | | | | || MMLU [[14]](#ref-14) | **87.87** | 85.60 | 77.30 | 78.10 | 75.20 | 77.30 | 82.20 || MMLU-Pro [[15]](#ref-15) | **79.60** | 75.90 | 65.80 | 53.20 | 68.60 | 56.40 | 65.90 || MMLU-Redux [[16]](#ref-16) | **92.00** | 89.31 | 80.92 | 79.77 | 85.95 | 80.82 | 86.79 || CMMLU [[17]](#ref-17) | 72.40 | **82.26** | 58.29 | 44.34 | 61.84 | 53.94 | 80.12 || C-Eval [[18]](#ref-18) | 74.47 | **85.10** | 61.80 | 42.70 | 64.90 | 55.70 | 78.80 || **Science** | | | | | | | || GPQA-Diamond [[19]](#ref-19) | 64.61 | **77.78** | 58.59 | 47.98 | 40.91 | 43.43 | 50.51 || SuperGPQA [[20]](#ref-20) | **61.69** | 51.40 | 39.60 | 34.70 | 42.50 | 37.50 | 41.90 || ARC-C [[23]](#ref-23) | 95.50 | **96.90** | 92.80 | 91.40 | 92.10 | 91.60 | 92.70 || ARC-E [[23]](#ref-23) | 98.02 | **99.00** | 97.30 | 95.70 | 96.60 | 96.10 | 96.50 || **Commonsense and reasoning** | | | | | | | || WinoGrande [[21]](#ref-21) | 77.90 | **87.00** | 74.60 | 75.90 | 76.40 | 65.30 | 72.70 || HellaSwag [[22]](#ref-22) | 64.57 | **80.10** | 67.70 | 62.60 | 52.20 | 46.70 | 46.50 || BBH [[24]](#ref-24) | 85.88 | 85.81 | 86.22 | 74.92 | 85.10 | 80.00 | **88.10** || BBEH [[25]](#ref-25) | 29.07 | **34.31** | 25.10 | 12.26 | 16.60 | 9.22 | 12.79 || DROP F1 [[31]](#ref-31) | 77.22 | 75.41 | **83.35** | 54.05 | 72.58 | 71.95 | 78.60 || MuSR [[32]](#ref-32) | 60.42 | 64.78 | **65.07** | 52.45 | 62.18 | 58.24 | 64.49 || LogiQA2 [[33]](#ref-33) | 72.23 | **81.30** | 68.70 | 57.60 | 73.50 | 67.30 | 76.80 || **Code** | | | | | | | || HumanEval [[26]](#ref-26) | 96.72 | 85.98 | 96.95 | 81.71 | 93.90 | 90.85 | **98.17** || MBPP [[27]](#ref-27) | 87.81 | 70.80 | **92.60** | 64.00 | 79.20 | 72.20 | 92.20 || LiveCodeBench v6 [[28]](#ref-28) | 61.63 | 76.20 | **76.30** | 35.80 | 69.50 | 67.10 | 70.80 || **Instruction following** | | | | | | | || IFEval [[29]](#ref-29) | 88.03 | 90.02 | **92.42** | 46.03 | 84.29 | 89.28 | 73.75 || IFBench [[30]](#ref-30) | 65.29 | 60.33 | **74.33** | 14.67 | 34.67 | 57.67 | 23.67 |
## VL comparison
YANchor supports bilingual VL question answering, object-presence judgments, visual perception, chart understanding, and scientific-diagram reasoning.
| Benchmark | YANchor-4B | Qwen3.5-4B [[1]](#ref-1) || --- | ---: | ---: || **Vision-language** | | || MMBench EN [[34]](#ref-34) | 88.28 | **90.08** || MMBench CN [[34]](#ref-34) | 89.00 | **91.43** || POPE [[35]](#ref-35) | 85.43 | **88.76** || MME [[36]](#ref-36) | 82.98 | **86.82** || ChartQA [[37]](#ref-37) | 83.92 | **90.28** || AI2D [[38]](#ref-38) | 80.05 | **86.98** |
VL scores are answer-level accuracy in percent.
## Evaluation Settings
**YANchor mean pass@1.** For text evaluation, YANchor sets the number of independent responses per item, K, by evaluation-set size: K=64 for fewer than 100 questions, K=16 for 100–10,000 questions, and K=1 for more than 10,000 questions. More repetitions on smaller sets reduce variation from stochastic generation. Binary-correctness scores average across responses and then across problems, estimating single-response success. Other metrics retain their benchmark-specific definitions.
**Scoring.** Mathematics uses final-answer correctness. YANchor's code scores count extracted programs that pass the task tests, including code recovered from the end of reasoning. Knowledge and instruction-following tasks use their benchmark-specific aggregation and checkers.
### Generation settings
YANchor's text evaluation uses temperature 0.6, top-p 0.95, top-k 20, and a 131,072-token response budget. Completions beyond this budget receive zero outcome credit. VL evaluation uses one response per input with thinking enabled, temperature 1.0, top-p 0.95, top-k 20, presence penalty 1.5, and a 32,768-token response cap.
## License
YANchor-4B weights use [YANchor Model License 1.0](LICENSE), a custom license incorporating Apache License 2.0 terms. The sole additional restriction is physically hardwiring covered weights into a chip's non-reprogrammable structure, including commissioning such fabrication, without written authorization. Research, training, fine-tuning, distillation, quantization, deployment, redistribution and commercial use are permitted without fees or scale thresholds. Ordinary device deployment, model-data storage and hardware design remain permitted; read-only storage alone does not trigger the restriction. Code uses [Apache-2.0](LICENSE-CODE). Upstream and third-party materials retain their original licenses; see [NOTICE](NOTICE).
## Citation
```bibtex@misc{yanchor2026, title = {{YANchor-4B}: Effective Long-Horizon Reasoning in {O(N)} Time with {O(1)} Memory}, author = {Ji, Huishan and Xu, Hua and Zhang, Weiming and Ye, Qirui}, year = {2026}, url = {https://github.com/RocoreMatrix/YANchor}}```
Citation metadata is available in [CITATION.cff](CITATION.cff).
### Contacts
Huishan Ji · [jihs@stonehill-tech.com](mailto:jihs@stonehill-tech.com)
Hua Xu · [xuh@stonehill-tech.com](mailto:xuh@stonehill-tech.com)
Weiming Zhang · [zhangwm@stonehill-tech.com](mailto:zhangwm@stonehill-tech.com)
Qirui Ye · [qiruiy@andrew.cmu.edu](mailto:qiruiy@andrew.cmu.edu)
## Acknowledgments
YANchor builds on [Qwen3.5](https://github.com/QwenLM/Qwen3.5) and [Gated DeltaNet](https://arxiv.org/abs/2412.06464). We thank the teams behind the comparison models and evaluation benchmarks.
## References
<a id="ref-1"></a>[1] Qwen Team. Qwen3.5-4B. Model card. <https://huggingface.co/Qwen/Qwen3.5-4B>, 2026.
<a id="ref-2"></a>[2] RWKV Red Team. ARWKV-R1-7B. Model release. <https://huggingface.co/RWKV-Red-Team/ARWKV-R1-7B>, 2025.
<a id="ref-3"></a>[3] Y. Fang et al. Artificial Hippocampus Networks for Efficient Long-Context Modeling. <https://arxiv.org/abs/2510.07318>, 2025.
<a id="ref-4"></a>[4] Technology Innovation Institute. Falcon3-Mamba-7B-Instruct. <https://huggingface.co/tiiuae/Falcon3-Mamba-7B-Instruct>, 2024.
<a id="ref-5"></a>[5] D. Goldstein, E. Alcaide, J. Lu, and E. Cheah. RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale. <https://arxiv.org/abs/2505.03005>, 2025.
<a id="ref-6"></a>[6] M. Beck et al. xLSTM 7B: A Recurrent LLM for Fast and Efficient Inference. <https://arxiv.org/abs/2503.13427>, 2025.
<a id="ref-7"></a>[7] RWKV Project. RWKV-7 G1 model releases. <https://huggingface.co/BlinkDL/rwkv7-g1>, 2026.
<a id="ref-8"></a>[8] A. Botev et al. RecurrentGemma: Moving Past Transformers for Efficient Open Language Models. <https://arxiv.org/abs/2404.07839>, 2024.
<a id="ref-9"></a>[9] Microsoft. Phi-3 Medium 4K Instruct. Released model configuration. <https://huggingface.co/microsoft/Phi-3-medium-4k-instruct/blob/main/config.json>, 2024.
<a id="ref-10"></a>[10] K. Cobbe et al. Training Verifiers to Solve Math Word Problems. <https://arxiv.org/abs/2110.14168>, 2021.
<a id="ref-11"></a>[11] H. Lightman et al. Let's Verify Step by Step. <https://arxiv.org/abs/2305.20050>, 2023.
<a id="ref-12"></a>[12] Mathematical Association of America. American Invitational Mathematics Examination. <https://maa.org/maa-invitational-competitions/>.
<a id="ref-13"></a>[13] Harvard-MIT Mathematics Tournament. Past Tournaments. <https://www.hmmt.org/www/archive/results>.
<a id="ref-14"></a>[14] D. Hendrycks et al. Measuring Massive Multitask Language Understanding. <https://arxiv.org/abs/2009.03300>, 2020.
<a id="ref-15"></a>[15] Y. Wang et al. MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark. <https://arxiv.org/abs/2406.01574>, 2024.
<a id="ref-16"></a>[16] A. P. Gema et al. Are We Done with MMLU? <https://arxiv.org/abs/2406.04127>, 2024.
<a id="ref-17"></a>[17] H. Li et al. CMMLU: Measuring Massive Multitask Language Understanding in Chinese. <https://arxiv.org/abs/2306.09212>, 2023.
<a id="ref-18"></a>[18] Y. Huang et al. C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Models. <https://arxiv.org/abs/2305.08322>, 2023.
<a id="ref-19"></a>[19] D. Rein et al. GPQA: A Graduate-Level Google-Proof Q&A Benchmark. <https://arxiv.org/abs/2311.12022>, 2023.
<a id="ref-20"></a>[20] M-A-P Team et al. SuperGPQA: Scaling LLM Evaluation across 285 Graduate Disciplines. <https://arxiv.org/abs/2502.14739>, 2025.
<a id="ref-21"></a>[21] K. Sakaguchi et al. WinoGrande: An Adversarial Winograd Schema Challenge at Scale. <https://arxiv.org/abs/1907.10641>, 2019.
<a id="ref-22"></a>[22] R. Zellers et al. HellaSwag: Can a Machine Really Finish Your Sentence? <https://arxiv.org/abs/1905.07830>, 2019.
<a id="ref-23"></a>[23] P. Clark et al. Think You Have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge. <https://arxiv.org/abs/1803.05457>, 2018.
<a id="ref-24"></a>[24] M. Suzgun et al. Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them. <https://arxiv.org/abs/2210.09261>, 2022.
<a id="ref-25"></a>[25] M. Kazemi et al. BIG-Bench Extra Hard. <https://arxiv.org/abs/2502.19187>, 2025.
<a id="ref-26"></a>[26] M. Chen et al. Evaluating Large Language Models Trained on Code. <https://arxiv.org/abs/2107.03374>, 2021.
<a id="ref-27"></a>[27] J. Austin et al. Program Synthesis with Large Language Models. <https://arxiv.org/abs/2108.07732>, 2021.
<a id="ref-28"></a>[28] N. Jain et al. LiveCodeBench. Benchmark repository, release v6. <https://github.com/LiveCodeBench/LiveCodeBench>, 2025.
<a id="ref-29"></a>[29] J. Zhou et al. Instruction-Following Evaluation for Large Language Models. <https://arxiv.org/abs/2311.07911>, 2023.
<a id="ref-30"></a>[30] V. Pyatkin et al. Generalizing Verifiable Instruction Following. <https://arxiv.org/abs/2507.02833>, 2025.
<a id="ref-31"></a>[31] D. Dua et al. DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphs. <https://arxiv.org/abs/1903.00161>, 2019.
<a id="ref-32"></a>[32] Z. Sprague et al. MuSR: Testing the Limits of Chain-of-Thought with Multistep Soft Reasoning. <https://arxiv.org/abs/2310.16049>, 2023.
<a id="ref-33"></a>[33] H. Liu et al. LogiQA 2.0: An Improved Dataset for Logical Reasoning in Natural Language Understanding. <https://github.com/csitfun/LogiQA2.0>, 2023.
<a id="ref-34"></a>[34] Y. Liu et al. MMBench: Is Your Multi-modal Model an All-around Player? <https://arxiv.org/abs/2307.06281>, 2023.
<a id="ref-35"></a>[35] Y. Li et al. Evaluating Object Hallucination in Large Vision-Language Models. <https://arxiv.org/abs/2305.10355>, 2023.
<a id="ref-36"></a>[36] C. Fu et al. MME: A Comprehensive Evaluation Benchmark for Multimodal Large Language Models. <https://arxiv.org/abs/2306.13394>, 2023.
<a id="ref-37"></a>[37] A. Masry et al. ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoning. <https://arxiv.org/abs/2203.10244>, 2022.
<a id="ref-38"></a>[38] A. Kembhavi et al. A Diagram Is Worth a Dozen Images. <https://arxiv.org/abs/1603.07396>, 2016.
<a id="ref-39"></a>[39] OpenBMB. MiniCPM4.1-8B. Model card. <https://huggingface.co/openbmb/MiniCPM4.1-8B>, 2025.
<a id="ref-40"></a>[40] Google. Gemma 4 E4B. Model card. <https://huggingface.co/google/gemma-4-E4B-it>, 2026.
<a id="ref-41"></a>[41] IBM. Granite 4.2 3B. Model card. <https://huggingface.co/ibm-granite/granite-4.2-3b>, 2026.
<a id="ref-42"></a>[42] Microsoft. Phi-4-mini-reasoning. Model card. <https://huggingface.co/microsoft/Phi-4-mini-reasoning>, 2025.
<a id="ref-43"></a>[43] NVIDIA. Nemotron 3 Nano 4B. Model card. <https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16>, 2026.123version https://git-lfs.github.com/spec/v1oid sha256:00e67ae5a69da937f94e054093cd40a9734aec358b3f0d6aa22f51fa6ccf4b0dsize 2941338123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137# Running and evaluating YANchor-4B
[Model overview and results](README.md)
This Hugging Face bundle contains the root model weights and tokenizer, the inference runtime, and the frozen evaluation inputs with their scorers. Run all commands from the bundle root; `--model` defaults to that directory. The custom runtime in this repository is the inference entrypoint.
```textYANchor-4B/├── README.md, USAGE.md, CITATION.cff├── assets/ # Figures used by README.md├── LICENSE, LICENSE-CODE, NOTICE├── run.py, requirements.txt, Dockerfile├── wheels/ # Pinned public Transformers dependency├── config.json, generation_config.json, tokenizer*.json├── model.safetensors.index.json├── model-00001-of-00003.safetensors├── model-00002-of-00003.safetensors├── model-00003-of-00003.safetensors├── runtime/ # Model, GPU operators, generation and scoring├── vision/ # Visual frontend weights and processor└── data/ # MANIFEST.json, text, vision, memory and code tests```
Use `run.py` to load the custom architecture. Loading these weights with the stock Qwen `AutoModelForCausalLM` class does not install the YANchor memory modules.
## Environment
Use an NVIDIA H100 80 GB, Linux, and the supplied NVIDIA PyTorch container. The base image supplies Python, PyTorch, CUDA and FlashAttention; `requirements.txt` pins the remaining runtime dependencies. The required public Transformers revision is included as a wheel, so installation does not clone GitHub. CUDA extensions build against the container's existing PyTorch. Build on a host with internet access, then transfer the image to the GPU host if needed.
```bashdocker build -t yanchor-runtime .docker run --rm --gpus all --ipc=host -v "$PWD:/model" yanchor-runtime demo```
If PyPI downloads are slow, select a mirror with `docker build --build-arg PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple -t yanchor-runtime .`. The build context excludes weights and evaluation data.
Inside that image, the equivalent command is `python -I run.py demo`. For the examples below, replace `python -I run.py` with the Docker invocation when running from the host. The B1 service loads the model and prewarms its short-input decode path before reporting READY. New input shapes can still trigger compilation on first use. Standalone commands start a fresh process and include cold-start overhead. Output directories must be writable. For Docker HTTP access on Linux, add `--network host` to the Docker invocation.
## Demo and batch inference
```bashpython -I run.py demo --prompt 'Compute 17 × 23.'python -I run.py serve --batch 1 --port 8000```
The HTTP service accepts POST requests with a `messages` array or a `prompts` array and returns the completed response. B1 demo and service requests check completion every 16 decode steps to limit computation after EOS:
```bashcurl http://127.0.0.1:8000/ -H 'Content-Type: application/json' \ -d '{"messages":[{"role":"user","content":"Compute 17 × 23."}],"max_new_tokens":4096}'```
All supported deployment sizes use the same entrypoint:
| Batch | Launch option | MLP compute | GDN state ||---:|---|---|---|| 1 | `--batch 1 --profile fast` | INT8 GEMV | FP32 || 32 | `--batch 32 --profile fast` | BF16 | FP16 || 64 | `--batch 64 --profile fast` | BF16 | FP16 || 128 | `--batch 128 --profile fast` | BF16 | FP16 || 256 | `--batch 256 --profile fast` | BF16 | FP16 || 320 | `--batch 320 --profile fast` | BF16 | FP16 || 512 | `--batch 512 --profile fast` | BF16 | FP16 |
`--batch` is the per-GPU slot capacity. Short input lists use only the required slots. Supply a list of prompts to the service, or a JSONL file containing one `{"prompt":"..."}` object per line:
```bashpython -I run.py generate --batch 320 --input prompts.jsonl --output outputs/generated```
The `fast` profile uses CUDA Graphs, packed projections, fused normalization and gates, bounded prefill, fixed-capacity GQA memory and physical sliding-window caches. B1 additionally uses the INT8 MLP GEMV path; B32–B512 use BF16 MLPs and FP16 GDN state. Model weights on disk remain BF16. `--profile reference` disables the B1 INT8 MLP and keeps FP32 GDN state and reproducible sliding-window arithmetic. These arithmetic profiles can yield different individual sampled answers.
Prefill, pure decode and model loading are reported separately. To measure all seven fixed-work batch sizes, invoke the same benchmark command with each batch value. Independent commands may run on separate GPUs:
```bashCUDA_VISIBLE_DEVICES=0 python -I run.py benchmark --batch 1 --prefill 4096 --max-new-tokens 4096 --output outputs/b1.jsonCUDA_VISIBLE_DEVICES=1 python -I run.py benchmark --batch 320 --prefill 4096 --max-new-tokens 4096 --output outputs/b320.json```
The benchmark warms up first, disables EOS and mechanical-loop stopping for fixed work, and measures pure decode independently of prefill. Use identical input/output lengths for comparisons: graph setup and completion polling remain in the decode denominator and have a larger effect on short outputs. Cold-start demo timings do not measure warmed sustained decode throughput. B1 uses K1; larger batches use K8 prompt sharing by default. `--k 1` selects unique prompts. Benchmark token sequences are synthetic; they are not capability questions.
## Evaluation
A small execution sample runs one question from each text source on one H100, including generation and scoring:
```bashpython -I run.py evaluate --suite text --gpus 0 --batch 32 --limit-per-source 1 --k 1 --max-new-tokens 4096 --output outputs/text-sample```
This short run tests installation and execution; its reduced K and output budget do not reproduce the published scores. Use the full commands below for the released evaluation protocol:
```bashpython -I run.py evaluate --suite text --gpus 0,1,2,3,4,5,6,7 --batch 320 --output outputs/textpython -I run.py evaluate --suite vision --gpus 0,1,2,3,4,5,6,7 --output outputs/visionpython -I run.py evaluate --suite memory --gpus 0,1,2,3,4,5,6,7 --output outputs/memorypython -I run.py status --output outputs/text```
Use a fresh output directory for each evaluation. The CPU broker distributes attempts among GPU replicas; completed slots are refilled while other answers continue. Workers write response fragments, exit, and then CPU scoring starts. `--generate-only` stops after generation. Existing fragments can be scored with `python -I run.py score --output outputs/text`, without GPUs.
`data/MANIFEST.json` lists the supplied source sizes. The text panel contains 38,409 frozen evaluation questions across 29 sources and expands to 623,328 responses. These are the exact selected panels used for the released results, including 2,000-question panels where listed; they are not all necessarily the full upstream benchmark. The report presents 27 sources; the two HMMT 2025 panels remain available as additional evaluations. Auto-K uses the complete bundled source size: fewer than 100 questions → K64; 100–10,000 → K16; above 10,000 → K1. `--sources AIME2024 DROP` selects sources. `--limit-per-source 1` selects a small execution sample without changing auto-K; `--k 1` explicitly overrides it.
Text generation uses temperature 0.6, top-k 20, top-p 0.95, no presence penalty, seed 20260923 and a 131,072-token output cap. The frozen `prompt_text` is the model input; references and executable tests are consumed only by CPU scorers. Every sampled trajectory contributes to the accuracy denominator. The published 128K cutoff gives no credit to trajectories longer than 131,072 tokens. Fixed seeds and large K support statistical reproduction; arithmetic order and batch shapes can change individual trajectories.
The visual panel contains 26,668 inputs from seven sources. The report presents six of them; OCRBench is included as an additional evaluation. It uses K1, reference arithmetic, B128, temperature 1, top-k 20, top-p 0.95, presence penalty 1.5, seed 20260912 and a 32,768-token cap. One damaged AI2D item is excluded by the supplied reference correction, leaving 26,667 scored responses. Image processing uses the included visual frontend and a 65,536–4,194,304 pixel range.
Visual media are stored losslessly in `data/vision/media.zip` and read directly by the evaluator; extraction is not required.
The memory panel contains only the four tasks in Section 9 of the technical report: exact retrieval, state-update interpretation, cross-document combination and variable binding. Each task has 64 contexts, for 256 contexts and 1,024 queries in total. Contexts form original/counterfactual pairs and span approximately 16K–130K tokens. Evaluation uses greedy K1, reference arithmetic, B1, seed 2026091707 and a 1,024-token output cap. Results include query accuracy, all-four-correct accuracy, the four task breakdowns, and both-correct accuracy for paired queries whose answers should change or remain stable.
### Scoring
All 29 text sources use the v41 answer-verification implementation in `runtime/evaluation/` and `runtime/scoring/`. Final-answer extraction is independent of the reference answer; it recognizes explicit terminal choices and equivalent numeric forms while retaining ambiguity checks. Each benchmark keeps its scoring metric and full questions × K denominator. `RESULTS.json` records `cpu_verifier_revision`.
| Sources | Rule ||---|---|| AIME, HMMT, GSM8K, MATH500 | Reference-independent answer extraction; numeric, structured and symbolic equivalence, with math-verify where needed. || ARC, C-Eval, CMMLU, GPQA, HellaSwag, MMLU family, SuperGPQA, WinoGrande | Typed option extraction and comparison against the supplied option layout. Competing commitments do not receive credit. || BBH, BBEH | Task-specific deterministic comparison; the official BBEH comparison is included. || HumanEval, MBPP | Execute the submitted Python program against the supplied tests. || LiveCodeBenchV6 | Official execution backend with the supplied public and hidden tests. || IFEval, IFBench | Official strict instruction checks. Whole-prompt success requires every instruction; per-instruction outcomes are retained. || DROP | Official span normalization, numeric matching and optimal alignment. F1 is primary; exact match is also reported. || MuSR | Option accuracy, macro-averaged over the three task subsets. || LogiQA2 | Option accuracy over the supplied English panel. |
For original text sources, the primary metric is `official_primary_mean_pass_at_1`; for the three extensions it is `score`. Source-specific macro averages and the corrected MMLU-Redux view are preserved. Mean accuracy averages the K sampled answers, with all question × K attempts in the denominator; observed pass@K is reported separately.
The final-answer region is preferred. A clearly committed terminal answer in reasoning can retain semantic correctness while failing the strict output contract. Extraction never chooses a candidate because it matches the reference. Unresolved answers receive no success credit and retain diagnostic verdicts. Visual metrics include source accuracy, MMBench circular accuracy, MME category totals and POPE precision/recall/F1, without an external model judge.
Text responses stop at EOS, the token budget or an exact mechanical loop with a period of 128–256 tokens repeated eight times. Bounded suffix checks share completion-check intervals. Visual and memory runs retain their respective stopping rules.
### Outputs and monitoring
`STATUS.json` records expected, claimed and completed attempts. During generation, `total_decode_tokens_per_second` sums recent pure-decode rates across active ranks. `rank-*-metrics.json` separates initial prefill, refill prefill, pure decode, useful output tokens and peak GPU memory. Pure-decode rates exclude prefill and the first token of each response.
`GENERATION_COMPLETE.json` records persisted generation counts. `RESULTS.json` contains scores, denominators and sampling settings after scoring. A partial run is marked `INCOMPLETE`. Text diagnostics include protocol pass rate, answer visibility, EOS and cap-hit rates, mechanical loops, length distributions and correct answers per million output tokens.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102{ "architectures": [ "Qwen3_5FixedMemoryForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "attn_output_gate": true, "bos_token_id": null, "dtype": "bfloat16", "eos_token_id": 248044, "fixed_memory_parent": "original_qwen3_5_text", "fixed_memory_revision": "qwen35-text-original-gdn-swa-independent-gqa-memory-v1", "fixed_memory_swa_layers": [ 3, 7, 11, 15, 19, 23, 27, 31 ], "fixed_memory_swa_window": 1024, "full_attention_interval": 4, "head_dim": 256, "hidden_act": "silu", "hidden_size": 2560, "independent_memory": { "admission_rank": 256, "capacity": 1024, "max_commit_chunk": 256, "writer_intermediate_size": 2560 }, "initializer_range": 0.02, "intermediate_size": 9216, "layer_types": [ "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention" ], "linear_conv_kernel_dim": 4, "linear_key_head_dim": 128, "linear_num_key_heads": 16, "linear_num_value_heads": 32, "linear_value_head_dim": 128, "mamba_ssm_dtype": "float32", "max_position_embeddings": 262144, "mlp_only_layers": [], "model_type": "qwen3_5_text", "mtp_num_hidden_layers": 1, "mtp_use_dedicated_embeddings": false, "num_attention_heads": 16, "num_hidden_layers": 32, "num_key_value_heads": 4, "pad_token_id": null, "partial_rotary_factor": 0.25, "rms_norm_eps": 1e-06, "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 11, 11, 10 ], "partial_rotary_factor": 0.25, "rope_theta": 10000000, "rope_type": "default" }, "tie_word_embeddings": true, "transformers_version": "5.7.0.dev0", "use_cache": false, "vocab_size": 248320}123version https://git-lfs.github.com/spec/v1oid sha256:fc953daa1d3ce004c93042ca1a3706132e424d01d726d47f72e04c7418894774size 2012123version https://git-lfs.github.com/spec/v1oid sha256:5a16c6ab450d295246a732a5377531812e31a361b6818df5e9911c43b75d8189size 3584805123version https://git-lfs.github.com/spec/v1oid sha256:e55742413489d2ec6b524820ee3394be276f232e850d66a3a361c9624e0cee15size 2965325123version https://git-lfs.github.com/spec/v1oid sha256:d315956e84562b5450e03bb7e7bb7ecff3fe1d05eb29e86c26691b96372e3af6size 240342123version https://git-lfs.github.com/spec/v1oid sha256:8241cf590b78b6c403d51a93ca570afdbc2aca4cfa7b7bffb2491ccdfa2de7a8size 2168493123version https://git-lfs.github.com/spec/v1oid sha256:f20aff32af2486d88e6f0751588a7f4497d9d27f15d10c64801f781be2ec1accsize 48515123version https://git-lfs.github.com/spec/v1oid sha256:013a19b1763f83a5f47a401873d30ed462748bec5060299965a9a94fbf599193size 308180123version https://git-lfs.github.com/spec/v1oid sha256:75f6d79a273e8159f260872f1750226cd7efb5e3202adb7a6ae027edc92a9e76size 12023123version https://git-lfs.github.com/spec/v1oid sha256:e05df53e5a980c9b17dec55c5bf39e38cdf773aed04cf73b385b84998eb192c8size 1753123version https://git-lfs.github.com/spec/v1oid sha256:b3689c0fb966e25b2cbcdaf122979296297a1f50541fe9be4e382542b13635c6size 28730123version https://git-lfs.github.com/spec/v1oid sha256:370a203d15169a8755bd15044b8c7a373753e749b11488e2f10dbe5e484cc9d6size 10031123version https://git-lfs.github.com/spec/v1oid sha256:1e3b6457b04c4fa5a004eded9df3a475e7d21bcec6ad9a673300cc0de8315634size 2545177123version https://git-lfs.github.com/spec/v1oid sha256:71113478c41fae8dadfce8d85a56fe7dac3d1bb042bb480c224346b61dcefb8esize 98991123version https://git-lfs.github.com/spec/v1oid sha256:4b4f5671266c0e7253dfa996226d06ef833e61b5543ebd59031732a2f1944103size 9538607123version https://git-lfs.github.com/spec/v1oid sha256:d0e3fdccf418689612b5d43967c8a3e9ace1647c2ce5dbc614e7615e2714de31size 16812162123version https://git-lfs.github.com/spec/v1oid sha256:75db174fcbb2bccd3a5db42d9bd7721476402360eccae97b6a15d3a5e6f1a033size 1511123version https://git-lfs.github.com/spec/v1oid sha256:5175d574c0faf96578021b49fda09590ff4244aa9028abace06031b3b88138b9size 1856123version https://git-lfs.github.com/spec/v1oid sha256:bce7cb76f4b893c41dde9c292fcb9061e2ffc77044e49d4a61fa54c135b2ae75size 926036123version https://git-lfs.github.com/spec/v1oid sha256:775aa6985fe0c7ee6b470d6d9d0946497e28f8bf4b9973921b2e219adf86c2a7size 419373123version https://git-lfs.github.com/spec/v1oid sha256:7374d50ac52447c0ae9ab1c11cf4e0469f45112743061e2fd3bb378b67e7155fsize 1094762123version https://git-lfs.github.com/spec/v1oid sha256:fca66b7bf4a5a1f8702e07e7127afd36d06c20c3a376856025158a59c964e082size 8867123version https://git-lfs.github.com/spec/v1oid sha256:2c4490c30db025a71c6e0f7aff79baad97743f6b8e5390231e1907c539327286size 773120123version https://git-lfs.github.com/spec/v1oid sha256:14479ce224ca71750f7eb7f966c180af9406af128e417d0a93f4e789fe582929size 1871123version https://git-lfs.github.com/spec/v1oid sha256:7b164f3b2bc0f8b2aa6edd183389f6e6f34ef8b30f08babb0e5c4641c4ef36f4size 5638123version https://git-lfs.github.com/spec/v1oid sha256:f3fa27585f781f1a50360c45026491695697be41ab577e7ef14933622e2b6afcsize 15150104123version https://git-lfs.github.com/spec/v1oid sha256:9a66e7bc7cc703c87884e1070e33982d177f74289720b2fb4e8b789f94f9a85dsize 1070752123version https://git-lfs.github.com/spec/v1oid sha256:03678a825eb8e51bbbcab3f1796d1e0a916520399a3091f18a599036d93288f6size 11126123version https://git-lfs.github.com/spec/v1oid sha256:f1d9bd44bcf862e19e3c30c4a9c914953f9daa2b8e3799a91bda777db848a29esize 102204123version https://git-lfs.github.com/spec/v1oid sha256:f632d33da32ebb53dc393f838b0685cc4912c75428cfe836d95f365c87d09078size 3303123version https://git-lfs.github.com/spec/v1oid sha256:504bdde534bf67ad32768889c071fe8c430b34319c1b585c9ae32b10e3ebbb54size 162579123version https://git-lfs.github.com/spec/v1oid sha256:b8e7aee1c26c678e0f259d319bcf27fdd8ab399d84059c86198339b3c66d005bsize 2372876123version https://git-lfs.github.com/spec/v1oid sha256:f4333ec196f72d654050bf28d33b1a99e338b9157b6ef70337bb84f4ed8f2610size 32807123version https://git-lfs.github.com/spec/v1oid sha256:0629c0fddeb0dfb4844c3f4ed84688ad6ff9d79ef92b4a5ae369f125cf2b65bfsize 3591.dockerignoreAdded+5
.gitattributesAdded+12
.gitignoreAdded+4
CITATION.cffAdded+13
DockerfileAdded+9
LICENSEAdded+333
LICENSE-CODEAdded+203
NOTICEAdded+686
README.mdAdded+372
README.pdfAdded+3
USAGE.mdAdded+137
assets/architecture.pngAdded

Large File Pointer Details
- SHA256: 6ca223905f950ab63ac3a93ccc5d9fbcc974baca8137dd1ba080bce30b2ed742
- Pointer size: 132 Bytes
- Size of remote file: 1.32 MB
assets/capability-comparison.pngAdded

Large File Pointer Details
- SHA256: 53913f29f76b432db3312d61adf8a40edbc4b75a242adaaa45b2f530046b45d2
- Pointer size: 131 Bytes
- Size of remote file: 301 kB
assets/gpu-memory.pngAdded

Large File Pointer Details
- SHA256: a521858ebb2b4d55604f4615363c9ba04b05c65c72a5a7a4d3617f8883ba5ec9
- Pointer size: 131 Bytes
- Size of remote file: 314 kB
assets/inference-efficiency.pngAdded

Large File Pointer Details
- SHA256: c6725ff22497197e5e23bc95e03f5cd6713f97bc20c86ae558bd5eaa58b20441
- Pointer size: 131 Bytes
- Size of remote file: 259 kB
assets/inference-overview.pngAdded

Large File Pointer Details
- SHA256: 4d8c0c4848e7fe3c1c6c758f16f9de20ace77b7069492bfa9f7b1163627bd166
- Pointer size: 131 Bytes
- Size of remote file: 345 kB
config.jsonAdded+102
data/MANIFEST.jsonAdded+3
data/code_tests/00603386e33146708372369b0529edc249360cc628a616bf5585c33937166e03.jsonAdded+3
data/code_tests/008e5fd815fb45d4823097504b5d078c9b15eba546c49225b6e89f2251f33473.jsonAdded+3
data/code_tests/009bb73fc41415009d9fdf2a2b2210e958eb878338902731104736ece6d0c9b0.jsonAdded+3
data/code_tests/00a2bb02643c951c0b177fff6fef17933e0a82223f055996a8f8f4214e046892.jsonAdded+3
data/code_tests/00b8f2fdf1fbd1d01c27daf50e1a0b0329c0ebdf20ea0721a8a7fb1ec2b07953.jsonAdded+3
data/code_tests/0175a63483d6f94f13ad4a9dcbc364d27e494cf4421f2c76e3a5b96c312965ad.jsonAdded+3
data/code_tests/0182dca3e8cd4ad434516786aaccb4aba48964e7a0d42ae2e89cb27aa31ee8d6.jsonAdded+3
data/code_tests/01fd91449478485cfac0b5372172e4575c34c089fba421e9749dec61f8f2bdb1.jsonAdded+3
data/code_tests/02141810795aab0ec079efd12dab0579c39695cbd7598c93ead45180f7f5d2ad.jsonAdded+3
data/code_tests/023998ba5a1bc02b63305e16857a12bf24eca81e9c98adcc1aa9eed586cda294.jsonAdded+3
data/code_tests/0258177156a9969969739bb1fd01f8fa55490e292db9888db4517cc9ea742f7e.jsonAdded+3
data/code_tests/026916bfa9ab8dbe602a934f51c63ac5cbf3ec2bd5a9f59d5374ee7631cdcf4f.jsonAdded+3
data/code_tests/02ce7c0cc0e8129f960d61faaca43e14d0790aea04f585823538f44685b2b1c2.jsonAdded+3
data/code_tests/0358720d4a0e4ecc710b8f8c75662a5cb6203e96bc84249f305b9a1b3967a23e.jsonAdded+3
data/code_tests/03ebec5b377d1b7ee7705619de2ac11c71a53f6987056ad59dcec65fdaad61eb.jsonAdded+3
data/code_tests/046d0423ce1a80e23dc37780e481bf1e31110b6bbdf67154fd9773206390a25d.jsonAdded+3
data/code_tests/04a7b6395694f4d803803812a75276bb20036871d6745a29f7a2d921e5a305a9.jsonAdded+3
data/code_tests/04ad14d9946a767eeb8811d45d809a17e09469aecd4ab9bed8f5fefda8f39cc0.jsonAdded+3
data/code_tests/04ad2618a7fe10a34a25a9d4a15d08f7762d7c8f0e9358c3be8bf9819d4cbb22.jsonAdded+3
data/code_tests/04c807407de43d847106aed325a1d42d4cdc0f0be1937f08eec383d1bddc03a6.jsonAdded+3
data/code_tests/051fbe417401b9ed6639559e30e684b3471af0402db6ec5233119d69b695002c.jsonAdded+3
data/code_tests/05719de5fdeb5e1298ce54c02dcb7394c98423b70396383eaa835fa9bad909be.jsonAdded+3
data/code_tests/05a48f450ff615887acb1a5a2b6495ed7c91cf1ba3b0ce06d39365e5d19b320d.jsonAdded+3
data/code_tests/05bb86cdaeeaa59d7dbf8f2fd28a205517b7011cd3bfaedaf3def3ca88a202d4.jsonAdded+3
data/code_tests/0670783b46c5906cf84d0501e8a44dc5a1e446dad06a4b2f443d54242cb78054.jsonAdded+3
data/code_tests/0673c84a150ae556f1a43d32ad8f08fadb2690f7e25f8d1c9fe052bfd977d7d7.jsonAdded+3
data/code_tests/06850e3019342a618e031af96b5c5586baf0ae0fd2d94df6a56841d546d7b9b8.jsonAdded+3
data/code_tests/069ad6fa5205f2a06ee82104db4d32628a4282c347c1ce7bf248f38f4067cf90.jsonAdded+3
data/code_tests/0737b8d92f97f428e0a5de0fa66cf283fc1410a3e63cb61efb9c834f5068d484.jsonAdded+3
data/code_tests/07915fe7c4d1b930ab31e4807dcaa0b2f5ce124030ce6d365283fc38fce478cd.jsonAdded+3
data/code_tests/07b8b94068db589a68843ee0336731da4d91d2da138681056ba6009719193922.jsonAdded+3
data/code_tests/084f2f45e39d211a97f1cf48d0850e19ada716dbb325bfe4e295d45ddbe39225.jsonAdded+3