WaveCut commited on
Commit
f3d279e
·
verified ·
1 Parent(s): b1ed089

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -33,3 +33,12 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ assets/benchmarks/design_arena.png filter=lfs diff=lfs merge=lfs -text
38
+ assets/benchmarks/design_arena2.png filter=lfs diff=lfs merge=lfs -text
39
+ assets/benchmarks/ideogram_benchmark.png filter=lfs diff=lfs merge=lfs -text
40
+ assets/benchmarks/lmarena_benchmark.png filter=lfs diff=lfs merge=lfs -text
41
+ assets/benchmarks/opensource.png filter=lfs diff=lfs merge=lfs -text
42
+ assets/benchmarks/opensource2.png filter=lfs diff=lfs merge=lfs -text
43
+ assets/samples/collage_landscape.jpg filter=lfs diff=lfs merge=lfs -text
44
+ assets/comparison_matrix.webp filter=lfs diff=lfs merge=lfs -text
LICENSE.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Ideogram Non-Commercial Model Agreement
2
+
3
+ Last Updated: June 3, 2026
4
+
5
+ This Ideogram Non-Commercial Model Agreement (“Agreement”) is a legal agreement between you and Ideogram, Inc. (“Company”, “we” or “us”). This Agreement governs your access to and use of the Models (as defined below) that we make available to you under this Agreement. You expressly agree that if you accept the terms of this Agreement or if you otherwise download, access, use or Distribute any portion of the Model or Model Derivatives, then you agree to be bound by this Agreement. Company may designate certain materials that are designed to be used with the Models (such as related inference code) under a separate license or agreement, and nothing in this Agreement will be deemed to restrict or limit any other rights or licenses granted by Company in such other materials.
6
+
7
+ If you are entering into this Agreement on behalf of an entity, then “you” means that entity, and you represent and warrant that (a) you are an authorized representative of the entity with the authority to bind the entity to this Agreement and (b) you agree to this Agreement on the entity’s behalf.
8
+
9
+ 1. Definitions.
10
+
11
+ (a) “Distribution” or “Distribute” means any distribution, making available, transmission, publication or other sharing of the Model or any Model Derivative with or to a third party, including by providing or making the Model or its functionality available as a hosted service via API, web access or any other electronic or remote means (“Hosted Service”), and including by incorporating the Model into products or services that you make available to third parties.
12
+
13
+ (b) “Model” means the machine learning model, software, algorithms, trained model weights, parameters and documentation that Company designates as subject to this Agreement. For clarity, the following are considered Models subject to this Agreement: Ideogram 4.
14
+
15
+ (c) “Model Derivative” means all (i) modifications to, and fine-tuned versions of, the Model, (ii) any other machine learning model which is created by transferring the weights and parameters of the Model (or patterns thereof) to such model in a manner that causes it to perform similar to the Model, or (iii) any other derivatives of the Model. For clarity, an Output is not a Model Derivative.
16
+
17
+ (d) “Non-Commercial Purposes” means activity or use that fits in any of the following categories: (i) use that does not directly or indirectly generate revenue and is not otherwise intended for or directed towards commercial advantage or monetary compensation, (ii) use by a for-profit entity solely for testing, evaluation, or research and development in a “non-production environment” (an environment that is not deployed in live systems, customer-facing applications or any other environment beyond internal development, testing or prototyping), (iii) personal use for research, experimentation, testing purposes as part of a personal study, private entertainment or hobby project, or (iv) use by a charitable organization for charitable purposes. Without limiting the foregoing, any use that involves training, fine tuning, or distilling AI models for commercial use or that involves generating Output to include in, or to advertise or promote, revenue-generating products or services, in each case, is not a Non-Commercial Purpose.
18
+
19
+ (e) “Output” means any content or other output generated by the inference operation of the Model or any Model Derivative, in response to an input or prompt provided by the user. For the avoidance of doubt, Outputs do not include any components of a Model, such as any fine-tuned versions of the Model, the weights, or parameters.
20
+
21
+ 2. Grant of Rights.
22
+
23
+ We hereby permit you to use, reproduce, Distribute, copy, create derivative works of (including Model Derivatives), and make modifications to the Model for Non-Commercial Purposes subject to the terms of this Agreement, including any use restrictions set forth below. For clarity, you are only authorized to exercise the rights under this Agreement for Non-Commercial Purposes only, and may not exercise any of the rights under this Agreement for other purposes unless or until Company otherwise expressly grants you such rights in a separate agreement, which Company may grant or not grant in its sole discretion.
24
+
25
+ 3. Redistribution and Use.
26
+
27
+ You may reproduce or Distribute copies of the Model or Model Derivatives only if you meet all of the following conditions: (i) all permitted use of the reproduced and re-Distributed Model or Model Derivatives must be on terms that are no less restrictive than those set forth in this Agreement for the Model (e.g., including the same standards for Non-Commercial Purposes as set forth in Section 2 above and at least the same use restrictions set forth in Section 4 below), (ii) you provide all third party recipients of the Model or Model Derivative a copy of this Agreement; (iii) you retain in all copies of the Model or Model Derivatives that you Distribute the following attribution notice within a “Notice” text file that accompanies such copy: “Ideogram 4 is provided under and subject to the Ideogram Non-Commercial Model Agreement available at https://github.com/ideogram-oss/ideogram-4/model_licenses/LICENSE-IDEOGRAM-4-NON-COMMERCIAL. All rights reserved. Copyright © Ideogram, Inc.”; (iv) you cause any modified files to carry prominent notices stating that you modified the files; (v) any terms and conditions you impose on third-party recipients must include a disclaimer of warranties and limitation of liability provisions that are at least as protective of Company as those set forth herein; and (vi) you must not misrepresent or imply that any Model Derivative made by you is an official product of Company or has been endorsed, approved or validated by Company.
28
+
29
+ 4. Use Restrictions.
30
+
31
+ Your use of the Model and any Model Derivative must comply with applicable laws and regulations (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy available at https://ideogram.ai/legal/usage-policy, which is hereby incorporated by reference into this Agreement. Without limiting the foregoing, you will not (and will not permit or enable any third party to) use the Model or any Model Derivative: (a) for military purposes or purposes of surveillance, including any research or development relating to surveillance; (b) for biometric processing; (c) in any manner that infringes, misappropriates, or otherwise violates any third party’s legal rights, including rights of publicity; (d) to generate unlawful content, including child sexual abuse material or non-consensual intimate images; (e) in any manner that violates any applicable privacy or data protection laws; or (f) to make automated decisions in domains that affect material or individual rights or well-being (e.g., finance, legal, employment, healthcare, housing, insurance and social welfare) or otherwise in a manner that poses a significant risk of harm to the health, safety or fundamental rights of persons, including to influence any “consequential decision” under applicable law or for any other use case that is categorized as “high risk” under applicable law (“High Risk Use Cases”). You are responsible for implementing appropriate safety measures, including content filters and human oversight, suitable for your use case and to prevent the creation, display, generation or reproduction of unlawful or infringing content, and for including any legally required disclosure (or other provenance measures) to disclose that the Output was generated or modified using artificial intelligence technologies. However, we may also implement certain safety measures, content protections and other technological measures for the Model, including content filters and watermarking, and you agree that you will not circumvent, remove, alter, deactivate, degrade or thwart any such measures. To the extent required under applicable law, you must ensure any Output includes disclosure or other indication that the Output was generated or modified using artificial intelligence technologies.
32
+
33
+ 5. Disclaimer of Warranty.
34
+
35
+ UNLESS REQUIRED BY APPLICABLE LAW, THE MODEL, ANY MODEL DERIVATIVE AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF ANY KIND, AND WE DISCLAIM ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF, AND ASSUME ALL RISKS ASSOCIATED WITH, USING, REPRODUCING, MODIFYING, PERFORMING, DISPLAYING OR DISTRIBUTING THE MODEL, ANY MODEL DERIVATIVE OR ANY OUTPUT. YOU AGREE THAT THE MODEL AND ANY MODEL DERIVATIVE ARE NOT DESIGNED OR INTENDED FOR HIGH RISK USE CASES OR AS PART OF HIGH RISK AI SYSTEMS (AS DEFINED UNDER APPLICABLE LAWS), AND ANY SUCH USE IS IN VIOLATION OF THIS AGREEMENT AND AT YOUR OWN RISK.
36
+
37
+ 6. Limitation of Liability.
38
+
39
+ IN NO EVENT WILL COMPANY OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR DAMAGES OF ANY KIND, INCLUDING DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES OR LOST PROFITS OF ANY KIND, EVEN IF COMPANY OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
40
+
41
+ 7. Intellectual Property.
42
+
43
+ Company reserves any rights not expressly granted herein. Nothing in this Agreement grants you any rights to use Company’s trademarks, trade names, or logos (except as required for the attribution described above). Subject to Company’s ownership of the Model and Model Derivatives made by or for Company, with respect to any Model Derivatives that are made by you, as between you and Company, you own any incremental rights in such Model Derivatives beyond Company’s rights in the underlying Model or its own Model Derivatives. We claim no rights in outputs you generate using the Model. You are responsible for outputs and their subsequent uses. You may not use any Output to develop, train, fine-tune or distill a model or other product or services that is competitive with the Model or any of Company’s other products or services.
44
+
45
+ 8. Indemnification.
46
+
47
+ You will indemnify and hold harmless the Company and its affiliates and each of their 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 arising out of or related to your use, access, hosting or Distribution of the Model or Model Derivatives or any Outputs or your breach of this Agreement.
48
+
49
+ 9. Term and Termination.
50
+
51
+ This Agreement continues in full force and effect until terminated in accordance with the terms and conditions herein. We may terminate this Agreement at any time upon notice to you. We may also terminate this Agreement if you are in breach of any term or condition of this Agreement. If you institute litigation or other proceedings against Company or any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Model, Model Derivative or output, or any portion of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable by you, then any licenses granted to you under this Agreement shall terminate as of the date such litigation or claim is filed or instituted. Upon termination of this Agreement, you shall delete and cease use or Distribution of the Model and any Model Derivative. Sections 5–10 shall survive the termination of this Agreement.
52
+
53
+ 10. General.
54
+
55
+ This Agreement will be governed and construed under the laws of the State of New York without regard to conflicts of law provisions. If any provision or part of a provision of this Agreement is unlawful, void or unenforceable, that provision or part of the provision is deemed severed from this Agreement, 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 Agreement will not operate as a waiver of such right or provision. This Agreement does not confer any third-party beneficiary rights upon any other person or entity. This Agreement contains the entire understanding between you and Company regarding the subject matter of this Agreement, and supersedes all other written or oral agreements and understandings between you and Company regarding such subject matter. You may not assign or transfer this Agreement, including any of your rights or obligations hereunder, without the prior written consent of Company. Any purported assignment not in accordance with this Section will be null and void. We may modify this Agreement from time to time in which case we will update the “Last Updated” date at the top of these Terms. It is your sole responsibility to review this Agreement from time to time to view any such changes. The updated Agreement will be effective as of the time of posting, or such later date as may be specified in the updated Agreement. Your continued access or use of the Model or any Model Derivatives after the modifications have become effective will be deemed your acceptance of the modified Agreement.
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: ideogram-4-non-commercial
4
+ base_model: ideogram-ai/ideogram-4-fp8
5
+ pipeline_tag: text-to-image
6
+ tags:
7
+ - ideogram
8
+ - text-to-image
9
+ - sdnq
10
+ - uint4
11
+ - diffusion
12
+ - typography
13
+ ---
14
+
15
+ # Ideogram 4 FP8 -> SDNQ UInt4
16
+
17
+ This is an experimental SDNQ UInt4 conversion of `ideogram-ai/ideogram-4-fp8`. It is intended for local research and non-commercial use under the upstream Ideogram 4 license. The conversion was made from the FP8 checkpoint, materializing FP8 linears back to bf16 and then applying static SDNQ `uint4` component-by-component.
18
+
19
+ The model includes SDNQ-compressed `text_encoder`, `transformer`, `unconditional_transformer`, and `vae` components. The official `ideogram4` loader does not know how to instantiate SDNQ-packed custom transformers, so this repository includes `ideogram4_sdnq_pipeline.py`.
20
+
21
+ ## Usage
22
+
23
+ ```python
24
+ import torch
25
+ from ideogram4 import PRESETS
26
+ from ideogram4_sdnq_pipeline import Ideogram4SDNQPipeline
27
+
28
+ pipe = Ideogram4SDNQPipeline.from_pretrained(
29
+ "WaveCut/ideogram-4-sdnq-uint4",
30
+ device="cuda",
31
+ dtype=torch.bfloat16,
32
+ )
33
+
34
+ preset = PRESETS["V4_DEFAULT_20"]
35
+ image = pipe(
36
+ "a typographic poster reading HELLO WORLD",
37
+ height=1024,
38
+ width=1024,
39
+ num_steps=preset.num_steps,
40
+ guidance_schedule=preset.guidance_schedule,
41
+ mu=preset.mu,
42
+ std=preset.std,
43
+ seed=4101,
44
+ raise_on_caption_issues=False,
45
+ )[0]
46
+ image.save("out.png")
47
+ ```
48
+
49
+ Install requirements:
50
+
51
+ ```bash
52
+ pip install git+https://github.com/ideogram-oss/ideogram4 sdnq safetensors transformers accelerate pillow
53
+ ```
54
+
55
+ ## Component Structure
56
+
57
+ Upstream FP8 structure:
58
+
59
+ - `text_encoder`: Qwen3-VL text path used in text-only mode. Hidden states from 13 layers are concatenated for the DiT.
60
+ - `transformer`: conditional 34-layer single-stream DiT.
61
+ - `unconditional_transformer`: image-only negative branch used for asymmetric CFG.
62
+ - `vae`: Flux2-style KL autoencoder decoder.
63
+ - `tokenizer` and `scheduler`: copied from upstream.
64
+
65
+ ## Quantization
66
+
67
+ | Component | Source materialized MB | SDNQ state MB | Quantize s | Quant peak nvidia MB |
68
+ | --- | --- | --- | --- | --- |
69
+ | transformer | 17698.84 | 4979.66 | 112.64 | 36525.00 |
70
+ | unconditional_transformer | 17698.84 | 4979.66 | 108.68 | 36525.00 |
71
+ | text_encoder | 14435.59 | 4097.53 | 102.32 | 24477.00 |
72
+ | vae | 160.31 | 50.19 | 2.68 | 861.00 |
73
+
74
+ ## Benchmark
75
+
76
+ Hardware: RunPod NVIDIA RTX PRO 6000 Blackwell Server Edition, single process, concurrency 1. Generation used 10 structured JSON prompts at 1024x1024 with `V4_DEFAULT_20`.
77
+ The FP8 baseline was loaded through the upstream `ideogram4` `Ideogram4Pipeline.from_pretrained` recipe with `weights_repo="ideogram-ai/ideogram-4-fp8"`; magic-prompt expansion was disabled because the prompts are already structured captions.
78
+
79
+ | Variant | Load s | Load peak reserved MB | Load peak nvidia MB | Cold request s | Hot mean s | Gen peak reserved MB | Gen peak nvidia MB |
80
+ | --- | --- | --- | --- | --- | --- | --- | --- |
81
+ | original | 267.83 | 28198.00 | 28759.00 | 17.90 | 17.51 | 34430.00 | 35099.00 |
82
+ | sdnq | 239.46 | 14558.00 | 15109.00 | 18.56 | 16.52 | 21650.00 | 22321.00 |
83
+
84
+ ## Example Matrix
85
+
86
+ The matrix below contains the 10 original FP8 generations followed by the 10 SDNQ UInt4 generations. It is a square WebP at quality 95.
87
+
88
+ ![Comparison matrix](assets/comparison_matrix.webp)
89
+
90
+ ## Prompt Set
91
+
92
+ | # | id | summary |
93
+ | --- | --- | --- |
94
+ | 1 | `editorial_watch_photo` | A photorealistic editorial product photograph of a transparent mechanical wristwatch resting on a wet black stone slab, with tiny engraved labels visible on the dial. |
95
+ | 2 | `risograph_botanical_poster` | A layered risograph botanical exhibition poster with bold overprint textures and clean typographic hierarchy. |
96
+ | 3 | `cyrillic_cafe_menu` | A cozy Moscow cafe menu board photographed straight-on, testing clean Cyrillic typography in chalk and printed labels. |
97
+ | 4 | `brutalist_architecture` | A cinematic architectural photograph of a brutalist library atrium with tiny wayfinding signs and people for scale. |
98
+ | 5 | `ink_manga_rain` | A dramatic black-and-white manga splash page of a courier cycling through rain, with sound effects and shop signage. |
99
+ | 6 | `museum_clay_render` | A polished 3D clay render of a museum diorama showing a future Arctic research station with labeled miniature modules. |
100
+ | 7 | `food_packaging_label` | A realistic premium chocolate bar packaging mockup with layered foil, embossed typography, and ingredient microcopy. |
101
+ | 8 | `fantasy_map_typography` | A hand-painted fantasy map on parchment with readable place names, compass ornament, and coastal illustrations. |
102
+ | 9 | `streetwear_lookbook` | A fashion lookbook cover photograph for a streetwear collection, with crisp cover typography and realistic fabric textures. |
103
+ | 10 | `scientific_cutaway` | A detailed scientific cutaway illustration of a compact fusion battery prototype with annotated parts and clean technical typography. |
104
+
105
+ ## Files
106
+
107
+ - `prompts.json`: the 10 structured prompts used for the comparison.
108
+ - `assets/comparison_matrix.webp`: square WebP comparison matrix, quality 95.
109
+ - `benchmark/`: raw benchmark JSONL/CSV files and `summary.json`.
110
+ - `quantization_manifest.json`: component-level quantization timings, storage, and VRAM peaks.
111
+ - `ideogram4_sdnq_pipeline.py`: loader helper for the SDNQ custom transformer components.
112
+
113
+ ## Follow-up
114
+
115
+ A separate follow-up run will compare this SDNQ UInt4 checkpoint against the official `ideogram-ai/ideogram-4-nf4` checkpoint on an RTX 3090/4090-class pod and append the full-pipeline results here.
116
+
117
+ ## License
118
+
119
+ This checkpoint is derived from `ideogram-ai/ideogram-4-fp8` and follows the upstream Ideogram 4 non-commercial license. See `LICENSE.md`.
assets/comparison_matrix.webp ADDED

Git LFS Details

  • SHA256: e80ae3caf57c4f1c3f874ae9e82636268a54236f17f9388b89129250ac3cc965
  • Pointer size: 132 Bytes
  • Size of remote file: 4 MB
benchmark/original_metrics.csv ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name,elapsed_seconds,gpu_before_mb,gpu_after_mb,gpu_peak_mb,torch_peak_allocated_mb,torch_peak_reserved_mb,variant,case_id,case_index,seed,height,width,preset,request_temperature,image
2
+ original_load,267.8321040520095,561,28759,28759,26578.111328125,28198.0,original,,,,,,,,
3
+ original_generate,17.904404125991277,27409,35055,35055,30214.517578125,34386.0,original,editorial_watch_photo,0,4101,1024,1024,V4_DEFAULT_20,cold,/workspace/ideogram4_lab/results/original/images/01_editorial_watch_photo_original.png
4
+ original_generate,17.435602533019846,27549,35039,35039,30206.37060546875,34370.0,original,risograph_botanical_poster,1,4102,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/02_risograph_botanical_poster_original.png
5
+ original_generate,17.781690142001025,27549,35099,35099,30225.720703125,34430.0,original,cyrillic_cafe_menu,2,4103,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/03_cyrillic_cafe_menu_original.png
6
+ original_generate,17.494729810015997,27549,35053,35053,30213.90673828125,34384.0,original,brutalist_architecture,3,4104,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/04_brutalist_architecture_original.png
7
+ original_generate,17.477317612007027,27549,35039,35039,30206.37060546875,34370.0,original,ink_manga_rain,4,4105,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/05_ink_manga_rain_original.png
8
+ original_generate,17.449652091017924,27549,35041,35041,30209.64306640625,34372.0,original,museum_clay_render,5,4106,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/06_museum_clay_render_original.png
9
+ original_generate,17.48920578099205,27549,35041,35041,30207.7958984375,34372.0,original,food_packaging_label,6,4107,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/07_food_packaging_label_original.png
10
+ original_generate,17.515618185978383,27549,35069,35069,30217.66455078125,34400.0,original,fantasy_map_typography,7,4108,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/08_fantasy_map_typography_original.png
11
+ original_generate,17.44910855300259,27549,35033,35033,30204.537109375,34364.0,original,streetwear_lookbook,8,4109,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/09_streetwear_lookbook_original.png
12
+ original_generate,17.518164148001233,27549,35055,35055,30214.31396484375,34386.0,original,scientific_cutaway,9,4110,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/original/images/10_scientific_cutaway_original.png
benchmark/original_metrics.jsonl ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"name": "original_load", "elapsed_seconds": 267.8321040520095, "gpu_before_mb": 561, "gpu_after_mb": 28759, "gpu_peak_mb": 28759, "torch_peak_allocated_mb": 26578.111328125, "torch_peak_reserved_mb": 28198.0, "variant": "original"}
2
+ {"name": "original_generate", "elapsed_seconds": 17.904404125991277, "gpu_before_mb": 27409, "gpu_after_mb": 35055, "gpu_peak_mb": 35055, "torch_peak_allocated_mb": 30214.517578125, "torch_peak_reserved_mb": 34386.0, "variant": "original", "case_id": "editorial_watch_photo", "case_index": 0, "seed": 4101, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "cold", "image": "/workspace/ideogram4_lab/results/original/images/01_editorial_watch_photo_original.png"}
3
+ {"name": "original_generate", "elapsed_seconds": 17.435602533019846, "gpu_before_mb": 27549, "gpu_after_mb": 35039, "gpu_peak_mb": 35039, "torch_peak_allocated_mb": 30206.37060546875, "torch_peak_reserved_mb": 34370.0, "variant": "original", "case_id": "risograph_botanical_poster", "case_index": 1, "seed": 4102, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/02_risograph_botanical_poster_original.png"}
4
+ {"name": "original_generate", "elapsed_seconds": 17.781690142001025, "gpu_before_mb": 27549, "gpu_after_mb": 35099, "gpu_peak_mb": 35099, "torch_peak_allocated_mb": 30225.720703125, "torch_peak_reserved_mb": 34430.0, "variant": "original", "case_id": "cyrillic_cafe_menu", "case_index": 2, "seed": 4103, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/03_cyrillic_cafe_menu_original.png"}
5
+ {"name": "original_generate", "elapsed_seconds": 17.494729810015997, "gpu_before_mb": 27549, "gpu_after_mb": 35053, "gpu_peak_mb": 35053, "torch_peak_allocated_mb": 30213.90673828125, "torch_peak_reserved_mb": 34384.0, "variant": "original", "case_id": "brutalist_architecture", "case_index": 3, "seed": 4104, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/04_brutalist_architecture_original.png"}
6
+ {"name": "original_generate", "elapsed_seconds": 17.477317612007027, "gpu_before_mb": 27549, "gpu_after_mb": 35039, "gpu_peak_mb": 35039, "torch_peak_allocated_mb": 30206.37060546875, "torch_peak_reserved_mb": 34370.0, "variant": "original", "case_id": "ink_manga_rain", "case_index": 4, "seed": 4105, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/05_ink_manga_rain_original.png"}
7
+ {"name": "original_generate", "elapsed_seconds": 17.449652091017924, "gpu_before_mb": 27549, "gpu_after_mb": 35041, "gpu_peak_mb": 35041, "torch_peak_allocated_mb": 30209.64306640625, "torch_peak_reserved_mb": 34372.0, "variant": "original", "case_id": "museum_clay_render", "case_index": 5, "seed": 4106, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/06_museum_clay_render_original.png"}
8
+ {"name": "original_generate", "elapsed_seconds": 17.48920578099205, "gpu_before_mb": 27549, "gpu_after_mb": 35041, "gpu_peak_mb": 35041, "torch_peak_allocated_mb": 30207.7958984375, "torch_peak_reserved_mb": 34372.0, "variant": "original", "case_id": "food_packaging_label", "case_index": 6, "seed": 4107, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/07_food_packaging_label_original.png"}
9
+ {"name": "original_generate", "elapsed_seconds": 17.515618185978383, "gpu_before_mb": 27549, "gpu_after_mb": 35069, "gpu_peak_mb": 35069, "torch_peak_allocated_mb": 30217.66455078125, "torch_peak_reserved_mb": 34400.0, "variant": "original", "case_id": "fantasy_map_typography", "case_index": 7, "seed": 4108, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/08_fantasy_map_typography_original.png"}
10
+ {"name": "original_generate", "elapsed_seconds": 17.44910855300259, "gpu_before_mb": 27549, "gpu_after_mb": 35033, "gpu_peak_mb": 35033, "torch_peak_allocated_mb": 30204.537109375, "torch_peak_reserved_mb": 34364.0, "variant": "original", "case_id": "streetwear_lookbook", "case_index": 8, "seed": 4109, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/09_streetwear_lookbook_original.png"}
11
+ {"name": "original_generate", "elapsed_seconds": 17.518164148001233, "gpu_before_mb": 27549, "gpu_after_mb": 35055, "gpu_peak_mb": 35055, "torch_peak_allocated_mb": 30214.31396484375, "torch_peak_reserved_mb": 34386.0, "variant": "original", "case_id": "scientific_cutaway", "case_index": 9, "seed": 4110, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/original/images/10_scientific_cutaway_original.png"}
benchmark/sdnq_metrics.csv ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name,elapsed_seconds,gpu_before_mb,gpu_after_mb,gpu_peak_mb,torch_peak_allocated_mb,torch_peak_reserved_mb,variant,case_id,case_index,seed,height,width,preset,request_temperature,image
2
+ sdnq_load,239.45547024699044,561,15119,15109,14377.78173828125,14558.0,sdnq,,,,,,,,
3
+ sdnq_generate,18.559326965012588,15119,22259,22259,18335.75439453125,21588.0,sdnq,editorial_watch_photo,0,4101,1024,1024,V4_DEFAULT_20,cold,/workspace/ideogram4_lab/results/sdnq/images/01_editorial_watch_photo_sdnq.png
4
+ sdnq_generate,16.76757296800497,15357,22273,22273,18326.81640625,21602.0,sdnq,risograph_botanical_poster,1,4102,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/02_risograph_botanical_poster_sdnq.png
5
+ sdnq_generate,16.798510612017708,15357,22321,22321,18346.47216796875,21650.0,sdnq,cyrillic_cafe_menu,2,4103,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/03_cyrillic_cafe_menu_sdnq.png
6
+ sdnq_generate,16.49672631698195,15357,22289,22289,18335.4169921875,21618.0,sdnq,brutalist_architecture,3,4104,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/04_brutalist_architecture_sdnq.png
7
+ sdnq_generate,15.973647239006823,15357,22245,22245,18326.81640625,21574.0,sdnq,ink_manga_rain,4,4105,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/05_ink_manga_rain_sdnq.png
8
+ sdnq_generate,16.52093323500594,15357,22275,22275,18331.3173828125,21604.0,sdnq,museum_clay_render,5,4106,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/06_museum_clay_render_sdnq.png
9
+ sdnq_generate,16.54349116497906,15357,22275,22275,18328.56787109375,21604.0,sdnq,food_packaging_label,6,4107,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/07_food_packaging_label_sdnq.png
10
+ sdnq_generate,16.577632450003875,15357,22295,22295,18339.3388671875,21624.0,sdnq,fantasy_map_typography,7,4108,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/08_fantasy_map_typography_sdnq.png
11
+ sdnq_generate,16.463748395995935,15357,22267,22267,18325.27783203125,21596.0,sdnq,streetwear_lookbook,8,4109,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/09_streetwear_lookbook_sdnq.png
12
+ sdnq_generate,16.568265846988652,15357,22289,22289,18335.5888671875,21618.0,sdnq,scientific_cutaway,9,4110,1024,1024,V4_DEFAULT_20,hot,/workspace/ideogram4_lab/results/sdnq/images/10_scientific_cutaway_sdnq.png
benchmark/sdnq_metrics.jsonl ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"name": "sdnq_load", "elapsed_seconds": 239.45547024699044, "gpu_before_mb": 561, "gpu_after_mb": 15119, "gpu_peak_mb": 15109, "torch_peak_allocated_mb": 14377.78173828125, "torch_peak_reserved_mb": 14558.0, "variant": "sdnq"}
2
+ {"name": "sdnq_generate", "elapsed_seconds": 18.559326965012588, "gpu_before_mb": 15119, "gpu_after_mb": 22259, "gpu_peak_mb": 22259, "torch_peak_allocated_mb": 18335.75439453125, "torch_peak_reserved_mb": 21588.0, "variant": "sdnq", "case_id": "editorial_watch_photo", "case_index": 0, "seed": 4101, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "cold", "image": "/workspace/ideogram4_lab/results/sdnq/images/01_editorial_watch_photo_sdnq.png"}
3
+ {"name": "sdnq_generate", "elapsed_seconds": 16.76757296800497, "gpu_before_mb": 15357, "gpu_after_mb": 22273, "gpu_peak_mb": 22273, "torch_peak_allocated_mb": 18326.81640625, "torch_peak_reserved_mb": 21602.0, "variant": "sdnq", "case_id": "risograph_botanical_poster", "case_index": 1, "seed": 4102, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/02_risograph_botanical_poster_sdnq.png"}
4
+ {"name": "sdnq_generate", "elapsed_seconds": 16.798510612017708, "gpu_before_mb": 15357, "gpu_after_mb": 22321, "gpu_peak_mb": 22321, "torch_peak_allocated_mb": 18346.47216796875, "torch_peak_reserved_mb": 21650.0, "variant": "sdnq", "case_id": "cyrillic_cafe_menu", "case_index": 2, "seed": 4103, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/03_cyrillic_cafe_menu_sdnq.png"}
5
+ {"name": "sdnq_generate", "elapsed_seconds": 16.49672631698195, "gpu_before_mb": 15357, "gpu_after_mb": 22289, "gpu_peak_mb": 22289, "torch_peak_allocated_mb": 18335.4169921875, "torch_peak_reserved_mb": 21618.0, "variant": "sdnq", "case_id": "brutalist_architecture", "case_index": 3, "seed": 4104, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/04_brutalist_architecture_sdnq.png"}
6
+ {"name": "sdnq_generate", "elapsed_seconds": 15.973647239006823, "gpu_before_mb": 15357, "gpu_after_mb": 22245, "gpu_peak_mb": 22245, "torch_peak_allocated_mb": 18326.81640625, "torch_peak_reserved_mb": 21574.0, "variant": "sdnq", "case_id": "ink_manga_rain", "case_index": 4, "seed": 4105, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/05_ink_manga_rain_sdnq.png"}
7
+ {"name": "sdnq_generate", "elapsed_seconds": 16.52093323500594, "gpu_before_mb": 15357, "gpu_after_mb": 22275, "gpu_peak_mb": 22275, "torch_peak_allocated_mb": 18331.3173828125, "torch_peak_reserved_mb": 21604.0, "variant": "sdnq", "case_id": "museum_clay_render", "case_index": 5, "seed": 4106, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/06_museum_clay_render_sdnq.png"}
8
+ {"name": "sdnq_generate", "elapsed_seconds": 16.54349116497906, "gpu_before_mb": 15357, "gpu_after_mb": 22275, "gpu_peak_mb": 22275, "torch_peak_allocated_mb": 18328.56787109375, "torch_peak_reserved_mb": 21604.0, "variant": "sdnq", "case_id": "food_packaging_label", "case_index": 6, "seed": 4107, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/07_food_packaging_label_sdnq.png"}
9
+ {"name": "sdnq_generate", "elapsed_seconds": 16.577632450003875, "gpu_before_mb": 15357, "gpu_after_mb": 22295, "gpu_peak_mb": 22295, "torch_peak_allocated_mb": 18339.3388671875, "torch_peak_reserved_mb": 21624.0, "variant": "sdnq", "case_id": "fantasy_map_typography", "case_index": 7, "seed": 4108, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/08_fantasy_map_typography_sdnq.png"}
10
+ {"name": "sdnq_generate", "elapsed_seconds": 16.463748395995935, "gpu_before_mb": 15357, "gpu_after_mb": 22267, "gpu_peak_mb": 22267, "torch_peak_allocated_mb": 18325.27783203125, "torch_peak_reserved_mb": 21596.0, "variant": "sdnq", "case_id": "streetwear_lookbook", "case_index": 8, "seed": 4109, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/09_streetwear_lookbook_sdnq.png"}
11
+ {"name": "sdnq_generate", "elapsed_seconds": 16.568265846988652, "gpu_before_mb": 15357, "gpu_after_mb": 22289, "gpu_peak_mb": 22289, "torch_peak_allocated_mb": 18335.5888671875, "torch_peak_reserved_mb": 21618.0, "variant": "sdnq", "case_id": "scientific_cutaway", "case_index": 9, "seed": 4110, "height": 1024, "width": 1024, "preset": "V4_DEFAULT_20", "request_temperature": "hot", "image": "/workspace/ideogram4_lab/results/sdnq/images/10_scientific_cutaway_sdnq.png"}
benchmark/summary.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "variant": "original",
4
+ "load_seconds": 267.8321040520095,
5
+ "load_peak_reserved_mb": 28198.0,
6
+ "load_peak_nvidia_mb": 28759,
7
+ "cold_request_seconds": 17.904404125991277,
8
+ "cold_request_peak_reserved_mb": 34386.0,
9
+ "cold_request_peak_nvidia_mb": 35055,
10
+ "hot_request_mean_seconds": 17.51234320622623,
11
+ "hot_request_max_seconds": 17.781690142001025,
12
+ "generation_peak_reserved_mb": 34430.0,
13
+ "generation_peak_nvidia_mb": 35099.0,
14
+ "generation_gpu_after_max_mb": 35099.0
15
+ },
16
+ {
17
+ "variant": "sdnq",
18
+ "load_seconds": 239.45547024699044,
19
+ "load_peak_reserved_mb": 14558.0,
20
+ "load_peak_nvidia_mb": 15109,
21
+ "cold_request_seconds": 18.559326965012588,
22
+ "cold_request_peak_reserved_mb": 21588.0,
23
+ "cold_request_peak_nvidia_mb": 22259,
24
+ "hot_request_mean_seconds": 16.523392025442767,
25
+ "hot_request_max_seconds": 16.798510612017708,
26
+ "generation_peak_reserved_mb": 21650.0,
27
+ "generation_peak_nvidia_mb": 22321.0,
28
+ "generation_gpu_after_max_mb": 22321.0
29
+ }
30
+ ]
ideogram4_sdnq_pipeline.py ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import json
4
+ from pathlib import Path
5
+ from types import SimpleNamespace
6
+ from typing import Optional
7
+
8
+ import torch
9
+ from accelerate import init_empty_weights
10
+ from huggingface_hub import snapshot_download
11
+ from safetensors.torch import load_file
12
+ from transformers import AutoConfig, AutoTokenizer, Qwen3VLTextModel
13
+
14
+ from ideogram4.autoencoder import AutoEncoder, AutoEncoderParams
15
+ from ideogram4.modeling_ideogram4 import Ideogram4Config, Ideogram4Transformer
16
+ from ideogram4.pipeline_ideogram4 import Ideogram4Pipeline, Ideogram4PipelineConfig
17
+ from sdnq import sdnq_post_load_quant
18
+ from sdnq.loader import apply_sdnq_options_to_model, load_files, post_process_model
19
+ from sdnq.utils import get_quant_args_from_config
20
+
21
+
22
+ def _resolve_model_dir(model_id_or_path: str, revision: str | None = None) -> Path:
23
+ path = Path(model_id_or_path)
24
+ if path.exists():
25
+ return path
26
+ return Path(
27
+ snapshot_download(
28
+ model_id_or_path,
29
+ revision=revision,
30
+ allow_patterns=[
31
+ "model_index.json",
32
+ "scheduler/*",
33
+ "tokenizer/*",
34
+ "text_encoder/*",
35
+ "transformer/*",
36
+ "unconditional_transformer/*",
37
+ "vae/*",
38
+ ],
39
+ )
40
+ )
41
+
42
+
43
+ def _read_json(path: Path) -> dict:
44
+ with path.open("r", encoding="utf-8") as f:
45
+ return json.load(f)
46
+
47
+
48
+ def _ideogram_config_from_diffusers_config(config_path: Path) -> Ideogram4Config:
49
+ cfg = _read_json(config_path)
50
+ num_heads = int(cfg.get("num_attention_heads", cfg.get("num_heads", 18)))
51
+ head_dim = int(cfg.get("attention_head_dim", 256))
52
+ return Ideogram4Config(
53
+ emb_dim=num_heads * head_dim,
54
+ num_layers=int(cfg.get("num_layers", 34)),
55
+ num_heads=num_heads,
56
+ intermediate_size=int(cfg.get("intermediate_size", 12288)),
57
+ adanln_dim=int(cfg.get("adaln_dim", 512)),
58
+ in_channels=int(cfg.get("in_channels", 128)),
59
+ llm_features_dim=int(cfg.get("llm_features_dim", 53248)),
60
+ rope_theta=int(cfg.get("rope_theta", 5_000_000)),
61
+ mrope_section=tuple(cfg.get("mrope_section", [24, 20, 20])),
62
+ norm_eps=float(cfg.get("norm_eps", 1e-5)),
63
+ )
64
+
65
+
66
+ def _load_single_or_indexed_safetensors(folder: Path, basename: str) -> dict[str, torch.Tensor]:
67
+ index_path = folder / f"{basename}.safetensors.index.json"
68
+ if not index_path.exists():
69
+ return load_file(folder / f"{basename}.safetensors")
70
+ index = _read_json(index_path)
71
+ state: dict[str, torch.Tensor] = {}
72
+ for shard_name in sorted(set(index["weight_map"].values())):
73
+ state.update(load_file(folder / shard_name))
74
+ return state
75
+
76
+
77
+ def _set_compute_dtype(model: torch.nn.Module, dtype: torch.dtype) -> torch.nn.Module:
78
+ for module in model.modules():
79
+ if hasattr(module, "sdnq_dequantizer"):
80
+ module.compute_dtype = dtype
81
+ return model
82
+
83
+
84
+ def _load_sdnq_transformer(
85
+ folder: Path,
86
+ device: torch.device,
87
+ dtype: torch.dtype,
88
+ use_quantized_matmul: bool,
89
+ dequantize_fp32: bool,
90
+ ) -> Ideogram4Transformer:
91
+ config = _ideogram_config_from_diffusers_config(folder / "config.json")
92
+ quant_config = _read_json(folder / "quantization_config.json")
93
+ model = Ideogram4Transformer(config)
94
+ model = sdnq_post_load_quant(
95
+ model,
96
+ torch_dtype=dtype,
97
+ add_skip_keys=False,
98
+ use_dynamic_quantization=False,
99
+ **get_quant_args_from_config(quant_config),
100
+ )
101
+ state = _load_single_or_indexed_safetensors(folder, "diffusion_pytorch_model")
102
+ model.load_state_dict(state, assign=True)
103
+ del state
104
+ model = apply_sdnq_options_to_model(
105
+ model,
106
+ dtype=dtype,
107
+ dequantize_fp32=dequantize_fp32,
108
+ use_quantized_matmul=use_quantized_matmul,
109
+ )
110
+ _set_compute_dtype(model, dtype)
111
+ model.to(device)
112
+ model.eval()
113
+ return model
114
+
115
+
116
+ def _load_sdnq_autoencoder(
117
+ folder: Path,
118
+ device: torch.device,
119
+ dtype: torch.dtype,
120
+ use_quantized_matmul: bool,
121
+ dequantize_fp32: bool,
122
+ ) -> AutoEncoder:
123
+ quant_config = _read_json(folder / "quantization_config.json")
124
+ model = AutoEncoder(AutoEncoderParams())
125
+ model = sdnq_post_load_quant(
126
+ model,
127
+ torch_dtype=dtype,
128
+ add_skip_keys=False,
129
+ use_dynamic_quantization=False,
130
+ **get_quant_args_from_config(quant_config),
131
+ )
132
+ state = _load_single_or_indexed_safetensors(folder, "diffusion_pytorch_model")
133
+ model.load_state_dict(state, assign=True)
134
+ del state
135
+ model = apply_sdnq_options_to_model(
136
+ model,
137
+ dtype=dtype,
138
+ dequantize_fp32=dequantize_fp32,
139
+ use_quantized_matmul=use_quantized_matmul,
140
+ )
141
+ _set_compute_dtype(model, dtype)
142
+ model.to(device)
143
+ model.eval()
144
+ return model
145
+
146
+
147
+ def _load_text_encoder(
148
+ folder: Path,
149
+ device: torch.device,
150
+ dtype: torch.dtype,
151
+ use_quantized_matmul: bool,
152
+ dequantize_fp32: bool,
153
+ ):
154
+ quant_config = _read_json(folder / "quantization_config.json")
155
+ with init_empty_weights():
156
+ config = AutoConfig.from_pretrained(folder)
157
+ language_model = Qwen3VLTextModel(config)
158
+ language_model = sdnq_post_load_quant(
159
+ language_model,
160
+ torch_dtype=dtype,
161
+ add_skip_keys=False,
162
+ use_dynamic_quantization=False,
163
+ **get_quant_args_from_config(quant_config),
164
+ )
165
+ files = sorted(str(path) for path in folder.glob("*.safetensors"))
166
+ state = load_files(
167
+ files,
168
+ key_mapping=getattr(language_model, "_checkpoint_conversion_mapping", None),
169
+ device=device,
170
+ method="safetensors",
171
+ )
172
+ language_model.load_state_dict(state, assign=True)
173
+ del state
174
+ language_model = post_process_model(language_model)
175
+ language_model = apply_sdnq_options_to_model(
176
+ language_model,
177
+ dtype=dtype,
178
+ dequantize_fp32=dequantize_fp32,
179
+ use_quantized_matmul=use_quantized_matmul,
180
+ )
181
+ _set_compute_dtype(language_model, dtype)
182
+ language_model.eval()
183
+ return SimpleNamespace(language_model=language_model)
184
+
185
+
186
+ class Ideogram4SDNQPipeline(Ideogram4Pipeline):
187
+ @classmethod
188
+ def from_pretrained(
189
+ cls,
190
+ model_id_or_path: str,
191
+ *,
192
+ revision: Optional[str] = None,
193
+ device: str | torch.device = "cuda",
194
+ dtype: torch.dtype = torch.bfloat16,
195
+ use_quantized_matmul: bool = False,
196
+ dequantize_fp32: bool = False,
197
+ ) -> "Ideogram4SDNQPipeline":
198
+ root = _resolve_model_dir(model_id_or_path, revision=revision)
199
+ device = torch.device(device)
200
+
201
+ config = Ideogram4PipelineConfig(weights_repo=str(root))
202
+ tokenizer = AutoTokenizer.from_pretrained(root / "tokenizer")
203
+ text_encoder = _load_text_encoder(
204
+ root / "text_encoder",
205
+ device,
206
+ dtype,
207
+ use_quantized_matmul=use_quantized_matmul,
208
+ dequantize_fp32=dequantize_fp32,
209
+ )
210
+ conditional_transformer = _load_sdnq_transformer(
211
+ root / "transformer",
212
+ device,
213
+ dtype,
214
+ use_quantized_matmul=use_quantized_matmul,
215
+ dequantize_fp32=dequantize_fp32,
216
+ )
217
+ unconditional_transformer = _load_sdnq_transformer(
218
+ root / "unconditional_transformer",
219
+ device,
220
+ dtype,
221
+ use_quantized_matmul=use_quantized_matmul,
222
+ dequantize_fp32=dequantize_fp32,
223
+ )
224
+
225
+ vae_dir = root / "vae"
226
+ if (vae_dir / "quantization_config.json").exists():
227
+ autoencoder = _load_sdnq_autoencoder(
228
+ vae_dir,
229
+ device,
230
+ dtype,
231
+ use_quantized_matmul=use_quantized_matmul,
232
+ dequantize_fp32=dequantize_fp32,
233
+ )
234
+ else:
235
+ from ideogram4.pipeline_ideogram4 import _load_autoencoder
236
+
237
+ autoencoder = _load_autoencoder(
238
+ str(vae_dir / "diffusion_pytorch_model.safetensors"), device, dtype
239
+ )
240
+
241
+ return cls(
242
+ conditional_transformer=conditional_transformer,
243
+ unconditional_transformer=unconditional_transformer,
244
+ text_encoder=text_encoder,
245
+ text_tokenizer=tokenizer,
246
+ autoencoder=autoencoder,
247
+ config=config,
248
+ device=device,
249
+ dtype=dtype,
250
+ )
model_index.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Ideogram4SDNQPipeline",
3
+ "_diffusers_version": "0.39.0.dev0",
4
+ "_name_or_path": "ideogram-ai/debug-ideogram-v4",
5
+ "scheduler": [
6
+ "diffusers",
7
+ "FlowMatchEulerDiscreteScheduler"
8
+ ],
9
+ "text_encoder": [
10
+ "transformers",
11
+ "Qwen3VLTextModel"
12
+ ],
13
+ "tokenizer": [
14
+ "transformers",
15
+ "Qwen2Tokenizer"
16
+ ],
17
+ "transformer": [
18
+ "sdnq",
19
+ "Ideogram4Transformer"
20
+ ],
21
+ "unconditional_transformer": [
22
+ "sdnq",
23
+ "Ideogram4Transformer"
24
+ ],
25
+ "vae": [
26
+ "diffusers",
27
+ "AutoencoderKLFlux2"
28
+ ],
29
+ "quantization": {
30
+ "method": "SDNQ",
31
+ "weights_dtype": "uint4",
32
+ "source_repo": "ideogram-ai/ideogram-4-fp8"
33
+ }
34
+ }
prompts.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "editorial_watch_photo",
4
+ "seed": 4101,
5
+ "height": 1024,
6
+ "width": 1024,
7
+ "caption": {
8
+ "high_level_description": "A photorealistic editorial product photograph of a transparent mechanical wristwatch resting on a wet black stone slab, with tiny engraved labels visible on the dial.",
9
+ "style_description": {
10
+ "aesthetics": "luxury, precise, tactile, high contrast, realistic micro-detail",
11
+ "lighting": "large softbox from upper left, thin rim light, controlled glossy reflections",
12
+ "photo": "100mm macro lens, f/8, focus stacked, Hasselblad medium-format look",
13
+ "medium": "photograph",
14
+ "color_palette": ["#070707", "#D9D1BD", "#9CC7CF", "#E6E6E6", "#2B2B2B"]
15
+ },
16
+ "compositional_deconstruction": {
17
+ "background": "A dark studio setup with a wet black stone slab, fine water droplets, and soft reflections fading into a neutral charcoal backdrop.",
18
+ "elements": [
19
+ {"type": "obj", "bbox": [170, 170, 800, 820], "desc": "A transparent mechanical wristwatch with visible gears, brushed titanium case, sapphire crystal, realistic refractions, and shallow scratches on the metal."},
20
+ {"type": "text", "bbox": [395, 400, 475, 605], "text": "OPEN WORKS", "desc": "Tiny engraved uppercase dial text following the curve of the watch face, crisp but naturally printed on metal."},
21
+ {"type": "text", "bbox": [720, 240, 780, 760], "text": "CALIBRE 04", "desc": "Small technical label etched into the wet stone reflection, subtle and readable."}
22
+ ]
23
+ }
24
+ }
25
+ },
26
+ {
27
+ "id": "risograph_botanical_poster",
28
+ "seed": 4102,
29
+ "height": 1024,
30
+ "width": 1024,
31
+ "caption": {
32
+ "high_level_description": "A layered risograph botanical exhibition poster with bold overprint textures and clean typographic hierarchy.",
33
+ "style_description": {
34
+ "aesthetics": "graphic, tactile, imperfect registration, gallery poster, bold negative space",
35
+ "lighting": "flat scanned-paper lighting with visible ink grain",
36
+ "medium": "graphic_design",
37
+ "art_style": "two-color risograph print, rough halftone grain, offset ink overlap",
38
+ "color_palette": ["#0E3B2E", "#F05A28", "#F3E9CF", "#1F1F1F"]
39
+ },
40
+ "compositional_deconstruction": {
41
+ "background": "Warm cream paper with visible fibers, subtle scanner shadow at the edges, and a dark green border.",
42
+ "elements": [
43
+ {"type": "obj", "bbox": [210, 120, 760, 870], "desc": "A dense arrangement of stylized fern leaves and seed pods printed in dark green with orange overprint shadows."},
44
+ {"type": "text", "bbox": [70, 95, 185, 905], "text": "NIGHT GARDEN", "desc": "Large condensed uppercase title across the top, dark green ink with slight orange misregistration."},
45
+ {"type": "text", "bbox": [820, 180, 900, 820], "text": "BOTANICAL STUDIES 2026", "desc": "Small footer caption in neat monospaced type, aligned to the bottom margin."}
46
+ ]
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "id": "cyrillic_cafe_menu",
52
+ "seed": 4103,
53
+ "height": 1024,
54
+ "width": 1024,
55
+ "caption": {
56
+ "high_level_description": "A cozy Moscow cafe menu board photographed straight-on, testing clean Cyrillic typography in chalk and printed labels.",
57
+ "style_description": {
58
+ "aesthetics": "warm, realistic, inviting, handcrafted, legible Cyrillic signage",
59
+ "lighting": "soft morning window light, gentle tungsten fill, mild chalkboard glare",
60
+ "photo": "35mm documentary photograph, straight-on composition, natural lens distortion",
61
+ "medium": "photograph",
62
+ "color_palette": ["#2B2118", "#F4E6C8", "#C47A3C", "#FFFFFF", "#5F7A61"]
63
+ },
64
+ "compositional_deconstruction": {
65
+ "background": "A small cafe wall with dark wood shelves, ceramic cups, a chalkboard menu, and a few paper pastry labels pinned below.",
66
+ "elements": [
67
+ {"type": "text", "bbox": [105, 130, 205, 870], "text": "УТРО В ГОРОДЕ", "desc": "Large Cyrillic chalk title, all caps, centered on the board, readable and slightly imperfect."},
68
+ {"type": "text", "bbox": [280, 170, 610, 840], "text": "кофе 220\nсырники 360\nкаша 290", "desc": "Three-line Cyrillic menu in white chalk, aligned left, with prices clearly separated."},
69
+ {"type": "text", "bbox": [735, 210, 815, 800], "text": "сегодня: вишнёвый пирог", "desc": "Small handwritten Cyrillic paper label under the board, readable but naturally casual."},
70
+ {"type": "obj", "bbox": [650, 90, 930, 930], "desc": "Wooden counter edge with a cappuccino, a linen napkin, and a slice of cherry pie on a ceramic plate."}
71
+ ]
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "id": "brutalist_architecture",
77
+ "seed": 4104,
78
+ "height": 1024,
79
+ "width": 1024,
80
+ "caption": {
81
+ "high_level_description": "A cinematic architectural photograph of a brutalist library atrium with tiny wayfinding signs and people for scale.",
82
+ "style_description": {
83
+ "aesthetics": "monumental, quiet, realistic, geometric, concrete texture",
84
+ "lighting": "late afternoon sun shafts through skylights, cool shadows, warm highlights",
85
+ "photo": "24mm tilt-shift architectural lens, high dynamic range, crisp verticals",
86
+ "medium": "photograph",
87
+ "color_palette": ["#B8B0A1", "#3D4142", "#E0C06A", "#6E7C87", "#1C1C1C"]
88
+ },
89
+ "compositional_deconstruction": {
90
+ "background": "A vast concrete atrium with suspended walkways, angular skylights, book stacks, and polished stone floors.",
91
+ "elements": [
92
+ {"type": "obj", "bbox": [80, 80, 910, 930], "desc": "Layered brutalist balconies and concrete ribs forming a deep central perspective."},
93
+ {"type": "text", "bbox": [390, 150, 455, 315], "text": "READING HALL", "desc": "Small black wayfinding sign with clean white uppercase type mounted on concrete."},
94
+ {"type": "text", "bbox": [600, 700, 650, 875], "text": "LEVEL 04", "desc": "Tiny yellow floor label on a distant balcony, legible but integrated."},
95
+ {"type": "obj", "bbox": [665, 400, 850, 620], "desc": "Three small visitors walking across the floor, casting long shadows."}
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "id": "ink_manga_rain",
102
+ "seed": 4105,
103
+ "height": 1024,
104
+ "width": 1024,
105
+ "caption": {
106
+ "high_level_description": "A dramatic black-and-white manga splash page of a courier cycling through rain, with sound effects and shop signage.",
107
+ "style_description": {
108
+ "aesthetics": "kinetic, high contrast, rain-soaked, expressive, detailed linework",
109
+ "lighting": "night street lighting rendered as stark white highlights and deep ink shadows",
110
+ "medium": "illustration",
111
+ "art_style": "manga ink drawing, screentone gradients, speed lines, hand-lettered effects",
112
+ "color_palette": ["#FFFFFF", "#111111", "#777777", "#D7D7D7"]
113
+ },
114
+ "compositional_deconstruction": {
115
+ "background": "A dense urban alley in heavy rain, storefront awnings, puddles, electrical wires, and diagonal speed lines.",
116
+ "elements": [
117
+ {"type": "obj", "bbox": [220, 190, 875, 780], "desc": "A raincoat-wearing bicycle courier leaning hard into a turn, wheels spraying water, dynamic foreshortening."},
118
+ {"type": "text", "bbox": [90, 90, 220, 350], "text": "WHOOSH", "desc": "Large hand-lettered sound effect integrated into the rain and speed lines."},
119
+ {"type": "text", "bbox": [160, 650, 245, 910], "text": "OPEN 24H", "desc": "Small glowing shop sign in block letters, partly reflected in puddles."}
120
+ ]
121
+ }
122
+ }
123
+ },
124
+ {
125
+ "id": "museum_clay_render",
126
+ "seed": 4106,
127
+ "height": 1024,
128
+ "width": 1024,
129
+ "caption": {
130
+ "high_level_description": "A polished 3D clay render of a museum diorama showing a future Arctic research station with labeled miniature modules.",
131
+ "style_description": {
132
+ "aesthetics": "clean, miniature, educational, soft, premium exhibition design",
133
+ "lighting": "large overhead museum softbox, ambient occlusion, gentle contact shadows",
134
+ "medium": "3d_render",
135
+ "art_style": "matte clay render, isometric diorama, subtle bevels, toy-like scale",
136
+ "color_palette": ["#F0F0E8", "#B9D7E8", "#F2B84B", "#394B59", "#FFFFFF"]
137
+ },
138
+ "compositional_deconstruction": {
139
+ "background": "A square museum plinth with snowy terrain, ice ridges, and a glass display cover implied by faint reflections.",
140
+ "elements": [
141
+ {"type": "obj", "bbox": [230, 210, 760, 820], "desc": "A modular Arctic research station with rounded white pods, solar panels, antennae, and tiny tracked vehicles."},
142
+ {"type": "text", "bbox": [120, 145, 185, 470], "text": "ARCTIC NODE", "desc": "Museum label title printed on the front edge of the plinth, dark gray sans-serif."},
143
+ {"type": "text", "bbox": [785, 560, 850, 845], "text": "SOLAR ARRAY", "desc": "Tiny technical callout label with a thin pointer line toward the solar panels."}
144
+ ]
145
+ }
146
+ }
147
+ },
148
+ {
149
+ "id": "food_packaging_label",
150
+ "seed": 4107,
151
+ "height": 1024,
152
+ "width": 1024,
153
+ "caption": {
154
+ "high_level_description": "A realistic premium chocolate bar packaging mockup with layered foil, embossed typography, and ingredient microcopy.",
155
+ "style_description": {
156
+ "aesthetics": "premium, appetizing, tactile, elegant, realistic packaging",
157
+ "lighting": "warm studio strip lights creating controlled foil highlights",
158
+ "photo": "70mm product photography, three-quarter angle, crisp shadows, commercial retouching",
159
+ "medium": "photograph",
160
+ "color_palette": ["#4A1F16", "#D7A94B", "#F7EFE2", "#1E1A18", "#8C3A2B"]
161
+ },
162
+ "compositional_deconstruction": {
163
+ "background": "A warm stone tabletop with cocoa powder dust, roasted hazelnuts, and a folded piece of gold foil.",
164
+ "elements": [
165
+ {"type": "obj", "bbox": [210, 160, 820, 835], "desc": "A dark chocolate bar wrapper, partly opened, with embossed gold foil and visible chocolate squares."},
166
+ {"type": "text", "bbox": [300, 255, 470, 760], "text": "NOIR 72%", "desc": "Large embossed serif product name in metallic gold on the wrapper."},
167
+ {"type": "text", "bbox": [530, 310, 620, 720], "text": "hazelnut • sea salt • cacao nib", "desc": "Small ingredient line in cream ink, readable and aligned under the title."}
168
+ ]
169
+ }
170
+ }
171
+ },
172
+ {
173
+ "id": "fantasy_map_typography",
174
+ "seed": 4108,
175
+ "height": 1024,
176
+ "width": 1024,
177
+ "caption": {
178
+ "high_level_description": "A hand-painted fantasy map on parchment with readable place names, compass ornament, and coastal illustrations.",
179
+ "style_description": {
180
+ "aesthetics": "adventurous, ornate, aged, cartographic, storybook",
181
+ "lighting": "flat archival scan with slight parchment waviness and warm edge darkening",
182
+ "medium": "painting",
183
+ "art_style": "watercolor and ink fantasy cartography, fine calligraphy, engraved coastline marks",
184
+ "color_palette": ["#E9D7A6", "#4E6B4C", "#2F4B6B", "#8A5A2B", "#1F1712"]
185
+ },
186
+ "compositional_deconstruction": {
187
+ "background": "Aged parchment with hand-drawn mountains, forests, rivers, dotted travel routes, and inked coastlines.",
188
+ "elements": [
189
+ {"type": "text", "bbox": [220, 315, 305, 650], "text": "Elder Coast", "desc": "Elegant map calligraphy following the curve of a bay, readable and inked in dark brown."},
190
+ {"type": "text", "bbox": [530, 560, 610, 790], "text": "Moon Gate", "desc": "Small calligraphic city label beside a walled port symbol."},
191
+ {"type": "text", "bbox": [760, 100, 850, 330], "text": "North", "desc": "Compass rose label beside an ornate compass star."},
192
+ {"type": "obj", "bbox": [300, 130, 780, 870], "desc": "Mountains, forests, a serpentine river, a ship illustration, and dotted trade route marks."}
193
+ ]
194
+ }
195
+ }
196
+ },
197
+ {
198
+ "id": "streetwear_lookbook",
199
+ "seed": 4109,
200
+ "height": 1024,
201
+ "width": 1024,
202
+ "caption": {
203
+ "high_level_description": "A fashion lookbook cover photograph for a streetwear collection, with crisp cover typography and realistic fabric textures.",
204
+ "style_description": {
205
+ "aesthetics": "urban, editorial, confident, modern, magazine cover",
206
+ "lighting": "overcast daylight with soft fill, wet pavement reflections",
207
+ "photo": "50mm fashion editorial lens, full-body portrait, muted city colors",
208
+ "medium": "photograph",
209
+ "color_palette": ["#101820", "#EDEBE3", "#BFC7C9", "#7A1E2C", "#4C5B61"]
210
+ },
211
+ "compositional_deconstruction": {
212
+ "background": "A quiet city side street after rain, concrete walls, steel shutters, and reflective asphalt.",
213
+ "elements": [
214
+ {"type": "obj", "bbox": [180, 330, 890, 710], "desc": "A model wearing an oversized cream technical jacket, black cargo trousers, red knit cap, and layered accessories."},
215
+ {"type": "text", "bbox": [80, 80, 190, 930], "text": "URBAN WEATHER", "desc": "Large magazine cover title in clean condensed uppercase letters across the top."},
216
+ {"type": "text", "bbox": [835, 120, 900, 880], "text": "LOOKBOOK 04", "desc": "Small footer text spaced widely, aligned along the bottom edge."}
217
+ ]
218
+ }
219
+ }
220
+ },
221
+ {
222
+ "id": "scientific_cutaway",
223
+ "seed": 4110,
224
+ "height": 1024,
225
+ "width": 1024,
226
+ "caption": {
227
+ "high_level_description": "A detailed scientific cutaway illustration of a compact fusion battery prototype with annotated parts and clean technical typography.",
228
+ "style_description": {
229
+ "aesthetics": "precise, futuristic, educational, clean, high-detail engineering",
230
+ "lighting": "neutral white studio lighting with subtle blue glow from the device core",
231
+ "medium": "illustration",
232
+ "art_style": "technical cutaway illustration, vector-like linework with soft 3D shading",
233
+ "color_palette": ["#F7F8FA", "#1E2A33", "#2FA7C9", "#F0C74A", "#707A83"]
234
+ },
235
+ "compositional_deconstruction": {
236
+ "background": "A clean off-white technical poster background with faint grid lines and small registration marks.",
237
+ "elements": [
238
+ {"type": "obj", "bbox": [210, 210, 780, 780], "desc": "A cylindrical compact fusion battery shown in cutaway, with glowing blue core, layered shielding, coolant channels, and brass connector rings."},
239
+ {"type": "text", "bbox": [90, 115, 175, 600], "text": "COMPACT FUSION CELL", "desc": "Main technical title in crisp uppercase sans-serif type."},
240
+ {"type": "text", "bbox": [330, 705, 390, 940], "text": "coolant loop", "desc": "Small annotation label with a thin leader line pointing to blue channels."},
241
+ {"type": "text", "bbox": [610, 80, 675, 330], "text": "field coil", "desc": "Small annotation label with a leader line pointing to the copper coil."}
242
+ ]
243
+ }
244
+ }
245
+ }
246
+ ]
quantization_manifest.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_repo": "ideogram-ai/ideogram-4-fp8",
3
+ "target_repo": "WaveCut/ideogram-4-sdnq-uint4",
4
+ "quantization": {
5
+ "weights_dtype": "uint4",
6
+ "group_size": 0,
7
+ "use_svd": false,
8
+ "use_dynamic_quantization": false,
9
+ "use_stochastic_rounding": false,
10
+ "dequantize_fp32": false,
11
+ "add_skip_keys": false
12
+ },
13
+ "components": {
14
+ "transformer": {
15
+ "file": "model/transformer/diffusion_pytorch_model.safetensors",
16
+ "storage_mb": 4979.658447265625,
17
+ "num_state_tensors": 880,
18
+ "source_materialized_storage_mb": 17698.838134765625,
19
+ "name": "quantize_transformer",
20
+ "elapsed_seconds": 112.6355704489979,
21
+ "gpu_before_mb": 561,
22
+ "gpu_after_mb": 649,
23
+ "gpu_peak_mb": 36525,
24
+ "torch_peak_allocated_mb": 0.0,
25
+ "torch_peak_reserved_mb": 0.0,
26
+ "component": "transformer"
27
+ },
28
+ "unconditional_transformer": {
29
+ "file": "model/unconditional_transformer/diffusion_pytorch_model.safetensors",
30
+ "storage_mb": 4979.658447265625,
31
+ "num_state_tensors": 880,
32
+ "source_materialized_storage_mb": 17698.838134765625,
33
+ "name": "quantize_unconditional_transformer",
34
+ "elapsed_seconds": 108.67946223300532,
35
+ "gpu_before_mb": 649,
36
+ "gpu_after_mb": 649,
37
+ "gpu_peak_mb": 36525,
38
+ "torch_peak_allocated_mb": 0.0,
39
+ "torch_peak_reserved_mb": 0.0,
40
+ "component": "unconditional_transformer"
41
+ },
42
+ "text_encoder": {
43
+ "storage_mb": 4097.525390625,
44
+ "source_materialized_storage_mb": 14435.587890625,
45
+ "num_state_tensors": 904,
46
+ "name": "quantize_text_encoder",
47
+ "elapsed_seconds": 102.32456034698407,
48
+ "gpu_before_mb": 649,
49
+ "gpu_after_mb": 649,
50
+ "gpu_peak_mb": 24477,
51
+ "torch_peak_allocated_mb": 0.0,
52
+ "torch_peak_reserved_mb": 0.0,
53
+ "component": "text_encoder"
54
+ },
55
+ "vae": {
56
+ "file": "model/vae/diffusion_pytorch_model.safetensors",
57
+ "storage_mb": 50.18652153015137,
58
+ "num_state_tensors": 395,
59
+ "source_materialized_storage_mb": 160.30573844909668,
60
+ "name": "quantize_vae",
61
+ "elapsed_seconds": 2.675335832987912,
62
+ "gpu_before_mb": 649,
63
+ "gpu_after_mb": 649,
64
+ "gpu_peak_mb": 861,
65
+ "torch_peak_allocated_mb": 0.0,
66
+ "torch_peak_reserved_mb": 0.0,
67
+ "component": "vae"
68
+ }
69
+ },
70
+ "scaffolding": {
71
+ "snapshot": "/root/.cache/huggingface/hub/models--ideogram-ai--ideogram-4-fp8/snapshots/ee79a7237b519f1402ceacf952f30c8a31ec5073"
72
+ }
73
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "FlowMatchEulerDiscreteScheduler",
3
+ "_diffusers_version": "0.39.0.dev0",
4
+ "base_image_seq_len": 256,
5
+ "base_shift": 0.5,
6
+ "invert_sigmas": false,
7
+ "max_image_seq_len": 4096,
8
+ "max_shift": 1.15,
9
+ "num_train_timesteps": 1000,
10
+ "shift": 1.0,
11
+ "shift_terminal": null,
12
+ "stochastic_sampling": false,
13
+ "time_shift_type": "exponential",
14
+ "use_beta_sigmas": false,
15
+ "use_dynamic_shifting": false,
16
+ "use_exponential_sigmas": false,
17
+ "use_karras_sigmas": false
18
+ }
text_encoder/config.json ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3VLTextModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 4096,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 12288,
15
+ "max_position_embeddings": 262144,
16
+ "model_type": "qwen3_vl_text",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 36,
19
+ "num_key_value_heads": 8,
20
+ "pad_token_id": null,
21
+ "quantization_config": {
22
+ "add_skip_keys": false,
23
+ "dequantize_fp32": false,
24
+ "dynamic_loss_threshold": null,
25
+ "group_size": 0,
26
+ "hadamard_group_size": 128,
27
+ "is_integer": true,
28
+ "is_training": false,
29
+ "modules_dtype_dict": {},
30
+ "modules_quant_config": {},
31
+ "modules_to_not_convert": [
32
+ "layers.0.self_attn.q_norm.weight",
33
+ "layers.0.self_attn.k_norm.weight",
34
+ "layers.0.input_layernorm.weight",
35
+ "layers.0.post_attention_layernorm.weight",
36
+ "layers.1.self_attn.q_norm.weight",
37
+ "layers.1.self_attn.k_norm.weight",
38
+ "layers.1.input_layernorm.weight",
39
+ "layers.1.post_attention_layernorm.weight",
40
+ "layers.2.self_attn.q_norm.weight",
41
+ "layers.2.self_attn.k_norm.weight",
42
+ "layers.2.input_layernorm.weight",
43
+ "layers.2.post_attention_layernorm.weight",
44
+ "layers.3.self_attn.q_norm.weight",
45
+ "layers.3.self_attn.k_norm.weight",
46
+ "layers.3.input_layernorm.weight",
47
+ "layers.3.post_attention_layernorm.weight",
48
+ "layers.4.self_attn.q_norm.weight",
49
+ "layers.4.self_attn.k_norm.weight",
50
+ "layers.4.input_layernorm.weight",
51
+ "layers.4.post_attention_layernorm.weight",
52
+ "layers.5.self_attn.q_norm.weight",
53
+ "layers.5.self_attn.k_norm.weight",
54
+ "layers.5.input_layernorm.weight",
55
+ "layers.5.post_attention_layernorm.weight",
56
+ "layers.6.self_attn.q_norm.weight",
57
+ "layers.6.self_attn.k_norm.weight",
58
+ "layers.6.input_layernorm.weight",
59
+ "layers.6.post_attention_layernorm.weight",
60
+ "layers.7.self_attn.q_norm.weight",
61
+ "layers.7.self_attn.k_norm.weight",
62
+ "layers.7.input_layernorm.weight",
63
+ "layers.7.post_attention_layernorm.weight",
64
+ "layers.8.self_attn.q_norm.weight",
65
+ "layers.8.self_attn.k_norm.weight",
66
+ "layers.8.input_layernorm.weight",
67
+ "layers.8.post_attention_layernorm.weight",
68
+ "layers.9.self_attn.q_norm.weight",
69
+ "layers.9.self_attn.k_norm.weight",
70
+ "layers.9.input_layernorm.weight",
71
+ "layers.9.post_attention_layernorm.weight",
72
+ "layers.10.self_attn.q_norm.weight",
73
+ "layers.10.self_attn.k_norm.weight",
74
+ "layers.10.input_layernorm.weight",
75
+ "layers.10.post_attention_layernorm.weight",
76
+ "layers.11.self_attn.q_norm.weight",
77
+ "layers.11.self_attn.k_norm.weight",
78
+ "layers.11.input_layernorm.weight",
79
+ "layers.11.post_attention_layernorm.weight",
80
+ "layers.12.self_attn.q_norm.weight",
81
+ "layers.12.self_attn.k_norm.weight",
82
+ "layers.12.input_layernorm.weight",
83
+ "layers.12.post_attention_layernorm.weight",
84
+ "layers.13.self_attn.q_norm.weight",
85
+ "layers.13.self_attn.k_norm.weight",
86
+ "layers.13.input_layernorm.weight",
87
+ "layers.13.post_attention_layernorm.weight",
88
+ "layers.14.self_attn.q_norm.weight",
89
+ "layers.14.self_attn.k_norm.weight",
90
+ "layers.14.input_layernorm.weight",
91
+ "layers.14.post_attention_layernorm.weight",
92
+ "layers.15.self_attn.q_norm.weight",
93
+ "layers.15.self_attn.k_norm.weight",
94
+ "layers.15.input_layernorm.weight",
95
+ "layers.15.post_attention_layernorm.weight",
96
+ "layers.16.self_attn.q_norm.weight",
97
+ "layers.16.self_attn.k_norm.weight",
98
+ "layers.16.input_layernorm.weight",
99
+ "layers.16.post_attention_layernorm.weight",
100
+ "layers.17.self_attn.q_norm.weight",
101
+ "layers.17.self_attn.k_norm.weight",
102
+ "layers.17.input_layernorm.weight",
103
+ "layers.17.post_attention_layernorm.weight",
104
+ "layers.18.self_attn.q_norm.weight",
105
+ "layers.18.self_attn.k_norm.weight",
106
+ "layers.18.input_layernorm.weight",
107
+ "layers.18.post_attention_layernorm.weight",
108
+ "layers.19.self_attn.q_norm.weight",
109
+ "layers.19.self_attn.k_norm.weight",
110
+ "layers.19.input_layernorm.weight",
111
+ "layers.19.post_attention_layernorm.weight",
112
+ "layers.20.self_attn.q_norm.weight",
113
+ "layers.20.self_attn.k_norm.weight",
114
+ "layers.20.input_layernorm.weight",
115
+ "layers.20.post_attention_layernorm.weight",
116
+ "layers.21.self_attn.q_norm.weight",
117
+ "layers.21.self_attn.k_norm.weight",
118
+ "layers.21.input_layernorm.weight",
119
+ "layers.21.post_attention_layernorm.weight",
120
+ "layers.22.self_attn.q_norm.weight",
121
+ "layers.22.self_attn.k_norm.weight",
122
+ "layers.22.input_layernorm.weight",
123
+ "layers.22.post_attention_layernorm.weight",
124
+ "layers.23.self_attn.q_norm.weight",
125
+ "layers.23.self_attn.k_norm.weight",
126
+ "layers.23.input_layernorm.weight",
127
+ "layers.23.post_attention_layernorm.weight",
128
+ "layers.24.self_attn.q_norm.weight",
129
+ "layers.24.self_attn.k_norm.weight",
130
+ "layers.24.input_layernorm.weight",
131
+ "layers.24.post_attention_layernorm.weight",
132
+ "layers.25.self_attn.q_norm.weight",
133
+ "layers.25.self_attn.k_norm.weight",
134
+ "layers.25.input_layernorm.weight",
135
+ "layers.25.post_attention_layernorm.weight",
136
+ "layers.26.self_attn.q_norm.weight",
137
+ "layers.26.self_attn.k_norm.weight",
138
+ "layers.26.input_layernorm.weight",
139
+ "layers.26.post_attention_layernorm.weight",
140
+ "layers.27.self_attn.q_norm.weight",
141
+ "layers.27.self_attn.k_norm.weight",
142
+ "layers.27.input_layernorm.weight",
143
+ "layers.27.post_attention_layernorm.weight",
144
+ "layers.28.self_attn.q_norm.weight",
145
+ "layers.28.self_attn.k_norm.weight",
146
+ "layers.28.input_layernorm.weight",
147
+ "layers.28.post_attention_layernorm.weight",
148
+ "layers.29.self_attn.q_norm.weight",
149
+ "layers.29.self_attn.k_norm.weight",
150
+ "layers.29.input_layernorm.weight",
151
+ "layers.29.post_attention_layernorm.weight",
152
+ "layers.30.self_attn.q_norm.weight",
153
+ "layers.30.self_attn.k_norm.weight",
154
+ "layers.30.input_layernorm.weight",
155
+ "layers.30.post_attention_layernorm.weight",
156
+ "layers.31.self_attn.q_norm.weight",
157
+ "layers.31.self_attn.k_norm.weight",
158
+ "layers.31.input_layernorm.weight",
159
+ "layers.31.post_attention_layernorm.weight",
160
+ "layers.32.self_attn.q_norm.weight",
161
+ "layers.32.self_attn.k_norm.weight",
162
+ "layers.32.input_layernorm.weight",
163
+ "layers.32.post_attention_layernorm.weight",
164
+ "layers.33.self_attn.q_norm.weight",
165
+ "layers.33.self_attn.k_norm.weight",
166
+ "layers.33.input_layernorm.weight",
167
+ "layers.33.post_attention_layernorm.weight",
168
+ "layers.34.self_attn.q_norm.weight",
169
+ "layers.34.self_attn.k_norm.weight",
170
+ "layers.34.input_layernorm.weight",
171
+ "layers.34.post_attention_layernorm.weight",
172
+ "layers.35.self_attn.q_norm.weight",
173
+ "layers.35.self_attn.k_norm.weight",
174
+ "layers.35.input_layernorm.weight",
175
+ "layers.35.post_attention_layernorm.weight",
176
+ "norm.weight"
177
+ ],
178
+ "modules_to_not_use_matmul": [],
179
+ "non_blocking": false,
180
+ "quant_conv": false,
181
+ "quant_embedding": true,
182
+ "quant_method": "sdnq",
183
+ "quantization_device": null,
184
+ "quantized_matmul_dtype": null,
185
+ "return_device": null,
186
+ "sdnq_version": "0.1.9",
187
+ "svd_rank": 32,
188
+ "svd_steps": 8,
189
+ "use_dynamic_quantization": false,
190
+ "use_grad_ckpt": true,
191
+ "use_hadamard": false,
192
+ "use_quantized_matmul": false,
193
+ "use_quantized_matmul_conv": false,
194
+ "use_static_quantization": true,
195
+ "use_stochastic_rounding": false,
196
+ "use_svd": false,
197
+ "weights_dtype": "uint4"
198
+ },
199
+ "rms_norm_eps": 1e-06,
200
+ "rope_parameters": {
201
+ "mrope_interleaved": true,
202
+ "mrope_section": [
203
+ 24,
204
+ 20,
205
+ 20
206
+ ],
207
+ "rope_theta": 5000000,
208
+ "rope_type": "default"
209
+ },
210
+ "transformers_version": "5.10.1",
211
+ "use_cache": true,
212
+ "vocab_size": 151936
213
+ }
text_encoder/model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5552a390cd4e6f8e3c70e3270fd1372b87409832c4741d62128e96b1a5f2f6
3
+ size 3994609744
text_encoder/model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e80201da79c9e870ae78f71cebdabb85b28ee9ed97b619370b17e75ba2d09904
3
+ size 302054848
text_encoder/model.safetensors.index.json ADDED
@@ -0,0 +1,912 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 4040307712,
4
+ "total_size": 4296566784
5
+ },
6
+ "weight_map": {
7
+ "embed_tokens.scale": "model-00001-of-00002.safetensors",
8
+ "embed_tokens.weight": "model-00001-of-00002.safetensors",
9
+ "embed_tokens.zero_point": "model-00001-of-00002.safetensors",
10
+ "layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
11
+ "layers.0.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
12
+ "layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
13
+ "layers.0.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
14
+ "layers.0.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
15
+ "layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
16
+ "layers.0.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
17
+ "layers.0.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
18
+ "layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
19
+ "layers.0.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
20
+ "layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
21
+ "layers.0.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
22
+ "layers.0.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
23
+ "layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
24
+ "layers.0.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
25
+ "layers.0.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
26
+ "layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
27
+ "layers.0.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
28
+ "layers.0.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
29
+ "layers.0.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
30
+ "layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
31
+ "layers.0.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
32
+ "layers.0.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
33
+ "layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
34
+ "layers.0.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
35
+ "layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
36
+ "layers.1.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
37
+ "layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
38
+ "layers.1.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
39
+ "layers.1.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
40
+ "layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
41
+ "layers.1.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
42
+ "layers.1.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
43
+ "layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
44
+ "layers.1.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
45
+ "layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
46
+ "layers.1.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
47
+ "layers.1.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
48
+ "layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
49
+ "layers.1.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
50
+ "layers.1.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
51
+ "layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
52
+ "layers.1.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
53
+ "layers.1.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
54
+ "layers.1.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
55
+ "layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
56
+ "layers.1.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
57
+ "layers.1.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
58
+ "layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
59
+ "layers.1.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
60
+ "layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
61
+ "layers.10.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
62
+ "layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
63
+ "layers.10.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
64
+ "layers.10.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
65
+ "layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
66
+ "layers.10.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
67
+ "layers.10.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
68
+ "layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
69
+ "layers.10.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
70
+ "layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
71
+ "layers.10.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
72
+ "layers.10.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
73
+ "layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
74
+ "layers.10.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
75
+ "layers.10.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
76
+ "layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
77
+ "layers.10.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
78
+ "layers.10.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
79
+ "layers.10.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
80
+ "layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
81
+ "layers.10.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
82
+ "layers.10.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
83
+ "layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
84
+ "layers.10.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
85
+ "layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
86
+ "layers.11.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
87
+ "layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
88
+ "layers.11.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
89
+ "layers.11.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
90
+ "layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
91
+ "layers.11.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
92
+ "layers.11.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
93
+ "layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
94
+ "layers.11.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
95
+ "layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
96
+ "layers.11.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
97
+ "layers.11.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
98
+ "layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
99
+ "layers.11.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
100
+ "layers.11.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
101
+ "layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
102
+ "layers.11.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
103
+ "layers.11.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
104
+ "layers.11.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
105
+ "layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
106
+ "layers.11.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
107
+ "layers.11.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
108
+ "layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
109
+ "layers.11.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
110
+ "layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
111
+ "layers.12.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
112
+ "layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
113
+ "layers.12.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
114
+ "layers.12.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
115
+ "layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
116
+ "layers.12.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
117
+ "layers.12.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
118
+ "layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
119
+ "layers.12.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
120
+ "layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
121
+ "layers.12.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
122
+ "layers.12.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
123
+ "layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
124
+ "layers.12.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
125
+ "layers.12.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
126
+ "layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
127
+ "layers.12.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
128
+ "layers.12.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
129
+ "layers.12.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
130
+ "layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
131
+ "layers.12.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
132
+ "layers.12.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
133
+ "layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
134
+ "layers.12.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
135
+ "layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
136
+ "layers.13.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
137
+ "layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
138
+ "layers.13.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
139
+ "layers.13.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
140
+ "layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
141
+ "layers.13.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
142
+ "layers.13.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
143
+ "layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
144
+ "layers.13.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
145
+ "layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
146
+ "layers.13.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
147
+ "layers.13.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
148
+ "layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
149
+ "layers.13.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
150
+ "layers.13.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
151
+ "layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
152
+ "layers.13.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
153
+ "layers.13.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
154
+ "layers.13.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
155
+ "layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
156
+ "layers.13.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
157
+ "layers.13.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
158
+ "layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
159
+ "layers.13.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
160
+ "layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
161
+ "layers.14.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
162
+ "layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
163
+ "layers.14.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
164
+ "layers.14.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
165
+ "layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
166
+ "layers.14.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
167
+ "layers.14.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
168
+ "layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
169
+ "layers.14.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
170
+ "layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
171
+ "layers.14.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
172
+ "layers.14.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
173
+ "layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
174
+ "layers.14.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
175
+ "layers.14.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
176
+ "layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
177
+ "layers.14.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
178
+ "layers.14.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
179
+ "layers.14.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
180
+ "layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
181
+ "layers.14.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
182
+ "layers.14.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
183
+ "layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
184
+ "layers.14.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
185
+ "layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
186
+ "layers.15.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
187
+ "layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
188
+ "layers.15.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
189
+ "layers.15.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
190
+ "layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
191
+ "layers.15.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
192
+ "layers.15.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
193
+ "layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
194
+ "layers.15.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
195
+ "layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
196
+ "layers.15.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
197
+ "layers.15.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
198
+ "layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
199
+ "layers.15.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
200
+ "layers.15.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
201
+ "layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
202
+ "layers.15.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
203
+ "layers.15.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
204
+ "layers.15.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
205
+ "layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
206
+ "layers.15.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
207
+ "layers.15.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
208
+ "layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
209
+ "layers.15.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
210
+ "layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
211
+ "layers.16.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
212
+ "layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
213
+ "layers.16.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
214
+ "layers.16.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
215
+ "layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
216
+ "layers.16.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
217
+ "layers.16.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
218
+ "layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
219
+ "layers.16.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
220
+ "layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
221
+ "layers.16.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
222
+ "layers.16.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
223
+ "layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
224
+ "layers.16.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
225
+ "layers.16.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
226
+ "layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
227
+ "layers.16.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
228
+ "layers.16.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
229
+ "layers.16.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
230
+ "layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
231
+ "layers.16.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
232
+ "layers.16.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
233
+ "layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
234
+ "layers.16.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
235
+ "layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
236
+ "layers.17.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
237
+ "layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
238
+ "layers.17.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
239
+ "layers.17.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
240
+ "layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
241
+ "layers.17.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
242
+ "layers.17.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
243
+ "layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
244
+ "layers.17.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
245
+ "layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
246
+ "layers.17.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
247
+ "layers.17.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
248
+ "layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
249
+ "layers.17.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
250
+ "layers.17.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
251
+ "layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
252
+ "layers.17.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
253
+ "layers.17.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
254
+ "layers.17.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
255
+ "layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
256
+ "layers.17.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
257
+ "layers.17.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
258
+ "layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
259
+ "layers.17.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
260
+ "layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
261
+ "layers.18.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
262
+ "layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
263
+ "layers.18.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
264
+ "layers.18.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
265
+ "layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
266
+ "layers.18.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
267
+ "layers.18.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
268
+ "layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
269
+ "layers.18.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
270
+ "layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
271
+ "layers.18.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
272
+ "layers.18.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
273
+ "layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
274
+ "layers.18.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
275
+ "layers.18.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
276
+ "layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
277
+ "layers.18.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
278
+ "layers.18.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
279
+ "layers.18.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
280
+ "layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
281
+ "layers.18.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
282
+ "layers.18.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
283
+ "layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
284
+ "layers.18.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
285
+ "layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
286
+ "layers.19.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
287
+ "layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
288
+ "layers.19.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
289
+ "layers.19.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
290
+ "layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
291
+ "layers.19.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
292
+ "layers.19.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
293
+ "layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
294
+ "layers.19.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
295
+ "layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
296
+ "layers.19.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
297
+ "layers.19.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
298
+ "layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
299
+ "layers.19.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
300
+ "layers.19.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
301
+ "layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
302
+ "layers.19.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
303
+ "layers.19.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
304
+ "layers.19.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
305
+ "layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
306
+ "layers.19.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
307
+ "layers.19.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
308
+ "layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
309
+ "layers.19.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
310
+ "layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
311
+ "layers.2.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
312
+ "layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
313
+ "layers.2.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
314
+ "layers.2.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
315
+ "layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
316
+ "layers.2.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
317
+ "layers.2.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
318
+ "layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
319
+ "layers.2.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
320
+ "layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
321
+ "layers.2.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
322
+ "layers.2.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
323
+ "layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
324
+ "layers.2.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
325
+ "layers.2.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
326
+ "layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
327
+ "layers.2.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
328
+ "layers.2.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
329
+ "layers.2.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
330
+ "layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
331
+ "layers.2.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
332
+ "layers.2.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
333
+ "layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
334
+ "layers.2.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
335
+ "layers.20.input_layernorm.weight": "model-00001-of-00002.safetensors",
336
+ "layers.20.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
337
+ "layers.20.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
338
+ "layers.20.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
339
+ "layers.20.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
340
+ "layers.20.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
341
+ "layers.20.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
342
+ "layers.20.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
343
+ "layers.20.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
344
+ "layers.20.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
345
+ "layers.20.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
346
+ "layers.20.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
347
+ "layers.20.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
348
+ "layers.20.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
349
+ "layers.20.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
350
+ "layers.20.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
351
+ "layers.20.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
352
+ "layers.20.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
353
+ "layers.20.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
354
+ "layers.20.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
355
+ "layers.20.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
356
+ "layers.20.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
357
+ "layers.20.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
358
+ "layers.20.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
359
+ "layers.20.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
360
+ "layers.21.input_layernorm.weight": "model-00001-of-00002.safetensors",
361
+ "layers.21.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
362
+ "layers.21.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
363
+ "layers.21.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
364
+ "layers.21.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
365
+ "layers.21.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
366
+ "layers.21.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
367
+ "layers.21.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
368
+ "layers.21.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
369
+ "layers.21.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
370
+ "layers.21.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
371
+ "layers.21.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
372
+ "layers.21.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
373
+ "layers.21.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
374
+ "layers.21.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
375
+ "layers.21.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
376
+ "layers.21.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
377
+ "layers.21.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
378
+ "layers.21.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
379
+ "layers.21.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
380
+ "layers.21.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
381
+ "layers.21.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
382
+ "layers.21.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
383
+ "layers.21.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
384
+ "layers.21.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
385
+ "layers.22.input_layernorm.weight": "model-00001-of-00002.safetensors",
386
+ "layers.22.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
387
+ "layers.22.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
388
+ "layers.22.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
389
+ "layers.22.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
390
+ "layers.22.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
391
+ "layers.22.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
392
+ "layers.22.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
393
+ "layers.22.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
394
+ "layers.22.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
395
+ "layers.22.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
396
+ "layers.22.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
397
+ "layers.22.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
398
+ "layers.22.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
399
+ "layers.22.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
400
+ "layers.22.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
401
+ "layers.22.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
402
+ "layers.22.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
403
+ "layers.22.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
404
+ "layers.22.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
405
+ "layers.22.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
406
+ "layers.22.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
407
+ "layers.22.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
408
+ "layers.22.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
409
+ "layers.22.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
410
+ "layers.23.input_layernorm.weight": "model-00001-of-00002.safetensors",
411
+ "layers.23.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
412
+ "layers.23.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
413
+ "layers.23.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
414
+ "layers.23.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
415
+ "layers.23.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
416
+ "layers.23.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
417
+ "layers.23.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
418
+ "layers.23.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
419
+ "layers.23.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
420
+ "layers.23.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
421
+ "layers.23.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
422
+ "layers.23.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
423
+ "layers.23.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
424
+ "layers.23.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
425
+ "layers.23.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
426
+ "layers.23.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
427
+ "layers.23.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
428
+ "layers.23.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
429
+ "layers.23.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
430
+ "layers.23.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
431
+ "layers.23.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
432
+ "layers.23.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
433
+ "layers.23.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
434
+ "layers.23.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
435
+ "layers.24.input_layernorm.weight": "model-00001-of-00002.safetensors",
436
+ "layers.24.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
437
+ "layers.24.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
438
+ "layers.24.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
439
+ "layers.24.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
440
+ "layers.24.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
441
+ "layers.24.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
442
+ "layers.24.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
443
+ "layers.24.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
444
+ "layers.24.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
445
+ "layers.24.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
446
+ "layers.24.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
447
+ "layers.24.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
448
+ "layers.24.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
449
+ "layers.24.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
450
+ "layers.24.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
451
+ "layers.24.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
452
+ "layers.24.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
453
+ "layers.24.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
454
+ "layers.24.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
455
+ "layers.24.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
456
+ "layers.24.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
457
+ "layers.24.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
458
+ "layers.24.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
459
+ "layers.24.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
460
+ "layers.25.input_layernorm.weight": "model-00001-of-00002.safetensors",
461
+ "layers.25.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
462
+ "layers.25.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
463
+ "layers.25.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
464
+ "layers.25.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
465
+ "layers.25.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
466
+ "layers.25.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
467
+ "layers.25.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
468
+ "layers.25.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
469
+ "layers.25.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
470
+ "layers.25.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
471
+ "layers.25.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
472
+ "layers.25.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
473
+ "layers.25.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
474
+ "layers.25.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
475
+ "layers.25.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
476
+ "layers.25.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
477
+ "layers.25.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
478
+ "layers.25.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
479
+ "layers.25.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
480
+ "layers.25.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
481
+ "layers.25.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
482
+ "layers.25.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
483
+ "layers.25.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
484
+ "layers.25.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
485
+ "layers.26.input_layernorm.weight": "model-00001-of-00002.safetensors",
486
+ "layers.26.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
487
+ "layers.26.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
488
+ "layers.26.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
489
+ "layers.26.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
490
+ "layers.26.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
491
+ "layers.26.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
492
+ "layers.26.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
493
+ "layers.26.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
494
+ "layers.26.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
495
+ "layers.26.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
496
+ "layers.26.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
497
+ "layers.26.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
498
+ "layers.26.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
499
+ "layers.26.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
500
+ "layers.26.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
501
+ "layers.26.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
502
+ "layers.26.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
503
+ "layers.26.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
504
+ "layers.26.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
505
+ "layers.26.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
506
+ "layers.26.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
507
+ "layers.26.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
508
+ "layers.26.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
509
+ "layers.26.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
510
+ "layers.27.input_layernorm.weight": "model-00001-of-00002.safetensors",
511
+ "layers.27.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
512
+ "layers.27.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
513
+ "layers.27.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
514
+ "layers.27.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
515
+ "layers.27.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
516
+ "layers.27.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
517
+ "layers.27.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
518
+ "layers.27.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
519
+ "layers.27.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
520
+ "layers.27.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
521
+ "layers.27.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
522
+ "layers.27.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
523
+ "layers.27.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
524
+ "layers.27.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
525
+ "layers.27.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
526
+ "layers.27.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
527
+ "layers.27.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
528
+ "layers.27.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
529
+ "layers.27.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
530
+ "layers.27.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
531
+ "layers.27.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
532
+ "layers.27.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
533
+ "layers.27.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
534
+ "layers.27.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
535
+ "layers.28.input_layernorm.weight": "model-00001-of-00002.safetensors",
536
+ "layers.28.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
537
+ "layers.28.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
538
+ "layers.28.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
539
+ "layers.28.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
540
+ "layers.28.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
541
+ "layers.28.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
542
+ "layers.28.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
543
+ "layers.28.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
544
+ "layers.28.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
545
+ "layers.28.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
546
+ "layers.28.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
547
+ "layers.28.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
548
+ "layers.28.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
549
+ "layers.28.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
550
+ "layers.28.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
551
+ "layers.28.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
552
+ "layers.28.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
553
+ "layers.28.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
554
+ "layers.28.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
555
+ "layers.28.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
556
+ "layers.28.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
557
+ "layers.28.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
558
+ "layers.28.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
559
+ "layers.28.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
560
+ "layers.29.input_layernorm.weight": "model-00001-of-00002.safetensors",
561
+ "layers.29.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
562
+ "layers.29.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
563
+ "layers.29.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
564
+ "layers.29.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
565
+ "layers.29.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
566
+ "layers.29.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
567
+ "layers.29.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
568
+ "layers.29.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
569
+ "layers.29.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
570
+ "layers.29.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
571
+ "layers.29.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
572
+ "layers.29.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
573
+ "layers.29.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
574
+ "layers.29.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
575
+ "layers.29.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
576
+ "layers.29.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
577
+ "layers.29.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
578
+ "layers.29.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
579
+ "layers.29.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
580
+ "layers.29.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
581
+ "layers.29.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
582
+ "layers.29.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
583
+ "layers.29.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
584
+ "layers.29.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
585
+ "layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
586
+ "layers.3.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
587
+ "layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
588
+ "layers.3.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
589
+ "layers.3.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
590
+ "layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
591
+ "layers.3.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
592
+ "layers.3.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
593
+ "layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
594
+ "layers.3.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
595
+ "layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
596
+ "layers.3.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
597
+ "layers.3.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
598
+ "layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
599
+ "layers.3.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
600
+ "layers.3.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
601
+ "layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
602
+ "layers.3.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
603
+ "layers.3.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
604
+ "layers.3.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
605
+ "layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
606
+ "layers.3.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
607
+ "layers.3.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
608
+ "layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
609
+ "layers.3.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
610
+ "layers.30.input_layernorm.weight": "model-00001-of-00002.safetensors",
611
+ "layers.30.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
612
+ "layers.30.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
613
+ "layers.30.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
614
+ "layers.30.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
615
+ "layers.30.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
616
+ "layers.30.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
617
+ "layers.30.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
618
+ "layers.30.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
619
+ "layers.30.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
620
+ "layers.30.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
621
+ "layers.30.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
622
+ "layers.30.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
623
+ "layers.30.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
624
+ "layers.30.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
625
+ "layers.30.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
626
+ "layers.30.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
627
+ "layers.30.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
628
+ "layers.30.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
629
+ "layers.30.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
630
+ "layers.30.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
631
+ "layers.30.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
632
+ "layers.30.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
633
+ "layers.30.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
634
+ "layers.30.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
635
+ "layers.31.input_layernorm.weight": "model-00001-of-00002.safetensors",
636
+ "layers.31.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
637
+ "layers.31.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
638
+ "layers.31.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
639
+ "layers.31.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
640
+ "layers.31.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
641
+ "layers.31.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
642
+ "layers.31.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
643
+ "layers.31.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
644
+ "layers.31.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
645
+ "layers.31.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
646
+ "layers.31.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
647
+ "layers.31.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
648
+ "layers.31.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
649
+ "layers.31.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
650
+ "layers.31.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
651
+ "layers.31.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
652
+ "layers.31.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
653
+ "layers.31.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
654
+ "layers.31.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
655
+ "layers.31.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
656
+ "layers.31.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
657
+ "layers.31.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
658
+ "layers.31.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
659
+ "layers.31.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
660
+ "layers.32.input_layernorm.weight": "model-00001-of-00002.safetensors",
661
+ "layers.32.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
662
+ "layers.32.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
663
+ "layers.32.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
664
+ "layers.32.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
665
+ "layers.32.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
666
+ "layers.32.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
667
+ "layers.32.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
668
+ "layers.32.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
669
+ "layers.32.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
670
+ "layers.32.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
671
+ "layers.32.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
672
+ "layers.32.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
673
+ "layers.32.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
674
+ "layers.32.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
675
+ "layers.32.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
676
+ "layers.32.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
677
+ "layers.32.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
678
+ "layers.32.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
679
+ "layers.32.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
680
+ "layers.32.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
681
+ "layers.32.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
682
+ "layers.32.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
683
+ "layers.32.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
684
+ "layers.32.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
685
+ "layers.33.input_layernorm.weight": "model-00002-of-00002.safetensors",
686
+ "layers.33.mlp.down_proj.scale": "model-00002-of-00002.safetensors",
687
+ "layers.33.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
688
+ "layers.33.mlp.down_proj.zero_point": "model-00002-of-00002.safetensors",
689
+ "layers.33.mlp.gate_proj.scale": "model-00002-of-00002.safetensors",
690
+ "layers.33.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
691
+ "layers.33.mlp.gate_proj.zero_point": "model-00002-of-00002.safetensors",
692
+ "layers.33.mlp.up_proj.scale": "model-00002-of-00002.safetensors",
693
+ "layers.33.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
694
+ "layers.33.mlp.up_proj.zero_point": "model-00002-of-00002.safetensors",
695
+ "layers.33.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
696
+ "layers.33.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
697
+ "layers.33.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
698
+ "layers.33.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
699
+ "layers.33.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
700
+ "layers.33.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
701
+ "layers.33.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
702
+ "layers.33.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
703
+ "layers.33.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
704
+ "layers.33.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
705
+ "layers.33.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
706
+ "layers.33.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
707
+ "layers.33.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
708
+ "layers.33.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
709
+ "layers.33.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
710
+ "layers.34.input_layernorm.weight": "model-00002-of-00002.safetensors",
711
+ "layers.34.mlp.down_proj.scale": "model-00002-of-00002.safetensors",
712
+ "layers.34.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
713
+ "layers.34.mlp.down_proj.zero_point": "model-00002-of-00002.safetensors",
714
+ "layers.34.mlp.gate_proj.scale": "model-00002-of-00002.safetensors",
715
+ "layers.34.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
716
+ "layers.34.mlp.gate_proj.zero_point": "model-00002-of-00002.safetensors",
717
+ "layers.34.mlp.up_proj.scale": "model-00002-of-00002.safetensors",
718
+ "layers.34.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
719
+ "layers.34.mlp.up_proj.zero_point": "model-00002-of-00002.safetensors",
720
+ "layers.34.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
721
+ "layers.34.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
722
+ "layers.34.self_attn.k_proj.scale": "model-00002-of-00002.safetensors",
723
+ "layers.34.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
724
+ "layers.34.self_attn.k_proj.zero_point": "model-00002-of-00002.safetensors",
725
+ "layers.34.self_attn.o_proj.scale": "model-00002-of-00002.safetensors",
726
+ "layers.34.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
727
+ "layers.34.self_attn.o_proj.zero_point": "model-00002-of-00002.safetensors",
728
+ "layers.34.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
729
+ "layers.34.self_attn.q_proj.scale": "model-00002-of-00002.safetensors",
730
+ "layers.34.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
731
+ "layers.34.self_attn.q_proj.zero_point": "model-00002-of-00002.safetensors",
732
+ "layers.34.self_attn.v_proj.scale": "model-00002-of-00002.safetensors",
733
+ "layers.34.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
734
+ "layers.34.self_attn.v_proj.zero_point": "model-00002-of-00002.safetensors",
735
+ "layers.35.input_layernorm.weight": "model-00002-of-00002.safetensors",
736
+ "layers.35.mlp.down_proj.scale": "model-00002-of-00002.safetensors",
737
+ "layers.35.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
738
+ "layers.35.mlp.down_proj.zero_point": "model-00002-of-00002.safetensors",
739
+ "layers.35.mlp.gate_proj.scale": "model-00002-of-00002.safetensors",
740
+ "layers.35.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
741
+ "layers.35.mlp.gate_proj.zero_point": "model-00002-of-00002.safetensors",
742
+ "layers.35.mlp.up_proj.scale": "model-00002-of-00002.safetensors",
743
+ "layers.35.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
744
+ "layers.35.mlp.up_proj.zero_point": "model-00002-of-00002.safetensors",
745
+ "layers.35.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
746
+ "layers.35.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
747
+ "layers.35.self_attn.k_proj.scale": "model-00002-of-00002.safetensors",
748
+ "layers.35.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
749
+ "layers.35.self_attn.k_proj.zero_point": "model-00002-of-00002.safetensors",
750
+ "layers.35.self_attn.o_proj.scale": "model-00002-of-00002.safetensors",
751
+ "layers.35.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
752
+ "layers.35.self_attn.o_proj.zero_point": "model-00002-of-00002.safetensors",
753
+ "layers.35.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
754
+ "layers.35.self_attn.q_proj.scale": "model-00002-of-00002.safetensors",
755
+ "layers.35.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
756
+ "layers.35.self_attn.q_proj.zero_point": "model-00002-of-00002.safetensors",
757
+ "layers.35.self_attn.v_proj.scale": "model-00002-of-00002.safetensors",
758
+ "layers.35.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
759
+ "layers.35.self_attn.v_proj.zero_point": "model-00002-of-00002.safetensors",
760
+ "layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
761
+ "layers.4.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
762
+ "layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
763
+ "layers.4.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
764
+ "layers.4.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
765
+ "layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
766
+ "layers.4.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
767
+ "layers.4.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
768
+ "layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
769
+ "layers.4.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
770
+ "layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
771
+ "layers.4.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
772
+ "layers.4.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
773
+ "layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
774
+ "layers.4.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
775
+ "layers.4.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
776
+ "layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
777
+ "layers.4.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
778
+ "layers.4.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
779
+ "layers.4.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
780
+ "layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
781
+ "layers.4.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
782
+ "layers.4.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
783
+ "layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
784
+ "layers.4.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
785
+ "layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
786
+ "layers.5.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
787
+ "layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
788
+ "layers.5.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
789
+ "layers.5.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
790
+ "layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
791
+ "layers.5.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
792
+ "layers.5.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
793
+ "layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
794
+ "layers.5.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
795
+ "layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
796
+ "layers.5.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
797
+ "layers.5.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
798
+ "layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
799
+ "layers.5.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
800
+ "layers.5.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
801
+ "layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
802
+ "layers.5.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
803
+ "layers.5.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
804
+ "layers.5.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
805
+ "layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
806
+ "layers.5.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
807
+ "layers.5.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
808
+ "layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
809
+ "layers.5.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
810
+ "layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
811
+ "layers.6.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
812
+ "layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
813
+ "layers.6.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
814
+ "layers.6.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
815
+ "layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
816
+ "layers.6.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
817
+ "layers.6.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
818
+ "layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
819
+ "layers.6.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
820
+ "layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
821
+ "layers.6.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
822
+ "layers.6.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
823
+ "layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
824
+ "layers.6.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
825
+ "layers.6.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
826
+ "layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
827
+ "layers.6.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
828
+ "layers.6.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
829
+ "layers.6.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
830
+ "layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
831
+ "layers.6.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
832
+ "layers.6.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
833
+ "layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
834
+ "layers.6.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
835
+ "layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
836
+ "layers.7.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
837
+ "layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
838
+ "layers.7.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
839
+ "layers.7.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
840
+ "layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
841
+ "layers.7.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
842
+ "layers.7.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
843
+ "layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
844
+ "layers.7.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
845
+ "layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
846
+ "layers.7.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
847
+ "layers.7.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
848
+ "layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
849
+ "layers.7.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
850
+ "layers.7.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
851
+ "layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
852
+ "layers.7.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
853
+ "layers.7.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
854
+ "layers.7.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
855
+ "layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
856
+ "layers.7.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
857
+ "layers.7.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
858
+ "layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
859
+ "layers.7.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
860
+ "layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
861
+ "layers.8.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
862
+ "layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
863
+ "layers.8.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
864
+ "layers.8.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
865
+ "layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
866
+ "layers.8.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
867
+ "layers.8.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
868
+ "layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
869
+ "layers.8.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
870
+ "layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
871
+ "layers.8.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
872
+ "layers.8.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
873
+ "layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
874
+ "layers.8.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
875
+ "layers.8.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
876
+ "layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
877
+ "layers.8.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
878
+ "layers.8.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
879
+ "layers.8.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
880
+ "layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
881
+ "layers.8.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
882
+ "layers.8.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
883
+ "layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
884
+ "layers.8.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
885
+ "layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
886
+ "layers.9.mlp.down_proj.scale": "model-00001-of-00002.safetensors",
887
+ "layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
888
+ "layers.9.mlp.down_proj.zero_point": "model-00001-of-00002.safetensors",
889
+ "layers.9.mlp.gate_proj.scale": "model-00001-of-00002.safetensors",
890
+ "layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
891
+ "layers.9.mlp.gate_proj.zero_point": "model-00001-of-00002.safetensors",
892
+ "layers.9.mlp.up_proj.scale": "model-00001-of-00002.safetensors",
893
+ "layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
894
+ "layers.9.mlp.up_proj.zero_point": "model-00001-of-00002.safetensors",
895
+ "layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
896
+ "layers.9.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
897
+ "layers.9.self_attn.k_proj.scale": "model-00001-of-00002.safetensors",
898
+ "layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
899
+ "layers.9.self_attn.k_proj.zero_point": "model-00001-of-00002.safetensors",
900
+ "layers.9.self_attn.o_proj.scale": "model-00001-of-00002.safetensors",
901
+ "layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
902
+ "layers.9.self_attn.o_proj.zero_point": "model-00001-of-00002.safetensors",
903
+ "layers.9.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
904
+ "layers.9.self_attn.q_proj.scale": "model-00001-of-00002.safetensors",
905
+ "layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
906
+ "layers.9.self_attn.q_proj.zero_point": "model-00001-of-00002.safetensors",
907
+ "layers.9.self_attn.v_proj.scale": "model-00001-of-00002.safetensors",
908
+ "layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
909
+ "layers.9.self_attn.v_proj.zero_point": "model-00001-of-00002.safetensors",
910
+ "norm.weight": "model-00002-of-00002.safetensors"
911
+ }
912
+ }
text_encoder/quantization_config.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_skip_keys": false,
3
+ "dequantize_fp32": false,
4
+ "dynamic_loss_threshold": null,
5
+ "group_size": 0,
6
+ "hadamard_group_size": 128,
7
+ "is_integer": true,
8
+ "is_training": false,
9
+ "modules_dtype_dict": {},
10
+ "modules_quant_config": {},
11
+ "modules_to_not_convert": [
12
+ "layers.0.self_attn.q_norm.weight",
13
+ "layers.0.self_attn.k_norm.weight",
14
+ "layers.0.input_layernorm.weight",
15
+ "layers.0.post_attention_layernorm.weight",
16
+ "layers.1.self_attn.q_norm.weight",
17
+ "layers.1.self_attn.k_norm.weight",
18
+ "layers.1.input_layernorm.weight",
19
+ "layers.1.post_attention_layernorm.weight",
20
+ "layers.2.self_attn.q_norm.weight",
21
+ "layers.2.self_attn.k_norm.weight",
22
+ "layers.2.input_layernorm.weight",
23
+ "layers.2.post_attention_layernorm.weight",
24
+ "layers.3.self_attn.q_norm.weight",
25
+ "layers.3.self_attn.k_norm.weight",
26
+ "layers.3.input_layernorm.weight",
27
+ "layers.3.post_attention_layernorm.weight",
28
+ "layers.4.self_attn.q_norm.weight",
29
+ "layers.4.self_attn.k_norm.weight",
30
+ "layers.4.input_layernorm.weight",
31
+ "layers.4.post_attention_layernorm.weight",
32
+ "layers.5.self_attn.q_norm.weight",
33
+ "layers.5.self_attn.k_norm.weight",
34
+ "layers.5.input_layernorm.weight",
35
+ "layers.5.post_attention_layernorm.weight",
36
+ "layers.6.self_attn.q_norm.weight",
37
+ "layers.6.self_attn.k_norm.weight",
38
+ "layers.6.input_layernorm.weight",
39
+ "layers.6.post_attention_layernorm.weight",
40
+ "layers.7.self_attn.q_norm.weight",
41
+ "layers.7.self_attn.k_norm.weight",
42
+ "layers.7.input_layernorm.weight",
43
+ "layers.7.post_attention_layernorm.weight",
44
+ "layers.8.self_attn.q_norm.weight",
45
+ "layers.8.self_attn.k_norm.weight",
46
+ "layers.8.input_layernorm.weight",
47
+ "layers.8.post_attention_layernorm.weight",
48
+ "layers.9.self_attn.q_norm.weight",
49
+ "layers.9.self_attn.k_norm.weight",
50
+ "layers.9.input_layernorm.weight",
51
+ "layers.9.post_attention_layernorm.weight",
52
+ "layers.10.self_attn.q_norm.weight",
53
+ "layers.10.self_attn.k_norm.weight",
54
+ "layers.10.input_layernorm.weight",
55
+ "layers.10.post_attention_layernorm.weight",
56
+ "layers.11.self_attn.q_norm.weight",
57
+ "layers.11.self_attn.k_norm.weight",
58
+ "layers.11.input_layernorm.weight",
59
+ "layers.11.post_attention_layernorm.weight",
60
+ "layers.12.self_attn.q_norm.weight",
61
+ "layers.12.self_attn.k_norm.weight",
62
+ "layers.12.input_layernorm.weight",
63
+ "layers.12.post_attention_layernorm.weight",
64
+ "layers.13.self_attn.q_norm.weight",
65
+ "layers.13.self_attn.k_norm.weight",
66
+ "layers.13.input_layernorm.weight",
67
+ "layers.13.post_attention_layernorm.weight",
68
+ "layers.14.self_attn.q_norm.weight",
69
+ "layers.14.self_attn.k_norm.weight",
70
+ "layers.14.input_layernorm.weight",
71
+ "layers.14.post_attention_layernorm.weight",
72
+ "layers.15.self_attn.q_norm.weight",
73
+ "layers.15.self_attn.k_norm.weight",
74
+ "layers.15.input_layernorm.weight",
75
+ "layers.15.post_attention_layernorm.weight",
76
+ "layers.16.self_attn.q_norm.weight",
77
+ "layers.16.self_attn.k_norm.weight",
78
+ "layers.16.input_layernorm.weight",
79
+ "layers.16.post_attention_layernorm.weight",
80
+ "layers.17.self_attn.q_norm.weight",
81
+ "layers.17.self_attn.k_norm.weight",
82
+ "layers.17.input_layernorm.weight",
83
+ "layers.17.post_attention_layernorm.weight",
84
+ "layers.18.self_attn.q_norm.weight",
85
+ "layers.18.self_attn.k_norm.weight",
86
+ "layers.18.input_layernorm.weight",
87
+ "layers.18.post_attention_layernorm.weight",
88
+ "layers.19.self_attn.q_norm.weight",
89
+ "layers.19.self_attn.k_norm.weight",
90
+ "layers.19.input_layernorm.weight",
91
+ "layers.19.post_attention_layernorm.weight",
92
+ "layers.20.self_attn.q_norm.weight",
93
+ "layers.20.self_attn.k_norm.weight",
94
+ "layers.20.input_layernorm.weight",
95
+ "layers.20.post_attention_layernorm.weight",
96
+ "layers.21.self_attn.q_norm.weight",
97
+ "layers.21.self_attn.k_norm.weight",
98
+ "layers.21.input_layernorm.weight",
99
+ "layers.21.post_attention_layernorm.weight",
100
+ "layers.22.self_attn.q_norm.weight",
101
+ "layers.22.self_attn.k_norm.weight",
102
+ "layers.22.input_layernorm.weight",
103
+ "layers.22.post_attention_layernorm.weight",
104
+ "layers.23.self_attn.q_norm.weight",
105
+ "layers.23.self_attn.k_norm.weight",
106
+ "layers.23.input_layernorm.weight",
107
+ "layers.23.post_attention_layernorm.weight",
108
+ "layers.24.self_attn.q_norm.weight",
109
+ "layers.24.self_attn.k_norm.weight",
110
+ "layers.24.input_layernorm.weight",
111
+ "layers.24.post_attention_layernorm.weight",
112
+ "layers.25.self_attn.q_norm.weight",
113
+ "layers.25.self_attn.k_norm.weight",
114
+ "layers.25.input_layernorm.weight",
115
+ "layers.25.post_attention_layernorm.weight",
116
+ "layers.26.self_attn.q_norm.weight",
117
+ "layers.26.self_attn.k_norm.weight",
118
+ "layers.26.input_layernorm.weight",
119
+ "layers.26.post_attention_layernorm.weight",
120
+ "layers.27.self_attn.q_norm.weight",
121
+ "layers.27.self_attn.k_norm.weight",
122
+ "layers.27.input_layernorm.weight",
123
+ "layers.27.post_attention_layernorm.weight",
124
+ "layers.28.self_attn.q_norm.weight",
125
+ "layers.28.self_attn.k_norm.weight",
126
+ "layers.28.input_layernorm.weight",
127
+ "layers.28.post_attention_layernorm.weight",
128
+ "layers.29.self_attn.q_norm.weight",
129
+ "layers.29.self_attn.k_norm.weight",
130
+ "layers.29.input_layernorm.weight",
131
+ "layers.29.post_attention_layernorm.weight",
132
+ "layers.30.self_attn.q_norm.weight",
133
+ "layers.30.self_attn.k_norm.weight",
134
+ "layers.30.input_layernorm.weight",
135
+ "layers.30.post_attention_layernorm.weight",
136
+ "layers.31.self_attn.q_norm.weight",
137
+ "layers.31.self_attn.k_norm.weight",
138
+ "layers.31.input_layernorm.weight",
139
+ "layers.31.post_attention_layernorm.weight",
140
+ "layers.32.self_attn.q_norm.weight",
141
+ "layers.32.self_attn.k_norm.weight",
142
+ "layers.32.input_layernorm.weight",
143
+ "layers.32.post_attention_layernorm.weight",
144
+ "layers.33.self_attn.q_norm.weight",
145
+ "layers.33.self_attn.k_norm.weight",
146
+ "layers.33.input_layernorm.weight",
147
+ "layers.33.post_attention_layernorm.weight",
148
+ "layers.34.self_attn.q_norm.weight",
149
+ "layers.34.self_attn.k_norm.weight",
150
+ "layers.34.input_layernorm.weight",
151
+ "layers.34.post_attention_layernorm.weight",
152
+ "layers.35.self_attn.q_norm.weight",
153
+ "layers.35.self_attn.k_norm.weight",
154
+ "layers.35.input_layernorm.weight",
155
+ "layers.35.post_attention_layernorm.weight",
156
+ "norm.weight"
157
+ ],
158
+ "modules_to_not_use_matmul": [],
159
+ "non_blocking": false,
160
+ "quant_conv": false,
161
+ "quant_embedding": true,
162
+ "quant_method": "sdnq",
163
+ "quantization_device": null,
164
+ "quantized_matmul_dtype": null,
165
+ "return_device": null,
166
+ "sdnq_version": "0.1.9",
167
+ "svd_rank": 32,
168
+ "svd_steps": 8,
169
+ "use_dynamic_quantization": false,
170
+ "use_grad_ckpt": true,
171
+ "use_hadamard": false,
172
+ "use_quantized_matmul": false,
173
+ "use_quantized_matmul_conv": false,
174
+ "use_static_quantization": true,
175
+ "use_stochastic_rounding": false,
176
+ "use_svd": false,
177
+ "weights_dtype": "uint4"
178
+ }
tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {%- if messages[0].content is string %}
5
+ {{- messages[0].content }}
6
+ {%- else %}
7
+ {%- for content in messages[0].content %}
8
+ {%- if 'text' in content %}
9
+ {{- content.text }}
10
+ {%- endif %}
11
+ {%- endfor %}
12
+ {%- endif %}
13
+ {{- '\n\n' }}
14
+ {%- endif %}
15
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
16
+ {%- for tool in tools %}
17
+ {{- "\n" }}
18
+ {{- tool | tojson }}
19
+ {%- endfor %}
20
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
21
+ {%- else %}
22
+ {%- if messages[0].role == 'system' %}
23
+ {{- '<|im_start|>system\n' }}
24
+ {%- if messages[0].content is string %}
25
+ {{- messages[0].content }}
26
+ {%- else %}
27
+ {%- for content in messages[0].content %}
28
+ {%- if 'text' in content %}
29
+ {{- content.text }}
30
+ {%- endif %}
31
+ {%- endfor %}
32
+ {%- endif %}
33
+ {{- '<|im_end|>\n' }}
34
+ {%- endif %}
35
+ {%- endif %}
36
+ {%- set image_count = namespace(value=0) %}
37
+ {%- set video_count = namespace(value=0) %}
38
+ {%- for message in messages %}
39
+ {%- if message.role == "user" %}
40
+ {{- '<|im_start|>' + message.role + '\n' }}
41
+ {%- if message.content is string %}
42
+ {{- message.content }}
43
+ {%- else %}
44
+ {%- for content in message.content %}
45
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
46
+ {%- set image_count.value = image_count.value + 1 %}
47
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
48
+ <|vision_start|><|image_pad|><|vision_end|>
49
+ {%- elif content.type == 'video' or 'video' in content %}
50
+ {%- set video_count.value = video_count.value + 1 %}
51
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
52
+ <|vision_start|><|video_pad|><|vision_end|>
53
+ {%- elif 'text' in content %}
54
+ {{- content.text }}
55
+ {%- endif %}
56
+ {%- endfor %}
57
+ {%- endif %}
58
+ {{- '<|im_end|>\n' }}
59
+ {%- elif message.role == "assistant" %}
60
+ {{- '<|im_start|>' + message.role + '\n' }}
61
+ {%- if message.content is string %}
62
+ {{- message.content }}
63
+ {%- else %}
64
+ {%- for content_item in message.content %}
65
+ {%- if 'text' in content_item %}
66
+ {{- content_item.text }}
67
+ {%- endif %}
68
+ {%- endfor %}
69
+ {%- endif %}
70
+ {%- if message.tool_calls %}
71
+ {%- for tool_call in message.tool_calls %}
72
+ {%- if (loop.first and message.content) or (not loop.first) %}
73
+ {{- '\n' }}
74
+ {%- endif %}
75
+ {%- if tool_call.function %}
76
+ {%- set tool_call = tool_call.function %}
77
+ {%- endif %}
78
+ {{- '<tool_call>\n{"name": "' }}
79
+ {{- tool_call.name }}
80
+ {{- '", "arguments": ' }}
81
+ {%- if tool_call.arguments is string %}
82
+ {{- tool_call.arguments }}
83
+ {%- else %}
84
+ {{- tool_call.arguments | tojson }}
85
+ {%- endif %}
86
+ {{- '}\n</tool_call>' }}
87
+ {%- endfor %}
88
+ {%- endif %}
89
+ {{- '<|im_end|>\n' }}
90
+ {%- elif message.role == "tool" %}
91
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
92
+ {{- '<|im_start|>user' }}
93
+ {%- endif %}
94
+ {{- '\n<tool_response>\n' }}
95
+ {%- if message.content is string %}
96
+ {{- message.content }}
97
+ {%- else %}
98
+ {%- for content in message.content %}
99
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
100
+ {%- set image_count.value = image_count.value + 1 %}
101
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
102
+ <|vision_start|><|image_pad|><|vision_end|>
103
+ {%- elif content.type == 'video' or 'video' in content %}
104
+ {%- set video_count.value = video_count.value + 1 %}
105
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
106
+ <|vision_start|><|video_pad|><|vision_end|>
107
+ {%- elif 'text' in content %}
108
+ {{- content.text }}
109
+ {%- endif %}
110
+ {%- endfor %}
111
+ {%- endif %}
112
+ {{- '\n</tool_response>' }}
113
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
114
+ {{- '<|im_end|>\n' }}
115
+ {%- endif %}
116
+ {%- endif %}
117
+ {%- endfor %}
118
+ {%- if add_generation_prompt %}
119
+ {{- '<|im_start|>assistant\n' }}
120
+ {%- endif %}
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
3
+ size 11422650
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "local_files_only": false,
25
+ "model_max_length": 262144,
26
+ "pad_token": "<|endoftext|>",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null
30
+ }
transformer/config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Ideogram4Transformer2DModel",
3
+ "_diffusers_version": "0.39.0.dev0",
4
+ "_name_or_path": "/home/jinli/.cache/huggingface/hub/models--ideogram-ai--debug-ideogram-v4/snapshots/41af6183c9fd9b6254864b0720319ef984535bfc/transformer",
5
+ "adaln_dim": 512,
6
+ "attention_head_dim": 256,
7
+ "in_channels": 128,
8
+ "intermediate_size": 12288,
9
+ "llm_features_dim": 53248,
10
+ "mrope_section": [
11
+ 24,
12
+ 20,
13
+ 20
14
+ ],
15
+ "norm_eps": 1e-05,
16
+ "num_attention_heads": 18,
17
+ "num_layers": 34,
18
+ "rope_theta": 5000000
19
+ }
transformer/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c43f8ea4d035a29eb8bd6fe3bd6a9bbe3c6f31e16fe5a0cba02bd89134307cb
3
+ size 5221643880
transformer/quantization_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_skip_keys": false,
3
+ "dequantize_fp32": false,
4
+ "dynamic_loss_threshold": null,
5
+ "group_size": 0,
6
+ "hadamard_group_size": 128,
7
+ "is_integer": true,
8
+ "is_training": false,
9
+ "modules_dtype_dict": {},
10
+ "modules_quant_config": {},
11
+ "modules_to_not_convert": [
12
+ "llm_cond_norm.weight",
13
+ "embed_image_indicator.weight",
14
+ "layers.0.attention.norm_q.weight",
15
+ "layers.0.attention.norm_k.weight",
16
+ "layers.0.attention_norm1.weight",
17
+ "layers.0.ffn_norm1.weight",
18
+ "layers.0.attention_norm2.weight",
19
+ "layers.0.ffn_norm2.weight",
20
+ "layers.1.attention.norm_q.weight",
21
+ "layers.1.attention.norm_k.weight",
22
+ "layers.1.attention_norm1.weight",
23
+ "layers.1.ffn_norm1.weight",
24
+ "layers.1.attention_norm2.weight",
25
+ "layers.1.ffn_norm2.weight",
26
+ "layers.2.attention.norm_q.weight",
27
+ "layers.2.attention.norm_k.weight",
28
+ "layers.2.attention_norm1.weight",
29
+ "layers.2.ffn_norm1.weight",
30
+ "layers.2.attention_norm2.weight",
31
+ "layers.2.ffn_norm2.weight",
32
+ "layers.3.attention.norm_q.weight",
33
+ "layers.3.attention.norm_k.weight",
34
+ "layers.3.attention_norm1.weight",
35
+ "layers.3.ffn_norm1.weight",
36
+ "layers.3.attention_norm2.weight",
37
+ "layers.3.ffn_norm2.weight",
38
+ "layers.4.attention.norm_q.weight",
39
+ "layers.4.attention.norm_k.weight",
40
+ "layers.4.attention_norm1.weight",
41
+ "layers.4.ffn_norm1.weight",
42
+ "layers.4.attention_norm2.weight",
43
+ "layers.4.ffn_norm2.weight",
44
+ "layers.5.attention.norm_q.weight",
45
+ "layers.5.attention.norm_k.weight",
46
+ "layers.5.attention_norm1.weight",
47
+ "layers.5.ffn_norm1.weight",
48
+ "layers.5.attention_norm2.weight",
49
+ "layers.5.ffn_norm2.weight",
50
+ "layers.6.attention.norm_q.weight",
51
+ "layers.6.attention.norm_k.weight",
52
+ "layers.6.attention_norm1.weight",
53
+ "layers.6.ffn_norm1.weight",
54
+ "layers.6.attention_norm2.weight",
55
+ "layers.6.ffn_norm2.weight",
56
+ "layers.7.attention.norm_q.weight",
57
+ "layers.7.attention.norm_k.weight",
58
+ "layers.7.attention_norm1.weight",
59
+ "layers.7.ffn_norm1.weight",
60
+ "layers.7.attention_norm2.weight",
61
+ "layers.7.ffn_norm2.weight",
62
+ "layers.8.attention.norm_q.weight",
63
+ "layers.8.attention.norm_k.weight",
64
+ "layers.8.attention_norm1.weight",
65
+ "layers.8.ffn_norm1.weight",
66
+ "layers.8.attention_norm2.weight",
67
+ "layers.8.ffn_norm2.weight",
68
+ "layers.9.attention.norm_q.weight",
69
+ "layers.9.attention.norm_k.weight",
70
+ "layers.9.attention_norm1.weight",
71
+ "layers.9.ffn_norm1.weight",
72
+ "layers.9.attention_norm2.weight",
73
+ "layers.9.ffn_norm2.weight",
74
+ "layers.10.attention.norm_q.weight",
75
+ "layers.10.attention.norm_k.weight",
76
+ "layers.10.attention_norm1.weight",
77
+ "layers.10.ffn_norm1.weight",
78
+ "layers.10.attention_norm2.weight",
79
+ "layers.10.ffn_norm2.weight",
80
+ "layers.11.attention.norm_q.weight",
81
+ "layers.11.attention.norm_k.weight",
82
+ "layers.11.attention_norm1.weight",
83
+ "layers.11.ffn_norm1.weight",
84
+ "layers.11.attention_norm2.weight",
85
+ "layers.11.ffn_norm2.weight",
86
+ "layers.12.attention.norm_q.weight",
87
+ "layers.12.attention.norm_k.weight",
88
+ "layers.12.attention_norm1.weight",
89
+ "layers.12.ffn_norm1.weight",
90
+ "layers.12.attention_norm2.weight",
91
+ "layers.12.ffn_norm2.weight",
92
+ "layers.13.attention.norm_q.weight",
93
+ "layers.13.attention.norm_k.weight",
94
+ "layers.13.attention_norm1.weight",
95
+ "layers.13.ffn_norm1.weight",
96
+ "layers.13.attention_norm2.weight",
97
+ "layers.13.ffn_norm2.weight",
98
+ "layers.14.attention.norm_q.weight",
99
+ "layers.14.attention.norm_k.weight",
100
+ "layers.14.attention_norm1.weight",
101
+ "layers.14.ffn_norm1.weight",
102
+ "layers.14.attention_norm2.weight",
103
+ "layers.14.ffn_norm2.weight",
104
+ "layers.15.attention.norm_q.weight",
105
+ "layers.15.attention.norm_k.weight",
106
+ "layers.15.attention_norm1.weight",
107
+ "layers.15.ffn_norm1.weight",
108
+ "layers.15.attention_norm2.weight",
109
+ "layers.15.ffn_norm2.weight",
110
+ "layers.16.attention.norm_q.weight",
111
+ "layers.16.attention.norm_k.weight",
112
+ "layers.16.attention_norm1.weight",
113
+ "layers.16.ffn_norm1.weight",
114
+ "layers.16.attention_norm2.weight",
115
+ "layers.16.ffn_norm2.weight",
116
+ "layers.17.attention.norm_q.weight",
117
+ "layers.17.attention.norm_k.weight",
118
+ "layers.17.attention_norm1.weight",
119
+ "layers.17.ffn_norm1.weight",
120
+ "layers.17.attention_norm2.weight",
121
+ "layers.17.ffn_norm2.weight",
122
+ "layers.18.attention.norm_q.weight",
123
+ "layers.18.attention.norm_k.weight",
124
+ "layers.18.attention_norm1.weight",
125
+ "layers.18.ffn_norm1.weight",
126
+ "layers.18.attention_norm2.weight",
127
+ "layers.18.ffn_norm2.weight",
128
+ "layers.19.attention.norm_q.weight",
129
+ "layers.19.attention.norm_k.weight",
130
+ "layers.19.attention_norm1.weight",
131
+ "layers.19.ffn_norm1.weight",
132
+ "layers.19.attention_norm2.weight",
133
+ "layers.19.ffn_norm2.weight",
134
+ "layers.20.attention.norm_q.weight",
135
+ "layers.20.attention.norm_k.weight",
136
+ "layers.20.attention_norm1.weight",
137
+ "layers.20.ffn_norm1.weight",
138
+ "layers.20.attention_norm2.weight",
139
+ "layers.20.ffn_norm2.weight",
140
+ "layers.21.attention.norm_q.weight",
141
+ "layers.21.attention.norm_k.weight",
142
+ "layers.21.attention_norm1.weight",
143
+ "layers.21.ffn_norm1.weight",
144
+ "layers.21.attention_norm2.weight",
145
+ "layers.21.ffn_norm2.weight",
146
+ "layers.22.attention.norm_q.weight",
147
+ "layers.22.attention.norm_k.weight",
148
+ "layers.22.attention_norm1.weight",
149
+ "layers.22.ffn_norm1.weight",
150
+ "layers.22.attention_norm2.weight",
151
+ "layers.22.ffn_norm2.weight",
152
+ "layers.23.attention.norm_q.weight",
153
+ "layers.23.attention.norm_k.weight",
154
+ "layers.23.attention_norm1.weight",
155
+ "layers.23.ffn_norm1.weight",
156
+ "layers.23.attention_norm2.weight",
157
+ "layers.23.ffn_norm2.weight",
158
+ "layers.24.attention.norm_q.weight",
159
+ "layers.24.attention.norm_k.weight",
160
+ "layers.24.attention_norm1.weight",
161
+ "layers.24.ffn_norm1.weight",
162
+ "layers.24.attention_norm2.weight",
163
+ "layers.24.ffn_norm2.weight",
164
+ "layers.25.attention.norm_q.weight",
165
+ "layers.25.attention.norm_k.weight",
166
+ "layers.25.attention_norm1.weight",
167
+ "layers.25.ffn_norm1.weight",
168
+ "layers.25.attention_norm2.weight",
169
+ "layers.25.ffn_norm2.weight",
170
+ "layers.26.attention.norm_q.weight",
171
+ "layers.26.attention.norm_k.weight",
172
+ "layers.26.attention_norm1.weight",
173
+ "layers.26.ffn_norm1.weight",
174
+ "layers.26.attention_norm2.weight",
175
+ "layers.26.ffn_norm2.weight",
176
+ "layers.27.attention.norm_q.weight",
177
+ "layers.27.attention.norm_k.weight",
178
+ "layers.27.attention_norm1.weight",
179
+ "layers.27.ffn_norm1.weight",
180
+ "layers.27.attention_norm2.weight",
181
+ "layers.27.ffn_norm2.weight",
182
+ "layers.28.attention.norm_q.weight",
183
+ "layers.28.attention.norm_k.weight",
184
+ "layers.28.attention_norm1.weight",
185
+ "layers.28.ffn_norm1.weight",
186
+ "layers.28.attention_norm2.weight",
187
+ "layers.28.ffn_norm2.weight",
188
+ "layers.29.attention.norm_q.weight",
189
+ "layers.29.attention.norm_k.weight",
190
+ "layers.29.attention_norm1.weight",
191
+ "layers.29.ffn_norm1.weight",
192
+ "layers.29.attention_norm2.weight",
193
+ "layers.29.ffn_norm2.weight",
194
+ "layers.30.attention.norm_q.weight",
195
+ "layers.30.attention.norm_k.weight",
196
+ "layers.30.attention_norm1.weight",
197
+ "layers.30.ffn_norm1.weight",
198
+ "layers.30.attention_norm2.weight",
199
+ "layers.30.ffn_norm2.weight",
200
+ "layers.31.attention.norm_q.weight",
201
+ "layers.31.attention.norm_k.weight",
202
+ "layers.31.attention_norm1.weight",
203
+ "layers.31.ffn_norm1.weight",
204
+ "layers.31.attention_norm2.weight",
205
+ "layers.31.ffn_norm2.weight",
206
+ "layers.32.attention.norm_q.weight",
207
+ "layers.32.attention.norm_k.weight",
208
+ "layers.32.attention_norm1.weight",
209
+ "layers.32.ffn_norm1.weight",
210
+ "layers.32.attention_norm2.weight",
211
+ "layers.32.ffn_norm2.weight",
212
+ "layers.33.attention.norm_q.weight",
213
+ "layers.33.attention.norm_k.weight",
214
+ "layers.33.attention_norm1.weight",
215
+ "layers.33.ffn_norm1.weight",
216
+ "layers.33.attention_norm2.weight",
217
+ "layers.33.ffn_norm2.weight"
218
+ ],
219
+ "modules_to_not_use_matmul": [],
220
+ "non_blocking": false,
221
+ "quant_conv": false,
222
+ "quant_embedding": false,
223
+ "quant_method": "sdnq",
224
+ "quantization_device": "cuda",
225
+ "quantized_matmul_dtype": null,
226
+ "return_device": "cpu",
227
+ "sdnq_version": "0.1.9",
228
+ "svd_rank": 32,
229
+ "svd_steps": 8,
230
+ "use_dynamic_quantization": false,
231
+ "use_grad_ckpt": true,
232
+ "use_hadamard": false,
233
+ "use_quantized_matmul": false,
234
+ "use_quantized_matmul_conv": false,
235
+ "use_static_quantization": true,
236
+ "use_stochastic_rounding": false,
237
+ "use_svd": false,
238
+ "weights_dtype": "uint4"
239
+ }
unconditional_transformer/config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Ideogram4Transformer2DModel",
3
+ "_diffusers_version": "0.39.0.dev0",
4
+ "_name_or_path": "/home/jinli/.cache/huggingface/hub/models--ideogram-ai--debug-ideogram-v4/snapshots/41af6183c9fd9b6254864b0720319ef984535bfc/unconditional_transformer",
5
+ "adaln_dim": 512,
6
+ "attention_head_dim": 256,
7
+ "in_channels": 128,
8
+ "intermediate_size": 12288,
9
+ "llm_features_dim": 53248,
10
+ "mrope_section": [
11
+ 24,
12
+ 20,
13
+ 20
14
+ ],
15
+ "norm_eps": 1e-05,
16
+ "num_attention_heads": 18,
17
+ "num_layers": 34,
18
+ "rope_theta": 5000000
19
+ }
unconditional_transformer/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:032d92062f43bec5122be61c71cec7edd83c04cd57f8cb6280f9a6a58ca9ef92
3
+ size 5221643880
unconditional_transformer/quantization_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_skip_keys": false,
3
+ "dequantize_fp32": false,
4
+ "dynamic_loss_threshold": null,
5
+ "group_size": 0,
6
+ "hadamard_group_size": 128,
7
+ "is_integer": true,
8
+ "is_training": false,
9
+ "modules_dtype_dict": {},
10
+ "modules_quant_config": {},
11
+ "modules_to_not_convert": [
12
+ "llm_cond_norm.weight",
13
+ "embed_image_indicator.weight",
14
+ "layers.0.attention.norm_q.weight",
15
+ "layers.0.attention.norm_k.weight",
16
+ "layers.0.attention_norm1.weight",
17
+ "layers.0.ffn_norm1.weight",
18
+ "layers.0.attention_norm2.weight",
19
+ "layers.0.ffn_norm2.weight",
20
+ "layers.1.attention.norm_q.weight",
21
+ "layers.1.attention.norm_k.weight",
22
+ "layers.1.attention_norm1.weight",
23
+ "layers.1.ffn_norm1.weight",
24
+ "layers.1.attention_norm2.weight",
25
+ "layers.1.ffn_norm2.weight",
26
+ "layers.2.attention.norm_q.weight",
27
+ "layers.2.attention.norm_k.weight",
28
+ "layers.2.attention_norm1.weight",
29
+ "layers.2.ffn_norm1.weight",
30
+ "layers.2.attention_norm2.weight",
31
+ "layers.2.ffn_norm2.weight",
32
+ "layers.3.attention.norm_q.weight",
33
+ "layers.3.attention.norm_k.weight",
34
+ "layers.3.attention_norm1.weight",
35
+ "layers.3.ffn_norm1.weight",
36
+ "layers.3.attention_norm2.weight",
37
+ "layers.3.ffn_norm2.weight",
38
+ "layers.4.attention.norm_q.weight",
39
+ "layers.4.attention.norm_k.weight",
40
+ "layers.4.attention_norm1.weight",
41
+ "layers.4.ffn_norm1.weight",
42
+ "layers.4.attention_norm2.weight",
43
+ "layers.4.ffn_norm2.weight",
44
+ "layers.5.attention.norm_q.weight",
45
+ "layers.5.attention.norm_k.weight",
46
+ "layers.5.attention_norm1.weight",
47
+ "layers.5.ffn_norm1.weight",
48
+ "layers.5.attention_norm2.weight",
49
+ "layers.5.ffn_norm2.weight",
50
+ "layers.6.attention.norm_q.weight",
51
+ "layers.6.attention.norm_k.weight",
52
+ "layers.6.attention_norm1.weight",
53
+ "layers.6.ffn_norm1.weight",
54
+ "layers.6.attention_norm2.weight",
55
+ "layers.6.ffn_norm2.weight",
56
+ "layers.7.attention.norm_q.weight",
57
+ "layers.7.attention.norm_k.weight",
58
+ "layers.7.attention_norm1.weight",
59
+ "layers.7.ffn_norm1.weight",
60
+ "layers.7.attention_norm2.weight",
61
+ "layers.7.ffn_norm2.weight",
62
+ "layers.8.attention.norm_q.weight",
63
+ "layers.8.attention.norm_k.weight",
64
+ "layers.8.attention_norm1.weight",
65
+ "layers.8.ffn_norm1.weight",
66
+ "layers.8.attention_norm2.weight",
67
+ "layers.8.ffn_norm2.weight",
68
+ "layers.9.attention.norm_q.weight",
69
+ "layers.9.attention.norm_k.weight",
70
+ "layers.9.attention_norm1.weight",
71
+ "layers.9.ffn_norm1.weight",
72
+ "layers.9.attention_norm2.weight",
73
+ "layers.9.ffn_norm2.weight",
74
+ "layers.10.attention.norm_q.weight",
75
+ "layers.10.attention.norm_k.weight",
76
+ "layers.10.attention_norm1.weight",
77
+ "layers.10.ffn_norm1.weight",
78
+ "layers.10.attention_norm2.weight",
79
+ "layers.10.ffn_norm2.weight",
80
+ "layers.11.attention.norm_q.weight",
81
+ "layers.11.attention.norm_k.weight",
82
+ "layers.11.attention_norm1.weight",
83
+ "layers.11.ffn_norm1.weight",
84
+ "layers.11.attention_norm2.weight",
85
+ "layers.11.ffn_norm2.weight",
86
+ "layers.12.attention.norm_q.weight",
87
+ "layers.12.attention.norm_k.weight",
88
+ "layers.12.attention_norm1.weight",
89
+ "layers.12.ffn_norm1.weight",
90
+ "layers.12.attention_norm2.weight",
91
+ "layers.12.ffn_norm2.weight",
92
+ "layers.13.attention.norm_q.weight",
93
+ "layers.13.attention.norm_k.weight",
94
+ "layers.13.attention_norm1.weight",
95
+ "layers.13.ffn_norm1.weight",
96
+ "layers.13.attention_norm2.weight",
97
+ "layers.13.ffn_norm2.weight",
98
+ "layers.14.attention.norm_q.weight",
99
+ "layers.14.attention.norm_k.weight",
100
+ "layers.14.attention_norm1.weight",
101
+ "layers.14.ffn_norm1.weight",
102
+ "layers.14.attention_norm2.weight",
103
+ "layers.14.ffn_norm2.weight",
104
+ "layers.15.attention.norm_q.weight",
105
+ "layers.15.attention.norm_k.weight",
106
+ "layers.15.attention_norm1.weight",
107
+ "layers.15.ffn_norm1.weight",
108
+ "layers.15.attention_norm2.weight",
109
+ "layers.15.ffn_norm2.weight",
110
+ "layers.16.attention.norm_q.weight",
111
+ "layers.16.attention.norm_k.weight",
112
+ "layers.16.attention_norm1.weight",
113
+ "layers.16.ffn_norm1.weight",
114
+ "layers.16.attention_norm2.weight",
115
+ "layers.16.ffn_norm2.weight",
116
+ "layers.17.attention.norm_q.weight",
117
+ "layers.17.attention.norm_k.weight",
118
+ "layers.17.attention_norm1.weight",
119
+ "layers.17.ffn_norm1.weight",
120
+ "layers.17.attention_norm2.weight",
121
+ "layers.17.ffn_norm2.weight",
122
+ "layers.18.attention.norm_q.weight",
123
+ "layers.18.attention.norm_k.weight",
124
+ "layers.18.attention_norm1.weight",
125
+ "layers.18.ffn_norm1.weight",
126
+ "layers.18.attention_norm2.weight",
127
+ "layers.18.ffn_norm2.weight",
128
+ "layers.19.attention.norm_q.weight",
129
+ "layers.19.attention.norm_k.weight",
130
+ "layers.19.attention_norm1.weight",
131
+ "layers.19.ffn_norm1.weight",
132
+ "layers.19.attention_norm2.weight",
133
+ "layers.19.ffn_norm2.weight",
134
+ "layers.20.attention.norm_q.weight",
135
+ "layers.20.attention.norm_k.weight",
136
+ "layers.20.attention_norm1.weight",
137
+ "layers.20.ffn_norm1.weight",
138
+ "layers.20.attention_norm2.weight",
139
+ "layers.20.ffn_norm2.weight",
140
+ "layers.21.attention.norm_q.weight",
141
+ "layers.21.attention.norm_k.weight",
142
+ "layers.21.attention_norm1.weight",
143
+ "layers.21.ffn_norm1.weight",
144
+ "layers.21.attention_norm2.weight",
145
+ "layers.21.ffn_norm2.weight",
146
+ "layers.22.attention.norm_q.weight",
147
+ "layers.22.attention.norm_k.weight",
148
+ "layers.22.attention_norm1.weight",
149
+ "layers.22.ffn_norm1.weight",
150
+ "layers.22.attention_norm2.weight",
151
+ "layers.22.ffn_norm2.weight",
152
+ "layers.23.attention.norm_q.weight",
153
+ "layers.23.attention.norm_k.weight",
154
+ "layers.23.attention_norm1.weight",
155
+ "layers.23.ffn_norm1.weight",
156
+ "layers.23.attention_norm2.weight",
157
+ "layers.23.ffn_norm2.weight",
158
+ "layers.24.attention.norm_q.weight",
159
+ "layers.24.attention.norm_k.weight",
160
+ "layers.24.attention_norm1.weight",
161
+ "layers.24.ffn_norm1.weight",
162
+ "layers.24.attention_norm2.weight",
163
+ "layers.24.ffn_norm2.weight",
164
+ "layers.25.attention.norm_q.weight",
165
+ "layers.25.attention.norm_k.weight",
166
+ "layers.25.attention_norm1.weight",
167
+ "layers.25.ffn_norm1.weight",
168
+ "layers.25.attention_norm2.weight",
169
+ "layers.25.ffn_norm2.weight",
170
+ "layers.26.attention.norm_q.weight",
171
+ "layers.26.attention.norm_k.weight",
172
+ "layers.26.attention_norm1.weight",
173
+ "layers.26.ffn_norm1.weight",
174
+ "layers.26.attention_norm2.weight",
175
+ "layers.26.ffn_norm2.weight",
176
+ "layers.27.attention.norm_q.weight",
177
+ "layers.27.attention.norm_k.weight",
178
+ "layers.27.attention_norm1.weight",
179
+ "layers.27.ffn_norm1.weight",
180
+ "layers.27.attention_norm2.weight",
181
+ "layers.27.ffn_norm2.weight",
182
+ "layers.28.attention.norm_q.weight",
183
+ "layers.28.attention.norm_k.weight",
184
+ "layers.28.attention_norm1.weight",
185
+ "layers.28.ffn_norm1.weight",
186
+ "layers.28.attention_norm2.weight",
187
+ "layers.28.ffn_norm2.weight",
188
+ "layers.29.attention.norm_q.weight",
189
+ "layers.29.attention.norm_k.weight",
190
+ "layers.29.attention_norm1.weight",
191
+ "layers.29.ffn_norm1.weight",
192
+ "layers.29.attention_norm2.weight",
193
+ "layers.29.ffn_norm2.weight",
194
+ "layers.30.attention.norm_q.weight",
195
+ "layers.30.attention.norm_k.weight",
196
+ "layers.30.attention_norm1.weight",
197
+ "layers.30.ffn_norm1.weight",
198
+ "layers.30.attention_norm2.weight",
199
+ "layers.30.ffn_norm2.weight",
200
+ "layers.31.attention.norm_q.weight",
201
+ "layers.31.attention.norm_k.weight",
202
+ "layers.31.attention_norm1.weight",
203
+ "layers.31.ffn_norm1.weight",
204
+ "layers.31.attention_norm2.weight",
205
+ "layers.31.ffn_norm2.weight",
206
+ "layers.32.attention.norm_q.weight",
207
+ "layers.32.attention.norm_k.weight",
208
+ "layers.32.attention_norm1.weight",
209
+ "layers.32.ffn_norm1.weight",
210
+ "layers.32.attention_norm2.weight",
211
+ "layers.32.ffn_norm2.weight",
212
+ "layers.33.attention.norm_q.weight",
213
+ "layers.33.attention.norm_k.weight",
214
+ "layers.33.attention_norm1.weight",
215
+ "layers.33.ffn_norm1.weight",
216
+ "layers.33.attention_norm2.weight",
217
+ "layers.33.ffn_norm2.weight"
218
+ ],
219
+ "modules_to_not_use_matmul": [],
220
+ "non_blocking": false,
221
+ "quant_conv": false,
222
+ "quant_embedding": false,
223
+ "quant_method": "sdnq",
224
+ "quantization_device": "cuda",
225
+ "quantized_matmul_dtype": null,
226
+ "return_device": "cpu",
227
+ "sdnq_version": "0.1.9",
228
+ "svd_rank": 32,
229
+ "svd_steps": 8,
230
+ "use_dynamic_quantization": false,
231
+ "use_grad_ckpt": true,
232
+ "use_hadamard": false,
233
+ "use_quantized_matmul": false,
234
+ "use_quantized_matmul_conv": false,
235
+ "use_static_quantization": true,
236
+ "use_stochastic_rounding": false,
237
+ "use_svd": false,
238
+ "weights_dtype": "uint4"
239
+ }
vae/config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKLFlux2",
3
+ "_diffusers_version": "0.39.0.dev0",
4
+ "_name_or_path": "/home/jinli/.cache/huggingface/hub/models--ideogram-ai--debug-ideogram-v4/snapshots/41af6183c9fd9b6254864b0720319ef984535bfc/vae",
5
+ "act_fn": "silu",
6
+ "batch_norm_eps": 0.0001,
7
+ "batch_norm_momentum": 0.1,
8
+ "block_out_channels": [
9
+ 128,
10
+ 256,
11
+ 512,
12
+ 512
13
+ ],
14
+ "decoder_block_out_channels": null,
15
+ "down_block_types": [
16
+ "DownEncoderBlock2D",
17
+ "DownEncoderBlock2D",
18
+ "DownEncoderBlock2D",
19
+ "DownEncoderBlock2D"
20
+ ],
21
+ "force_upcast": true,
22
+ "in_channels": 3,
23
+ "latent_channels": 32,
24
+ "layers_per_block": 2,
25
+ "mid_block_add_attention": true,
26
+ "norm_num_groups": 32,
27
+ "out_channels": 3,
28
+ "patch_size": [
29
+ 2,
30
+ 2
31
+ ],
32
+ "sample_size": 1024,
33
+ "up_block_types": [
34
+ "UpDecoderBlock2D",
35
+ "UpDecoderBlock2D",
36
+ "UpDecoderBlock2D",
37
+ "UpDecoderBlock2D"
38
+ ],
39
+ "use_post_quant_conv": true,
40
+ "use_quant_conv": true
41
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81efe2a79ca70a1c25772f85cd9c2c2e609c0723b00bbe9486666826f6c72144
3
+ size 52665102
vae/quantization_config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_skip_keys": false,
3
+ "dequantize_fp32": false,
4
+ "dynamic_loss_threshold": null,
5
+ "group_size": 0,
6
+ "hadamard_group_size": 128,
7
+ "is_integer": true,
8
+ "is_training": false,
9
+ "modules_dtype_dict": {},
10
+ "modules_quant_config": {},
11
+ "modules_to_not_convert": [
12
+ "encoder.down.0.block.0.norm1.weight",
13
+ "encoder.down.0.block.0.norm2.weight",
14
+ "encoder.down.0.block.1.norm1.weight",
15
+ "encoder.down.0.block.1.norm2.weight",
16
+ "encoder.down.1.block.0.norm1.weight",
17
+ "encoder.down.1.block.0.norm2.weight",
18
+ "encoder.down.1.block.1.norm1.weight",
19
+ "encoder.down.1.block.1.norm2.weight",
20
+ "encoder.down.2.block.0.norm1.weight",
21
+ "encoder.down.2.block.0.norm2.weight",
22
+ "encoder.down.2.block.1.norm1.weight",
23
+ "encoder.down.2.block.1.norm2.weight",
24
+ "encoder.down.3.block.0.norm1.weight",
25
+ "encoder.down.3.block.0.norm2.weight",
26
+ "encoder.down.3.block.1.norm1.weight",
27
+ "encoder.down.3.block.1.norm2.weight",
28
+ "encoder.mid.block_1.norm1.weight",
29
+ "encoder.mid.block_1.norm2.weight",
30
+ "encoder.mid.attn_1.norm.weight",
31
+ "encoder.mid.block_2.norm1.weight",
32
+ "encoder.mid.block_2.norm2.weight",
33
+ "encoder.norm_out.weight",
34
+ "decoder.mid.block_1.norm1.weight",
35
+ "decoder.mid.block_1.norm2.weight",
36
+ "decoder.mid.attn_1.norm.weight",
37
+ "decoder.mid.block_2.norm1.weight",
38
+ "decoder.mid.block_2.norm2.weight",
39
+ "decoder.up.0.block.0.norm1.weight",
40
+ "decoder.up.0.block.0.norm2.weight",
41
+ "decoder.up.0.block.1.norm1.weight",
42
+ "decoder.up.0.block.1.norm2.weight",
43
+ "decoder.up.0.block.2.norm1.weight",
44
+ "decoder.up.0.block.2.norm2.weight",
45
+ "decoder.up.1.block.0.norm1.weight",
46
+ "decoder.up.1.block.0.norm2.weight",
47
+ "decoder.up.1.block.1.norm1.weight",
48
+ "decoder.up.1.block.1.norm2.weight",
49
+ "decoder.up.1.block.2.norm1.weight",
50
+ "decoder.up.1.block.2.norm2.weight",
51
+ "decoder.up.2.block.0.norm1.weight",
52
+ "decoder.up.2.block.0.norm2.weight",
53
+ "decoder.up.2.block.1.norm1.weight",
54
+ "decoder.up.2.block.1.norm2.weight",
55
+ "decoder.up.2.block.2.norm1.weight",
56
+ "decoder.up.2.block.2.norm2.weight",
57
+ "decoder.up.3.block.0.norm1.weight",
58
+ "decoder.up.3.block.0.norm2.weight",
59
+ "decoder.up.3.block.1.norm1.weight",
60
+ "decoder.up.3.block.1.norm2.weight",
61
+ "decoder.up.3.block.2.norm1.weight",
62
+ "decoder.up.3.block.2.norm2.weight",
63
+ "decoder.norm_out.weight"
64
+ ],
65
+ "modules_to_not_use_matmul": [],
66
+ "non_blocking": false,
67
+ "quant_conv": true,
68
+ "quant_embedding": false,
69
+ "quant_method": "sdnq",
70
+ "quantization_device": "cuda",
71
+ "quantized_matmul_dtype": null,
72
+ "return_device": "cpu",
73
+ "sdnq_version": "0.1.9",
74
+ "svd_rank": 32,
75
+ "svd_steps": 8,
76
+ "use_dynamic_quantization": false,
77
+ "use_grad_ckpt": true,
78
+ "use_hadamard": false,
79
+ "use_quantized_matmul": false,
80
+ "use_quantized_matmul_conv": false,
81
+ "use_static_quantization": true,
82
+ "use_stochastic_rounding": false,
83
+ "use_svd": false,
84
+ "weights_dtype": "uint4"
85
+ }