Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- LICENSE.md +54 -0
- NOTICE +20 -0
- README.md +33 -0
- build/center_means.py +111 -0
- build/gptq_int8.py +203 -0
- build/pack.py +71 -0
- build/pack_int8.py +50 -0
- files/anima.bin +3 -0
- files/anima.idx +483 -0
- files/anima_q8.bin +3 -0
- files/anima_q8.cen +3 -0
- files/anima_q8.idx +336 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
files/anima_q8.cen filter=lfs diff=lfs merge=lfs -text
|
LICENSE.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CircleStone Labs Non-Commercial License v1.2
|
| 2 |
+
|
| 3 |
+
CircleStone Labs LLC (“we” or “our” or “Company”) is pleased to make the weights, parameters, and inference code for the CircleStone Models (as defined below) freely available for your non-commercial and non-production use as set forth in this CircleStone Labs Non-Commercial License (“License”). “Models” includes all model elements, such as weights, algorithms, software, checkpoints, parameters, source code (inference code, evaluation code, and if applicable, fine-tuning code) and any other materials associated with the CircleStone AI models made available by Company under this License, including if any, the technical documentation, manuals, and instructions for the use and operation thereof (individually and collectively, the “CircleStone Models”). Note that we may also make available certain elements of what is included in the definition of “CircleStone Model” under a separate license, such as the inference code, and nothing in this License will be deemed to restrict or limit any other licenses granted by us in such elements.
|
| 4 |
+
|
| 5 |
+
By downloading, accessing, using, Distributing (as defined below), or creating a Derivative (as defined below) of the CircleStone Model, you agree to the terms of this License. If you do not agree to this License, then you do not have any rights to access, use, Distribute or create a Derivative of the CircleStone Model and you must immediately cease using the CircleStone Model. If you are agreeing to be bound by the terms of this License on behalf of your employer or other entity, you represent and warrant to us that you have full legal authority to bind your employer or such entity to this License. If you do not have the requisite authority, you may not accept the License or access the CircleStone Model on behalf of your employer or other entity.
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
- a. “Derivative” means any (i) modified version of the CircleStone Model (including but not limited to any customized or fine-tuned version thereof), (ii) work based on the CircleStone Model, including Low-rank Adaptations (“LoRAs”) and textual inversions based on a CircleStone Model, or (iii) any other derivative work thereof. For the avoidance of doubt, Outputs are not considered Derivatives under this License.
|
| 9 |
+
- b. “Distribution” or “Distribute” or “Distributing” means providing or making available, by any means, a copy of the CircleStone Models and/or the Derivatives as the case may be, including by making the CircleStone Models and/or the Derivatives available to third-parties on a hosted basis.
|
| 10 |
+
- c. “Non-Commercial Purpose” means any of the following uses, but only so far as you do not receive any direct or indirect payment arising from the use of the CircleStone Model, or Derivatives: (i) personal use for research, experimentation, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, or otherwise not directly or indirectly connected to any commercial activities, business operations, or employment responsibilities; (ii) internal use by commercial or for-profit entities for testing, evaluation, or non-commercial research and development in a non-production environment; and (iii) use by any charitable organization for charitable purposes, or for testing or evaluation. For clarity, use (a) for revenue-generating activity, (b) in direct interactions with or that has impact on third-party end users, or (c) to train, fine tune, or distill other models for commercial use, in each case, is not a Non-Commercial Purpose.
|
| 11 |
+
- d. “Outputs” means any content generated by the operation of the CircleStone Models or Derivatives from an input (such as an image input) or prompt (i.e., text instructions) provided by users. For the avoidance of doubt, Outputs do not include any components of the CircleStone Models, such as any fine-tuned versions of the CircleStone Models, any LoRAs or textual inversions, the weights, or parameters.
|
| 12 |
+
- e. “you” or “your” means the individual or entity entering into this License with Company.
|
| 13 |
+
|
| 14 |
+
2. License Grant.
|
| 15 |
+
- a. License. Subject to your compliance with this License, Company grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty free, and limited license to access, use, create Derivatives of, and Distribute the CircleStone Models and Derivatives solely for your Non-Commercial Purposes. The foregoing license is personal to you, and you may not assign or sublicense this License or any other rights or obligations under this License without Company’s prior written consent; any such assignment or sublicense will be void and will automatically and immediately terminate this License. Any restrictions set forth herein regarding the CircleStone Model also apply to any Derivative you create or that are created on your behalf.
|
| 16 |
+
- b. Non-Commercial Use Only. You may only access, use, Distribute, or create Derivatives of the CircleStone Model or Derivatives for Non-Commercial Purposes, unless otherwise expressly granted by this License. If you want to use a CircleStone Model or a Derivative for any purpose that is not expressly authorized under this License, such as for a commercial activity, you must request a license from Company, which Company may grant to you in Company’s sole discretion and which additional use may be subject to a fee, royalty or other revenue share. Please refer to the details in the Model Card if you would like a commercial license.
|
| 17 |
+
- c. Selling Derivatives. Persons operating in an individual capacity may sell Derivatives owned or created by them. This includes (i) requiring payment to download model weights, (ii) paid commissions for the creation of Derivatives, whether the resulting model is published publicly or delivered privately to the Commissioner, (iii) collecting donations or payments of any kind for the creation of a Derivative. This right to sell Derivatives extends solely to the model weights, and not to any larger product, tool, or feature which incorporates the Model.
|
| 18 |
+
- d. Reserved Rights. The grant of rights expressly set forth in this License are the complete grant of rights to you in the CircleStone Model, and no other licenses are granted, whether by waiver, estoppel, implication, equity, or otherwise except as otherwise agreed in writing by Company. Company and its licensors reserve all rights not expressly granted by this License.
|
| 19 |
+
- e. Outputs. We claim no ownership rights in and to the Outputs. You are solely responsible for the Outputs you generate and their subsequent uses in accordance with this License. You may use Outputs for any purpose (including for commercial purposes), except as expressly prohibited herein.
|
| 20 |
+
- f. You are solely responsible for your use of all Outputs generated through the Models and/or any Derivatives, including for ensuring that such Outputs are used in a manner that is non-infringing and otherwise compliant with all applicable laws, rules and regulations.
|
| 21 |
+
|
| 22 |
+
3. Distribution. Subject to this License, you may Distribute copies of the CircleStone Model and/or Derivatives made by you, under the following conditions:
|
| 23 |
+
- a. you must make available a copy of this License to third-party recipients of the CircleStone Models and/or Derivatives you Distribute, and specify that any rights to use the CircleStone Models and/or Derivatives shall be directly granted by Company to said third-party recipients pursuant to this License;
|
| 24 |
+
- b. you must prominently display the following notice alongside the Distribution of the CircleStone Model or Derivative (such as via a “Notice” text file distributed as part of such CircleStone Model or Derivative) (the “Attribution Notice”):
|
| 25 |
+
|
| 26 |
+
“The CircleStone Model is licensed by CircleStone Labs LLC under the CircleStone Non-Commercial License. Copyright CircleStone Labs LLC.
|
| 27 |
+
IN NO EVENT SHALL CIRCLESTONE LABS LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.”
|
| 28 |
+
|
| 29 |
+
- c. with respect to each licensee who purchases a commercial license to the Models, you agree that such licensee shall have the right to exercise such commercial license with respect to all Derivatives developed by you pursuant to the same terms and conditions agreed by the Company and such commercial licensee with respect to the Models; provided, that, you will not be entitled to receive any royalty fees, license fees or other remuneration in connection with the commercial licensee’s use of your Derivatives under such commercial license, and you hereby waive all right to receive any consideration in connection therewith;
|
| 30 |
+
- d. in the case of Distribution of Derivatives made by you: (i) you must also include in the Attribution Notice a statement that you have modified the applicable CircleStone Model; (ii) any terms and conditions you impose on any third-party recipients relating to Derivatives made by or for you shall neither limit such third-party recipients’ use of the CircleStone Model or any Derivatives made by or for Company in accordance with this License nor conflict with any of its terms and conditions and must include disclaimer of warranties and limitation of liability provisions that are at least as protective of Company as those set forth herein; and (iii) you must not misrepresent or imply, through any means, that the Derivatives made by or for you and/or any modified version of the CircleStone Model you Distribute under your name and responsibility is an official product of the Company or has been endorsed, approved or validated by the Company, unless you are authorized by Company to do so in writing; and
|
| 31 |
+
|
| 32 |
+
4. Restrictions. You will not, and will not permit, assist or cause any third party to
|
| 33 |
+
- a. use, modify, copy, reproduce, create Derivatives of, or Distribute the CircleStone Model (or any Derivative thereof, or any data produced by the CircleStone Model), in whole or in part, (i) for any commercial or production purposes (with the exception that Outputs may be used commercially as per 2(d)), (ii) in any manner that infringes, misappropriates, or otherwise violates (or is likely to infringe, misappropriate, or otherwise violate) any third party’s legal rights, including rights of publicity or “digital replica” rights, (iii) in any unlawful, fraudulent, defamatory, or abusive activity, (iv) to generate unlawful content, including child sexual abuse material, or non-consensual intimate images; or (v) in any manner that violates any applicable laws, rules, regulations, directives, or governmental requirements;
|
| 34 |
+
- b. alter or remove copyright and other proprietary notices which appear on or in any portion of the CircleStone Model;
|
| 35 |
+
- c. utilize any equipment, device, software, or other means to circumvent or remove any security or protection used by Company in connection with the CircleStone Model, or to circumvent or remove any usage restrictions, or to enable functionality disabled by CircleStone Model;
|
| 36 |
+
- d. offer or impose any terms on the CircleStone Model that alter, restrict, or are inconsistent with the terms of this License; and
|
| 37 |
+
- e. directly or indirectly Distribute, export, or otherwise transfer CircleStone Model (i) to any individual, entity, or country prohibited by any applicable U.S. and non-U.S. export control and trade sanctions laws (“Export Laws”); (ii) to anyone on U.S. or non-U.S. government restricted parties lists; (iii) for any purpose prohibited by Export Laws, including nuclear, chemical or biological weapons, or missile technology applications; or (iv) use or download CircleStone Model if you or they are (a) located in a comprehensively sanctioned jurisdiction, (b) currently listed on any U.S. or non-U.S. restricted parties list, or (c) for any purpose prohibited by Export Laws.
|
| 38 |
+
|
| 39 |
+
5. DISCLAIMERS. THE CIRCLESTONE MODELS ARE PROVIDED “AS IS” AND “WITH ALL FAULTS” WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. COMPANY EXPRESSLY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, WHETHER BY STATUTE, CUSTOM, USAGE OR OTHERWISE AS TO ANY MATTERS RELATED TO THE CIRCLESTONE MODELS, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, SATISFACTORY QUALITY, OR NON-INFRINGEMENT. COMPANY MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE CIRCLESTONE MODELS WILL BE ERROR FREE OR FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS, OR PRODUCE ANY PARTICULAR RESULTS.
|
| 40 |
+
|
| 41 |
+
6. LIMITATION OF LIABILITY. TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL COMPANY BE LIABLE TO YOU OR YOUR EMPLOYEES, AFFILIATES, USERS, OFFICERS OR DIRECTORS (A) UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE UNDER THIS LICENSE, OR (B) FOR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, PUNITIVE OR SPECIAL DAMAGES OR LOST PROFITS, EVEN IF COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE CIRCLESTONE MODELS, THEIR CONSTITUENT COMPONENTS, AND ANY OUTPUT (COLLECTIVELY, “MODEL MATERIALS”) ARE NOT DESIGNED OR INTENDED FOR USE IN ANY APPLICATION OR SITUATION WHERE FAILURE OR FAULT OF THE MODEL MATERIALS COULD REASONABLY BE ANTICIPATED TO LEAD TO SERIOUS INJURY OF ANY PERSON, INCLUDING POTENTIAL DISCRIMINATION OR VIOLATION OF AN INDIVIDUAL’S PRIVACY RIGHTS, OR TO SEVERE PHYSICAL, PROPERTY, OR ENVIRONMENTAL DAMAGE (EACH, A “HIGH-RISK USE”). IF YOU ELECT TO USE ANY OF THE MODEL MATERIALS FOR A HIGH-RISK USE, YOU DO SO AT YOUR OWN RISK. YOU AGREE TO DESIGN AND IMPLEMENT APPROPRIATE DECISION-MAKING AND RISK-MITIGATION PROCEDURES AND POLICIES IN CONNECTION WITH A HIGH-RISK USE SUCH THAT EVEN IF THERE IS A FAILURE OR FAULT IN ANY OF THE MODEL MATERIALS, THE SAFETY OF PERSONS OR PROPERTY AFFECTED BY THE ACTIVITY STAYS AT A LEVEL THAT IS REASONABLE, APPROPRIATE, AND LAWFUL FOR THE FIELD OF THE HIGH-RISK USE.
|
| 42 |
+
|
| 43 |
+
7. INDEMNIFICATION. You will indemnify, defend and hold harmless Company and our subsidiaries and affiliates, and each of our respective shareholders, directors, officers, employees, agents, successors, and assigns (collectively, the “Company Parties”) from and against any losses, liabilities, damages, fines, penalties, and expenses (including reasonable attorneys’ fees) incurred by any Company Party in connection with any claim, demand, allegation, lawsuit, proceeding, or investigation (collectively, “Claims”) arising out of or related to (a) your access to or use of the CircleStone Models (including in connection with any Output, results or data generated from such access or use), including any High-Risk Use; (b) your violation of this License; or (c) your violation, misappropriation or infringement of any rights of another (including intellectual property or other proprietary rights and privacy rights). You will promptly notify the Company Parties of any such Claims, and cooperate with Company Parties in defending such Claims. You will also grant the Company Parties sole control of the defense or settlement, at Company’s sole option, of any Claims. This indemnity is in addition to, and not in lieu of, any other indemnities or remedies set forth in a written agreement between you and Company or the other Company Parties.
|
| 44 |
+
|
| 45 |
+
8. Termination; Survival.
|
| 46 |
+
- a. This License will automatically terminate upon any breach by you of the terms of this License.
|
| 47 |
+
- b. If you initiate any legal action or proceedings against Company or any other entity (including a cross-claim or counterclaim in a lawsuit), alleging that the CircleStone Models, any Derivative, or any part thereof, infringe upon intellectual property or other rights owned or licensable by you, then any licenses granted to you under this License will immediately terminate as of the date such legal action or claim is filed or initiated.
|
| 48 |
+
- c. Upon termination of this License, you must cease all use, access or Distribution of the CircleStone Model and any Derivatives. The following sections survive termination of this License: 2(c), 2(d), 4-11.
|
| 49 |
+
|
| 50 |
+
9. Third Party Materials. The CircleStone Models may contain third-party software or other components (including free and open source software) (all of the foregoing, “Third Party Materials”), which are subject to the license terms of the respective third-party licensors. Your dealings or correspondence with third parties and your use of or interaction with any Third Party Materials are solely between you and the third party. Company does not control or endorse, and makes no representations or warranties regarding, any Third Party Materials, and your access to and use of such Third Party Materials are at your own risk.
|
| 51 |
+
|
| 52 |
+
10. Trademarks. You have not been granted any trademark license as part of this License and may not use any name, logo or trademark associated with Company without the prior written permission of Company, except to the extent necessary to make the reference required in the Attribution Notice as specified above or as is reasonably necessary in describing the CircleStone Model and its creators.
|
| 53 |
+
|
| 54 |
+
11. General. This License will be governed and construed under the laws of the State of Delaware without regard to conflicts of law provisions. If any provision or part of a provision of this License is unlawful, void or unenforceable, that provision or part of the provision is deemed severed from this License, and will not affect the validity and enforceability of any remaining provisions. The failure of Company to exercise or enforce any right or provision of this License will not operate as a waiver of such right or provision. This License does not confer any third-party beneficiary rights upon any other person or entity. This License, together with the documentation, contains the entire understanding between you and Company regarding the subject matter of this License, and supersedes all other written or oral agreements and understandings between you and Company regarding such subject matter. Notwithstanding the foregoing, if you enter into a commercial license with the Company, then such commercial license will supersede this License in all respects.
|
NOTICE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The CircleStone Model is licensed by CircleStone Labs LLC under the CircleStone Non-Commercial License. Copyright CircleStone Labs LLC.
|
| 2 |
+
IN NO EVENT SHALL CIRCLESTONE LABS LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
|
| 3 |
+
|
| 4 |
+
This repository contains a modified version of the CircleStone Model (Anima Turbo v1.1): its weights were
|
| 5 |
+
converted to 8-bit (and, in extra/draw_m4, partly 4-bit) and compiled for the Qualcomm Snapdragon 8 Elite neural
|
| 6 |
+
processing unit. It is not an official product of CircleStone Labs LLC and is not endorsed, approved or validated
|
| 7 |
+
by CircleStone Labs LLC.
|
| 8 |
+
|
| 9 |
+
Anima is a Derivative Model of NVIDIA Cosmos-Predict2-2B-Text2Image and is subject to the NVIDIA Open Model
|
| 10 |
+
License Agreement insofar as it applies to Derivative Models:
|
| 11 |
+
https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
|
| 12 |
+
|
| 13 |
+
Other parts:
|
| 14 |
+
- text.bin contains Qwen3-0.6B-Base (Copyright Alibaba Cloud, Apache License 2.0) together with Anima's adapter;
|
| 15 |
+
qwen_tokenizer.json is the Qwen2 tokenizer (Apache License 2.0); t5_tokenizer.json is the T5 tokenizer
|
| 16 |
+
(Google, Apache License 2.0).
|
| 17 |
+
- dec.bin is compiled from taew2_1 by Ollin Boer Bohan (madebyollin/taehv), MIT License, Copyright (c) 2025 Ollin Boer Bohan.
|
| 18 |
+
- xlsr.bin is compiled from Qualcomm AI Hub's XLSR model (BSD-3-Clause).
|
| 19 |
+
- ms/guide.bin and the guide adapter inside ms/*/part*.bin are compiled from kohya-ss/Anima-LLLite
|
| 20 |
+
(anima-lllite-any-test-like-v2), which is under the CircleStone Labs Non-Commercial License as a derivative of Anima.
|
README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: circlestone-labs-non-commercial-license
|
| 4 |
+
license_link: LICENSE.md
|
| 5 |
+
base_model: circlestone-labs/Anima
|
| 6 |
+
tags:
|
| 7 |
+
- text-to-image
|
| 8 |
+
- android
|
| 9 |
+
- opencl
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Anima Turbo for phone graphics chips
|
| 13 |
+
|
| 14 |
+
The drawing model of [circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima) Turbo v1.1, packed for
|
| 15 |
+
the [Anima GPU engine](https://github.com/adiirfan/anima-gpu-engine), which runs it on a phone's graphics chip with
|
| 16 |
+
standard OpenCL. For phones without a Snapdragon AI chip the Anima app supports; on a Snapdragon 8 Elite or 8 Elite
|
| 17 |
+
Gen 5 use `anima-qnn-8elite` / `anima-qnn-8elite-gen5`.
|
| 18 |
+
|
| 19 |
+
**Not used by the Anima app yet.** The app's graphics-chip route covers MOSS and Fibo today; these files are the
|
| 20 |
+
engine's Anima weights, published ahead of that.
|
| 21 |
+
|
| 22 |
+
**Non-commercial use only** - see `LICENSE.md` and `NOTICE`.
|
| 23 |
+
|
| 24 |
+
| File | What it is |
|
| 25 |
+
| --- | --- |
|
| 26 |
+
| `files/anima.bin`, `files/anima.idx` | the 28-block drawing model at full precision (fp16), with its index |
|
| 27 |
+
| `files/anima_q8.bin`, `files/anima_q8.idx` | the big layers again in 8-bit (error-compensating rounding, groups of 64), loaded in place of their fp16 copies (`Q8=<prefix>`) |
|
| 28 |
+
| `files/anima_q8.cen` | input averages per noise level for the 8-bit layers (`CEN=<file>`), optional |
|
| 29 |
+
|
| 30 |
+
The prompt reader and the picture decoder are not here: they are the same models as in `anima-qnn-8elite`.
|
| 31 |
+
|
| 32 |
+
`build/` holds the scripts that made these files (`pack.py` fp16, `gptq_int8.py` 8-bit, `center_means.py` the
|
| 33 |
+
averages); they import `anima_qnn.py` from `anima-qnn-8elite`'s `build/anima/`.
|
build/center_means.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Input averages for mean-centred 8-bit layers (CentriQ-style), one table per noise level.
|
| 2 |
+
Runs real 512x512 drawings (calibration prompts, never the test prompts) and records, for every big linear layer
|
| 3 |
+
and every step, the average of each input channel over all tokens and prompts (mu), plus the exact correction
|
| 4 |
+
b = W . mu (fp32, original unrotated weights) that the engine adds back after the 8-bit multiply of (x - mu).
|
| 5 |
+
The engine blends the two tables nearest its current noise level, so any step count works.
|
| 6 |
+
|
| 7 |
+
File <out>.cen (little-endian):
|
| 8 |
+
int32 nsteps, int32 nblocks, float sigma[nsteps]
|
| 9 |
+
then per step, per block, per layer in the order sa_qkv sa_o ca_q ca_o l1 l2: float mu[K], float b[M]
|
| 10 |
+
Usage: py.sh center_means.py <out prefix> env NPROMPT (2), STEPS (8), DEV (cpu | cuda)"""
|
| 11 |
+
import os
|
| 12 |
+
import sys
|
| 13 |
+
import time
|
| 14 |
+
import numpy as np
|
| 15 |
+
HERE = "/home/debian/gpu-engine-test/tsbuild/anima"
|
| 16 |
+
sys.path[:0] = [HERE, os.path.join(HERE, "..", "common")]
|
| 17 |
+
from settings import MODELS, use_comfyui
|
| 18 |
+
OUT = sys.argv[1]
|
| 19 |
+
sys.argv = [sys.argv[0], "--cpu"]
|
| 20 |
+
use_comfyui()
|
| 21 |
+
import comfy.options
|
| 22 |
+
comfy.options.enable_args_parsing()
|
| 23 |
+
import torch
|
| 24 |
+
import comfy.sd, comfy.utils, comfy.samplers
|
| 25 |
+
import anima_qnn as A
|
| 26 |
+
from anima_qnn import Part, load_part, sinusoid, patchify, unpatchify
|
| 27 |
+
|
| 28 |
+
torch.set_num_threads(int(os.environ.get("THREADS", "6")))
|
| 29 |
+
DEV = os.environ.get("DEV", "cpu")
|
| 30 |
+
NPROMPT, STEPS = int(os.environ.get("NPROMPT", "2")), int(os.environ.get("STEPS", "8"))
|
| 31 |
+
A.OPT["slots"], A.OPT["slot_bias"], A.OPT["gate"] = 256, True, "mul"
|
| 32 |
+
A.L = 1024
|
| 33 |
+
# same calibration prompts as gptq_int8.py; none is a test prompt
|
| 34 |
+
CALIB_PROMPTS = [
|
| 35 |
+
"masterpiece, best quality, 1girl, solo, long purple hair, school uniform, smile, cherry blossoms, outdoors, looking at viewer",
|
| 36 |
+
"best quality, 1boy, solo, short black hair, black coat, city street at night, neon lights, rain, upper body",
|
| 37 |
+
"masterpiece, 1girl, silver hair, twin braids, red eyes, fantasy armor, holding sword, castle, dramatic lighting, full body",
|
| 38 |
+
"masterpiece, scenery, no humans, mountain lake, sunset, clouds, reflection, pine trees, highly detailed",
|
| 39 |
+
"best quality, 2girls, cafe, sitting at table, drinking coffee, laughing, warm lighting, window, afternoon",
|
| 40 |
+
"masterpiece, 1girl, witch hat, black dress, riding broom, night sky, full moon, stars, cat",
|
| 41 |
+
]
|
| 42 |
+
|
| 43 |
+
mp = comfy.sd.load_diffusion_model(f"{MODELS}/anima-turbo-v1.1.safetensors", model_options={"dtype": torch.float32})
|
| 44 |
+
dm = mp.model.diffusion_model.float().eval()
|
| 45 |
+
clip = comfy.sd.load_clip([f"{MODELS}/qwen_3_06b_base.safetensors"])
|
| 46 |
+
sigmas = comfy.samplers.calculate_sigmas(mp.model.model_sampling, "simple", STEPS).float()
|
| 47 |
+
rope = torch.load("/home/debian/anima-build81/work/testdata/rope_512x512.pt")
|
| 48 |
+
sd = comfy.utils.load_torch_file(f"{MODELS}/anima-turbo-v1.1.safetensors")
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def encode(prompt):
|
| 52 |
+
c, extra = clip.encode_from_tokens_scheduled(clip.tokenize(prompt))[0]
|
| 53 |
+
ctx = dm.preprocess_text_embeds(c.float(), extra["t5xxl_ids"].unsqueeze(0), extra["t5xxl_weights"].unsqueeze(0).unsqueeze(-1).float())
|
| 54 |
+
return ctx[:, :256].contiguous()
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
ctxs = [encode(CALIB_PROMPTS[j]) for j in range(NPROMPT)]
|
| 58 |
+
del mp, dm, clip
|
| 59 |
+
import gc; gc.collect()
|
| 60 |
+
|
| 61 |
+
KINDS = ("sa_qkv", "sa_o", "ca_q", "ca_o", "l1", "l2")
|
| 62 |
+
SUM = {} # (step, block, kind) -> sum of inputs over tokens and prompts
|
| 63 |
+
cur = [0] # step being drawn
|
| 64 |
+
with torch.no_grad():
|
| 65 |
+
p = load_part(Part(0, 28, rope["P"], rope["Q"], 1.0).eval(), sd).to(DEV)
|
| 66 |
+
torch.set_default_device(DEV)
|
| 67 |
+
A.HT_INPUT = None # plain model: no rotation, no rounding - just the true inputs
|
| 68 |
+
for i, b in enumerate(p.blocks):
|
| 69 |
+
for kind, lin in zip(KINDS, (b.self_attn.q_proj, b.self_attn.output_proj, b.cross_attn.q_proj,
|
| 70 |
+
b.cross_attn.output_proj, b.layer1, b.layer2)):
|
| 71 |
+
def hook(m, inp, key=(i, kind)):
|
| 72 |
+
x = inp[0].reshape(-1, inp[0].shape[-1]).double().mean(0)
|
| 73 |
+
k = (cur[0],) + key
|
| 74 |
+
SUM[k] = SUM.get(k, 0) + x
|
| 75 |
+
lin.register_forward_pre_hook(hook)
|
| 76 |
+
t0 = time.time()
|
| 77 |
+
for j in range(NPROMPT):
|
| 78 |
+
ctx = ctxs[j].to(DEV)
|
| 79 |
+
x = torch.randn(1, 16, 64, 64, generator=torch.Generator().manual_seed(1000 + j), device="cpu") * sigmas[0].cpu()
|
| 80 |
+
for s_i in range(STEPS):
|
| 81 |
+
cur[0] = s_i
|
| 82 |
+
s, sn = sigmas[s_i].item(), sigmas[s_i + 1].item()
|
| 83 |
+
out = p(patchify(x).to(DEV), sinusoid(s).to(DEV), None, ctx)
|
| 84 |
+
x = x + (sn - s) * unpatchify(out.float().cpu())
|
| 85 |
+
print(f"prompt {j}: {time.time() - t0:.0f} s", flush=True)
|
| 86 |
+
|
| 87 |
+
# weights of each layer as the engine multiplies them (q, k, v stacked like pack_int8.py)
|
| 88 |
+
def weight(i, kind):
|
| 89 |
+
b = p.blocks[i]
|
| 90 |
+
if kind == "sa_qkv":
|
| 91 |
+
return torch.cat([b.self_attn.q_proj.weight, b.self_attn.k_proj.weight, b.self_attn.v_proj.weight])
|
| 92 |
+
return {"sa_o": b.self_attn.output_proj, "ca_q": b.cross_attn.q_proj, "ca_o": b.cross_attn.output_proj,
|
| 93 |
+
"l1": b.layer1, "l2": b.layer2}[kind].weight
|
| 94 |
+
|
| 95 |
+
with open(OUT + ".cen", "wb") as f:
|
| 96 |
+
np.array([STEPS, len(p.blocks)], np.int32).tofile(f)
|
| 97 |
+
sigmas[:STEPS].numpy().astype(np.float32).tofile(f)
|
| 98 |
+
for s_i in range(STEPS):
|
| 99 |
+
for i in range(len(p.blocks)):
|
| 100 |
+
for kind in KINDS:
|
| 101 |
+
mu = (SUM[(s_i, i, kind)] / NPROMPT).float()
|
| 102 |
+
w = weight(i, kind).float().to(mu.device)
|
| 103 |
+
bias = (w.double() @ mu.double()).float()
|
| 104 |
+
mu.cpu().numpy().astype(np.float32).tofile(f)
|
| 105 |
+
bias.cpu().numpy().astype(np.float32).tofile(f)
|
| 106 |
+
# how much the averages move between steps (l2 of the middle block), for the report
|
| 107 |
+
m = [SUM[(s, 14, "l2")] / NPROMPT for s in range(STEPS)]
|
| 108 |
+
print("sigmas", [round(v, 3) for v in sigmas[:STEPS].tolist()])
|
| 109 |
+
print("block 14 l2: |mu| per step", [round(v.norm().item(), 2) for v in m],
|
| 110 |
+
"| change step to step", [round((m[s + 1] - m[s]).norm().item() / m[s].norm().item(), 3) for s in range(STEPS - 1)])
|
| 111 |
+
print(f"wrote {OUT}.cen", flush=True)
|
build/gptq_int8.py
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""8-bit weights with error-compensating rounding (GPTQ, Frantar et al. 2022), for the rotated 8-bit engine path.
|
| 2 |
+
1. Calibration: real 8-step drawings at 512x512 on the processor (fp32) for a few calibration prompts (none of them
|
| 3 |
+
is a test prompt); hooks add up H = sum x^T x of every big linear layer's rotated input.
|
| 4 |
+
2. Each weight matrix (rotated like pack_int8.py) is rounded one input column at a time, in blocks of GS inputs that
|
| 5 |
+
share a scale; the rounding error of each column is pushed onto the columns not rounded yet, weighted by H^-1, so
|
| 6 |
+
the layer's OUTPUT on real inputs moves as little as possible.
|
| 7 |
+
Writes <prefix>.bin/.idx in exactly the pack_int8.py format (kinds q8 / qs), so the engine loads it unchanged.
|
| 8 |
+
Usage: py.sh gptq_int8.py <out prefix> [GS] env NPROMPT (4), DAMP (0.01), STEPS (8)
|
| 9 |
+
env CEN=<table>.cen: tune for mean-centred inputs - H is built from rot(x - mu), mu blended from the centring table
|
| 10 |
+
(tools/center_means.py) at each calibration step's noise level, exactly as the engine does with CEN=."""
|
| 11 |
+
import os
|
| 12 |
+
import sys
|
| 13 |
+
import time
|
| 14 |
+
HERE = "/home/debian/gpu-engine-test/tsbuild/anima"
|
| 15 |
+
sys.path[:0] = [HERE, os.path.join(HERE, "..", "common")]
|
| 16 |
+
from settings import MODELS, use_comfyui
|
| 17 |
+
OUT = sys.argv[1]
|
| 18 |
+
GS = int(sys.argv[2]) if len(sys.argv) > 2 else 64
|
| 19 |
+
sys.argv = [sys.argv[0], "--cpu"]
|
| 20 |
+
use_comfyui()
|
| 21 |
+
import comfy.options
|
| 22 |
+
comfy.options.enable_args_parsing()
|
| 23 |
+
import torch
|
| 24 |
+
import comfy.sd, comfy.utils, comfy.samplers
|
| 25 |
+
import anima_qnn as A
|
| 26 |
+
from anima_qnn import Part, load_part, rot, rot_weight, sinusoid, patchify, unpatchify
|
| 27 |
+
|
| 28 |
+
torch.set_num_threads(12)
|
| 29 |
+
DEV = os.environ.get("DEV", "cpu") # "cuda" runs calibration and rounding on a graphics card (ROCm or CUDA)
|
| 30 |
+
NPROMPT, DAMP, STEPS = int(os.environ.get("NPROMPT", "4")), float(os.environ.get("DAMP", "0.01")), int(os.environ.get("STEPS", "8"))
|
| 31 |
+
A.OPT["slots"], A.OPT["slot_bias"], A.OPT["gate"] = 256, True, "mul"
|
| 32 |
+
A.L = 1024
|
| 33 |
+
CALIB_PROMPTS = [
|
| 34 |
+
"masterpiece, best quality, 1girl, solo, long purple hair, school uniform, smile, cherry blossoms, outdoors, looking at viewer",
|
| 35 |
+
"best quality, 1boy, solo, short black hair, black coat, city street at night, neon lights, rain, upper body",
|
| 36 |
+
"masterpiece, 1girl, silver hair, twin braids, red eyes, fantasy armor, holding sword, castle, dramatic lighting, full body",
|
| 37 |
+
"masterpiece, scenery, no humans, mountain lake, sunset, clouds, reflection, pine trees, highly detailed",
|
| 38 |
+
"best quality, 2girls, cafe, sitting at table, drinking coffee, laughing, warm lighting, window, afternoon",
|
| 39 |
+
"masterpiece, 1girl, witch hat, black dress, riding broom, night sky, full moon, stars, cat",
|
| 40 |
+
]
|
| 41 |
+
|
| 42 |
+
mp = comfy.sd.load_diffusion_model(f"{MODELS}/anima-turbo-v1.1.safetensors", model_options={"dtype": torch.float32})
|
| 43 |
+
dm = mp.model.diffusion_model.float().eval()
|
| 44 |
+
clip = comfy.sd.load_clip([f"{MODELS}/qwen_3_06b_base.safetensors"])
|
| 45 |
+
sigmas = comfy.samplers.calculate_sigmas(mp.model.model_sampling, "simple", STEPS).float()
|
| 46 |
+
rope = torch.load("/home/debian/anima-build81/work/testdata/rope_512x512.pt")
|
| 47 |
+
sd = comfy.utils.load_torch_file(f"{MODELS}/anima-turbo-v1.1.safetensors")
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def encode(prompt):
|
| 51 |
+
c, extra = clip.encode_from_tokens_scheduled(clip.tokenize(prompt))[0]
|
| 52 |
+
ctx = dm.preprocess_text_embeds(c.float(), extra["t5xxl_ids"].unsqueeze(0), extra["t5xxl_weights"].unsqueeze(0).unsqueeze(-1).float())
|
| 53 |
+
return ctx[:, :256].contiguous()
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
# prompts first, then the full comfy model and text encoder are dropped (memory is shared with other jobs)
|
| 57 |
+
ctxs = [encode(CALIB_PROMPTS[j]) for j in range(NPROMPT)]
|
| 58 |
+
del mp, dm, clip
|
| 59 |
+
import gc; gc.collect()
|
| 60 |
+
|
| 61 |
+
# ---- 1. calibration ----
|
| 62 |
+
H, cnt = {}, {}
|
| 63 |
+
CEN = None
|
| 64 |
+
if os.environ.get("CEN"):
|
| 65 |
+
import numpy as np
|
| 66 |
+
_f = os.environ["CEN"]
|
| 67 |
+
_S, _NB = (int(v) for v in np.fromfile(_f, np.int32, 2))
|
| 68 |
+
_sig = np.fromfile(_f, np.float32, _S, offset=8)
|
| 69 |
+
CEN = torch.from_numpy(np.fromfile(_f, np.float32, offset=8 + 4 * _S).reshape(_S, _NB * 20 * A.D).copy())
|
| 70 |
+
_K, _M = [1, 1, 1, 1, 1, 4], [3, 1, 1, 1, 4, 1]
|
| 71 |
+
_KINDS = ["sa_qkv", "sa_o", "ca_q", "ca_o", "l1", "l2"]
|
| 72 |
+
_off = {}
|
| 73 |
+
for _b in range(_NB):
|
| 74 |
+
_o = _b * 20 * A.D
|
| 75 |
+
for _l, _k in enumerate(_KINDS):
|
| 76 |
+
_off[f"{_b}.{_k}"] = (_o, _K[_l] * A.D); _o += (_K[_l] + _M[_l]) * A.D
|
| 77 |
+
cen_now = [None]
|
| 78 |
+
|
| 79 |
+
def cen_set(sigma): # blend the two nearest levels, like the engine
|
| 80 |
+
i, t = 0, 0.0
|
| 81 |
+
if sigma <= _sig[-1]: i = _S - 1
|
| 82 |
+
elif sigma < _sig[0]:
|
| 83 |
+
while i + 1 < _S and _sig[i + 1] > sigma: i += 1
|
| 84 |
+
if i + 1 < _S: t = float((_sig[i] - sigma) / (_sig[i] - _sig[i + 1]))
|
| 85 |
+
cen_now[0] = (CEN[i] + t * (CEN[min(i + 1, _S - 1)] - CEN[i])).to(DEV)
|
| 86 |
+
print(f"centring table {_f}: {_S} levels", flush=True)
|
| 87 |
+
with torch.no_grad():
|
| 88 |
+
p = load_part(Part(0, 28, rope["P"], rope["Q"], 1.0).eval(), sd).to(DEV)
|
| 89 |
+
A.HT_INPUT = A._HT.to(DEV) # the activation rotation on the same device as the model
|
| 90 |
+
torch.set_default_device(DEV) # small tensors the shared model code makes on the fly (attention slot bias)
|
| 91 |
+
for i, b in enumerate(p.blocks):
|
| 92 |
+
# one hook per distinct input: q/k/v share theirs, so only q_proj is hooked
|
| 93 |
+
for kind, lin in (("sa_qkv", b.self_attn.q_proj), ("sa_o", b.self_attn.output_proj), ("ca_q", b.cross_attn.q_proj),
|
| 94 |
+
("ca_o", b.cross_attn.output_proj), ("l1", b.layer1), ("l2", b.layer2)):
|
| 95 |
+
key = f"{i}.{kind}"
|
| 96 |
+
|
| 97 |
+
def hook(m, inp, key=key):
|
| 98 |
+
x = inp[0]
|
| 99 |
+
if CEN is not None:
|
| 100 |
+
o, k = _off[key]
|
| 101 |
+
x = x - cen_now[0][o:o + k]
|
| 102 |
+
x = rot(x).reshape(-1, inp[0].shape[-1])
|
| 103 |
+
if key not in H:
|
| 104 |
+
H[key] = torch.zeros(x.shape[1], x.shape[1], device=x.device)
|
| 105 |
+
cnt[key] = 0
|
| 106 |
+
H[key].addmm_(x.T, x)
|
| 107 |
+
cnt[key] += x.shape[0]
|
| 108 |
+
lin.register_forward_pre_hook(hook)
|
| 109 |
+
t0 = time.time()
|
| 110 |
+
for j in range(NPROMPT):
|
| 111 |
+
ctx = ctxs[j].to(DEV)
|
| 112 |
+
x = torch.randn(1, 16, 64, 64, generator=torch.Generator().manual_seed(1000 + j), device="cpu") * sigmas[0].cpu()
|
| 113 |
+
for s_i in range(STEPS):
|
| 114 |
+
s, sn = sigmas[s_i].item(), sigmas[s_i + 1].item()
|
| 115 |
+
if CEN is not None:
|
| 116 |
+
cen_set(s)
|
| 117 |
+
out = p(patchify(x).to(DEV), sinusoid(s).to(DEV), None, ctx)
|
| 118 |
+
x = x + (sn - s) * unpatchify(out.float().cpu())
|
| 119 |
+
print(f"calibration prompt {j}: {time.time() - t0:.0f} s", flush=True)
|
| 120 |
+
del p
|
| 121 |
+
|
| 122 |
+
A.HT_INPUT = None
|
| 123 |
+
torch.set_default_device("cpu")
|
| 124 |
+
# ---- 2. rounding ----
|
| 125 |
+
# one thread: the column loop is thousands of tiny steps, and on a busy machine 12 threads made it 50x slower
|
| 126 |
+
# (2048x2048: 2.0 s on 1 thread, 99.6 s on 12)
|
| 127 |
+
torch.set_num_threads(int(os.environ.get("RTHREADS", "1")))
|
| 128 |
+
g = lambda k: sd["model.diffusion_model." + k].float()
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
def gptq(w, Hm):
|
| 132 |
+
"""w [M, K] rotated weights, Hm [K, K]; returns int8 [M, K], scales [M, K/GS]"""
|
| 133 |
+
W = w.to(DEV).clone()
|
| 134 |
+
M, K = W.shape
|
| 135 |
+
Hm = Hm.to(DEV).clone()
|
| 136 |
+
dead = Hm.diagonal() == 0
|
| 137 |
+
Hm[dead, dead] = 1
|
| 138 |
+
W[:, dead] = 0
|
| 139 |
+
Hm.diagonal().add_(DAMP * Hm.diagonal().mean())
|
| 140 |
+
Hinv = torch.linalg.cholesky(torch.cholesky_inverse(torch.linalg.cholesky(Hm)), upper=True)
|
| 141 |
+
Q = torch.zeros(M, K, dtype=torch.int8, device=W.device)
|
| 142 |
+
S = torch.zeros(M, K // GS, device=W.device)
|
| 143 |
+
B = 128 if 128 % GS == 0 else GS
|
| 144 |
+
for i1 in range(0, K, B):
|
| 145 |
+
i2 = min(i1 + B, K)
|
| 146 |
+
W1, E1, Hi = W[:, i1:i2].clone(), torch.zeros(M, i2 - i1, device=W.device), Hinv[i1:i2, i1:i2]
|
| 147 |
+
for i in range(i2 - i1):
|
| 148 |
+
c = i1 + i
|
| 149 |
+
if c % GS == 0: # scale of this block from its weights as they are now (already corrected)
|
| 150 |
+
sc = W1[:, i:i + GS].abs().amax(1).clamp_min(1e-12) / 127
|
| 151 |
+
S[:, c // GS] = sc
|
| 152 |
+
wc = W1[:, i]
|
| 153 |
+
qi = (wc / sc).round().clamp(-127, 127)
|
| 154 |
+
Q[:, c] = qi.to(torch.int8)
|
| 155 |
+
e = (wc - qi * sc) / Hi[i, i]
|
| 156 |
+
W1[:, i:] -= e[:, None] * Hi[i, i:][None]
|
| 157 |
+
E1[:, i] = e
|
| 158 |
+
W[:, i2:] -= E1 @ Hinv[i1:i2, i2:]
|
| 159 |
+
return Q.cpu(), S.cpu()
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
def rtn(w):
|
| 163 |
+
t = w.view(w.shape[0], -1, GS)
|
| 164 |
+
s = t.abs().amax(-1, keepdim=True).clamp_min(1e-12) / 127
|
| 165 |
+
return (t / s).round().clamp(-127, 127), s
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
blob, idx, off = open(OUT + ".bin", "wb"), open(OUT + ".idx", "w"), 0
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
def put(name, kind, a, M, K):
|
| 172 |
+
global off
|
| 173 |
+
b = a.tobytes()
|
| 174 |
+
pad = (-off) % 4096
|
| 175 |
+
blob.write(b"\0" * pad); off += pad
|
| 176 |
+
blob.write(b); idx.write(f"{name} {kind} {M} {K} {off} {len(b)}\n"); off += len(b)
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
gain = []
|
| 180 |
+
for i in range(28):
|
| 181 |
+
b = f"blocks.{i}."
|
| 182 |
+
sa, ca = b + "self_attn.", b + "cross_attn."
|
| 183 |
+
mats = {"sa_qkv": torch.cat([g(sa + "q_proj.weight"), g(sa + "k_proj.weight"), g(sa + "v_proj.weight")]),
|
| 184 |
+
"sa_o": g(sa + "output_proj.weight"), "ca_q": g(ca + "q_proj.weight"), "ca_o": g(ca + "output_proj.weight"),
|
| 185 |
+
"l1": g(b + "mlp.layer1.weight"), "l2": g(b + "mlp.layer2.weight")}
|
| 186 |
+
for kind, w in mats.items():
|
| 187 |
+
key = f"{i}.{kind}"
|
| 188 |
+
wr = rot_weight(w)
|
| 189 |
+
Hm = (H.pop(key) / cnt[key]).cpu()
|
| 190 |
+
q, s = gptq(wr, Hm)
|
| 191 |
+
# output error on the calibration inputs (slow: off unless MEASURE=1; the phone run measures what matters)
|
| 192 |
+
if os.environ.get("MEASURE") == "1":
|
| 193 |
+
rel = lambda d: float(torch.einsum("mk,kl,ml->", d, Hm, d) / torch.einsum("mk,kl,ml->", wr, Hm, wr)) ** 0.5
|
| 194 |
+
qr, sr = rtn(wr)
|
| 195 |
+
gain.append((key, rel((qr * sr).view_as(wr) - wr), rel((q.float().view(q.shape[0], -1, GS) * s[..., None]).view_as(wr) - wr)))
|
| 196 |
+
else:
|
| 197 |
+
gain.append((key, 0.0, 0.0))
|
| 198 |
+
M, K = wr.shape
|
| 199 |
+
put(key, "q8", q.view(M, K // 16, 16).permute(1, 0, 2).contiguous().numpy(), M, K)
|
| 200 |
+
put(key + ".s", "qs", s.contiguous().numpy(), M, K // GS)
|
| 201 |
+
print(time.strftime("%H:%M:%S"), f"block {i}: " + " ".join(f"{k.split('.')[1]} {a:.5f}->{c:.5f}" for k, a, c in gain[-6:]), flush=True)
|
| 202 |
+
blob.close(); idx.close()
|
| 203 |
+
print("bytes", off, "GS", GS, "mean output error rtn %.5f gptq %.5f" % (sum(a for _, a, _ in gain) / len(gain), sum(c for _, _, c in gain) / len(gain)))
|
build/pack.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Pack Anima's weights for the GPU engine: one blob + a text index ("name kind M K offset bytes" per line).
|
| 2 |
+
kind pk: a linear weight [M out][K in] in the gemm's 16-byte layout - texel (og, k2) = the 4 outputs 4og..4og+3 at
|
| 3 |
+
inputs 2k2 and 2k2+1, rows k2 in order; K padded to a multiple of 8 with zeros.
|
| 4 |
+
kind h: fp16 row-major. kind f: fp32.
|
| 5 |
+
Usage: py.sh pack.py <out prefix>"""
|
| 6 |
+
import sys
|
| 7 |
+
import numpy as np
|
| 8 |
+
import torch
|
| 9 |
+
import comfy.utils
|
| 10 |
+
|
| 11 |
+
OUT = sys.argv[1]
|
| 12 |
+
sd = comfy.utils.load_torch_file("/home/debian/models/anima/anima-turbo-v1.1.safetensors")
|
| 13 |
+
g = lambda k: sd["model.diffusion_model." + k].float()
|
| 14 |
+
blob = open(OUT + ".bin", "wb")
|
| 15 |
+
idx = open(OUT + ".idx", "w")
|
| 16 |
+
off = 0
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def put(name, kind, a, M, K):
|
| 20 |
+
global off
|
| 21 |
+
b = a.tobytes()
|
| 22 |
+
pad = (-off) % 4096
|
| 23 |
+
blob.write(b"\0" * pad)
|
| 24 |
+
off += pad
|
| 25 |
+
blob.write(b)
|
| 26 |
+
idx.write(f"{name} {kind} {M} {K} {off} {len(b)}\n")
|
| 27 |
+
off += len(b)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def pk(name, w):
|
| 31 |
+
M, K = w.shape
|
| 32 |
+
assert M % 8 == 0
|
| 33 |
+
Kp = (K + 7) // 8 * 8
|
| 34 |
+
if Kp != K:
|
| 35 |
+
w = torch.cat([w, torch.zeros(M, Kp - K)], 1)
|
| 36 |
+
# [M][Kp] -> [Kp/2][M/4][2][4]: texel (og, k2) = w[4og..4og+3, 2k2], w[4og..4og+3, 2k2+1]
|
| 37 |
+
t = w.half().view(M // 4, 4, Kp // 2, 2).permute(2, 0, 3, 1).contiguous()
|
| 38 |
+
put(name, "pk", t.numpy(), M, Kp)
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def h(name, w):
|
| 42 |
+
w = w if w.dim() == 2 else w.view(1, -1)
|
| 43 |
+
put(name, "h", w.half().contiguous().numpy(), w.shape[0], w.shape[1])
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def f(name, w):
|
| 47 |
+
w = w if w.dim() == 2 else w.view(1, -1)
|
| 48 |
+
put(name, "f", w.float().contiguous().numpy(), w.shape[0], w.shape[1])
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
pk("x_embedder", g("x_embedder.proj.1.weight"))
|
| 52 |
+
h("t1", g("t_embedder.1.linear_1.weight")); h("t2", g("t_embedder.1.linear_2.weight"))
|
| 53 |
+
f("t_norm", g("t_embedding_norm.weight"))
|
| 54 |
+
for i in range(28):
|
| 55 |
+
b = f"blocks.{i}."
|
| 56 |
+
sa, ca = b + "self_attn.", b + "cross_attn."
|
| 57 |
+
pk(f"{i}.sa_qkv", torch.cat([g(sa + "q_proj.weight"), g(sa + "k_proj.weight"), g(sa + "v_proj.weight")]))
|
| 58 |
+
pk(f"{i}.sa_o", g(sa + "output_proj.weight"))
|
| 59 |
+
f(f"{i}.sa_qn", g(sa + "q_norm.weight")); f(f"{i}.sa_kn", g(sa + "k_norm.weight"))
|
| 60 |
+
pk(f"{i}.ca_q", g(ca + "q_proj.weight"))
|
| 61 |
+
pk(f"{i}.ca_kv", torch.cat([g(ca + "k_proj.weight"), g(ca + "v_proj.weight")]))
|
| 62 |
+
pk(f"{i}.ca_o", g(ca + "output_proj.weight"))
|
| 63 |
+
f(f"{i}.ca_qn", g(ca + "q_norm.weight")); f(f"{i}.ca_kn", g(ca + "k_norm.weight"))
|
| 64 |
+
pk(f"{i}.l1", g(b + "mlp.layer1.weight")); pk(f"{i}.l2", g(b + "mlp.layer2.weight"))
|
| 65 |
+
for mine, theirs in (("msa", "self_attn"), ("mca", "cross_attn"), ("mmlp", "mlp")):
|
| 66 |
+
h(f"{i}.{mine}1", g(f"{b}adaln_modulation_{theirs}.1.weight"))
|
| 67 |
+
h(f"{i}.{mine}2", g(f"{b}adaln_modulation_{theirs}.2.weight"))
|
| 68 |
+
h("fmod1", g("final_layer.adaln_modulation.1.weight")); h("fmod2", g("final_layer.adaln_modulation.2.weight"))
|
| 69 |
+
pk("final_linear", g("final_layer.linear.weight"))
|
| 70 |
+
blob.close(); idx.close()
|
| 71 |
+
print("bytes", off)
|
build/pack_int8.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""8-bit weights for the engine's integer multiply: each big linear weight [M][K] is rotated (ConvRot: 256-block
|
| 2 |
+
regular Hadamard on the input side, matching the kernel that rotates activations), then rounded to int8 with one
|
| 3 |
+
scale per output and block of GS inputs. Writes <prefix>.bin/.idx in the same index format as pack.py:
|
| 4 |
+
kind q8: int8 texels (o, k16) = w[o][16k16..16k16+15], rows k16 in order (M K)
|
| 5 |
+
kind qs: fp32 scales [M][K/GS] (M K/GS)
|
| 6 |
+
Usage: py.sh pack_int8.py <out prefix> [GS] [rot 0/1]"""
|
| 7 |
+
import sys
|
| 8 |
+
sys.path[:0] = ["/home/debian/gpu-engine-test/tsbuild/anima"]
|
| 9 |
+
import torch
|
| 10 |
+
import comfy.utils
|
| 11 |
+
from anima_qnn import rot_weight
|
| 12 |
+
|
| 13 |
+
OUT = sys.argv[1]
|
| 14 |
+
GS = int(sys.argv[2]) if len(sys.argv) > 2 else 64
|
| 15 |
+
ROT = (sys.argv[3] if len(sys.argv) > 3 else "1") == "1"
|
| 16 |
+
sd = comfy.utils.load_torch_file("/home/debian/models/anima/anima-turbo-v1.1.safetensors")
|
| 17 |
+
g = lambda k: sd["model.diffusion_model." + k].float()
|
| 18 |
+
blob, idx, off = open(OUT + ".bin", "wb"), open(OUT + ".idx", "w"), 0
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def put(name, kind, a, M, K):
|
| 22 |
+
global off
|
| 23 |
+
b = a.tobytes()
|
| 24 |
+
pad = (-off) % 4096
|
| 25 |
+
blob.write(b"\0" * pad); off += pad
|
| 26 |
+
blob.write(b); idx.write(f"{name} {kind} {M} {K} {off} {len(b)}\n"); off += len(b)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def q8(name, w):
|
| 30 |
+
M, K = w.shape
|
| 31 |
+
if ROT:
|
| 32 |
+
w = rot_weight(w)
|
| 33 |
+
t = w.view(M, K // GS, GS)
|
| 34 |
+
s = t.abs().amax(-1, keepdim=True).clamp_min(1e-12) / 127
|
| 35 |
+
q = (t / s).round().clamp(-127, 127).to(torch.int8).view(M, K)
|
| 36 |
+
put(name, "q8", q.view(M, K // 16, 16).permute(1, 0, 2).contiguous().numpy(), M, K)
|
| 37 |
+
put(name + ".s", "qs", s.view(M, K // GS).contiguous().numpy(), M, K // GS)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
for i in range(28):
|
| 41 |
+
b = f"blocks.{i}."
|
| 42 |
+
sa, ca = b + "self_attn.", b + "cross_attn."
|
| 43 |
+
q8(f"{i}.sa_qkv", torch.cat([g(sa + "q_proj.weight"), g(sa + "k_proj.weight"), g(sa + "v_proj.weight")]))
|
| 44 |
+
q8(f"{i}.sa_o", g(sa + "output_proj.weight"))
|
| 45 |
+
q8(f"{i}.ca_q", g(ca + "q_proj.weight"))
|
| 46 |
+
q8(f"{i}.ca_o", g(ca + "output_proj.weight"))
|
| 47 |
+
q8(f"{i}.l1", g(b + "mlp.layer1.weight"))
|
| 48 |
+
q8(f"{i}.l2", g(b + "mlp.layer2.weight"))
|
| 49 |
+
blob.close(); idx.close()
|
| 50 |
+
print("bytes", off, "GS", GS, "rot", ROT)
|
files/anima.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e536a7b784a13ec54fa0008b28e99640f9a7b7c501790997f8ad02044d63816
|
| 3 |
+
size 3913261056
|
files/anima.idx
ADDED
|
@@ -0,0 +1,483 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
x_embedder pk 2048 72 0 294912
|
| 2 |
+
t1 h 2048 2048 294912 8388608
|
| 3 |
+
t2 h 6144 2048 8683520 25165824
|
| 4 |
+
t_norm f 1 2048 33849344 8192
|
| 5 |
+
0.sa_qkv pk 6144 2048 33857536 25165824
|
| 6 |
+
0.sa_o pk 2048 2048 59023360 8388608
|
| 7 |
+
0.sa_qn f 1 128 67411968 512
|
| 8 |
+
0.sa_kn f 1 128 67416064 512
|
| 9 |
+
0.ca_q pk 2048 2048 67420160 8388608
|
| 10 |
+
0.ca_kv pk 4096 1024 75808768 8388608
|
| 11 |
+
0.ca_o pk 2048 2048 84197376 8388608
|
| 12 |
+
0.ca_qn f 1 128 92585984 512
|
| 13 |
+
0.ca_kn f 1 128 92590080 512
|
| 14 |
+
0.l1 pk 8192 2048 92594176 33554432
|
| 15 |
+
0.l2 pk 2048 8192 126148608 33554432
|
| 16 |
+
0.msa1 h 256 2048 159703040 1048576
|
| 17 |
+
0.msa2 h 6144 256 160751616 3145728
|
| 18 |
+
0.mca1 h 256 2048 163897344 1048576
|
| 19 |
+
0.mca2 h 6144 256 164945920 3145728
|
| 20 |
+
0.mmlp1 h 256 2048 168091648 1048576
|
| 21 |
+
0.mmlp2 h 6144 256 169140224 3145728
|
| 22 |
+
1.sa_qkv pk 6144 2048 172285952 25165824
|
| 23 |
+
1.sa_o pk 2048 2048 197451776 8388608
|
| 24 |
+
1.sa_qn f 1 128 205840384 512
|
| 25 |
+
1.sa_kn f 1 128 205844480 512
|
| 26 |
+
1.ca_q pk 2048 2048 205848576 8388608
|
| 27 |
+
1.ca_kv pk 4096 1024 214237184 8388608
|
| 28 |
+
1.ca_o pk 2048 2048 222625792 8388608
|
| 29 |
+
1.ca_qn f 1 128 231014400 512
|
| 30 |
+
1.ca_kn f 1 128 231018496 512
|
| 31 |
+
1.l1 pk 8192 2048 231022592 33554432
|
| 32 |
+
1.l2 pk 2048 8192 264577024 33554432
|
| 33 |
+
1.msa1 h 256 2048 298131456 1048576
|
| 34 |
+
1.msa2 h 6144 256 299180032 3145728
|
| 35 |
+
1.mca1 h 256 2048 302325760 1048576
|
| 36 |
+
1.mca2 h 6144 256 303374336 3145728
|
| 37 |
+
1.mmlp1 h 256 2048 306520064 1048576
|
| 38 |
+
1.mmlp2 h 6144 256 307568640 3145728
|
| 39 |
+
2.sa_qkv pk 6144 2048 310714368 25165824
|
| 40 |
+
2.sa_o pk 2048 2048 335880192 8388608
|
| 41 |
+
2.sa_qn f 1 128 344268800 512
|
| 42 |
+
2.sa_kn f 1 128 344272896 512
|
| 43 |
+
2.ca_q pk 2048 2048 344276992 8388608
|
| 44 |
+
2.ca_kv pk 4096 1024 352665600 8388608
|
| 45 |
+
2.ca_o pk 2048 2048 361054208 8388608
|
| 46 |
+
2.ca_qn f 1 128 369442816 512
|
| 47 |
+
2.ca_kn f 1 128 369446912 512
|
| 48 |
+
2.l1 pk 8192 2048 369451008 33554432
|
| 49 |
+
2.l2 pk 2048 8192 403005440 33554432
|
| 50 |
+
2.msa1 h 256 2048 436559872 1048576
|
| 51 |
+
2.msa2 h 6144 256 437608448 3145728
|
| 52 |
+
2.mca1 h 256 2048 440754176 1048576
|
| 53 |
+
2.mca2 h 6144 256 441802752 3145728
|
| 54 |
+
2.mmlp1 h 256 2048 444948480 1048576
|
| 55 |
+
2.mmlp2 h 6144 256 445997056 3145728
|
| 56 |
+
3.sa_qkv pk 6144 2048 449142784 25165824
|
| 57 |
+
3.sa_o pk 2048 2048 474308608 8388608
|
| 58 |
+
3.sa_qn f 1 128 482697216 512
|
| 59 |
+
3.sa_kn f 1 128 482701312 512
|
| 60 |
+
3.ca_q pk 2048 2048 482705408 8388608
|
| 61 |
+
3.ca_kv pk 4096 1024 491094016 8388608
|
| 62 |
+
3.ca_o pk 2048 2048 499482624 8388608
|
| 63 |
+
3.ca_qn f 1 128 507871232 512
|
| 64 |
+
3.ca_kn f 1 128 507875328 512
|
| 65 |
+
3.l1 pk 8192 2048 507879424 33554432
|
| 66 |
+
3.l2 pk 2048 8192 541433856 33554432
|
| 67 |
+
3.msa1 h 256 2048 574988288 1048576
|
| 68 |
+
3.msa2 h 6144 256 576036864 3145728
|
| 69 |
+
3.mca1 h 256 2048 579182592 1048576
|
| 70 |
+
3.mca2 h 6144 256 580231168 3145728
|
| 71 |
+
3.mmlp1 h 256 2048 583376896 1048576
|
| 72 |
+
3.mmlp2 h 6144 256 584425472 3145728
|
| 73 |
+
4.sa_qkv pk 6144 2048 587571200 25165824
|
| 74 |
+
4.sa_o pk 2048 2048 612737024 8388608
|
| 75 |
+
4.sa_qn f 1 128 621125632 512
|
| 76 |
+
4.sa_kn f 1 128 621129728 512
|
| 77 |
+
4.ca_q pk 2048 2048 621133824 8388608
|
| 78 |
+
4.ca_kv pk 4096 1024 629522432 8388608
|
| 79 |
+
4.ca_o pk 2048 2048 637911040 8388608
|
| 80 |
+
4.ca_qn f 1 128 646299648 512
|
| 81 |
+
4.ca_kn f 1 128 646303744 512
|
| 82 |
+
4.l1 pk 8192 2048 646307840 33554432
|
| 83 |
+
4.l2 pk 2048 8192 679862272 33554432
|
| 84 |
+
4.msa1 h 256 2048 713416704 1048576
|
| 85 |
+
4.msa2 h 6144 256 714465280 3145728
|
| 86 |
+
4.mca1 h 256 2048 717611008 1048576
|
| 87 |
+
4.mca2 h 6144 256 718659584 3145728
|
| 88 |
+
4.mmlp1 h 256 2048 721805312 1048576
|
| 89 |
+
4.mmlp2 h 6144 256 722853888 3145728
|
| 90 |
+
5.sa_qkv pk 6144 2048 725999616 25165824
|
| 91 |
+
5.sa_o pk 2048 2048 751165440 8388608
|
| 92 |
+
5.sa_qn f 1 128 759554048 512
|
| 93 |
+
5.sa_kn f 1 128 759558144 512
|
| 94 |
+
5.ca_q pk 2048 2048 759562240 8388608
|
| 95 |
+
5.ca_kv pk 4096 1024 767950848 8388608
|
| 96 |
+
5.ca_o pk 2048 2048 776339456 8388608
|
| 97 |
+
5.ca_qn f 1 128 784728064 512
|
| 98 |
+
5.ca_kn f 1 128 784732160 512
|
| 99 |
+
5.l1 pk 8192 2048 784736256 33554432
|
| 100 |
+
5.l2 pk 2048 8192 818290688 33554432
|
| 101 |
+
5.msa1 h 256 2048 851845120 1048576
|
| 102 |
+
5.msa2 h 6144 256 852893696 3145728
|
| 103 |
+
5.mca1 h 256 2048 856039424 1048576
|
| 104 |
+
5.mca2 h 6144 256 857088000 3145728
|
| 105 |
+
5.mmlp1 h 256 2048 860233728 1048576
|
| 106 |
+
5.mmlp2 h 6144 256 861282304 3145728
|
| 107 |
+
6.sa_qkv pk 6144 2048 864428032 25165824
|
| 108 |
+
6.sa_o pk 2048 2048 889593856 8388608
|
| 109 |
+
6.sa_qn f 1 128 897982464 512
|
| 110 |
+
6.sa_kn f 1 128 897986560 512
|
| 111 |
+
6.ca_q pk 2048 2048 897990656 8388608
|
| 112 |
+
6.ca_kv pk 4096 1024 906379264 8388608
|
| 113 |
+
6.ca_o pk 2048 2048 914767872 8388608
|
| 114 |
+
6.ca_qn f 1 128 923156480 512
|
| 115 |
+
6.ca_kn f 1 128 923160576 512
|
| 116 |
+
6.l1 pk 8192 2048 923164672 33554432
|
| 117 |
+
6.l2 pk 2048 8192 956719104 33554432
|
| 118 |
+
6.msa1 h 256 2048 990273536 1048576
|
| 119 |
+
6.msa2 h 6144 256 991322112 3145728
|
| 120 |
+
6.mca1 h 256 2048 994467840 1048576
|
| 121 |
+
6.mca2 h 6144 256 995516416 3145728
|
| 122 |
+
6.mmlp1 h 256 2048 998662144 1048576
|
| 123 |
+
6.mmlp2 h 6144 256 999710720 3145728
|
| 124 |
+
7.sa_qkv pk 6144 2048 1002856448 25165824
|
| 125 |
+
7.sa_o pk 2048 2048 1028022272 8388608
|
| 126 |
+
7.sa_qn f 1 128 1036410880 512
|
| 127 |
+
7.sa_kn f 1 128 1036414976 512
|
| 128 |
+
7.ca_q pk 2048 2048 1036419072 8388608
|
| 129 |
+
7.ca_kv pk 4096 1024 1044807680 8388608
|
| 130 |
+
7.ca_o pk 2048 2048 1053196288 8388608
|
| 131 |
+
7.ca_qn f 1 128 1061584896 512
|
| 132 |
+
7.ca_kn f 1 128 1061588992 512
|
| 133 |
+
7.l1 pk 8192 2048 1061593088 33554432
|
| 134 |
+
7.l2 pk 2048 8192 1095147520 33554432
|
| 135 |
+
7.msa1 h 256 2048 1128701952 1048576
|
| 136 |
+
7.msa2 h 6144 256 1129750528 3145728
|
| 137 |
+
7.mca1 h 256 2048 1132896256 1048576
|
| 138 |
+
7.mca2 h 6144 256 1133944832 3145728
|
| 139 |
+
7.mmlp1 h 256 2048 1137090560 1048576
|
| 140 |
+
7.mmlp2 h 6144 256 1138139136 3145728
|
| 141 |
+
8.sa_qkv pk 6144 2048 1141284864 25165824
|
| 142 |
+
8.sa_o pk 2048 2048 1166450688 8388608
|
| 143 |
+
8.sa_qn f 1 128 1174839296 512
|
| 144 |
+
8.sa_kn f 1 128 1174843392 512
|
| 145 |
+
8.ca_q pk 2048 2048 1174847488 8388608
|
| 146 |
+
8.ca_kv pk 4096 1024 1183236096 8388608
|
| 147 |
+
8.ca_o pk 2048 2048 1191624704 8388608
|
| 148 |
+
8.ca_qn f 1 128 1200013312 512
|
| 149 |
+
8.ca_kn f 1 128 1200017408 512
|
| 150 |
+
8.l1 pk 8192 2048 1200021504 33554432
|
| 151 |
+
8.l2 pk 2048 8192 1233575936 33554432
|
| 152 |
+
8.msa1 h 256 2048 1267130368 1048576
|
| 153 |
+
8.msa2 h 6144 256 1268178944 3145728
|
| 154 |
+
8.mca1 h 256 2048 1271324672 1048576
|
| 155 |
+
8.mca2 h 6144 256 1272373248 3145728
|
| 156 |
+
8.mmlp1 h 256 2048 1275518976 1048576
|
| 157 |
+
8.mmlp2 h 6144 256 1276567552 3145728
|
| 158 |
+
9.sa_qkv pk 6144 2048 1279713280 25165824
|
| 159 |
+
9.sa_o pk 2048 2048 1304879104 8388608
|
| 160 |
+
9.sa_qn f 1 128 1313267712 512
|
| 161 |
+
9.sa_kn f 1 128 1313271808 512
|
| 162 |
+
9.ca_q pk 2048 2048 1313275904 8388608
|
| 163 |
+
9.ca_kv pk 4096 1024 1321664512 8388608
|
| 164 |
+
9.ca_o pk 2048 2048 1330053120 8388608
|
| 165 |
+
9.ca_qn f 1 128 1338441728 512
|
| 166 |
+
9.ca_kn f 1 128 1338445824 512
|
| 167 |
+
9.l1 pk 8192 2048 1338449920 33554432
|
| 168 |
+
9.l2 pk 2048 8192 1372004352 33554432
|
| 169 |
+
9.msa1 h 256 2048 1405558784 1048576
|
| 170 |
+
9.msa2 h 6144 256 1406607360 3145728
|
| 171 |
+
9.mca1 h 256 2048 1409753088 1048576
|
| 172 |
+
9.mca2 h 6144 256 1410801664 3145728
|
| 173 |
+
9.mmlp1 h 256 2048 1413947392 1048576
|
| 174 |
+
9.mmlp2 h 6144 256 1414995968 3145728
|
| 175 |
+
10.sa_qkv pk 6144 2048 1418141696 25165824
|
| 176 |
+
10.sa_o pk 2048 2048 1443307520 8388608
|
| 177 |
+
10.sa_qn f 1 128 1451696128 512
|
| 178 |
+
10.sa_kn f 1 128 1451700224 512
|
| 179 |
+
10.ca_q pk 2048 2048 1451704320 8388608
|
| 180 |
+
10.ca_kv pk 4096 1024 1460092928 8388608
|
| 181 |
+
10.ca_o pk 2048 2048 1468481536 8388608
|
| 182 |
+
10.ca_qn f 1 128 1476870144 512
|
| 183 |
+
10.ca_kn f 1 128 1476874240 512
|
| 184 |
+
10.l1 pk 8192 2048 1476878336 33554432
|
| 185 |
+
10.l2 pk 2048 8192 1510432768 33554432
|
| 186 |
+
10.msa1 h 256 2048 1543987200 1048576
|
| 187 |
+
10.msa2 h 6144 256 1545035776 3145728
|
| 188 |
+
10.mca1 h 256 2048 1548181504 1048576
|
| 189 |
+
10.mca2 h 6144 256 1549230080 3145728
|
| 190 |
+
10.mmlp1 h 256 2048 1552375808 1048576
|
| 191 |
+
10.mmlp2 h 6144 256 1553424384 3145728
|
| 192 |
+
11.sa_qkv pk 6144 2048 1556570112 25165824
|
| 193 |
+
11.sa_o pk 2048 2048 1581735936 8388608
|
| 194 |
+
11.sa_qn f 1 128 1590124544 512
|
| 195 |
+
11.sa_kn f 1 128 1590128640 512
|
| 196 |
+
11.ca_q pk 2048 2048 1590132736 8388608
|
| 197 |
+
11.ca_kv pk 4096 1024 1598521344 8388608
|
| 198 |
+
11.ca_o pk 2048 2048 1606909952 8388608
|
| 199 |
+
11.ca_qn f 1 128 1615298560 512
|
| 200 |
+
11.ca_kn f 1 128 1615302656 512
|
| 201 |
+
11.l1 pk 8192 2048 1615306752 33554432
|
| 202 |
+
11.l2 pk 2048 8192 1648861184 33554432
|
| 203 |
+
11.msa1 h 256 2048 1682415616 1048576
|
| 204 |
+
11.msa2 h 6144 256 1683464192 3145728
|
| 205 |
+
11.mca1 h 256 2048 1686609920 1048576
|
| 206 |
+
11.mca2 h 6144 256 1687658496 3145728
|
| 207 |
+
11.mmlp1 h 256 2048 1690804224 1048576
|
| 208 |
+
11.mmlp2 h 6144 256 1691852800 3145728
|
| 209 |
+
12.sa_qkv pk 6144 2048 1694998528 25165824
|
| 210 |
+
12.sa_o pk 2048 2048 1720164352 8388608
|
| 211 |
+
12.sa_qn f 1 128 1728552960 512
|
| 212 |
+
12.sa_kn f 1 128 1728557056 512
|
| 213 |
+
12.ca_q pk 2048 2048 1728561152 8388608
|
| 214 |
+
12.ca_kv pk 4096 1024 1736949760 8388608
|
| 215 |
+
12.ca_o pk 2048 2048 1745338368 8388608
|
| 216 |
+
12.ca_qn f 1 128 1753726976 512
|
| 217 |
+
12.ca_kn f 1 128 1753731072 512
|
| 218 |
+
12.l1 pk 8192 2048 1753735168 33554432
|
| 219 |
+
12.l2 pk 2048 8192 1787289600 33554432
|
| 220 |
+
12.msa1 h 256 2048 1820844032 1048576
|
| 221 |
+
12.msa2 h 6144 256 1821892608 3145728
|
| 222 |
+
12.mca1 h 256 2048 1825038336 1048576
|
| 223 |
+
12.mca2 h 6144 256 1826086912 3145728
|
| 224 |
+
12.mmlp1 h 256 2048 1829232640 1048576
|
| 225 |
+
12.mmlp2 h 6144 256 1830281216 3145728
|
| 226 |
+
13.sa_qkv pk 6144 2048 1833426944 25165824
|
| 227 |
+
13.sa_o pk 2048 2048 1858592768 8388608
|
| 228 |
+
13.sa_qn f 1 128 1866981376 512
|
| 229 |
+
13.sa_kn f 1 128 1866985472 512
|
| 230 |
+
13.ca_q pk 2048 2048 1866989568 8388608
|
| 231 |
+
13.ca_kv pk 4096 1024 1875378176 8388608
|
| 232 |
+
13.ca_o pk 2048 2048 1883766784 8388608
|
| 233 |
+
13.ca_qn f 1 128 1892155392 512
|
| 234 |
+
13.ca_kn f 1 128 1892159488 512
|
| 235 |
+
13.l1 pk 8192 2048 1892163584 33554432
|
| 236 |
+
13.l2 pk 2048 8192 1925718016 33554432
|
| 237 |
+
13.msa1 h 256 2048 1959272448 1048576
|
| 238 |
+
13.msa2 h 6144 256 1960321024 3145728
|
| 239 |
+
13.mca1 h 256 2048 1963466752 1048576
|
| 240 |
+
13.mca2 h 6144 256 1964515328 3145728
|
| 241 |
+
13.mmlp1 h 256 2048 1967661056 1048576
|
| 242 |
+
13.mmlp2 h 6144 256 1968709632 3145728
|
| 243 |
+
14.sa_qkv pk 6144 2048 1971855360 25165824
|
| 244 |
+
14.sa_o pk 2048 2048 1997021184 8388608
|
| 245 |
+
14.sa_qn f 1 128 2005409792 512
|
| 246 |
+
14.sa_kn f 1 128 2005413888 512
|
| 247 |
+
14.ca_q pk 2048 2048 2005417984 8388608
|
| 248 |
+
14.ca_kv pk 4096 1024 2013806592 8388608
|
| 249 |
+
14.ca_o pk 2048 2048 2022195200 8388608
|
| 250 |
+
14.ca_qn f 1 128 2030583808 512
|
| 251 |
+
14.ca_kn f 1 128 2030587904 512
|
| 252 |
+
14.l1 pk 8192 2048 2030592000 33554432
|
| 253 |
+
14.l2 pk 2048 8192 2064146432 33554432
|
| 254 |
+
14.msa1 h 256 2048 2097700864 1048576
|
| 255 |
+
14.msa2 h 6144 256 2098749440 3145728
|
| 256 |
+
14.mca1 h 256 2048 2101895168 1048576
|
| 257 |
+
14.mca2 h 6144 256 2102943744 3145728
|
| 258 |
+
14.mmlp1 h 256 2048 2106089472 1048576
|
| 259 |
+
14.mmlp2 h 6144 256 2107138048 3145728
|
| 260 |
+
15.sa_qkv pk 6144 2048 2110283776 25165824
|
| 261 |
+
15.sa_o pk 2048 2048 2135449600 8388608
|
| 262 |
+
15.sa_qn f 1 128 2143838208 512
|
| 263 |
+
15.sa_kn f 1 128 2143842304 512
|
| 264 |
+
15.ca_q pk 2048 2048 2143846400 8388608
|
| 265 |
+
15.ca_kv pk 4096 1024 2152235008 8388608
|
| 266 |
+
15.ca_o pk 2048 2048 2160623616 8388608
|
| 267 |
+
15.ca_qn f 1 128 2169012224 512
|
| 268 |
+
15.ca_kn f 1 128 2169016320 512
|
| 269 |
+
15.l1 pk 8192 2048 2169020416 33554432
|
| 270 |
+
15.l2 pk 2048 8192 2202574848 33554432
|
| 271 |
+
15.msa1 h 256 2048 2236129280 1048576
|
| 272 |
+
15.msa2 h 6144 256 2237177856 3145728
|
| 273 |
+
15.mca1 h 256 2048 2240323584 1048576
|
| 274 |
+
15.mca2 h 6144 256 2241372160 3145728
|
| 275 |
+
15.mmlp1 h 256 2048 2244517888 1048576
|
| 276 |
+
15.mmlp2 h 6144 256 2245566464 3145728
|
| 277 |
+
16.sa_qkv pk 6144 2048 2248712192 25165824
|
| 278 |
+
16.sa_o pk 2048 2048 2273878016 8388608
|
| 279 |
+
16.sa_qn f 1 128 2282266624 512
|
| 280 |
+
16.sa_kn f 1 128 2282270720 512
|
| 281 |
+
16.ca_q pk 2048 2048 2282274816 8388608
|
| 282 |
+
16.ca_kv pk 4096 1024 2290663424 8388608
|
| 283 |
+
16.ca_o pk 2048 2048 2299052032 8388608
|
| 284 |
+
16.ca_qn f 1 128 2307440640 512
|
| 285 |
+
16.ca_kn f 1 128 2307444736 512
|
| 286 |
+
16.l1 pk 8192 2048 2307448832 33554432
|
| 287 |
+
16.l2 pk 2048 8192 2341003264 33554432
|
| 288 |
+
16.msa1 h 256 2048 2374557696 1048576
|
| 289 |
+
16.msa2 h 6144 256 2375606272 3145728
|
| 290 |
+
16.mca1 h 256 2048 2378752000 1048576
|
| 291 |
+
16.mca2 h 6144 256 2379800576 3145728
|
| 292 |
+
16.mmlp1 h 256 2048 2382946304 1048576
|
| 293 |
+
16.mmlp2 h 6144 256 2383994880 3145728
|
| 294 |
+
17.sa_qkv pk 6144 2048 2387140608 25165824
|
| 295 |
+
17.sa_o pk 2048 2048 2412306432 8388608
|
| 296 |
+
17.sa_qn f 1 128 2420695040 512
|
| 297 |
+
17.sa_kn f 1 128 2420699136 512
|
| 298 |
+
17.ca_q pk 2048 2048 2420703232 8388608
|
| 299 |
+
17.ca_kv pk 4096 1024 2429091840 8388608
|
| 300 |
+
17.ca_o pk 2048 2048 2437480448 8388608
|
| 301 |
+
17.ca_qn f 1 128 2445869056 512
|
| 302 |
+
17.ca_kn f 1 128 2445873152 512
|
| 303 |
+
17.l1 pk 8192 2048 2445877248 33554432
|
| 304 |
+
17.l2 pk 2048 8192 2479431680 33554432
|
| 305 |
+
17.msa1 h 256 2048 2512986112 1048576
|
| 306 |
+
17.msa2 h 6144 256 2514034688 3145728
|
| 307 |
+
17.mca1 h 256 2048 2517180416 1048576
|
| 308 |
+
17.mca2 h 6144 256 2518228992 3145728
|
| 309 |
+
17.mmlp1 h 256 2048 2521374720 1048576
|
| 310 |
+
17.mmlp2 h 6144 256 2522423296 3145728
|
| 311 |
+
18.sa_qkv pk 6144 2048 2525569024 25165824
|
| 312 |
+
18.sa_o pk 2048 2048 2550734848 8388608
|
| 313 |
+
18.sa_qn f 1 128 2559123456 512
|
| 314 |
+
18.sa_kn f 1 128 2559127552 512
|
| 315 |
+
18.ca_q pk 2048 2048 2559131648 8388608
|
| 316 |
+
18.ca_kv pk 4096 1024 2567520256 8388608
|
| 317 |
+
18.ca_o pk 2048 2048 2575908864 8388608
|
| 318 |
+
18.ca_qn f 1 128 2584297472 512
|
| 319 |
+
18.ca_kn f 1 128 2584301568 512
|
| 320 |
+
18.l1 pk 8192 2048 2584305664 33554432
|
| 321 |
+
18.l2 pk 2048 8192 2617860096 33554432
|
| 322 |
+
18.msa1 h 256 2048 2651414528 1048576
|
| 323 |
+
18.msa2 h 6144 256 2652463104 3145728
|
| 324 |
+
18.mca1 h 256 2048 2655608832 1048576
|
| 325 |
+
18.mca2 h 6144 256 2656657408 3145728
|
| 326 |
+
18.mmlp1 h 256 2048 2659803136 1048576
|
| 327 |
+
18.mmlp2 h 6144 256 2660851712 3145728
|
| 328 |
+
19.sa_qkv pk 6144 2048 2663997440 25165824
|
| 329 |
+
19.sa_o pk 2048 2048 2689163264 8388608
|
| 330 |
+
19.sa_qn f 1 128 2697551872 512
|
| 331 |
+
19.sa_kn f 1 128 2697555968 512
|
| 332 |
+
19.ca_q pk 2048 2048 2697560064 8388608
|
| 333 |
+
19.ca_kv pk 4096 1024 2705948672 8388608
|
| 334 |
+
19.ca_o pk 2048 2048 2714337280 8388608
|
| 335 |
+
19.ca_qn f 1 128 2722725888 512
|
| 336 |
+
19.ca_kn f 1 128 2722729984 512
|
| 337 |
+
19.l1 pk 8192 2048 2722734080 33554432
|
| 338 |
+
19.l2 pk 2048 8192 2756288512 33554432
|
| 339 |
+
19.msa1 h 256 2048 2789842944 1048576
|
| 340 |
+
19.msa2 h 6144 256 2790891520 3145728
|
| 341 |
+
19.mca1 h 256 2048 2794037248 1048576
|
| 342 |
+
19.mca2 h 6144 256 2795085824 3145728
|
| 343 |
+
19.mmlp1 h 256 2048 2798231552 1048576
|
| 344 |
+
19.mmlp2 h 6144 256 2799280128 3145728
|
| 345 |
+
20.sa_qkv pk 6144 2048 2802425856 25165824
|
| 346 |
+
20.sa_o pk 2048 2048 2827591680 8388608
|
| 347 |
+
20.sa_qn f 1 128 2835980288 512
|
| 348 |
+
20.sa_kn f 1 128 2835984384 512
|
| 349 |
+
20.ca_q pk 2048 2048 2835988480 8388608
|
| 350 |
+
20.ca_kv pk 4096 1024 2844377088 8388608
|
| 351 |
+
20.ca_o pk 2048 2048 2852765696 8388608
|
| 352 |
+
20.ca_qn f 1 128 2861154304 512
|
| 353 |
+
20.ca_kn f 1 128 2861158400 512
|
| 354 |
+
20.l1 pk 8192 2048 2861162496 33554432
|
| 355 |
+
20.l2 pk 2048 8192 2894716928 33554432
|
| 356 |
+
20.msa1 h 256 2048 2928271360 1048576
|
| 357 |
+
20.msa2 h 6144 256 2929319936 3145728
|
| 358 |
+
20.mca1 h 256 2048 2932465664 1048576
|
| 359 |
+
20.mca2 h 6144 256 2933514240 3145728
|
| 360 |
+
20.mmlp1 h 256 2048 2936659968 1048576
|
| 361 |
+
20.mmlp2 h 6144 256 2937708544 3145728
|
| 362 |
+
21.sa_qkv pk 6144 2048 2940854272 25165824
|
| 363 |
+
21.sa_o pk 2048 2048 2966020096 8388608
|
| 364 |
+
21.sa_qn f 1 128 2974408704 512
|
| 365 |
+
21.sa_kn f 1 128 2974412800 512
|
| 366 |
+
21.ca_q pk 2048 2048 2974416896 8388608
|
| 367 |
+
21.ca_kv pk 4096 1024 2982805504 8388608
|
| 368 |
+
21.ca_o pk 2048 2048 2991194112 8388608
|
| 369 |
+
21.ca_qn f 1 128 2999582720 512
|
| 370 |
+
21.ca_kn f 1 128 2999586816 512
|
| 371 |
+
21.l1 pk 8192 2048 2999590912 33554432
|
| 372 |
+
21.l2 pk 2048 8192 3033145344 33554432
|
| 373 |
+
21.msa1 h 256 2048 3066699776 1048576
|
| 374 |
+
21.msa2 h 6144 256 3067748352 3145728
|
| 375 |
+
21.mca1 h 256 2048 3070894080 1048576
|
| 376 |
+
21.mca2 h 6144 256 3071942656 3145728
|
| 377 |
+
21.mmlp1 h 256 2048 3075088384 1048576
|
| 378 |
+
21.mmlp2 h 6144 256 3076136960 3145728
|
| 379 |
+
22.sa_qkv pk 6144 2048 3079282688 25165824
|
| 380 |
+
22.sa_o pk 2048 2048 3104448512 8388608
|
| 381 |
+
22.sa_qn f 1 128 3112837120 512
|
| 382 |
+
22.sa_kn f 1 128 3112841216 512
|
| 383 |
+
22.ca_q pk 2048 2048 3112845312 8388608
|
| 384 |
+
22.ca_kv pk 4096 1024 3121233920 8388608
|
| 385 |
+
22.ca_o pk 2048 2048 3129622528 8388608
|
| 386 |
+
22.ca_qn f 1 128 3138011136 512
|
| 387 |
+
22.ca_kn f 1 128 3138015232 512
|
| 388 |
+
22.l1 pk 8192 2048 3138019328 33554432
|
| 389 |
+
22.l2 pk 2048 8192 3171573760 33554432
|
| 390 |
+
22.msa1 h 256 2048 3205128192 1048576
|
| 391 |
+
22.msa2 h 6144 256 3206176768 3145728
|
| 392 |
+
22.mca1 h 256 2048 3209322496 1048576
|
| 393 |
+
22.mca2 h 6144 256 3210371072 3145728
|
| 394 |
+
22.mmlp1 h 256 2048 3213516800 1048576
|
| 395 |
+
22.mmlp2 h 6144 256 3214565376 3145728
|
| 396 |
+
23.sa_qkv pk 6144 2048 3217711104 25165824
|
| 397 |
+
23.sa_o pk 2048 2048 3242876928 8388608
|
| 398 |
+
23.sa_qn f 1 128 3251265536 512
|
| 399 |
+
23.sa_kn f 1 128 3251269632 512
|
| 400 |
+
23.ca_q pk 2048 2048 3251273728 8388608
|
| 401 |
+
23.ca_kv pk 4096 1024 3259662336 8388608
|
| 402 |
+
23.ca_o pk 2048 2048 3268050944 8388608
|
| 403 |
+
23.ca_qn f 1 128 3276439552 512
|
| 404 |
+
23.ca_kn f 1 128 3276443648 512
|
| 405 |
+
23.l1 pk 8192 2048 3276447744 33554432
|
| 406 |
+
23.l2 pk 2048 8192 3310002176 33554432
|
| 407 |
+
23.msa1 h 256 2048 3343556608 1048576
|
| 408 |
+
23.msa2 h 6144 256 3344605184 3145728
|
| 409 |
+
23.mca1 h 256 2048 3347750912 1048576
|
| 410 |
+
23.mca2 h 6144 256 3348799488 3145728
|
| 411 |
+
23.mmlp1 h 256 2048 3351945216 1048576
|
| 412 |
+
23.mmlp2 h 6144 256 3352993792 3145728
|
| 413 |
+
24.sa_qkv pk 6144 2048 3356139520 25165824
|
| 414 |
+
24.sa_o pk 2048 2048 3381305344 8388608
|
| 415 |
+
24.sa_qn f 1 128 3389693952 512
|
| 416 |
+
24.sa_kn f 1 128 3389698048 512
|
| 417 |
+
24.ca_q pk 2048 2048 3389702144 8388608
|
| 418 |
+
24.ca_kv pk 4096 1024 3398090752 8388608
|
| 419 |
+
24.ca_o pk 2048 2048 3406479360 8388608
|
| 420 |
+
24.ca_qn f 1 128 3414867968 512
|
| 421 |
+
24.ca_kn f 1 128 3414872064 512
|
| 422 |
+
24.l1 pk 8192 2048 3414876160 33554432
|
| 423 |
+
24.l2 pk 2048 8192 3448430592 33554432
|
| 424 |
+
24.msa1 h 256 2048 3481985024 1048576
|
| 425 |
+
24.msa2 h 6144 256 3483033600 3145728
|
| 426 |
+
24.mca1 h 256 2048 3486179328 1048576
|
| 427 |
+
24.mca2 h 6144 256 3487227904 3145728
|
| 428 |
+
24.mmlp1 h 256 2048 3490373632 1048576
|
| 429 |
+
24.mmlp2 h 6144 256 3491422208 3145728
|
| 430 |
+
25.sa_qkv pk 6144 2048 3494567936 25165824
|
| 431 |
+
25.sa_o pk 2048 2048 3519733760 8388608
|
| 432 |
+
25.sa_qn f 1 128 3528122368 512
|
| 433 |
+
25.sa_kn f 1 128 3528126464 512
|
| 434 |
+
25.ca_q pk 2048 2048 3528130560 8388608
|
| 435 |
+
25.ca_kv pk 4096 1024 3536519168 8388608
|
| 436 |
+
25.ca_o pk 2048 2048 3544907776 8388608
|
| 437 |
+
25.ca_qn f 1 128 3553296384 512
|
| 438 |
+
25.ca_kn f 1 128 3553300480 512
|
| 439 |
+
25.l1 pk 8192 2048 3553304576 33554432
|
| 440 |
+
25.l2 pk 2048 8192 3586859008 33554432
|
| 441 |
+
25.msa1 h 256 2048 3620413440 1048576
|
| 442 |
+
25.msa2 h 6144 256 3621462016 3145728
|
| 443 |
+
25.mca1 h 256 2048 3624607744 1048576
|
| 444 |
+
25.mca2 h 6144 256 3625656320 3145728
|
| 445 |
+
25.mmlp1 h 256 2048 3628802048 1048576
|
| 446 |
+
25.mmlp2 h 6144 256 3629850624 3145728
|
| 447 |
+
26.sa_qkv pk 6144 2048 3632996352 25165824
|
| 448 |
+
26.sa_o pk 2048 2048 3658162176 8388608
|
| 449 |
+
26.sa_qn f 1 128 3666550784 512
|
| 450 |
+
26.sa_kn f 1 128 3666554880 512
|
| 451 |
+
26.ca_q pk 2048 2048 3666558976 8388608
|
| 452 |
+
26.ca_kv pk 4096 1024 3674947584 8388608
|
| 453 |
+
26.ca_o pk 2048 2048 3683336192 8388608
|
| 454 |
+
26.ca_qn f 1 128 3691724800 512
|
| 455 |
+
26.ca_kn f 1 128 3691728896 512
|
| 456 |
+
26.l1 pk 8192 2048 3691732992 33554432
|
| 457 |
+
26.l2 pk 2048 8192 3725287424 33554432
|
| 458 |
+
26.msa1 h 256 2048 3758841856 1048576
|
| 459 |
+
26.msa2 h 6144 256 3759890432 3145728
|
| 460 |
+
26.mca1 h 256 2048 3763036160 1048576
|
| 461 |
+
26.mca2 h 6144 256 3764084736 3145728
|
| 462 |
+
26.mmlp1 h 256 2048 3767230464 1048576
|
| 463 |
+
26.mmlp2 h 6144 256 3768279040 3145728
|
| 464 |
+
27.sa_qkv pk 6144 2048 3771424768 25165824
|
| 465 |
+
27.sa_o pk 2048 2048 3796590592 8388608
|
| 466 |
+
27.sa_qn f 1 128 3804979200 512
|
| 467 |
+
27.sa_kn f 1 128 3804983296 512
|
| 468 |
+
27.ca_q pk 2048 2048 3804987392 8388608
|
| 469 |
+
27.ca_kv pk 4096 1024 3813376000 8388608
|
| 470 |
+
27.ca_o pk 2048 2048 3821764608 8388608
|
| 471 |
+
27.ca_qn f 1 128 3830153216 512
|
| 472 |
+
27.ca_kn f 1 128 3830157312 512
|
| 473 |
+
27.l1 pk 8192 2048 3830161408 33554432
|
| 474 |
+
27.l2 pk 2048 8192 3863715840 33554432
|
| 475 |
+
27.msa1 h 256 2048 3897270272 1048576
|
| 476 |
+
27.msa2 h 6144 256 3898318848 3145728
|
| 477 |
+
27.mca1 h 256 2048 3901464576 1048576
|
| 478 |
+
27.mca2 h 6144 256 3902513152 3145728
|
| 479 |
+
27.mmlp1 h 256 2048 3905658880 1048576
|
| 480 |
+
27.mmlp2 h 6144 256 3906707456 3145728
|
| 481 |
+
fmod1 h 256 2048 3909853184 1048576
|
| 482 |
+
fmod2 h 4096 256 3910901760 2097152
|
| 483 |
+
final_linear pk 64 2048 3912998912 262144
|
files/anima_q8.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0fc9bf61dea0e34ba262deba3aa1e17c36f07407cb0b349cadc51752f9a91fb
|
| 3 |
+
size 1746927616
|
files/anima_q8.cen
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e742ec8b82ea5a883b15e8aaa44d225dcd55db443e72082f6edfdea54d518cf
|
| 3 |
+
size 36700200
|
files/anima_q8.idx
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0.sa_qkv q8 6144 2048 0 12582912
|
| 2 |
+
0.sa_qkv.s qs 6144 32 12582912 786432
|
| 3 |
+
0.sa_o q8 2048 2048 13369344 4194304
|
| 4 |
+
0.sa_o.s qs 2048 32 17563648 262144
|
| 5 |
+
0.ca_q q8 2048 2048 17825792 4194304
|
| 6 |
+
0.ca_q.s qs 2048 32 22020096 262144
|
| 7 |
+
0.ca_o q8 2048 2048 22282240 4194304
|
| 8 |
+
0.ca_o.s qs 2048 32 26476544 262144
|
| 9 |
+
0.l1 q8 8192 2048 26738688 16777216
|
| 10 |
+
0.l1.s qs 8192 32 43515904 1048576
|
| 11 |
+
0.l2 q8 2048 8192 44564480 16777216
|
| 12 |
+
0.l2.s qs 2048 128 61341696 1048576
|
| 13 |
+
1.sa_qkv q8 6144 2048 62390272 12582912
|
| 14 |
+
1.sa_qkv.s qs 6144 32 74973184 786432
|
| 15 |
+
1.sa_o q8 2048 2048 75759616 4194304
|
| 16 |
+
1.sa_o.s qs 2048 32 79953920 262144
|
| 17 |
+
1.ca_q q8 2048 2048 80216064 4194304
|
| 18 |
+
1.ca_q.s qs 2048 32 84410368 262144
|
| 19 |
+
1.ca_o q8 2048 2048 84672512 4194304
|
| 20 |
+
1.ca_o.s qs 2048 32 88866816 262144
|
| 21 |
+
1.l1 q8 8192 2048 89128960 16777216
|
| 22 |
+
1.l1.s qs 8192 32 105906176 1048576
|
| 23 |
+
1.l2 q8 2048 8192 106954752 16777216
|
| 24 |
+
1.l2.s qs 2048 128 123731968 1048576
|
| 25 |
+
2.sa_qkv q8 6144 2048 124780544 12582912
|
| 26 |
+
2.sa_qkv.s qs 6144 32 137363456 786432
|
| 27 |
+
2.sa_o q8 2048 2048 138149888 4194304
|
| 28 |
+
2.sa_o.s qs 2048 32 142344192 262144
|
| 29 |
+
2.ca_q q8 2048 2048 142606336 4194304
|
| 30 |
+
2.ca_q.s qs 2048 32 146800640 262144
|
| 31 |
+
2.ca_o q8 2048 2048 147062784 4194304
|
| 32 |
+
2.ca_o.s qs 2048 32 151257088 262144
|
| 33 |
+
2.l1 q8 8192 2048 151519232 16777216
|
| 34 |
+
2.l1.s qs 8192 32 168296448 1048576
|
| 35 |
+
2.l2 q8 2048 8192 169345024 16777216
|
| 36 |
+
2.l2.s qs 2048 128 186122240 1048576
|
| 37 |
+
3.sa_qkv q8 6144 2048 187170816 12582912
|
| 38 |
+
3.sa_qkv.s qs 6144 32 199753728 786432
|
| 39 |
+
3.sa_o q8 2048 2048 200540160 4194304
|
| 40 |
+
3.sa_o.s qs 2048 32 204734464 262144
|
| 41 |
+
3.ca_q q8 2048 2048 204996608 4194304
|
| 42 |
+
3.ca_q.s qs 2048 32 209190912 262144
|
| 43 |
+
3.ca_o q8 2048 2048 209453056 4194304
|
| 44 |
+
3.ca_o.s qs 2048 32 213647360 262144
|
| 45 |
+
3.l1 q8 8192 2048 213909504 16777216
|
| 46 |
+
3.l1.s qs 8192 32 230686720 1048576
|
| 47 |
+
3.l2 q8 2048 8192 231735296 16777216
|
| 48 |
+
3.l2.s qs 2048 128 248512512 1048576
|
| 49 |
+
4.sa_qkv q8 6144 2048 249561088 12582912
|
| 50 |
+
4.sa_qkv.s qs 6144 32 262144000 786432
|
| 51 |
+
4.sa_o q8 2048 2048 262930432 4194304
|
| 52 |
+
4.sa_o.s qs 2048 32 267124736 262144
|
| 53 |
+
4.ca_q q8 2048 2048 267386880 4194304
|
| 54 |
+
4.ca_q.s qs 2048 32 271581184 262144
|
| 55 |
+
4.ca_o q8 2048 2048 271843328 4194304
|
| 56 |
+
4.ca_o.s qs 2048 32 276037632 262144
|
| 57 |
+
4.l1 q8 8192 2048 276299776 16777216
|
| 58 |
+
4.l1.s qs 8192 32 293076992 1048576
|
| 59 |
+
4.l2 q8 2048 8192 294125568 16777216
|
| 60 |
+
4.l2.s qs 2048 128 310902784 1048576
|
| 61 |
+
5.sa_qkv q8 6144 2048 311951360 12582912
|
| 62 |
+
5.sa_qkv.s qs 6144 32 324534272 786432
|
| 63 |
+
5.sa_o q8 2048 2048 325320704 4194304
|
| 64 |
+
5.sa_o.s qs 2048 32 329515008 262144
|
| 65 |
+
5.ca_q q8 2048 2048 329777152 4194304
|
| 66 |
+
5.ca_q.s qs 2048 32 333971456 262144
|
| 67 |
+
5.ca_o q8 2048 2048 334233600 4194304
|
| 68 |
+
5.ca_o.s qs 2048 32 338427904 262144
|
| 69 |
+
5.l1 q8 8192 2048 338690048 16777216
|
| 70 |
+
5.l1.s qs 8192 32 355467264 1048576
|
| 71 |
+
5.l2 q8 2048 8192 356515840 16777216
|
| 72 |
+
5.l2.s qs 2048 128 373293056 1048576
|
| 73 |
+
6.sa_qkv q8 6144 2048 374341632 12582912
|
| 74 |
+
6.sa_qkv.s qs 6144 32 386924544 786432
|
| 75 |
+
6.sa_o q8 2048 2048 387710976 4194304
|
| 76 |
+
6.sa_o.s qs 2048 32 391905280 262144
|
| 77 |
+
6.ca_q q8 2048 2048 392167424 4194304
|
| 78 |
+
6.ca_q.s qs 2048 32 396361728 262144
|
| 79 |
+
6.ca_o q8 2048 2048 396623872 4194304
|
| 80 |
+
6.ca_o.s qs 2048 32 400818176 262144
|
| 81 |
+
6.l1 q8 8192 2048 401080320 16777216
|
| 82 |
+
6.l1.s qs 8192 32 417857536 1048576
|
| 83 |
+
6.l2 q8 2048 8192 418906112 16777216
|
| 84 |
+
6.l2.s qs 2048 128 435683328 1048576
|
| 85 |
+
7.sa_qkv q8 6144 2048 436731904 12582912
|
| 86 |
+
7.sa_qkv.s qs 6144 32 449314816 786432
|
| 87 |
+
7.sa_o q8 2048 2048 450101248 4194304
|
| 88 |
+
7.sa_o.s qs 2048 32 454295552 262144
|
| 89 |
+
7.ca_q q8 2048 2048 454557696 4194304
|
| 90 |
+
7.ca_q.s qs 2048 32 458752000 262144
|
| 91 |
+
7.ca_o q8 2048 2048 459014144 4194304
|
| 92 |
+
7.ca_o.s qs 2048 32 463208448 262144
|
| 93 |
+
7.l1 q8 8192 2048 463470592 16777216
|
| 94 |
+
7.l1.s qs 8192 32 480247808 1048576
|
| 95 |
+
7.l2 q8 2048 8192 481296384 16777216
|
| 96 |
+
7.l2.s qs 2048 128 498073600 1048576
|
| 97 |
+
8.sa_qkv q8 6144 2048 499122176 12582912
|
| 98 |
+
8.sa_qkv.s qs 6144 32 511705088 786432
|
| 99 |
+
8.sa_o q8 2048 2048 512491520 4194304
|
| 100 |
+
8.sa_o.s qs 2048 32 516685824 262144
|
| 101 |
+
8.ca_q q8 2048 2048 516947968 4194304
|
| 102 |
+
8.ca_q.s qs 2048 32 521142272 262144
|
| 103 |
+
8.ca_o q8 2048 2048 521404416 4194304
|
| 104 |
+
8.ca_o.s qs 2048 32 525598720 262144
|
| 105 |
+
8.l1 q8 8192 2048 525860864 16777216
|
| 106 |
+
8.l1.s qs 8192 32 542638080 1048576
|
| 107 |
+
8.l2 q8 2048 8192 543686656 16777216
|
| 108 |
+
8.l2.s qs 2048 128 560463872 1048576
|
| 109 |
+
9.sa_qkv q8 6144 2048 561512448 12582912
|
| 110 |
+
9.sa_qkv.s qs 6144 32 574095360 786432
|
| 111 |
+
9.sa_o q8 2048 2048 574881792 4194304
|
| 112 |
+
9.sa_o.s qs 2048 32 579076096 262144
|
| 113 |
+
9.ca_q q8 2048 2048 579338240 4194304
|
| 114 |
+
9.ca_q.s qs 2048 32 583532544 262144
|
| 115 |
+
9.ca_o q8 2048 2048 583794688 4194304
|
| 116 |
+
9.ca_o.s qs 2048 32 587988992 262144
|
| 117 |
+
9.l1 q8 8192 2048 588251136 16777216
|
| 118 |
+
9.l1.s qs 8192 32 605028352 1048576
|
| 119 |
+
9.l2 q8 2048 8192 606076928 16777216
|
| 120 |
+
9.l2.s qs 2048 128 622854144 1048576
|
| 121 |
+
10.sa_qkv q8 6144 2048 623902720 12582912
|
| 122 |
+
10.sa_qkv.s qs 6144 32 636485632 786432
|
| 123 |
+
10.sa_o q8 2048 2048 637272064 4194304
|
| 124 |
+
10.sa_o.s qs 2048 32 641466368 262144
|
| 125 |
+
10.ca_q q8 2048 2048 641728512 4194304
|
| 126 |
+
10.ca_q.s qs 2048 32 645922816 262144
|
| 127 |
+
10.ca_o q8 2048 2048 646184960 4194304
|
| 128 |
+
10.ca_o.s qs 2048 32 650379264 262144
|
| 129 |
+
10.l1 q8 8192 2048 650641408 16777216
|
| 130 |
+
10.l1.s qs 8192 32 667418624 1048576
|
| 131 |
+
10.l2 q8 2048 8192 668467200 16777216
|
| 132 |
+
10.l2.s qs 2048 128 685244416 1048576
|
| 133 |
+
11.sa_qkv q8 6144 2048 686292992 12582912
|
| 134 |
+
11.sa_qkv.s qs 6144 32 698875904 786432
|
| 135 |
+
11.sa_o q8 2048 2048 699662336 4194304
|
| 136 |
+
11.sa_o.s qs 2048 32 703856640 262144
|
| 137 |
+
11.ca_q q8 2048 2048 704118784 4194304
|
| 138 |
+
11.ca_q.s qs 2048 32 708313088 262144
|
| 139 |
+
11.ca_o q8 2048 2048 708575232 4194304
|
| 140 |
+
11.ca_o.s qs 2048 32 712769536 262144
|
| 141 |
+
11.l1 q8 8192 2048 713031680 16777216
|
| 142 |
+
11.l1.s qs 8192 32 729808896 1048576
|
| 143 |
+
11.l2 q8 2048 8192 730857472 16777216
|
| 144 |
+
11.l2.s qs 2048 128 747634688 1048576
|
| 145 |
+
12.sa_qkv q8 6144 2048 748683264 12582912
|
| 146 |
+
12.sa_qkv.s qs 6144 32 761266176 786432
|
| 147 |
+
12.sa_o q8 2048 2048 762052608 4194304
|
| 148 |
+
12.sa_o.s qs 2048 32 766246912 262144
|
| 149 |
+
12.ca_q q8 2048 2048 766509056 4194304
|
| 150 |
+
12.ca_q.s qs 2048 32 770703360 262144
|
| 151 |
+
12.ca_o q8 2048 2048 770965504 4194304
|
| 152 |
+
12.ca_o.s qs 2048 32 775159808 262144
|
| 153 |
+
12.l1 q8 8192 2048 775421952 16777216
|
| 154 |
+
12.l1.s qs 8192 32 792199168 1048576
|
| 155 |
+
12.l2 q8 2048 8192 793247744 16777216
|
| 156 |
+
12.l2.s qs 2048 128 810024960 1048576
|
| 157 |
+
13.sa_qkv q8 6144 2048 811073536 12582912
|
| 158 |
+
13.sa_qkv.s qs 6144 32 823656448 786432
|
| 159 |
+
13.sa_o q8 2048 2048 824442880 4194304
|
| 160 |
+
13.sa_o.s qs 2048 32 828637184 262144
|
| 161 |
+
13.ca_q q8 2048 2048 828899328 4194304
|
| 162 |
+
13.ca_q.s qs 2048 32 833093632 262144
|
| 163 |
+
13.ca_o q8 2048 2048 833355776 4194304
|
| 164 |
+
13.ca_o.s qs 2048 32 837550080 262144
|
| 165 |
+
13.l1 q8 8192 2048 837812224 16777216
|
| 166 |
+
13.l1.s qs 8192 32 854589440 1048576
|
| 167 |
+
13.l2 q8 2048 8192 855638016 16777216
|
| 168 |
+
13.l2.s qs 2048 128 872415232 1048576
|
| 169 |
+
14.sa_qkv q8 6144 2048 873463808 12582912
|
| 170 |
+
14.sa_qkv.s qs 6144 32 886046720 786432
|
| 171 |
+
14.sa_o q8 2048 2048 886833152 4194304
|
| 172 |
+
14.sa_o.s qs 2048 32 891027456 262144
|
| 173 |
+
14.ca_q q8 2048 2048 891289600 4194304
|
| 174 |
+
14.ca_q.s qs 2048 32 895483904 262144
|
| 175 |
+
14.ca_o q8 2048 2048 895746048 4194304
|
| 176 |
+
14.ca_o.s qs 2048 32 899940352 262144
|
| 177 |
+
14.l1 q8 8192 2048 900202496 16777216
|
| 178 |
+
14.l1.s qs 8192 32 916979712 1048576
|
| 179 |
+
14.l2 q8 2048 8192 918028288 16777216
|
| 180 |
+
14.l2.s qs 2048 128 934805504 1048576
|
| 181 |
+
15.sa_qkv q8 6144 2048 935854080 12582912
|
| 182 |
+
15.sa_qkv.s qs 6144 32 948436992 786432
|
| 183 |
+
15.sa_o q8 2048 2048 949223424 4194304
|
| 184 |
+
15.sa_o.s qs 2048 32 953417728 262144
|
| 185 |
+
15.ca_q q8 2048 2048 953679872 4194304
|
| 186 |
+
15.ca_q.s qs 2048 32 957874176 262144
|
| 187 |
+
15.ca_o q8 2048 2048 958136320 4194304
|
| 188 |
+
15.ca_o.s qs 2048 32 962330624 262144
|
| 189 |
+
15.l1 q8 8192 2048 962592768 16777216
|
| 190 |
+
15.l1.s qs 8192 32 979369984 1048576
|
| 191 |
+
15.l2 q8 2048 8192 980418560 16777216
|
| 192 |
+
15.l2.s qs 2048 128 997195776 1048576
|
| 193 |
+
16.sa_qkv q8 6144 2048 998244352 12582912
|
| 194 |
+
16.sa_qkv.s qs 6144 32 1010827264 786432
|
| 195 |
+
16.sa_o q8 2048 2048 1011613696 4194304
|
| 196 |
+
16.sa_o.s qs 2048 32 1015808000 262144
|
| 197 |
+
16.ca_q q8 2048 2048 1016070144 4194304
|
| 198 |
+
16.ca_q.s qs 2048 32 1020264448 262144
|
| 199 |
+
16.ca_o q8 2048 2048 1020526592 4194304
|
| 200 |
+
16.ca_o.s qs 2048 32 1024720896 262144
|
| 201 |
+
16.l1 q8 8192 2048 1024983040 16777216
|
| 202 |
+
16.l1.s qs 8192 32 1041760256 1048576
|
| 203 |
+
16.l2 q8 2048 8192 1042808832 16777216
|
| 204 |
+
16.l2.s qs 2048 128 1059586048 1048576
|
| 205 |
+
17.sa_qkv q8 6144 2048 1060634624 12582912
|
| 206 |
+
17.sa_qkv.s qs 6144 32 1073217536 786432
|
| 207 |
+
17.sa_o q8 2048 2048 1074003968 4194304
|
| 208 |
+
17.sa_o.s qs 2048 32 1078198272 262144
|
| 209 |
+
17.ca_q q8 2048 2048 1078460416 4194304
|
| 210 |
+
17.ca_q.s qs 2048 32 1082654720 262144
|
| 211 |
+
17.ca_o q8 2048 2048 1082916864 4194304
|
| 212 |
+
17.ca_o.s qs 2048 32 1087111168 262144
|
| 213 |
+
17.l1 q8 8192 2048 1087373312 16777216
|
| 214 |
+
17.l1.s qs 8192 32 1104150528 1048576
|
| 215 |
+
17.l2 q8 2048 8192 1105199104 16777216
|
| 216 |
+
17.l2.s qs 2048 128 1121976320 1048576
|
| 217 |
+
18.sa_qkv q8 6144 2048 1123024896 12582912
|
| 218 |
+
18.sa_qkv.s qs 6144 32 1135607808 786432
|
| 219 |
+
18.sa_o q8 2048 2048 1136394240 4194304
|
| 220 |
+
18.sa_o.s qs 2048 32 1140588544 262144
|
| 221 |
+
18.ca_q q8 2048 2048 1140850688 4194304
|
| 222 |
+
18.ca_q.s qs 2048 32 1145044992 262144
|
| 223 |
+
18.ca_o q8 2048 2048 1145307136 4194304
|
| 224 |
+
18.ca_o.s qs 2048 32 1149501440 262144
|
| 225 |
+
18.l1 q8 8192 2048 1149763584 16777216
|
| 226 |
+
18.l1.s qs 8192 32 1166540800 1048576
|
| 227 |
+
18.l2 q8 2048 8192 1167589376 16777216
|
| 228 |
+
18.l2.s qs 2048 128 1184366592 1048576
|
| 229 |
+
19.sa_qkv q8 6144 2048 1185415168 12582912
|
| 230 |
+
19.sa_qkv.s qs 6144 32 1197998080 786432
|
| 231 |
+
19.sa_o q8 2048 2048 1198784512 4194304
|
| 232 |
+
19.sa_o.s qs 2048 32 1202978816 262144
|
| 233 |
+
19.ca_q q8 2048 2048 1203240960 4194304
|
| 234 |
+
19.ca_q.s qs 2048 32 1207435264 262144
|
| 235 |
+
19.ca_o q8 2048 2048 1207697408 4194304
|
| 236 |
+
19.ca_o.s qs 2048 32 1211891712 262144
|
| 237 |
+
19.l1 q8 8192 2048 1212153856 16777216
|
| 238 |
+
19.l1.s qs 8192 32 1228931072 1048576
|
| 239 |
+
19.l2 q8 2048 8192 1229979648 16777216
|
| 240 |
+
19.l2.s qs 2048 128 1246756864 1048576
|
| 241 |
+
20.sa_qkv q8 6144 2048 1247805440 12582912
|
| 242 |
+
20.sa_qkv.s qs 6144 32 1260388352 786432
|
| 243 |
+
20.sa_o q8 2048 2048 1261174784 4194304
|
| 244 |
+
20.sa_o.s qs 2048 32 1265369088 262144
|
| 245 |
+
20.ca_q q8 2048 2048 1265631232 4194304
|
| 246 |
+
20.ca_q.s qs 2048 32 1269825536 262144
|
| 247 |
+
20.ca_o q8 2048 2048 1270087680 4194304
|
| 248 |
+
20.ca_o.s qs 2048 32 1274281984 262144
|
| 249 |
+
20.l1 q8 8192 2048 1274544128 16777216
|
| 250 |
+
20.l1.s qs 8192 32 1291321344 1048576
|
| 251 |
+
20.l2 q8 2048 8192 1292369920 16777216
|
| 252 |
+
20.l2.s qs 2048 128 1309147136 1048576
|
| 253 |
+
21.sa_qkv q8 6144 2048 1310195712 12582912
|
| 254 |
+
21.sa_qkv.s qs 6144 32 1322778624 786432
|
| 255 |
+
21.sa_o q8 2048 2048 1323565056 4194304
|
| 256 |
+
21.sa_o.s qs 2048 32 1327759360 262144
|
| 257 |
+
21.ca_q q8 2048 2048 1328021504 4194304
|
| 258 |
+
21.ca_q.s qs 2048 32 1332215808 262144
|
| 259 |
+
21.ca_o q8 2048 2048 1332477952 4194304
|
| 260 |
+
21.ca_o.s qs 2048 32 1336672256 262144
|
| 261 |
+
21.l1 q8 8192 2048 1336934400 16777216
|
| 262 |
+
21.l1.s qs 8192 32 1353711616 1048576
|
| 263 |
+
21.l2 q8 2048 8192 1354760192 16777216
|
| 264 |
+
21.l2.s qs 2048 128 1371537408 1048576
|
| 265 |
+
22.sa_qkv q8 6144 2048 1372585984 12582912
|
| 266 |
+
22.sa_qkv.s qs 6144 32 1385168896 786432
|
| 267 |
+
22.sa_o q8 2048 2048 1385955328 4194304
|
| 268 |
+
22.sa_o.s qs 2048 32 1390149632 262144
|
| 269 |
+
22.ca_q q8 2048 2048 1390411776 4194304
|
| 270 |
+
22.ca_q.s qs 2048 32 1394606080 262144
|
| 271 |
+
22.ca_o q8 2048 2048 1394868224 4194304
|
| 272 |
+
22.ca_o.s qs 2048 32 1399062528 262144
|
| 273 |
+
22.l1 q8 8192 2048 1399324672 16777216
|
| 274 |
+
22.l1.s qs 8192 32 1416101888 1048576
|
| 275 |
+
22.l2 q8 2048 8192 1417150464 16777216
|
| 276 |
+
22.l2.s qs 2048 128 1433927680 1048576
|
| 277 |
+
23.sa_qkv q8 6144 2048 1434976256 12582912
|
| 278 |
+
23.sa_qkv.s qs 6144 32 1447559168 786432
|
| 279 |
+
23.sa_o q8 2048 2048 1448345600 4194304
|
| 280 |
+
23.sa_o.s qs 2048 32 1452539904 262144
|
| 281 |
+
23.ca_q q8 2048 2048 1452802048 4194304
|
| 282 |
+
23.ca_q.s qs 2048 32 1456996352 262144
|
| 283 |
+
23.ca_o q8 2048 2048 1457258496 4194304
|
| 284 |
+
23.ca_o.s qs 2048 32 1461452800 262144
|
| 285 |
+
23.l1 q8 8192 2048 1461714944 16777216
|
| 286 |
+
23.l1.s qs 8192 32 1478492160 1048576
|
| 287 |
+
23.l2 q8 2048 8192 1479540736 16777216
|
| 288 |
+
23.l2.s qs 2048 128 1496317952 1048576
|
| 289 |
+
24.sa_qkv q8 6144 2048 1497366528 12582912
|
| 290 |
+
24.sa_qkv.s qs 6144 32 1509949440 786432
|
| 291 |
+
24.sa_o q8 2048 2048 1510735872 4194304
|
| 292 |
+
24.sa_o.s qs 2048 32 1514930176 262144
|
| 293 |
+
24.ca_q q8 2048 2048 1515192320 4194304
|
| 294 |
+
24.ca_q.s qs 2048 32 1519386624 262144
|
| 295 |
+
24.ca_o q8 2048 2048 1519648768 4194304
|
| 296 |
+
24.ca_o.s qs 2048 32 1523843072 262144
|
| 297 |
+
24.l1 q8 8192 2048 1524105216 16777216
|
| 298 |
+
24.l1.s qs 8192 32 1540882432 1048576
|
| 299 |
+
24.l2 q8 2048 8192 1541931008 16777216
|
| 300 |
+
24.l2.s qs 2048 128 1558708224 1048576
|
| 301 |
+
25.sa_qkv q8 6144 2048 1559756800 12582912
|
| 302 |
+
25.sa_qkv.s qs 6144 32 1572339712 786432
|
| 303 |
+
25.sa_o q8 2048 2048 1573126144 4194304
|
| 304 |
+
25.sa_o.s qs 2048 32 1577320448 262144
|
| 305 |
+
25.ca_q q8 2048 2048 1577582592 4194304
|
| 306 |
+
25.ca_q.s qs 2048 32 1581776896 262144
|
| 307 |
+
25.ca_o q8 2048 2048 1582039040 4194304
|
| 308 |
+
25.ca_o.s qs 2048 32 1586233344 262144
|
| 309 |
+
25.l1 q8 8192 2048 1586495488 16777216
|
| 310 |
+
25.l1.s qs 8192 32 1603272704 1048576
|
| 311 |
+
25.l2 q8 2048 8192 1604321280 16777216
|
| 312 |
+
25.l2.s qs 2048 128 1621098496 1048576
|
| 313 |
+
26.sa_qkv q8 6144 2048 1622147072 12582912
|
| 314 |
+
26.sa_qkv.s qs 6144 32 1634729984 786432
|
| 315 |
+
26.sa_o q8 2048 2048 1635516416 4194304
|
| 316 |
+
26.sa_o.s qs 2048 32 1639710720 262144
|
| 317 |
+
26.ca_q q8 2048 2048 1639972864 4194304
|
| 318 |
+
26.ca_q.s qs 2048 32 1644167168 262144
|
| 319 |
+
26.ca_o q8 2048 2048 1644429312 4194304
|
| 320 |
+
26.ca_o.s qs 2048 32 1648623616 262144
|
| 321 |
+
26.l1 q8 8192 2048 1648885760 16777216
|
| 322 |
+
26.l1.s qs 8192 32 1665662976 1048576
|
| 323 |
+
26.l2 q8 2048 8192 1666711552 16777216
|
| 324 |
+
26.l2.s qs 2048 128 1683488768 1048576
|
| 325 |
+
27.sa_qkv q8 6144 2048 1684537344 12582912
|
| 326 |
+
27.sa_qkv.s qs 6144 32 1697120256 786432
|
| 327 |
+
27.sa_o q8 2048 2048 1697906688 4194304
|
| 328 |
+
27.sa_o.s qs 2048 32 1702100992 262144
|
| 329 |
+
27.ca_q q8 2048 2048 1702363136 4194304
|
| 330 |
+
27.ca_q.s qs 2048 32 1706557440 262144
|
| 331 |
+
27.ca_o q8 2048 2048 1706819584 4194304
|
| 332 |
+
27.ca_o.s qs 2048 32 1711013888 262144
|
| 333 |
+
27.l1 q8 8192 2048 1711276032 16777216
|
| 334 |
+
27.l1.s qs 8192 32 1728053248 1048576
|
| 335 |
+
27.l2 q8 2048 8192 1729101824 16777216
|
| 336 |
+
27.l2.s qs 2048 128 1745879040 1048576
|