evan-prism Sahin-Lale commited on
Commit
18f7eb9
·
0 Parent(s):

initial commit

Browse files

Co-authored-by: Sahin-Lale <Sahin-Lale@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ text_encoder-mlx-4bit/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
NOTICE.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ This software is copyright 2026-present Prism ML, Inc. It is available under the Apache 2.0 license.
2
+ If you publicly deploy or redistribute this software, we would appreciate attribution such as: "Created using Bonsai Image by Prism ML."
3
+
4
+ This software is built from FLUX.2 [klein] 4B, Copyright 2026 Black Forest Labs, which is available under the Apache 2.0 License: https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/blob/main/LICENSE.md
5
+
6
+ The text encoder is built from Qwen3-4B, Copyright 2024 Alibaba Cloud, which is available under the Apache 2.0 License: https://huggingface.co/Qwen/Qwen3-4B/blob/main/LICENSE
README.md ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: mlx
4
+ pipeline_tag: text-to-image
5
+ tags:
6
+ - ternary
7
+ - 1.58-bit
8
+ - mlx
9
+ - apple-silicon
10
+ - on-device
11
+ - text-to-image
12
+ - diffusion
13
+ - flux
14
+ - prismml
15
+ - bonsai
16
+ base_model:
17
+ - prism-ml/bonsai-image-ternary-4B-unpacked
18
+ ---
19
+
20
+ <p align="center">
21
+ <img src="./assets/bonsai-logo.svg" width="280" alt="Bonsai Image">
22
+ </p>
23
+
24
+ <p align="center">
25
+ <a href="https://prismml.com"><b>Prism ML Website</b></a> &nbsp;|&nbsp;
26
+ <a href="https://github.com/PrismML-Eng/Bonsai-Image-Demo/blob/main/bonsai-image-4b-whitepaper.pdf"><b>White Paper</b></a> &nbsp;|&nbsp;
27
+ <a href="https://github.com/PrismML-Eng/Bonsai-Image-Demo"><b>Demo &amp; Examples</b></a> &nbsp;|&nbsp;
28
+ <a href="https://discord.gg/prismml"><b>Discord</b></a>
29
+ </p>
30
+
31
+ # bonsai-image-ternary-4B-mlx-2bit
32
+
33
+ Ternary weight (1.58-bit) text-to-image diffusion transformer deployment for Apple Silicon
34
+
35
+ > **1.21 GB transformer** | **6.4×** smaller than FP16 | **9.4 s / 512²** on iPhone 17 Pro Max | **~6 s / 512²** on M4 Pro | runs on Mac, iPhone, iPad
36
+
37
+ ## Highlights
38
+
39
+ - **1.21 GB** diffusion transformer, down from **7.75 GB** for the FP16 FLUX.2 Klein 4B transformer
40
+ - Ternary {−1, 0, +1} transformer weights with FP16 group-wise scaling in the matrix-heavy transformer layers (Q/K/V projections, output projections, MLP weights)
41
+ - Quality-oriented Bonsai Image variant: the additional zero state improves visual quality and prompt fidelity while keeping the transformer compact
42
+ - 3.88 GB Apple Silicon deployment payload including the 4-bit text encoder and FP16 VAE — text encoder is offloaded after prompt encode, so the denoising loop only keeps the compact transformer and VAE resident
43
+ - 4-step FlowMatch-Euler sampler with guidance = 1.0 and shift = 3.0 — no CFG, no negative prompts needed
44
+ - MLX-native 2-bit format for Apple Silicon, the same kernel path as our ternary language-model releases
45
+ - Cross-platform companion: also available as [gemlite 2-bit](https://huggingface.co/prism-ml/bonsai-image-ternary-4B-gemlite-2bit) for NVIDIA GPUs
46
+
47
+ ## Resources
48
+
49
+ - **[White Paper](https://github.com/PrismML-Eng/Bonsai-Image-Demo/blob/main/bonsai-image-4b-whitepaper.pdf)** — full benchmarks, kernels, and memory analysis
50
+ - **[Demo repo](https://github.com/PrismML-Eng/Bonsai-Image-Demo)** — one-command setup for Mac / Linux / Windows
51
+ - **[Discord](https://discord.gg/prismml)** — community + support
52
+ - **Kernels**: [MLX](https://github.com/ml-explore/mlx) (Apple Silicon) · [mlx-swift](https://github.com/ml-explore/mlx-swift) (iOS / macOS) — 2-bit format is supported out of the box
53
+
54
+ ## Model Overview
55
+
56
+ | Item | Specification |
57
+ | :-------------------- | :-------------------------------------------------------------------------------------|
58
+ | Base architecture | FLUX.2 Klein 4B (MMDiT diffusion transformer) |
59
+ | Parameters | ~4.0B (transformer trunk) |
60
+ | Blocks | 25 MMDiT blocks: 5 double-stream + 20 single-stream |
61
+ | Sampler | FlowMatchEuler, **4 steps**, guidance = 1.0, shift = 3.0 |
62
+ | Text encoder | Qwen3-4B at 4-bit (≈ 2.28 GB on-device, offloaded after prompt encode) |
63
+ | VAE | Flux2 32-channel latent, tiled decode (128 px tiles) |
64
+ | Native resolution | 1024×1024 (also supports 512×512 and arbitrary multiples of 32) |
65
+ | Weight format | MLX 2-bit g128, ternary values + FP16 group-wise scales |
66
+ | **Transformer size** | **1.21 GB** (6.4× smaller than 7.75 GB FP16) |
67
+ | Total payload | **3.88 GB** (4.1x smaller than the 15.97 GB FP16 transformer + text encoder + VAE) |
68
+ | Ternary coverage | All 100 matmul-heavy linears in the 25 MMDiT blocks |
69
+ | License | Apache 2.0 |
70
+
71
+ ## Ternary Weight Representation: 1.58-bit g128
72
+
73
+ Each ternary weight takes a value from {−1, 0, +1} with one shared FP16 scale per group of 128 weights:
74
+
75
+ ```
76
+ w_i = scale_g * t_i, t_i in {−1, 0, +1}
77
+ ```
78
+
79
+ Ternary values carry log₂(3) ≈ 1.585 bits of information per weight. With one FP16 scale per group of 128, the effective storage is
80
+
81
+ ```
82
+ b_eff ≈ log2(3) + 16/128 ≈ 1.585 + 0.125 ≈ 1.71 bits/weight
83
+ ```
84
+
85
+ This gives an idealized **9.4× reduction** relative to FP16 for the ternary transformer layers. A small set of precision-sensitive supporting tensors remains in FP16, so the final Ternary Bonsai Image 4B diffusion transformer is **1.21 GB**, a 6.4× reduction from the 7.75 GB FP16 FLUX.2 Klein 4B transformer.
86
+
87
+ The ternary representation is applied to the matrix-heavy transformer layers, including Q / K / V projections, output projections, MLP linears, and the double-stream add-K / Q / V linears. Supporting tensors (less than 5% of the total parameters) such as modulation streams, embedders, output norm, and output projection remain FP16 for image quality and stability.
88
+
89
+ The MLX deployment uses a 2-bit packed format. Ternary values are stored in 2-bit slots, with the fourth code unused. The model-level Bonsai representation is **1.21 GB**; the deployed MLX pack is **1.43 GB** on disk due to runtime packing and alignment overhead in the current MLX path.
90
+
91
+ ### Memory
92
+
93
+ | Format | Transformer size | Reduction | Ratio |
94
+ | :------------------------------ | ---------------: | --------: | -------: |
95
+ | FP16 FLUX.2 Klein 4B | 7.75 GB | — | 1.0× |
96
+ | **Ternary Bonsai Image 4B** | **1.21 GB** | **84.4%** | **6.4×** |
97
+
98
+ Apple Silicon deployment:
99
+
100
+ | Component | Size |
101
+ | :------------------------------ | ------: |
102
+ | MLX 2-bit diffusion transformer | 1.43 GB |
103
+ | Compressed text encoder | 2.28 GB |
104
+ | FP16 VAE | 0.17 GB |
105
+ | **Total payload** | **3.88 GB** |
106
+
107
+ At runtime, the text encoder is offloaded after prompt encoding. During denoising, the repeated image-generation loop is dominated by the compact ternary diffusion transformer and active image-generation components rather than the full payload.
108
+
109
+ End-to-end Mac M4 Pro mean-active memory pressure at 1024² is **2.38 GB** — a **6.0×** reduction vs the stock FP16 MFLUX pipeline (14.39 GB).
110
+
111
+
112
+ ## Best Practices
113
+
114
+ - Sampler: FlowMatchEuler-discrete with 4 steps, guidance = 1.0 (no classifier-free guidance), shift = 3.0. The model is designed for 4 steps; running more steps does not improve quality significantly and can introduce artifacts.
115
+ - Resolution: native 1024² is the design target; 512² works for quick previews.
116
+ - Aspect ratios: multiples of 32 are supported, including 832×1248 and 1248×832.
117
+ - Prompting: natural-language prompts. Negative prompts are not required.
118
+ - Runtime memory: the text encoder is offloaded after prompt encoding, so the denoising loop is memory-light.
119
+
120
+ ## Quickstart
121
+
122
+ ### MLX (Python)
123
+
124
+ The simplest path is the [Bonsai Image Demo repo](https://github.com/PrismML-Eng/Bonsai-Image-Demo), which sets up the full Bonsai Studio (FastAPI backend + Next.js frontend):
125
+
126
+ ```bash
127
+ git clone https://github.com/PrismML-Eng/Bonsai-Image-Demo.git
128
+ cd Bonsai-Image-Demo
129
+ ./setup.sh
130
+ ./scripts/download_model.sh # ternary is the default
131
+ ./scripts/serve.sh
132
+ ```
133
+
134
+ For a one-shot render without the studio frontend:
135
+
136
+ ```bash
137
+ ./scripts/generate.sh --prompt "A bonsai tree in a quiet ceramic studio, soft morning light"
138
+ ```
139
+
140
+ ### MLX Swift (iOS / macOS)
141
+
142
+ Ternary Bonsai Image 4B runs natively on iPhone and iPad via MLX Swift. Bonsai Studio for iPhone is available on the App Store and ships ternary as the default variant.
143
+
144
+ ## Throughput (MLX / Apple Silicon)
145
+
146
+ Mac M4 Pro (48 GB unified memory), 4 denoising steps, fixed prompt and seed:
147
+
148
+ | Resolution | s / step | s / image (mean ± std) | vs stock MFLUX FP16 |
149
+ | :------------ | -------: | ---------------------: | ------------------: |
150
+ | 512 × 512 | 1.44 | 5.78 ± 0.08 s | **3.15×** |
151
+ | 1024 × 1024 | 6.06 | **24.26 ± 0.24 s** | **5.56×** |
152
+
153
+ iPhone 17 Pro Max (A19 Pro, 12 GB unified memory), MLX Swift, same methodology:
154
+
155
+ | Resolution | s / step | s / image |
156
+ | :------------ | -------: | --------: |
157
+ | 128 × 128 | 0.68 | 2.7 s |
158
+ | 256 × 256 | 1.00 | 4.0 s |
159
+ | 512 × 512 | 2.35 | **9.4 s** |
160
+ | 1024 × 1024 | 8.50 | **34.0 s**|
161
+
162
+ Stock FP16 FLUX.2 Klein 4B does not fit within iPhone 17 Pro Max's 12 GB unified memory budget; Bonsai Image 4B models do.
163
+
164
+ ## Benchmarks
165
+
166
+ Evaluated with matched generation settings across the comparison set on H100. GenEval uses the official 512x512 protocol. For HPSv3 and DPG-Bench, larger-backbone rows are evaluated at 1024x1024, while smaller-backbone rows are evaluated at their native 512x512 setting. Higher is better for all three benchmarks.
167
+
168
+ | Model | Transformer (GB) | GenEval | HPSv3 | DPG-Bench |
169
+ | :--------------------------- | ---------------: | ------: | -----: | --------: |
170
+ | **Bonsai Image · Ternary 4B**| **1.21** | **0.723** | **12.22** | **0.851** |
171
+ | **Bonsai Image · Binary 4B** | **0.93** | **0.671** | **11.15** | **0.822** |
172
+ | FLUX.2 Klein 4B | 7.75 | 0.819 | 12.84 | 0.853 |
173
+ | FLUX.1-schnell | 23.8 | 0.716 | 12.67 | 0.848 |
174
+ | SDXL | 5.14 | 0.300 | 10.05 | 0.740 |
175
+ | PixArt-Σ XL 2 | 1.20 | 0.541 | 11.93 | 0.769 |
176
+ | Stable Diffusion 1.5 | 1.72 | 0.396 | 4.20 | 0.601 |
177
+ | BK-SDM-Small | 0.98 | 0.297 | 3.05 | 0.559 |
178
+
179
+ The benchmark results show the intended quality-footprint trade-off. Ternary Bonsai Image 4B is the quality-oriented variant: at 1.21 GB, it sits very close to FLUX.2 Klein 4B across GenEval, HPSv3, and DPG-Bench while reducing the diffusion transformer footprint by 6.4x. The binary companion is the footprint-oriented variant, reducing the diffusion transformer below 1 GB while still delivering strong benchmark results.
180
+
181
+ Together, the Bonsai Image variants move the quality-footprint frontier: they bring modern diffusion-transformer behavior into a memory range previously occupied by much smaller, lower-capability models.
182
+
183
+ ## Use Cases
184
+
185
+ - **Local creative tooling**: image generation directly on Mac, iPhone, and iPad
186
+ - **Private generation**: prompts and generated assets can remain local
187
+ - **Rapid iteration**: lower local latency and no remote queue for iterative creative workflows
188
+ - **Mobile deployment**: image generation on devices with unified-memory, thermal, and connectivity constraints
189
+ - **Commodity-GPU serving**: lower transformer footprint and reduced memory pressure through the companion CUDA deployment
190
+ - **Enterprise and controlled inference**: local or private environments for data residency and compliance-sensitive workflows
191
+
192
+ ## Limitations
193
+
194
+ - Ternary Bonsai Image 4B is not bit-identical to the FP16 FLUX.2 Klein 4B model; it is a compact ternary-weight deployment designed to deliver similar practical behavior at much smaller size.
195
+ - Image-generation quality remains prompt- and workflow-dependent. Small text, fine details, object counts, and strict compositional constraints should be evaluated for the target use case.
196
+ - Current commodity inference stacks do not yet expose fully native ternary execution as a standard hardware path. This release uses practical MLX low-bit kernel paths on Apple Silicon and Gemlite low-bit GEMM on CUDA.
197
+ - After the diffusion transformer is made compact, other components such as the VAE can become more visible memory bottlenecks. The runtime mitigates this with text-encoder offload and tiled VAE decoding.
198
+
199
+
200
+ ## Citation
201
+
202
+ ```bibtex
203
+ @techreport{bonsaiimage4b,
204
+ title = {Bonsai Image 4B: Low-Bit Diffusion on Apple Silicon and Consumer GPUs},
205
+ author = {Prism ML},
206
+ year = {2026},
207
+ month = {May},
208
+ url = {https://prismml.com}
209
+ }
210
+ ```
211
+
212
+ ## Contact
213
+
214
+ For questions, feedback, or collaboration inquiries: **contact@prismml.com**
assets/bonsai-logo.svg ADDED
manifest.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_version": "ternary g128 (Apple Silicon mlx-2bit deployment)",
3
+ "total_bytes": 3888274558,
4
+ "files": [
5
+ {
6
+ "remote_path": "LICENSE",
7
+ "size": 10174,
8
+ "sha256": "69849221bfb90053de2134ef5e6d540287b4b98062326492f1f96f5da685524b"
9
+ },
10
+ {
11
+ "remote_path": "NOTICE.md",
12
+ "size": 623,
13
+ "sha256": "bbefa4a26b836efc040c1a0f155a425d1d833eae1b2534ffc414b1eada3cd922"
14
+ },
15
+ {
16
+ "remote_path": "README.md",
17
+ "size": 12443,
18
+ "sha256": "4017f9c74fc1f89212a8b736a29bcc742fe1fe4679fbeb1a5818bf395f80d55e"
19
+ },
20
+ {
21
+ "remote_path": "scheduler/scheduler_config.json",
22
+ "size": 486,
23
+ "sha256": "067afb012cef64553a763447d1efd93daeffcc0123ca7e25b09f8de20b90762e"
24
+ },
25
+ {
26
+ "remote_path": "text_encoder-mlx-4bit/added_tokens.json",
27
+ "size": 707,
28
+ "sha256": "c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680"
29
+ },
30
+ {
31
+ "remote_path": "text_encoder-mlx-4bit/config.json",
32
+ "size": 937,
33
+ "sha256": "b5efdcf3b0035a3638e7228dad4d85f5c4a23f156eb7cdb0b44c8366a5d34d9b"
34
+ },
35
+ {
36
+ "remote_path": "text_encoder-mlx-4bit/merges.txt",
37
+ "size": 1671853,
38
+ "sha256": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5"
39
+ },
40
+ {
41
+ "remote_path": "text_encoder-mlx-4bit/model.safetensors",
42
+ "size": 2263022529,
43
+ "sha256": "e240c0bdc0ebb0681bf0da0f98d9719fd6ebe269a3633f81542c13e81345651d"
44
+ },
45
+ {
46
+ "remote_path": "text_encoder-mlx-4bit/model.safetensors.index.json",
47
+ "size": 63924,
48
+ "sha256": "f7825defe5865d179c3b593173d37056be5f202dcb7153985cf74e75ecf1628b"
49
+ },
50
+ {
51
+ "remote_path": "text_encoder-mlx-4bit/special_tokens_map.json",
52
+ "size": 613,
53
+ "sha256": "76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd"
54
+ },
55
+ {
56
+ "remote_path": "text_encoder-mlx-4bit/tokenizer.json",
57
+ "size": 11422654,
58
+ "sha256": "aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4"
59
+ },
60
+ {
61
+ "remote_path": "text_encoder-mlx-4bit/tokenizer_config.json",
62
+ "size": 9706,
63
+ "sha256": "253153d0738ceb4c668d2eff957714dd2bea0b56de772a9fdccd96cbf517e6a0"
64
+ },
65
+ {
66
+ "remote_path": "text_encoder-mlx-4bit/vocab.json",
67
+ "size": 2776833,
68
+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"
69
+ },
70
+ {
71
+ "remote_path": "tokenizer/added_tokens.json",
72
+ "size": 707,
73
+ "sha256": "c0284b582e14987fbd3d5a2cb2bd139084371ed9acbae488829a1c900833c680"
74
+ },
75
+ {
76
+ "remote_path": "tokenizer/chat_template.jinja",
77
+ "size": 4168,
78
+ "sha256": "a55ee1b1660128b7098723e0abcd92caa0788061051c62d51cbe87d9cf1974d8"
79
+ },
80
+ {
81
+ "remote_path": "tokenizer/merges.txt",
82
+ "size": 1671853,
83
+ "sha256": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5"
84
+ },
85
+ {
86
+ "remote_path": "tokenizer/special_tokens_map.json",
87
+ "size": 613,
88
+ "sha256": "76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd"
89
+ },
90
+ {
91
+ "remote_path": "tokenizer/tokenizer.json",
92
+ "size": 11422654,
93
+ "sha256": "aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4"
94
+ },
95
+ {
96
+ "remote_path": "tokenizer/tokenizer_config.json",
97
+ "size": 5404,
98
+ "sha256": "443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0"
99
+ },
100
+ {
101
+ "remote_path": "tokenizer/vocab.json",
102
+ "size": 2776833,
103
+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"
104
+ },
105
+ {
106
+ "remote_path": "transformer-packed-mflux/config.json",
107
+ "size": 619,
108
+ "sha256": "14c6d8314d28cc027ce636d52dfb98cecc11b65c1455bd51b394a971f4b7b49e"
109
+ },
110
+ {
111
+ "remote_path": "transformer-packed-mflux/diffusion_pytorch_model.safetensors",
112
+ "size": 1425271472,
113
+ "sha256": "b21737bdf02690b7d662907781c4dc8b8bf22a2c98b823b1ca3336f48371a84f"
114
+ },
115
+ {
116
+ "remote_path": "transformer-packed-mflux/quantization_config.json",
117
+ "size": 5054,
118
+ "sha256": "6a792a07051e534b177aefaac5222796ec13bbdd1a597a2b08695b4c6c75fec7"
119
+ },
120
+ {
121
+ "remote_path": "vae/config.json",
122
+ "size": 821,
123
+ "sha256": "0d6dfb69ae95a5e2ac9836284bbb63d8b38ce67b25ba2dff380752b2a10ab948"
124
+ },
125
+ {
126
+ "remote_path": "vae/diffusion_pytorch_model.safetensors",
127
+ "size": 168120878,
128
+ "sha256": "ca70d2202afe6415bdbcb8793ba8cd99fd159cfe6192381504d6c4d3036e0f04"
129
+ }
130
+ ]
131
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "FlowMatchEulerDiscreteScheduler",
3
+ "_diffusers_version": "0.37.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": 3.0,
11
+ "shift_terminal": null,
12
+ "stochastic_sampling": false,
13
+ "time_shift_type": "exponential",
14
+ "use_beta_sigmas": false,
15
+ "use_dynamic_shifting": true,
16
+ "use_exponential_sigmas": false,
17
+ "use_karras_sigmas": false
18
+ }
text_encoder-mlx-4bit/added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
text_encoder-mlx-4bit/config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151645,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2560,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 9728,
14
+ "max_position_embeddings": 40960,
15
+ "max_window_layers": 36,
16
+ "model_type": "qwen3",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 36,
19
+ "num_key_value_heads": 8,
20
+ "quantization": {
21
+ "group_size": 64,
22
+ "bits": 4
23
+ },
24
+ "quantization_config": {
25
+ "group_size": 64,
26
+ "bits": 4
27
+ },
28
+ "rms_norm_eps": 1e-06,
29
+ "rope_scaling": null,
30
+ "rope_theta": 1000000,
31
+ "sliding_window": null,
32
+ "tie_word_embeddings": true,
33
+ "torch_dtype": "bfloat16",
34
+ "transformers_version": "4.51.0",
35
+ "use_cache": true,
36
+ "use_sliding_window": false,
37
+ "vocab_size": 151936
38
+ }
text_encoder-mlx-4bit/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
text_encoder-mlx-4bit/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e240c0bdc0ebb0681bf0da0f98d9719fd6ebe269a3633f81542c13e81345651d
3
+ size 2263022529
text_encoder-mlx-4bit/model.safetensors.index.json ADDED
@@ -0,0 +1,911 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 2262920192
4
+ },
5
+ "weight_map": {
6
+ "model.embed_tokens.biases": "model.safetensors",
7
+ "model.embed_tokens.scales": "model.safetensors",
8
+ "model.embed_tokens.weight": "model.safetensors",
9
+ "model.layers.0.input_layernorm.weight": "model.safetensors",
10
+ "model.layers.0.mlp.down_proj.biases": "model.safetensors",
11
+ "model.layers.0.mlp.down_proj.scales": "model.safetensors",
12
+ "model.layers.0.mlp.down_proj.weight": "model.safetensors",
13
+ "model.layers.0.mlp.gate_proj.biases": "model.safetensors",
14
+ "model.layers.0.mlp.gate_proj.scales": "model.safetensors",
15
+ "model.layers.0.mlp.gate_proj.weight": "model.safetensors",
16
+ "model.layers.0.mlp.up_proj.biases": "model.safetensors",
17
+ "model.layers.0.mlp.up_proj.scales": "model.safetensors",
18
+ "model.layers.0.mlp.up_proj.weight": "model.safetensors",
19
+ "model.layers.0.post_attention_layernorm.weight": "model.safetensors",
20
+ "model.layers.0.self_attn.k_norm.weight": "model.safetensors",
21
+ "model.layers.0.self_attn.k_proj.biases": "model.safetensors",
22
+ "model.layers.0.self_attn.k_proj.scales": "model.safetensors",
23
+ "model.layers.0.self_attn.k_proj.weight": "model.safetensors",
24
+ "model.layers.0.self_attn.o_proj.biases": "model.safetensors",
25
+ "model.layers.0.self_attn.o_proj.scales": "model.safetensors",
26
+ "model.layers.0.self_attn.o_proj.weight": "model.safetensors",
27
+ "model.layers.0.self_attn.q_norm.weight": "model.safetensors",
28
+ "model.layers.0.self_attn.q_proj.biases": "model.safetensors",
29
+ "model.layers.0.self_attn.q_proj.scales": "model.safetensors",
30
+ "model.layers.0.self_attn.q_proj.weight": "model.safetensors",
31
+ "model.layers.0.self_attn.v_proj.biases": "model.safetensors",
32
+ "model.layers.0.self_attn.v_proj.scales": "model.safetensors",
33
+ "model.layers.0.self_attn.v_proj.weight": "model.safetensors",
34
+ "model.layers.1.input_layernorm.weight": "model.safetensors",
35
+ "model.layers.1.mlp.down_proj.biases": "model.safetensors",
36
+ "model.layers.1.mlp.down_proj.scales": "model.safetensors",
37
+ "model.layers.1.mlp.down_proj.weight": "model.safetensors",
38
+ "model.layers.1.mlp.gate_proj.biases": "model.safetensors",
39
+ "model.layers.1.mlp.gate_proj.scales": "model.safetensors",
40
+ "model.layers.1.mlp.gate_proj.weight": "model.safetensors",
41
+ "model.layers.1.mlp.up_proj.biases": "model.safetensors",
42
+ "model.layers.1.mlp.up_proj.scales": "model.safetensors",
43
+ "model.layers.1.mlp.up_proj.weight": "model.safetensors",
44
+ "model.layers.1.post_attention_layernorm.weight": "model.safetensors",
45
+ "model.layers.1.self_attn.k_norm.weight": "model.safetensors",
46
+ "model.layers.1.self_attn.k_proj.biases": "model.safetensors",
47
+ "model.layers.1.self_attn.k_proj.scales": "model.safetensors",
48
+ "model.layers.1.self_attn.k_proj.weight": "model.safetensors",
49
+ "model.layers.1.self_attn.o_proj.biases": "model.safetensors",
50
+ "model.layers.1.self_attn.o_proj.scales": "model.safetensors",
51
+ "model.layers.1.self_attn.o_proj.weight": "model.safetensors",
52
+ "model.layers.1.self_attn.q_norm.weight": "model.safetensors",
53
+ "model.layers.1.self_attn.q_proj.biases": "model.safetensors",
54
+ "model.layers.1.self_attn.q_proj.scales": "model.safetensors",
55
+ "model.layers.1.self_attn.q_proj.weight": "model.safetensors",
56
+ "model.layers.1.self_attn.v_proj.biases": "model.safetensors",
57
+ "model.layers.1.self_attn.v_proj.scales": "model.safetensors",
58
+ "model.layers.1.self_attn.v_proj.weight": "model.safetensors",
59
+ "model.layers.10.input_layernorm.weight": "model.safetensors",
60
+ "model.layers.10.mlp.down_proj.biases": "model.safetensors",
61
+ "model.layers.10.mlp.down_proj.scales": "model.safetensors",
62
+ "model.layers.10.mlp.down_proj.weight": "model.safetensors",
63
+ "model.layers.10.mlp.gate_proj.biases": "model.safetensors",
64
+ "model.layers.10.mlp.gate_proj.scales": "model.safetensors",
65
+ "model.layers.10.mlp.gate_proj.weight": "model.safetensors",
66
+ "model.layers.10.mlp.up_proj.biases": "model.safetensors",
67
+ "model.layers.10.mlp.up_proj.scales": "model.safetensors",
68
+ "model.layers.10.mlp.up_proj.weight": "model.safetensors",
69
+ "model.layers.10.post_attention_layernorm.weight": "model.safetensors",
70
+ "model.layers.10.self_attn.k_norm.weight": "model.safetensors",
71
+ "model.layers.10.self_attn.k_proj.biases": "model.safetensors",
72
+ "model.layers.10.self_attn.k_proj.scales": "model.safetensors",
73
+ "model.layers.10.self_attn.k_proj.weight": "model.safetensors",
74
+ "model.layers.10.self_attn.o_proj.biases": "model.safetensors",
75
+ "model.layers.10.self_attn.o_proj.scales": "model.safetensors",
76
+ "model.layers.10.self_attn.o_proj.weight": "model.safetensors",
77
+ "model.layers.10.self_attn.q_norm.weight": "model.safetensors",
78
+ "model.layers.10.self_attn.q_proj.biases": "model.safetensors",
79
+ "model.layers.10.self_attn.q_proj.scales": "model.safetensors",
80
+ "model.layers.10.self_attn.q_proj.weight": "model.safetensors",
81
+ "model.layers.10.self_attn.v_proj.biases": "model.safetensors",
82
+ "model.layers.10.self_attn.v_proj.scales": "model.safetensors",
83
+ "model.layers.10.self_attn.v_proj.weight": "model.safetensors",
84
+ "model.layers.11.input_layernorm.weight": "model.safetensors",
85
+ "model.layers.11.mlp.down_proj.biases": "model.safetensors",
86
+ "model.layers.11.mlp.down_proj.scales": "model.safetensors",
87
+ "model.layers.11.mlp.down_proj.weight": "model.safetensors",
88
+ "model.layers.11.mlp.gate_proj.biases": "model.safetensors",
89
+ "model.layers.11.mlp.gate_proj.scales": "model.safetensors",
90
+ "model.layers.11.mlp.gate_proj.weight": "model.safetensors",
91
+ "model.layers.11.mlp.up_proj.biases": "model.safetensors",
92
+ "model.layers.11.mlp.up_proj.scales": "model.safetensors",
93
+ "model.layers.11.mlp.up_proj.weight": "model.safetensors",
94
+ "model.layers.11.post_attention_layernorm.weight": "model.safetensors",
95
+ "model.layers.11.self_attn.k_norm.weight": "model.safetensors",
96
+ "model.layers.11.self_attn.k_proj.biases": "model.safetensors",
97
+ "model.layers.11.self_attn.k_proj.scales": "model.safetensors",
98
+ "model.layers.11.self_attn.k_proj.weight": "model.safetensors",
99
+ "model.layers.11.self_attn.o_proj.biases": "model.safetensors",
100
+ "model.layers.11.self_attn.o_proj.scales": "model.safetensors",
101
+ "model.layers.11.self_attn.o_proj.weight": "model.safetensors",
102
+ "model.layers.11.self_attn.q_norm.weight": "model.safetensors",
103
+ "model.layers.11.self_attn.q_proj.biases": "model.safetensors",
104
+ "model.layers.11.self_attn.q_proj.scales": "model.safetensors",
105
+ "model.layers.11.self_attn.q_proj.weight": "model.safetensors",
106
+ "model.layers.11.self_attn.v_proj.biases": "model.safetensors",
107
+ "model.layers.11.self_attn.v_proj.scales": "model.safetensors",
108
+ "model.layers.11.self_attn.v_proj.weight": "model.safetensors",
109
+ "model.layers.12.input_layernorm.weight": "model.safetensors",
110
+ "model.layers.12.mlp.down_proj.biases": "model.safetensors",
111
+ "model.layers.12.mlp.down_proj.scales": "model.safetensors",
112
+ "model.layers.12.mlp.down_proj.weight": "model.safetensors",
113
+ "model.layers.12.mlp.gate_proj.biases": "model.safetensors",
114
+ "model.layers.12.mlp.gate_proj.scales": "model.safetensors",
115
+ "model.layers.12.mlp.gate_proj.weight": "model.safetensors",
116
+ "model.layers.12.mlp.up_proj.biases": "model.safetensors",
117
+ "model.layers.12.mlp.up_proj.scales": "model.safetensors",
118
+ "model.layers.12.mlp.up_proj.weight": "model.safetensors",
119
+ "model.layers.12.post_attention_layernorm.weight": "model.safetensors",
120
+ "model.layers.12.self_attn.k_norm.weight": "model.safetensors",
121
+ "model.layers.12.self_attn.k_proj.biases": "model.safetensors",
122
+ "model.layers.12.self_attn.k_proj.scales": "model.safetensors",
123
+ "model.layers.12.self_attn.k_proj.weight": "model.safetensors",
124
+ "model.layers.12.self_attn.o_proj.biases": "model.safetensors",
125
+ "model.layers.12.self_attn.o_proj.scales": "model.safetensors",
126
+ "model.layers.12.self_attn.o_proj.weight": "model.safetensors",
127
+ "model.layers.12.self_attn.q_norm.weight": "model.safetensors",
128
+ "model.layers.12.self_attn.q_proj.biases": "model.safetensors",
129
+ "model.layers.12.self_attn.q_proj.scales": "model.safetensors",
130
+ "model.layers.12.self_attn.q_proj.weight": "model.safetensors",
131
+ "model.layers.12.self_attn.v_proj.biases": "model.safetensors",
132
+ "model.layers.12.self_attn.v_proj.scales": "model.safetensors",
133
+ "model.layers.12.self_attn.v_proj.weight": "model.safetensors",
134
+ "model.layers.13.input_layernorm.weight": "model.safetensors",
135
+ "model.layers.13.mlp.down_proj.biases": "model.safetensors",
136
+ "model.layers.13.mlp.down_proj.scales": "model.safetensors",
137
+ "model.layers.13.mlp.down_proj.weight": "model.safetensors",
138
+ "model.layers.13.mlp.gate_proj.biases": "model.safetensors",
139
+ "model.layers.13.mlp.gate_proj.scales": "model.safetensors",
140
+ "model.layers.13.mlp.gate_proj.weight": "model.safetensors",
141
+ "model.layers.13.mlp.up_proj.biases": "model.safetensors",
142
+ "model.layers.13.mlp.up_proj.scales": "model.safetensors",
143
+ "model.layers.13.mlp.up_proj.weight": "model.safetensors",
144
+ "model.layers.13.post_attention_layernorm.weight": "model.safetensors",
145
+ "model.layers.13.self_attn.k_norm.weight": "model.safetensors",
146
+ "model.layers.13.self_attn.k_proj.biases": "model.safetensors",
147
+ "model.layers.13.self_attn.k_proj.scales": "model.safetensors",
148
+ "model.layers.13.self_attn.k_proj.weight": "model.safetensors",
149
+ "model.layers.13.self_attn.o_proj.biases": "model.safetensors",
150
+ "model.layers.13.self_attn.o_proj.scales": "model.safetensors",
151
+ "model.layers.13.self_attn.o_proj.weight": "model.safetensors",
152
+ "model.layers.13.self_attn.q_norm.weight": "model.safetensors",
153
+ "model.layers.13.self_attn.q_proj.biases": "model.safetensors",
154
+ "model.layers.13.self_attn.q_proj.scales": "model.safetensors",
155
+ "model.layers.13.self_attn.q_proj.weight": "model.safetensors",
156
+ "model.layers.13.self_attn.v_proj.biases": "model.safetensors",
157
+ "model.layers.13.self_attn.v_proj.scales": "model.safetensors",
158
+ "model.layers.13.self_attn.v_proj.weight": "model.safetensors",
159
+ "model.layers.14.input_layernorm.weight": "model.safetensors",
160
+ "model.layers.14.mlp.down_proj.biases": "model.safetensors",
161
+ "model.layers.14.mlp.down_proj.scales": "model.safetensors",
162
+ "model.layers.14.mlp.down_proj.weight": "model.safetensors",
163
+ "model.layers.14.mlp.gate_proj.biases": "model.safetensors",
164
+ "model.layers.14.mlp.gate_proj.scales": "model.safetensors",
165
+ "model.layers.14.mlp.gate_proj.weight": "model.safetensors",
166
+ "model.layers.14.mlp.up_proj.biases": "model.safetensors",
167
+ "model.layers.14.mlp.up_proj.scales": "model.safetensors",
168
+ "model.layers.14.mlp.up_proj.weight": "model.safetensors",
169
+ "model.layers.14.post_attention_layernorm.weight": "model.safetensors",
170
+ "model.layers.14.self_attn.k_norm.weight": "model.safetensors",
171
+ "model.layers.14.self_attn.k_proj.biases": "model.safetensors",
172
+ "model.layers.14.self_attn.k_proj.scales": "model.safetensors",
173
+ "model.layers.14.self_attn.k_proj.weight": "model.safetensors",
174
+ "model.layers.14.self_attn.o_proj.biases": "model.safetensors",
175
+ "model.layers.14.self_attn.o_proj.scales": "model.safetensors",
176
+ "model.layers.14.self_attn.o_proj.weight": "model.safetensors",
177
+ "model.layers.14.self_attn.q_norm.weight": "model.safetensors",
178
+ "model.layers.14.self_attn.q_proj.biases": "model.safetensors",
179
+ "model.layers.14.self_attn.q_proj.scales": "model.safetensors",
180
+ "model.layers.14.self_attn.q_proj.weight": "model.safetensors",
181
+ "model.layers.14.self_attn.v_proj.biases": "model.safetensors",
182
+ "model.layers.14.self_attn.v_proj.scales": "model.safetensors",
183
+ "model.layers.14.self_attn.v_proj.weight": "model.safetensors",
184
+ "model.layers.15.input_layernorm.weight": "model.safetensors",
185
+ "model.layers.15.mlp.down_proj.biases": "model.safetensors",
186
+ "model.layers.15.mlp.down_proj.scales": "model.safetensors",
187
+ "model.layers.15.mlp.down_proj.weight": "model.safetensors",
188
+ "model.layers.15.mlp.gate_proj.biases": "model.safetensors",
189
+ "model.layers.15.mlp.gate_proj.scales": "model.safetensors",
190
+ "model.layers.15.mlp.gate_proj.weight": "model.safetensors",
191
+ "model.layers.15.mlp.up_proj.biases": "model.safetensors",
192
+ "model.layers.15.mlp.up_proj.scales": "model.safetensors",
193
+ "model.layers.15.mlp.up_proj.weight": "model.safetensors",
194
+ "model.layers.15.post_attention_layernorm.weight": "model.safetensors",
195
+ "model.layers.15.self_attn.k_norm.weight": "model.safetensors",
196
+ "model.layers.15.self_attn.k_proj.biases": "model.safetensors",
197
+ "model.layers.15.self_attn.k_proj.scales": "model.safetensors",
198
+ "model.layers.15.self_attn.k_proj.weight": "model.safetensors",
199
+ "model.layers.15.self_attn.o_proj.biases": "model.safetensors",
200
+ "model.layers.15.self_attn.o_proj.scales": "model.safetensors",
201
+ "model.layers.15.self_attn.o_proj.weight": "model.safetensors",
202
+ "model.layers.15.self_attn.q_norm.weight": "model.safetensors",
203
+ "model.layers.15.self_attn.q_proj.biases": "model.safetensors",
204
+ "model.layers.15.self_attn.q_proj.scales": "model.safetensors",
205
+ "model.layers.15.self_attn.q_proj.weight": "model.safetensors",
206
+ "model.layers.15.self_attn.v_proj.biases": "model.safetensors",
207
+ "model.layers.15.self_attn.v_proj.scales": "model.safetensors",
208
+ "model.layers.15.self_attn.v_proj.weight": "model.safetensors",
209
+ "model.layers.16.input_layernorm.weight": "model.safetensors",
210
+ "model.layers.16.mlp.down_proj.biases": "model.safetensors",
211
+ "model.layers.16.mlp.down_proj.scales": "model.safetensors",
212
+ "model.layers.16.mlp.down_proj.weight": "model.safetensors",
213
+ "model.layers.16.mlp.gate_proj.biases": "model.safetensors",
214
+ "model.layers.16.mlp.gate_proj.scales": "model.safetensors",
215
+ "model.layers.16.mlp.gate_proj.weight": "model.safetensors",
216
+ "model.layers.16.mlp.up_proj.biases": "model.safetensors",
217
+ "model.layers.16.mlp.up_proj.scales": "model.safetensors",
218
+ "model.layers.16.mlp.up_proj.weight": "model.safetensors",
219
+ "model.layers.16.post_attention_layernorm.weight": "model.safetensors",
220
+ "model.layers.16.self_attn.k_norm.weight": "model.safetensors",
221
+ "model.layers.16.self_attn.k_proj.biases": "model.safetensors",
222
+ "model.layers.16.self_attn.k_proj.scales": "model.safetensors",
223
+ "model.layers.16.self_attn.k_proj.weight": "model.safetensors",
224
+ "model.layers.16.self_attn.o_proj.biases": "model.safetensors",
225
+ "model.layers.16.self_attn.o_proj.scales": "model.safetensors",
226
+ "model.layers.16.self_attn.o_proj.weight": "model.safetensors",
227
+ "model.layers.16.self_attn.q_norm.weight": "model.safetensors",
228
+ "model.layers.16.self_attn.q_proj.biases": "model.safetensors",
229
+ "model.layers.16.self_attn.q_proj.scales": "model.safetensors",
230
+ "model.layers.16.self_attn.q_proj.weight": "model.safetensors",
231
+ "model.layers.16.self_attn.v_proj.biases": "model.safetensors",
232
+ "model.layers.16.self_attn.v_proj.scales": "model.safetensors",
233
+ "model.layers.16.self_attn.v_proj.weight": "model.safetensors",
234
+ "model.layers.17.input_layernorm.weight": "model.safetensors",
235
+ "model.layers.17.mlp.down_proj.biases": "model.safetensors",
236
+ "model.layers.17.mlp.down_proj.scales": "model.safetensors",
237
+ "model.layers.17.mlp.down_proj.weight": "model.safetensors",
238
+ "model.layers.17.mlp.gate_proj.biases": "model.safetensors",
239
+ "model.layers.17.mlp.gate_proj.scales": "model.safetensors",
240
+ "model.layers.17.mlp.gate_proj.weight": "model.safetensors",
241
+ "model.layers.17.mlp.up_proj.biases": "model.safetensors",
242
+ "model.layers.17.mlp.up_proj.scales": "model.safetensors",
243
+ "model.layers.17.mlp.up_proj.weight": "model.safetensors",
244
+ "model.layers.17.post_attention_layernorm.weight": "model.safetensors",
245
+ "model.layers.17.self_attn.k_norm.weight": "model.safetensors",
246
+ "model.layers.17.self_attn.k_proj.biases": "model.safetensors",
247
+ "model.layers.17.self_attn.k_proj.scales": "model.safetensors",
248
+ "model.layers.17.self_attn.k_proj.weight": "model.safetensors",
249
+ "model.layers.17.self_attn.o_proj.biases": "model.safetensors",
250
+ "model.layers.17.self_attn.o_proj.scales": "model.safetensors",
251
+ "model.layers.17.self_attn.o_proj.weight": "model.safetensors",
252
+ "model.layers.17.self_attn.q_norm.weight": "model.safetensors",
253
+ "model.layers.17.self_attn.q_proj.biases": "model.safetensors",
254
+ "model.layers.17.self_attn.q_proj.scales": "model.safetensors",
255
+ "model.layers.17.self_attn.q_proj.weight": "model.safetensors",
256
+ "model.layers.17.self_attn.v_proj.biases": "model.safetensors",
257
+ "model.layers.17.self_attn.v_proj.scales": "model.safetensors",
258
+ "model.layers.17.self_attn.v_proj.weight": "model.safetensors",
259
+ "model.layers.18.input_layernorm.weight": "model.safetensors",
260
+ "model.layers.18.mlp.down_proj.biases": "model.safetensors",
261
+ "model.layers.18.mlp.down_proj.scales": "model.safetensors",
262
+ "model.layers.18.mlp.down_proj.weight": "model.safetensors",
263
+ "model.layers.18.mlp.gate_proj.biases": "model.safetensors",
264
+ "model.layers.18.mlp.gate_proj.scales": "model.safetensors",
265
+ "model.layers.18.mlp.gate_proj.weight": "model.safetensors",
266
+ "model.layers.18.mlp.up_proj.biases": "model.safetensors",
267
+ "model.layers.18.mlp.up_proj.scales": "model.safetensors",
268
+ "model.layers.18.mlp.up_proj.weight": "model.safetensors",
269
+ "model.layers.18.post_attention_layernorm.weight": "model.safetensors",
270
+ "model.layers.18.self_attn.k_norm.weight": "model.safetensors",
271
+ "model.layers.18.self_attn.k_proj.biases": "model.safetensors",
272
+ "model.layers.18.self_attn.k_proj.scales": "model.safetensors",
273
+ "model.layers.18.self_attn.k_proj.weight": "model.safetensors",
274
+ "model.layers.18.self_attn.o_proj.biases": "model.safetensors",
275
+ "model.layers.18.self_attn.o_proj.scales": "model.safetensors",
276
+ "model.layers.18.self_attn.o_proj.weight": "model.safetensors",
277
+ "model.layers.18.self_attn.q_norm.weight": "model.safetensors",
278
+ "model.layers.18.self_attn.q_proj.biases": "model.safetensors",
279
+ "model.layers.18.self_attn.q_proj.scales": "model.safetensors",
280
+ "model.layers.18.self_attn.q_proj.weight": "model.safetensors",
281
+ "model.layers.18.self_attn.v_proj.biases": "model.safetensors",
282
+ "model.layers.18.self_attn.v_proj.scales": "model.safetensors",
283
+ "model.layers.18.self_attn.v_proj.weight": "model.safetensors",
284
+ "model.layers.19.input_layernorm.weight": "model.safetensors",
285
+ "model.layers.19.mlp.down_proj.biases": "model.safetensors",
286
+ "model.layers.19.mlp.down_proj.scales": "model.safetensors",
287
+ "model.layers.19.mlp.down_proj.weight": "model.safetensors",
288
+ "model.layers.19.mlp.gate_proj.biases": "model.safetensors",
289
+ "model.layers.19.mlp.gate_proj.scales": "model.safetensors",
290
+ "model.layers.19.mlp.gate_proj.weight": "model.safetensors",
291
+ "model.layers.19.mlp.up_proj.biases": "model.safetensors",
292
+ "model.layers.19.mlp.up_proj.scales": "model.safetensors",
293
+ "model.layers.19.mlp.up_proj.weight": "model.safetensors",
294
+ "model.layers.19.post_attention_layernorm.weight": "model.safetensors",
295
+ "model.layers.19.self_attn.k_norm.weight": "model.safetensors",
296
+ "model.layers.19.self_attn.k_proj.biases": "model.safetensors",
297
+ "model.layers.19.self_attn.k_proj.scales": "model.safetensors",
298
+ "model.layers.19.self_attn.k_proj.weight": "model.safetensors",
299
+ "model.layers.19.self_attn.o_proj.biases": "model.safetensors",
300
+ "model.layers.19.self_attn.o_proj.scales": "model.safetensors",
301
+ "model.layers.19.self_attn.o_proj.weight": "model.safetensors",
302
+ "model.layers.19.self_attn.q_norm.weight": "model.safetensors",
303
+ "model.layers.19.self_attn.q_proj.biases": "model.safetensors",
304
+ "model.layers.19.self_attn.q_proj.scales": "model.safetensors",
305
+ "model.layers.19.self_attn.q_proj.weight": "model.safetensors",
306
+ "model.layers.19.self_attn.v_proj.biases": "model.safetensors",
307
+ "model.layers.19.self_attn.v_proj.scales": "model.safetensors",
308
+ "model.layers.19.self_attn.v_proj.weight": "model.safetensors",
309
+ "model.layers.2.input_layernorm.weight": "model.safetensors",
310
+ "model.layers.2.mlp.down_proj.biases": "model.safetensors",
311
+ "model.layers.2.mlp.down_proj.scales": "model.safetensors",
312
+ "model.layers.2.mlp.down_proj.weight": "model.safetensors",
313
+ "model.layers.2.mlp.gate_proj.biases": "model.safetensors",
314
+ "model.layers.2.mlp.gate_proj.scales": "model.safetensors",
315
+ "model.layers.2.mlp.gate_proj.weight": "model.safetensors",
316
+ "model.layers.2.mlp.up_proj.biases": "model.safetensors",
317
+ "model.layers.2.mlp.up_proj.scales": "model.safetensors",
318
+ "model.layers.2.mlp.up_proj.weight": "model.safetensors",
319
+ "model.layers.2.post_attention_layernorm.weight": "model.safetensors",
320
+ "model.layers.2.self_attn.k_norm.weight": "model.safetensors",
321
+ "model.layers.2.self_attn.k_proj.biases": "model.safetensors",
322
+ "model.layers.2.self_attn.k_proj.scales": "model.safetensors",
323
+ "model.layers.2.self_attn.k_proj.weight": "model.safetensors",
324
+ "model.layers.2.self_attn.o_proj.biases": "model.safetensors",
325
+ "model.layers.2.self_attn.o_proj.scales": "model.safetensors",
326
+ "model.layers.2.self_attn.o_proj.weight": "model.safetensors",
327
+ "model.layers.2.self_attn.q_norm.weight": "model.safetensors",
328
+ "model.layers.2.self_attn.q_proj.biases": "model.safetensors",
329
+ "model.layers.2.self_attn.q_proj.scales": "model.safetensors",
330
+ "model.layers.2.self_attn.q_proj.weight": "model.safetensors",
331
+ "model.layers.2.self_attn.v_proj.biases": "model.safetensors",
332
+ "model.layers.2.self_attn.v_proj.scales": "model.safetensors",
333
+ "model.layers.2.self_attn.v_proj.weight": "model.safetensors",
334
+ "model.layers.20.input_layernorm.weight": "model.safetensors",
335
+ "model.layers.20.mlp.down_proj.biases": "model.safetensors",
336
+ "model.layers.20.mlp.down_proj.scales": "model.safetensors",
337
+ "model.layers.20.mlp.down_proj.weight": "model.safetensors",
338
+ "model.layers.20.mlp.gate_proj.biases": "model.safetensors",
339
+ "model.layers.20.mlp.gate_proj.scales": "model.safetensors",
340
+ "model.layers.20.mlp.gate_proj.weight": "model.safetensors",
341
+ "model.layers.20.mlp.up_proj.biases": "model.safetensors",
342
+ "model.layers.20.mlp.up_proj.scales": "model.safetensors",
343
+ "model.layers.20.mlp.up_proj.weight": "model.safetensors",
344
+ "model.layers.20.post_attention_layernorm.weight": "model.safetensors",
345
+ "model.layers.20.self_attn.k_norm.weight": "model.safetensors",
346
+ "model.layers.20.self_attn.k_proj.biases": "model.safetensors",
347
+ "model.layers.20.self_attn.k_proj.scales": "model.safetensors",
348
+ "model.layers.20.self_attn.k_proj.weight": "model.safetensors",
349
+ "model.layers.20.self_attn.o_proj.biases": "model.safetensors",
350
+ "model.layers.20.self_attn.o_proj.scales": "model.safetensors",
351
+ "model.layers.20.self_attn.o_proj.weight": "model.safetensors",
352
+ "model.layers.20.self_attn.q_norm.weight": "model.safetensors",
353
+ "model.layers.20.self_attn.q_proj.biases": "model.safetensors",
354
+ "model.layers.20.self_attn.q_proj.scales": "model.safetensors",
355
+ "model.layers.20.self_attn.q_proj.weight": "model.safetensors",
356
+ "model.layers.20.self_attn.v_proj.biases": "model.safetensors",
357
+ "model.layers.20.self_attn.v_proj.scales": "model.safetensors",
358
+ "model.layers.20.self_attn.v_proj.weight": "model.safetensors",
359
+ "model.layers.21.input_layernorm.weight": "model.safetensors",
360
+ "model.layers.21.mlp.down_proj.biases": "model.safetensors",
361
+ "model.layers.21.mlp.down_proj.scales": "model.safetensors",
362
+ "model.layers.21.mlp.down_proj.weight": "model.safetensors",
363
+ "model.layers.21.mlp.gate_proj.biases": "model.safetensors",
364
+ "model.layers.21.mlp.gate_proj.scales": "model.safetensors",
365
+ "model.layers.21.mlp.gate_proj.weight": "model.safetensors",
366
+ "model.layers.21.mlp.up_proj.biases": "model.safetensors",
367
+ "model.layers.21.mlp.up_proj.scales": "model.safetensors",
368
+ "model.layers.21.mlp.up_proj.weight": "model.safetensors",
369
+ "model.layers.21.post_attention_layernorm.weight": "model.safetensors",
370
+ "model.layers.21.self_attn.k_norm.weight": "model.safetensors",
371
+ "model.layers.21.self_attn.k_proj.biases": "model.safetensors",
372
+ "model.layers.21.self_attn.k_proj.scales": "model.safetensors",
373
+ "model.layers.21.self_attn.k_proj.weight": "model.safetensors",
374
+ "model.layers.21.self_attn.o_proj.biases": "model.safetensors",
375
+ "model.layers.21.self_attn.o_proj.scales": "model.safetensors",
376
+ "model.layers.21.self_attn.o_proj.weight": "model.safetensors",
377
+ "model.layers.21.self_attn.q_norm.weight": "model.safetensors",
378
+ "model.layers.21.self_attn.q_proj.biases": "model.safetensors",
379
+ "model.layers.21.self_attn.q_proj.scales": "model.safetensors",
380
+ "model.layers.21.self_attn.q_proj.weight": "model.safetensors",
381
+ "model.layers.21.self_attn.v_proj.biases": "model.safetensors",
382
+ "model.layers.21.self_attn.v_proj.scales": "model.safetensors",
383
+ "model.layers.21.self_attn.v_proj.weight": "model.safetensors",
384
+ "model.layers.22.input_layernorm.weight": "model.safetensors",
385
+ "model.layers.22.mlp.down_proj.biases": "model.safetensors",
386
+ "model.layers.22.mlp.down_proj.scales": "model.safetensors",
387
+ "model.layers.22.mlp.down_proj.weight": "model.safetensors",
388
+ "model.layers.22.mlp.gate_proj.biases": "model.safetensors",
389
+ "model.layers.22.mlp.gate_proj.scales": "model.safetensors",
390
+ "model.layers.22.mlp.gate_proj.weight": "model.safetensors",
391
+ "model.layers.22.mlp.up_proj.biases": "model.safetensors",
392
+ "model.layers.22.mlp.up_proj.scales": "model.safetensors",
393
+ "model.layers.22.mlp.up_proj.weight": "model.safetensors",
394
+ "model.layers.22.post_attention_layernorm.weight": "model.safetensors",
395
+ "model.layers.22.self_attn.k_norm.weight": "model.safetensors",
396
+ "model.layers.22.self_attn.k_proj.biases": "model.safetensors",
397
+ "model.layers.22.self_attn.k_proj.scales": "model.safetensors",
398
+ "model.layers.22.self_attn.k_proj.weight": "model.safetensors",
399
+ "model.layers.22.self_attn.o_proj.biases": "model.safetensors",
400
+ "model.layers.22.self_attn.o_proj.scales": "model.safetensors",
401
+ "model.layers.22.self_attn.o_proj.weight": "model.safetensors",
402
+ "model.layers.22.self_attn.q_norm.weight": "model.safetensors",
403
+ "model.layers.22.self_attn.q_proj.biases": "model.safetensors",
404
+ "model.layers.22.self_attn.q_proj.scales": "model.safetensors",
405
+ "model.layers.22.self_attn.q_proj.weight": "model.safetensors",
406
+ "model.layers.22.self_attn.v_proj.biases": "model.safetensors",
407
+ "model.layers.22.self_attn.v_proj.scales": "model.safetensors",
408
+ "model.layers.22.self_attn.v_proj.weight": "model.safetensors",
409
+ "model.layers.23.input_layernorm.weight": "model.safetensors",
410
+ "model.layers.23.mlp.down_proj.biases": "model.safetensors",
411
+ "model.layers.23.mlp.down_proj.scales": "model.safetensors",
412
+ "model.layers.23.mlp.down_proj.weight": "model.safetensors",
413
+ "model.layers.23.mlp.gate_proj.biases": "model.safetensors",
414
+ "model.layers.23.mlp.gate_proj.scales": "model.safetensors",
415
+ "model.layers.23.mlp.gate_proj.weight": "model.safetensors",
416
+ "model.layers.23.mlp.up_proj.biases": "model.safetensors",
417
+ "model.layers.23.mlp.up_proj.scales": "model.safetensors",
418
+ "model.layers.23.mlp.up_proj.weight": "model.safetensors",
419
+ "model.layers.23.post_attention_layernorm.weight": "model.safetensors",
420
+ "model.layers.23.self_attn.k_norm.weight": "model.safetensors",
421
+ "model.layers.23.self_attn.k_proj.biases": "model.safetensors",
422
+ "model.layers.23.self_attn.k_proj.scales": "model.safetensors",
423
+ "model.layers.23.self_attn.k_proj.weight": "model.safetensors",
424
+ "model.layers.23.self_attn.o_proj.biases": "model.safetensors",
425
+ "model.layers.23.self_attn.o_proj.scales": "model.safetensors",
426
+ "model.layers.23.self_attn.o_proj.weight": "model.safetensors",
427
+ "model.layers.23.self_attn.q_norm.weight": "model.safetensors",
428
+ "model.layers.23.self_attn.q_proj.biases": "model.safetensors",
429
+ "model.layers.23.self_attn.q_proj.scales": "model.safetensors",
430
+ "model.layers.23.self_attn.q_proj.weight": "model.safetensors",
431
+ "model.layers.23.self_attn.v_proj.biases": "model.safetensors",
432
+ "model.layers.23.self_attn.v_proj.scales": "model.safetensors",
433
+ "model.layers.23.self_attn.v_proj.weight": "model.safetensors",
434
+ "model.layers.24.input_layernorm.weight": "model.safetensors",
435
+ "model.layers.24.mlp.down_proj.biases": "model.safetensors",
436
+ "model.layers.24.mlp.down_proj.scales": "model.safetensors",
437
+ "model.layers.24.mlp.down_proj.weight": "model.safetensors",
438
+ "model.layers.24.mlp.gate_proj.biases": "model.safetensors",
439
+ "model.layers.24.mlp.gate_proj.scales": "model.safetensors",
440
+ "model.layers.24.mlp.gate_proj.weight": "model.safetensors",
441
+ "model.layers.24.mlp.up_proj.biases": "model.safetensors",
442
+ "model.layers.24.mlp.up_proj.scales": "model.safetensors",
443
+ "model.layers.24.mlp.up_proj.weight": "model.safetensors",
444
+ "model.layers.24.post_attention_layernorm.weight": "model.safetensors",
445
+ "model.layers.24.self_attn.k_norm.weight": "model.safetensors",
446
+ "model.layers.24.self_attn.k_proj.biases": "model.safetensors",
447
+ "model.layers.24.self_attn.k_proj.scales": "model.safetensors",
448
+ "model.layers.24.self_attn.k_proj.weight": "model.safetensors",
449
+ "model.layers.24.self_attn.o_proj.biases": "model.safetensors",
450
+ "model.layers.24.self_attn.o_proj.scales": "model.safetensors",
451
+ "model.layers.24.self_attn.o_proj.weight": "model.safetensors",
452
+ "model.layers.24.self_attn.q_norm.weight": "model.safetensors",
453
+ "model.layers.24.self_attn.q_proj.biases": "model.safetensors",
454
+ "model.layers.24.self_attn.q_proj.scales": "model.safetensors",
455
+ "model.layers.24.self_attn.q_proj.weight": "model.safetensors",
456
+ "model.layers.24.self_attn.v_proj.biases": "model.safetensors",
457
+ "model.layers.24.self_attn.v_proj.scales": "model.safetensors",
458
+ "model.layers.24.self_attn.v_proj.weight": "model.safetensors",
459
+ "model.layers.25.input_layernorm.weight": "model.safetensors",
460
+ "model.layers.25.mlp.down_proj.biases": "model.safetensors",
461
+ "model.layers.25.mlp.down_proj.scales": "model.safetensors",
462
+ "model.layers.25.mlp.down_proj.weight": "model.safetensors",
463
+ "model.layers.25.mlp.gate_proj.biases": "model.safetensors",
464
+ "model.layers.25.mlp.gate_proj.scales": "model.safetensors",
465
+ "model.layers.25.mlp.gate_proj.weight": "model.safetensors",
466
+ "model.layers.25.mlp.up_proj.biases": "model.safetensors",
467
+ "model.layers.25.mlp.up_proj.scales": "model.safetensors",
468
+ "model.layers.25.mlp.up_proj.weight": "model.safetensors",
469
+ "model.layers.25.post_attention_layernorm.weight": "model.safetensors",
470
+ "model.layers.25.self_attn.k_norm.weight": "model.safetensors",
471
+ "model.layers.25.self_attn.k_proj.biases": "model.safetensors",
472
+ "model.layers.25.self_attn.k_proj.scales": "model.safetensors",
473
+ "model.layers.25.self_attn.k_proj.weight": "model.safetensors",
474
+ "model.layers.25.self_attn.o_proj.biases": "model.safetensors",
475
+ "model.layers.25.self_attn.o_proj.scales": "model.safetensors",
476
+ "model.layers.25.self_attn.o_proj.weight": "model.safetensors",
477
+ "model.layers.25.self_attn.q_norm.weight": "model.safetensors",
478
+ "model.layers.25.self_attn.q_proj.biases": "model.safetensors",
479
+ "model.layers.25.self_attn.q_proj.scales": "model.safetensors",
480
+ "model.layers.25.self_attn.q_proj.weight": "model.safetensors",
481
+ "model.layers.25.self_attn.v_proj.biases": "model.safetensors",
482
+ "model.layers.25.self_attn.v_proj.scales": "model.safetensors",
483
+ "model.layers.25.self_attn.v_proj.weight": "model.safetensors",
484
+ "model.layers.26.input_layernorm.weight": "model.safetensors",
485
+ "model.layers.26.mlp.down_proj.biases": "model.safetensors",
486
+ "model.layers.26.mlp.down_proj.scales": "model.safetensors",
487
+ "model.layers.26.mlp.down_proj.weight": "model.safetensors",
488
+ "model.layers.26.mlp.gate_proj.biases": "model.safetensors",
489
+ "model.layers.26.mlp.gate_proj.scales": "model.safetensors",
490
+ "model.layers.26.mlp.gate_proj.weight": "model.safetensors",
491
+ "model.layers.26.mlp.up_proj.biases": "model.safetensors",
492
+ "model.layers.26.mlp.up_proj.scales": "model.safetensors",
493
+ "model.layers.26.mlp.up_proj.weight": "model.safetensors",
494
+ "model.layers.26.post_attention_layernorm.weight": "model.safetensors",
495
+ "model.layers.26.self_attn.k_norm.weight": "model.safetensors",
496
+ "model.layers.26.self_attn.k_proj.biases": "model.safetensors",
497
+ "model.layers.26.self_attn.k_proj.scales": "model.safetensors",
498
+ "model.layers.26.self_attn.k_proj.weight": "model.safetensors",
499
+ "model.layers.26.self_attn.o_proj.biases": "model.safetensors",
500
+ "model.layers.26.self_attn.o_proj.scales": "model.safetensors",
501
+ "model.layers.26.self_attn.o_proj.weight": "model.safetensors",
502
+ "model.layers.26.self_attn.q_norm.weight": "model.safetensors",
503
+ "model.layers.26.self_attn.q_proj.biases": "model.safetensors",
504
+ "model.layers.26.self_attn.q_proj.scales": "model.safetensors",
505
+ "model.layers.26.self_attn.q_proj.weight": "model.safetensors",
506
+ "model.layers.26.self_attn.v_proj.biases": "model.safetensors",
507
+ "model.layers.26.self_attn.v_proj.scales": "model.safetensors",
508
+ "model.layers.26.self_attn.v_proj.weight": "model.safetensors",
509
+ "model.layers.27.input_layernorm.weight": "model.safetensors",
510
+ "model.layers.27.mlp.down_proj.biases": "model.safetensors",
511
+ "model.layers.27.mlp.down_proj.scales": "model.safetensors",
512
+ "model.layers.27.mlp.down_proj.weight": "model.safetensors",
513
+ "model.layers.27.mlp.gate_proj.biases": "model.safetensors",
514
+ "model.layers.27.mlp.gate_proj.scales": "model.safetensors",
515
+ "model.layers.27.mlp.gate_proj.weight": "model.safetensors",
516
+ "model.layers.27.mlp.up_proj.biases": "model.safetensors",
517
+ "model.layers.27.mlp.up_proj.scales": "model.safetensors",
518
+ "model.layers.27.mlp.up_proj.weight": "model.safetensors",
519
+ "model.layers.27.post_attention_layernorm.weight": "model.safetensors",
520
+ "model.layers.27.self_attn.k_norm.weight": "model.safetensors",
521
+ "model.layers.27.self_attn.k_proj.biases": "model.safetensors",
522
+ "model.layers.27.self_attn.k_proj.scales": "model.safetensors",
523
+ "model.layers.27.self_attn.k_proj.weight": "model.safetensors",
524
+ "model.layers.27.self_attn.o_proj.biases": "model.safetensors",
525
+ "model.layers.27.self_attn.o_proj.scales": "model.safetensors",
526
+ "model.layers.27.self_attn.o_proj.weight": "model.safetensors",
527
+ "model.layers.27.self_attn.q_norm.weight": "model.safetensors",
528
+ "model.layers.27.self_attn.q_proj.biases": "model.safetensors",
529
+ "model.layers.27.self_attn.q_proj.scales": "model.safetensors",
530
+ "model.layers.27.self_attn.q_proj.weight": "model.safetensors",
531
+ "model.layers.27.self_attn.v_proj.biases": "model.safetensors",
532
+ "model.layers.27.self_attn.v_proj.scales": "model.safetensors",
533
+ "model.layers.27.self_attn.v_proj.weight": "model.safetensors",
534
+ "model.layers.28.input_layernorm.weight": "model.safetensors",
535
+ "model.layers.28.mlp.down_proj.biases": "model.safetensors",
536
+ "model.layers.28.mlp.down_proj.scales": "model.safetensors",
537
+ "model.layers.28.mlp.down_proj.weight": "model.safetensors",
538
+ "model.layers.28.mlp.gate_proj.biases": "model.safetensors",
539
+ "model.layers.28.mlp.gate_proj.scales": "model.safetensors",
540
+ "model.layers.28.mlp.gate_proj.weight": "model.safetensors",
541
+ "model.layers.28.mlp.up_proj.biases": "model.safetensors",
542
+ "model.layers.28.mlp.up_proj.scales": "model.safetensors",
543
+ "model.layers.28.mlp.up_proj.weight": "model.safetensors",
544
+ "model.layers.28.post_attention_layernorm.weight": "model.safetensors",
545
+ "model.layers.28.self_attn.k_norm.weight": "model.safetensors",
546
+ "model.layers.28.self_attn.k_proj.biases": "model.safetensors",
547
+ "model.layers.28.self_attn.k_proj.scales": "model.safetensors",
548
+ "model.layers.28.self_attn.k_proj.weight": "model.safetensors",
549
+ "model.layers.28.self_attn.o_proj.biases": "model.safetensors",
550
+ "model.layers.28.self_attn.o_proj.scales": "model.safetensors",
551
+ "model.layers.28.self_attn.o_proj.weight": "model.safetensors",
552
+ "model.layers.28.self_attn.q_norm.weight": "model.safetensors",
553
+ "model.layers.28.self_attn.q_proj.biases": "model.safetensors",
554
+ "model.layers.28.self_attn.q_proj.scales": "model.safetensors",
555
+ "model.layers.28.self_attn.q_proj.weight": "model.safetensors",
556
+ "model.layers.28.self_attn.v_proj.biases": "model.safetensors",
557
+ "model.layers.28.self_attn.v_proj.scales": "model.safetensors",
558
+ "model.layers.28.self_attn.v_proj.weight": "model.safetensors",
559
+ "model.layers.29.input_layernorm.weight": "model.safetensors",
560
+ "model.layers.29.mlp.down_proj.biases": "model.safetensors",
561
+ "model.layers.29.mlp.down_proj.scales": "model.safetensors",
562
+ "model.layers.29.mlp.down_proj.weight": "model.safetensors",
563
+ "model.layers.29.mlp.gate_proj.biases": "model.safetensors",
564
+ "model.layers.29.mlp.gate_proj.scales": "model.safetensors",
565
+ "model.layers.29.mlp.gate_proj.weight": "model.safetensors",
566
+ "model.layers.29.mlp.up_proj.biases": "model.safetensors",
567
+ "model.layers.29.mlp.up_proj.scales": "model.safetensors",
568
+ "model.layers.29.mlp.up_proj.weight": "model.safetensors",
569
+ "model.layers.29.post_attention_layernorm.weight": "model.safetensors",
570
+ "model.layers.29.self_attn.k_norm.weight": "model.safetensors",
571
+ "model.layers.29.self_attn.k_proj.biases": "model.safetensors",
572
+ "model.layers.29.self_attn.k_proj.scales": "model.safetensors",
573
+ "model.layers.29.self_attn.k_proj.weight": "model.safetensors",
574
+ "model.layers.29.self_attn.o_proj.biases": "model.safetensors",
575
+ "model.layers.29.self_attn.o_proj.scales": "model.safetensors",
576
+ "model.layers.29.self_attn.o_proj.weight": "model.safetensors",
577
+ "model.layers.29.self_attn.q_norm.weight": "model.safetensors",
578
+ "model.layers.29.self_attn.q_proj.biases": "model.safetensors",
579
+ "model.layers.29.self_attn.q_proj.scales": "model.safetensors",
580
+ "model.layers.29.self_attn.q_proj.weight": "model.safetensors",
581
+ "model.layers.29.self_attn.v_proj.biases": "model.safetensors",
582
+ "model.layers.29.self_attn.v_proj.scales": "model.safetensors",
583
+ "model.layers.29.self_attn.v_proj.weight": "model.safetensors",
584
+ "model.layers.3.input_layernorm.weight": "model.safetensors",
585
+ "model.layers.3.mlp.down_proj.biases": "model.safetensors",
586
+ "model.layers.3.mlp.down_proj.scales": "model.safetensors",
587
+ "model.layers.3.mlp.down_proj.weight": "model.safetensors",
588
+ "model.layers.3.mlp.gate_proj.biases": "model.safetensors",
589
+ "model.layers.3.mlp.gate_proj.scales": "model.safetensors",
590
+ "model.layers.3.mlp.gate_proj.weight": "model.safetensors",
591
+ "model.layers.3.mlp.up_proj.biases": "model.safetensors",
592
+ "model.layers.3.mlp.up_proj.scales": "model.safetensors",
593
+ "model.layers.3.mlp.up_proj.weight": "model.safetensors",
594
+ "model.layers.3.post_attention_layernorm.weight": "model.safetensors",
595
+ "model.layers.3.self_attn.k_norm.weight": "model.safetensors",
596
+ "model.layers.3.self_attn.k_proj.biases": "model.safetensors",
597
+ "model.layers.3.self_attn.k_proj.scales": "model.safetensors",
598
+ "model.layers.3.self_attn.k_proj.weight": "model.safetensors",
599
+ "model.layers.3.self_attn.o_proj.biases": "model.safetensors",
600
+ "model.layers.3.self_attn.o_proj.scales": "model.safetensors",
601
+ "model.layers.3.self_attn.o_proj.weight": "model.safetensors",
602
+ "model.layers.3.self_attn.q_norm.weight": "model.safetensors",
603
+ "model.layers.3.self_attn.q_proj.biases": "model.safetensors",
604
+ "model.layers.3.self_attn.q_proj.scales": "model.safetensors",
605
+ "model.layers.3.self_attn.q_proj.weight": "model.safetensors",
606
+ "model.layers.3.self_attn.v_proj.biases": "model.safetensors",
607
+ "model.layers.3.self_attn.v_proj.scales": "model.safetensors",
608
+ "model.layers.3.self_attn.v_proj.weight": "model.safetensors",
609
+ "model.layers.30.input_layernorm.weight": "model.safetensors",
610
+ "model.layers.30.mlp.down_proj.biases": "model.safetensors",
611
+ "model.layers.30.mlp.down_proj.scales": "model.safetensors",
612
+ "model.layers.30.mlp.down_proj.weight": "model.safetensors",
613
+ "model.layers.30.mlp.gate_proj.biases": "model.safetensors",
614
+ "model.layers.30.mlp.gate_proj.scales": "model.safetensors",
615
+ "model.layers.30.mlp.gate_proj.weight": "model.safetensors",
616
+ "model.layers.30.mlp.up_proj.biases": "model.safetensors",
617
+ "model.layers.30.mlp.up_proj.scales": "model.safetensors",
618
+ "model.layers.30.mlp.up_proj.weight": "model.safetensors",
619
+ "model.layers.30.post_attention_layernorm.weight": "model.safetensors",
620
+ "model.layers.30.self_attn.k_norm.weight": "model.safetensors",
621
+ "model.layers.30.self_attn.k_proj.biases": "model.safetensors",
622
+ "model.layers.30.self_attn.k_proj.scales": "model.safetensors",
623
+ "model.layers.30.self_attn.k_proj.weight": "model.safetensors",
624
+ "model.layers.30.self_attn.o_proj.biases": "model.safetensors",
625
+ "model.layers.30.self_attn.o_proj.scales": "model.safetensors",
626
+ "model.layers.30.self_attn.o_proj.weight": "model.safetensors",
627
+ "model.layers.30.self_attn.q_norm.weight": "model.safetensors",
628
+ "model.layers.30.self_attn.q_proj.biases": "model.safetensors",
629
+ "model.layers.30.self_attn.q_proj.scales": "model.safetensors",
630
+ "model.layers.30.self_attn.q_proj.weight": "model.safetensors",
631
+ "model.layers.30.self_attn.v_proj.biases": "model.safetensors",
632
+ "model.layers.30.self_attn.v_proj.scales": "model.safetensors",
633
+ "model.layers.30.self_attn.v_proj.weight": "model.safetensors",
634
+ "model.layers.31.input_layernorm.weight": "model.safetensors",
635
+ "model.layers.31.mlp.down_proj.biases": "model.safetensors",
636
+ "model.layers.31.mlp.down_proj.scales": "model.safetensors",
637
+ "model.layers.31.mlp.down_proj.weight": "model.safetensors",
638
+ "model.layers.31.mlp.gate_proj.biases": "model.safetensors",
639
+ "model.layers.31.mlp.gate_proj.scales": "model.safetensors",
640
+ "model.layers.31.mlp.gate_proj.weight": "model.safetensors",
641
+ "model.layers.31.mlp.up_proj.biases": "model.safetensors",
642
+ "model.layers.31.mlp.up_proj.scales": "model.safetensors",
643
+ "model.layers.31.mlp.up_proj.weight": "model.safetensors",
644
+ "model.layers.31.post_attention_layernorm.weight": "model.safetensors",
645
+ "model.layers.31.self_attn.k_norm.weight": "model.safetensors",
646
+ "model.layers.31.self_attn.k_proj.biases": "model.safetensors",
647
+ "model.layers.31.self_attn.k_proj.scales": "model.safetensors",
648
+ "model.layers.31.self_attn.k_proj.weight": "model.safetensors",
649
+ "model.layers.31.self_attn.o_proj.biases": "model.safetensors",
650
+ "model.layers.31.self_attn.o_proj.scales": "model.safetensors",
651
+ "model.layers.31.self_attn.o_proj.weight": "model.safetensors",
652
+ "model.layers.31.self_attn.q_norm.weight": "model.safetensors",
653
+ "model.layers.31.self_attn.q_proj.biases": "model.safetensors",
654
+ "model.layers.31.self_attn.q_proj.scales": "model.safetensors",
655
+ "model.layers.31.self_attn.q_proj.weight": "model.safetensors",
656
+ "model.layers.31.self_attn.v_proj.biases": "model.safetensors",
657
+ "model.layers.31.self_attn.v_proj.scales": "model.safetensors",
658
+ "model.layers.31.self_attn.v_proj.weight": "model.safetensors",
659
+ "model.layers.32.input_layernorm.weight": "model.safetensors",
660
+ "model.layers.32.mlp.down_proj.biases": "model.safetensors",
661
+ "model.layers.32.mlp.down_proj.scales": "model.safetensors",
662
+ "model.layers.32.mlp.down_proj.weight": "model.safetensors",
663
+ "model.layers.32.mlp.gate_proj.biases": "model.safetensors",
664
+ "model.layers.32.mlp.gate_proj.scales": "model.safetensors",
665
+ "model.layers.32.mlp.gate_proj.weight": "model.safetensors",
666
+ "model.layers.32.mlp.up_proj.biases": "model.safetensors",
667
+ "model.layers.32.mlp.up_proj.scales": "model.safetensors",
668
+ "model.layers.32.mlp.up_proj.weight": "model.safetensors",
669
+ "model.layers.32.post_attention_layernorm.weight": "model.safetensors",
670
+ "model.layers.32.self_attn.k_norm.weight": "model.safetensors",
671
+ "model.layers.32.self_attn.k_proj.biases": "model.safetensors",
672
+ "model.layers.32.self_attn.k_proj.scales": "model.safetensors",
673
+ "model.layers.32.self_attn.k_proj.weight": "model.safetensors",
674
+ "model.layers.32.self_attn.o_proj.biases": "model.safetensors",
675
+ "model.layers.32.self_attn.o_proj.scales": "model.safetensors",
676
+ "model.layers.32.self_attn.o_proj.weight": "model.safetensors",
677
+ "model.layers.32.self_attn.q_norm.weight": "model.safetensors",
678
+ "model.layers.32.self_attn.q_proj.biases": "model.safetensors",
679
+ "model.layers.32.self_attn.q_proj.scales": "model.safetensors",
680
+ "model.layers.32.self_attn.q_proj.weight": "model.safetensors",
681
+ "model.layers.32.self_attn.v_proj.biases": "model.safetensors",
682
+ "model.layers.32.self_attn.v_proj.scales": "model.safetensors",
683
+ "model.layers.32.self_attn.v_proj.weight": "model.safetensors",
684
+ "model.layers.33.input_layernorm.weight": "model.safetensors",
685
+ "model.layers.33.mlp.down_proj.biases": "model.safetensors",
686
+ "model.layers.33.mlp.down_proj.scales": "model.safetensors",
687
+ "model.layers.33.mlp.down_proj.weight": "model.safetensors",
688
+ "model.layers.33.mlp.gate_proj.biases": "model.safetensors",
689
+ "model.layers.33.mlp.gate_proj.scales": "model.safetensors",
690
+ "model.layers.33.mlp.gate_proj.weight": "model.safetensors",
691
+ "model.layers.33.mlp.up_proj.biases": "model.safetensors",
692
+ "model.layers.33.mlp.up_proj.scales": "model.safetensors",
693
+ "model.layers.33.mlp.up_proj.weight": "model.safetensors",
694
+ "model.layers.33.post_attention_layernorm.weight": "model.safetensors",
695
+ "model.layers.33.self_attn.k_norm.weight": "model.safetensors",
696
+ "model.layers.33.self_attn.k_proj.biases": "model.safetensors",
697
+ "model.layers.33.self_attn.k_proj.scales": "model.safetensors",
698
+ "model.layers.33.self_attn.k_proj.weight": "model.safetensors",
699
+ "model.layers.33.self_attn.o_proj.biases": "model.safetensors",
700
+ "model.layers.33.self_attn.o_proj.scales": "model.safetensors",
701
+ "model.layers.33.self_attn.o_proj.weight": "model.safetensors",
702
+ "model.layers.33.self_attn.q_norm.weight": "model.safetensors",
703
+ "model.layers.33.self_attn.q_proj.biases": "model.safetensors",
704
+ "model.layers.33.self_attn.q_proj.scales": "model.safetensors",
705
+ "model.layers.33.self_attn.q_proj.weight": "model.safetensors",
706
+ "model.layers.33.self_attn.v_proj.biases": "model.safetensors",
707
+ "model.layers.33.self_attn.v_proj.scales": "model.safetensors",
708
+ "model.layers.33.self_attn.v_proj.weight": "model.safetensors",
709
+ "model.layers.34.input_layernorm.weight": "model.safetensors",
710
+ "model.layers.34.mlp.down_proj.biases": "model.safetensors",
711
+ "model.layers.34.mlp.down_proj.scales": "model.safetensors",
712
+ "model.layers.34.mlp.down_proj.weight": "model.safetensors",
713
+ "model.layers.34.mlp.gate_proj.biases": "model.safetensors",
714
+ "model.layers.34.mlp.gate_proj.scales": "model.safetensors",
715
+ "model.layers.34.mlp.gate_proj.weight": "model.safetensors",
716
+ "model.layers.34.mlp.up_proj.biases": "model.safetensors",
717
+ "model.layers.34.mlp.up_proj.scales": "model.safetensors",
718
+ "model.layers.34.mlp.up_proj.weight": "model.safetensors",
719
+ "model.layers.34.post_attention_layernorm.weight": "model.safetensors",
720
+ "model.layers.34.self_attn.k_norm.weight": "model.safetensors",
721
+ "model.layers.34.self_attn.k_proj.biases": "model.safetensors",
722
+ "model.layers.34.self_attn.k_proj.scales": "model.safetensors",
723
+ "model.layers.34.self_attn.k_proj.weight": "model.safetensors",
724
+ "model.layers.34.self_attn.o_proj.biases": "model.safetensors",
725
+ "model.layers.34.self_attn.o_proj.scales": "model.safetensors",
726
+ "model.layers.34.self_attn.o_proj.weight": "model.safetensors",
727
+ "model.layers.34.self_attn.q_norm.weight": "model.safetensors",
728
+ "model.layers.34.self_attn.q_proj.biases": "model.safetensors",
729
+ "model.layers.34.self_attn.q_proj.scales": "model.safetensors",
730
+ "model.layers.34.self_attn.q_proj.weight": "model.safetensors",
731
+ "model.layers.34.self_attn.v_proj.biases": "model.safetensors",
732
+ "model.layers.34.self_attn.v_proj.scales": "model.safetensors",
733
+ "model.layers.34.self_attn.v_proj.weight": "model.safetensors",
734
+ "model.layers.35.input_layernorm.weight": "model.safetensors",
735
+ "model.layers.35.mlp.down_proj.biases": "model.safetensors",
736
+ "model.layers.35.mlp.down_proj.scales": "model.safetensors",
737
+ "model.layers.35.mlp.down_proj.weight": "model.safetensors",
738
+ "model.layers.35.mlp.gate_proj.biases": "model.safetensors",
739
+ "model.layers.35.mlp.gate_proj.scales": "model.safetensors",
740
+ "model.layers.35.mlp.gate_proj.weight": "model.safetensors",
741
+ "model.layers.35.mlp.up_proj.biases": "model.safetensors",
742
+ "model.layers.35.mlp.up_proj.scales": "model.safetensors",
743
+ "model.layers.35.mlp.up_proj.weight": "model.safetensors",
744
+ "model.layers.35.post_attention_layernorm.weight": "model.safetensors",
745
+ "model.layers.35.self_attn.k_norm.weight": "model.safetensors",
746
+ "model.layers.35.self_attn.k_proj.biases": "model.safetensors",
747
+ "model.layers.35.self_attn.k_proj.scales": "model.safetensors",
748
+ "model.layers.35.self_attn.k_proj.weight": "model.safetensors",
749
+ "model.layers.35.self_attn.o_proj.biases": "model.safetensors",
750
+ "model.layers.35.self_attn.o_proj.scales": "model.safetensors",
751
+ "model.layers.35.self_attn.o_proj.weight": "model.safetensors",
752
+ "model.layers.35.self_attn.q_norm.weight": "model.safetensors",
753
+ "model.layers.35.self_attn.q_proj.biases": "model.safetensors",
754
+ "model.layers.35.self_attn.q_proj.scales": "model.safetensors",
755
+ "model.layers.35.self_attn.q_proj.weight": "model.safetensors",
756
+ "model.layers.35.self_attn.v_proj.biases": "model.safetensors",
757
+ "model.layers.35.self_attn.v_proj.scales": "model.safetensors",
758
+ "model.layers.35.self_attn.v_proj.weight": "model.safetensors",
759
+ "model.layers.4.input_layernorm.weight": "model.safetensors",
760
+ "model.layers.4.mlp.down_proj.biases": "model.safetensors",
761
+ "model.layers.4.mlp.down_proj.scales": "model.safetensors",
762
+ "model.layers.4.mlp.down_proj.weight": "model.safetensors",
763
+ "model.layers.4.mlp.gate_proj.biases": "model.safetensors",
764
+ "model.layers.4.mlp.gate_proj.scales": "model.safetensors",
765
+ "model.layers.4.mlp.gate_proj.weight": "model.safetensors",
766
+ "model.layers.4.mlp.up_proj.biases": "model.safetensors",
767
+ "model.layers.4.mlp.up_proj.scales": "model.safetensors",
768
+ "model.layers.4.mlp.up_proj.weight": "model.safetensors",
769
+ "model.layers.4.post_attention_layernorm.weight": "model.safetensors",
770
+ "model.layers.4.self_attn.k_norm.weight": "model.safetensors",
771
+ "model.layers.4.self_attn.k_proj.biases": "model.safetensors",
772
+ "model.layers.4.self_attn.k_proj.scales": "model.safetensors",
773
+ "model.layers.4.self_attn.k_proj.weight": "model.safetensors",
774
+ "model.layers.4.self_attn.o_proj.biases": "model.safetensors",
775
+ "model.layers.4.self_attn.o_proj.scales": "model.safetensors",
776
+ "model.layers.4.self_attn.o_proj.weight": "model.safetensors",
777
+ "model.layers.4.self_attn.q_norm.weight": "model.safetensors",
778
+ "model.layers.4.self_attn.q_proj.biases": "model.safetensors",
779
+ "model.layers.4.self_attn.q_proj.scales": "model.safetensors",
780
+ "model.layers.4.self_attn.q_proj.weight": "model.safetensors",
781
+ "model.layers.4.self_attn.v_proj.biases": "model.safetensors",
782
+ "model.layers.4.self_attn.v_proj.scales": "model.safetensors",
783
+ "model.layers.4.self_attn.v_proj.weight": "model.safetensors",
784
+ "model.layers.5.input_layernorm.weight": "model.safetensors",
785
+ "model.layers.5.mlp.down_proj.biases": "model.safetensors",
786
+ "model.layers.5.mlp.down_proj.scales": "model.safetensors",
787
+ "model.layers.5.mlp.down_proj.weight": "model.safetensors",
788
+ "model.layers.5.mlp.gate_proj.biases": "model.safetensors",
789
+ "model.layers.5.mlp.gate_proj.scales": "model.safetensors",
790
+ "model.layers.5.mlp.gate_proj.weight": "model.safetensors",
791
+ "model.layers.5.mlp.up_proj.biases": "model.safetensors",
792
+ "model.layers.5.mlp.up_proj.scales": "model.safetensors",
793
+ "model.layers.5.mlp.up_proj.weight": "model.safetensors",
794
+ "model.layers.5.post_attention_layernorm.weight": "model.safetensors",
795
+ "model.layers.5.self_attn.k_norm.weight": "model.safetensors",
796
+ "model.layers.5.self_attn.k_proj.biases": "model.safetensors",
797
+ "model.layers.5.self_attn.k_proj.scales": "model.safetensors",
798
+ "model.layers.5.self_attn.k_proj.weight": "model.safetensors",
799
+ "model.layers.5.self_attn.o_proj.biases": "model.safetensors",
800
+ "model.layers.5.self_attn.o_proj.scales": "model.safetensors",
801
+ "model.layers.5.self_attn.o_proj.weight": "model.safetensors",
802
+ "model.layers.5.self_attn.q_norm.weight": "model.safetensors",
803
+ "model.layers.5.self_attn.q_proj.biases": "model.safetensors",
804
+ "model.layers.5.self_attn.q_proj.scales": "model.safetensors",
805
+ "model.layers.5.self_attn.q_proj.weight": "model.safetensors",
806
+ "model.layers.5.self_attn.v_proj.biases": "model.safetensors",
807
+ "model.layers.5.self_attn.v_proj.scales": "model.safetensors",
808
+ "model.layers.5.self_attn.v_proj.weight": "model.safetensors",
809
+ "model.layers.6.input_layernorm.weight": "model.safetensors",
810
+ "model.layers.6.mlp.down_proj.biases": "model.safetensors",
811
+ "model.layers.6.mlp.down_proj.scales": "model.safetensors",
812
+ "model.layers.6.mlp.down_proj.weight": "model.safetensors",
813
+ "model.layers.6.mlp.gate_proj.biases": "model.safetensors",
814
+ "model.layers.6.mlp.gate_proj.scales": "model.safetensors",
815
+ "model.layers.6.mlp.gate_proj.weight": "model.safetensors",
816
+ "model.layers.6.mlp.up_proj.biases": "model.safetensors",
817
+ "model.layers.6.mlp.up_proj.scales": "model.safetensors",
818
+ "model.layers.6.mlp.up_proj.weight": "model.safetensors",
819
+ "model.layers.6.post_attention_layernorm.weight": "model.safetensors",
820
+ "model.layers.6.self_attn.k_norm.weight": "model.safetensors",
821
+ "model.layers.6.self_attn.k_proj.biases": "model.safetensors",
822
+ "model.layers.6.self_attn.k_proj.scales": "model.safetensors",
823
+ "model.layers.6.self_attn.k_proj.weight": "model.safetensors",
824
+ "model.layers.6.self_attn.o_proj.biases": "model.safetensors",
825
+ "model.layers.6.self_attn.o_proj.scales": "model.safetensors",
826
+ "model.layers.6.self_attn.o_proj.weight": "model.safetensors",
827
+ "model.layers.6.self_attn.q_norm.weight": "model.safetensors",
828
+ "model.layers.6.self_attn.q_proj.biases": "model.safetensors",
829
+ "model.layers.6.self_attn.q_proj.scales": "model.safetensors",
830
+ "model.layers.6.self_attn.q_proj.weight": "model.safetensors",
831
+ "model.layers.6.self_attn.v_proj.biases": "model.safetensors",
832
+ "model.layers.6.self_attn.v_proj.scales": "model.safetensors",
833
+ "model.layers.6.self_attn.v_proj.weight": "model.safetensors",
834
+ "model.layers.7.input_layernorm.weight": "model.safetensors",
835
+ "model.layers.7.mlp.down_proj.biases": "model.safetensors",
836
+ "model.layers.7.mlp.down_proj.scales": "model.safetensors",
837
+ "model.layers.7.mlp.down_proj.weight": "model.safetensors",
838
+ "model.layers.7.mlp.gate_proj.biases": "model.safetensors",
839
+ "model.layers.7.mlp.gate_proj.scales": "model.safetensors",
840
+ "model.layers.7.mlp.gate_proj.weight": "model.safetensors",
841
+ "model.layers.7.mlp.up_proj.biases": "model.safetensors",
842
+ "model.layers.7.mlp.up_proj.scales": "model.safetensors",
843
+ "model.layers.7.mlp.up_proj.weight": "model.safetensors",
844
+ "model.layers.7.post_attention_layernorm.weight": "model.safetensors",
845
+ "model.layers.7.self_attn.k_norm.weight": "model.safetensors",
846
+ "model.layers.7.self_attn.k_proj.biases": "model.safetensors",
847
+ "model.layers.7.self_attn.k_proj.scales": "model.safetensors",
848
+ "model.layers.7.self_attn.k_proj.weight": "model.safetensors",
849
+ "model.layers.7.self_attn.o_proj.biases": "model.safetensors",
850
+ "model.layers.7.self_attn.o_proj.scales": "model.safetensors",
851
+ "model.layers.7.self_attn.o_proj.weight": "model.safetensors",
852
+ "model.layers.7.self_attn.q_norm.weight": "model.safetensors",
853
+ "model.layers.7.self_attn.q_proj.biases": "model.safetensors",
854
+ "model.layers.7.self_attn.q_proj.scales": "model.safetensors",
855
+ "model.layers.7.self_attn.q_proj.weight": "model.safetensors",
856
+ "model.layers.7.self_attn.v_proj.biases": "model.safetensors",
857
+ "model.layers.7.self_attn.v_proj.scales": "model.safetensors",
858
+ "model.layers.7.self_attn.v_proj.weight": "model.safetensors",
859
+ "model.layers.8.input_layernorm.weight": "model.safetensors",
860
+ "model.layers.8.mlp.down_proj.biases": "model.safetensors",
861
+ "model.layers.8.mlp.down_proj.scales": "model.safetensors",
862
+ "model.layers.8.mlp.down_proj.weight": "model.safetensors",
863
+ "model.layers.8.mlp.gate_proj.biases": "model.safetensors",
864
+ "model.layers.8.mlp.gate_proj.scales": "model.safetensors",
865
+ "model.layers.8.mlp.gate_proj.weight": "model.safetensors",
866
+ "model.layers.8.mlp.up_proj.biases": "model.safetensors",
867
+ "model.layers.8.mlp.up_proj.scales": "model.safetensors",
868
+ "model.layers.8.mlp.up_proj.weight": "model.safetensors",
869
+ "model.layers.8.post_attention_layernorm.weight": "model.safetensors",
870
+ "model.layers.8.self_attn.k_norm.weight": "model.safetensors",
871
+ "model.layers.8.self_attn.k_proj.biases": "model.safetensors",
872
+ "model.layers.8.self_attn.k_proj.scales": "model.safetensors",
873
+ "model.layers.8.self_attn.k_proj.weight": "model.safetensors",
874
+ "model.layers.8.self_attn.o_proj.biases": "model.safetensors",
875
+ "model.layers.8.self_attn.o_proj.scales": "model.safetensors",
876
+ "model.layers.8.self_attn.o_proj.weight": "model.safetensors",
877
+ "model.layers.8.self_attn.q_norm.weight": "model.safetensors",
878
+ "model.layers.8.self_attn.q_proj.biases": "model.safetensors",
879
+ "model.layers.8.self_attn.q_proj.scales": "model.safetensors",
880
+ "model.layers.8.self_attn.q_proj.weight": "model.safetensors",
881
+ "model.layers.8.self_attn.v_proj.biases": "model.safetensors",
882
+ "model.layers.8.self_attn.v_proj.scales": "model.safetensors",
883
+ "model.layers.8.self_attn.v_proj.weight": "model.safetensors",
884
+ "model.layers.9.input_layernorm.weight": "model.safetensors",
885
+ "model.layers.9.mlp.down_proj.biases": "model.safetensors",
886
+ "model.layers.9.mlp.down_proj.scales": "model.safetensors",
887
+ "model.layers.9.mlp.down_proj.weight": "model.safetensors",
888
+ "model.layers.9.mlp.gate_proj.biases": "model.safetensors",
889
+ "model.layers.9.mlp.gate_proj.scales": "model.safetensors",
890
+ "model.layers.9.mlp.gate_proj.weight": "model.safetensors",
891
+ "model.layers.9.mlp.up_proj.biases": "model.safetensors",
892
+ "model.layers.9.mlp.up_proj.scales": "model.safetensors",
893
+ "model.layers.9.mlp.up_proj.weight": "model.safetensors",
894
+ "model.layers.9.post_attention_layernorm.weight": "model.safetensors",
895
+ "model.layers.9.self_attn.k_norm.weight": "model.safetensors",
896
+ "model.layers.9.self_attn.k_proj.biases": "model.safetensors",
897
+ "model.layers.9.self_attn.k_proj.scales": "model.safetensors",
898
+ "model.layers.9.self_attn.k_proj.weight": "model.safetensors",
899
+ "model.layers.9.self_attn.o_proj.biases": "model.safetensors",
900
+ "model.layers.9.self_attn.o_proj.scales": "model.safetensors",
901
+ "model.layers.9.self_attn.o_proj.weight": "model.safetensors",
902
+ "model.layers.9.self_attn.q_norm.weight": "model.safetensors",
903
+ "model.layers.9.self_attn.q_proj.biases": "model.safetensors",
904
+ "model.layers.9.self_attn.q_proj.scales": "model.safetensors",
905
+ "model.layers.9.self_attn.q_proj.weight": "model.safetensors",
906
+ "model.layers.9.self_attn.v_proj.biases": "model.safetensors",
907
+ "model.layers.9.self_attn.v_proj.scales": "model.safetensors",
908
+ "model.layers.9.self_attn.v_proj.weight": "model.safetensors",
909
+ "model.norm.weight": "model.safetensors"
910
+ }
911
+ }
text_encoder-mlx-4bit/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
text_encoder-mlx-4bit/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
text_encoder-mlx-4bit/tokenizer_config.json ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# 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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|im_end|>",
233
+ "errors": "replace",
234
+ "extra_special_tokens": {},
235
+ "model_max_length": 131072,
236
+ "pad_token": "<|endoftext|>",
237
+ "split_special_tokens": false,
238
+ "tokenizer_class": "Qwen2Tokenizer",
239
+ "unk_token": null
240
+ }
text_encoder-mlx-4bit/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# 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>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\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" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if message.content is string %}
27
+ {%- set content = message.content %}
28
+ {%- else %}
29
+ {%- set content = '' %}
30
+ {%- endif %}
31
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
32
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
33
+ {%- elif message.role == "assistant" %}
34
+ {%- set reasoning_content = '' %}
35
+ {%- if message.reasoning_content is string %}
36
+ {%- set reasoning_content = message.reasoning_content %}
37
+ {%- else %}
38
+ {%- if '</think>' in content %}
39
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
40
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
41
+ {%- endif %}
42
+ {%- endif %}
43
+ {%- if loop.index0 > ns.last_query_index %}
44
+ {%- if loop.last or (not loop.last and reasoning_content) %}
45
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
46
+ {%- else %}
47
+ {{- '<|im_start|>' + message.role + '\n' + content }}
48
+ {%- endif %}
49
+ {%- else %}
50
+ {{- '<|im_start|>' + message.role + '\n' + content }}
51
+ {%- endif %}
52
+ {%- if message.tool_calls %}
53
+ {%- for tool_call in message.tool_calls %}
54
+ {%- if (loop.first and content) or (not loop.first) %}
55
+ {{- '\n' }}
56
+ {%- endif %}
57
+ {%- if tool_call.function %}
58
+ {%- set tool_call = tool_call.function %}
59
+ {%- endif %}
60
+ {{- '<tool_call>\n{"name": "' }}
61
+ {{- tool_call.name }}
62
+ {{- '", "arguments": ' }}
63
+ {%- if tool_call.arguments is string %}
64
+ {{- tool_call.arguments }}
65
+ {%- else %}
66
+ {{- tool_call.arguments | tojson }}
67
+ {%- endif %}
68
+ {{- '}\n</tool_call>' }}
69
+ {%- endfor %}
70
+ {%- endif %}
71
+ {{- '<|im_end|>\n' }}
72
+ {%- elif message.role == "tool" %}
73
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
74
+ {{- '<|im_start|>user' }}
75
+ {%- endif %}
76
+ {{- '\n<tool_response>\n' }}
77
+ {{- content }}
78
+ {{- '\n</tool_response>' }}
79
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
80
+ {{- '<|im_end|>\n' }}
81
+ {%- endif %}
82
+ {%- endif %}
83
+ {%- endfor %}
84
+ {%- if add_generation_prompt %}
85
+ {{- '<|im_start|>assistant\n' }}
86
+ {%- if enable_thinking is defined and enable_thinking is false %}
87
+ {{- '<think>\n\n</think>\n\n' }}
88
+ {%- endif %}
89
+ {%- endif %}
tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "clean_up_tokenization_spaces": false,
231
+ "eos_token": "<|im_end|>",
232
+ "errors": "replace",
233
+ "extra_special_tokens": {},
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "split_special_tokens": false,
237
+ "tokenizer_class": "Qwen2Tokenizer",
238
+ "unk_token": null
239
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
transformer-packed-mflux/config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Flux2Transformer2DModel",
3
+ "_diffusers_version": "0.37.1",
4
+ "_name_or_path": "black-forest-labs/FLUX.2-klein-4B",
5
+ "attention_head_dim": 128,
6
+ "axes_dims_rope": [
7
+ 32,
8
+ 32,
9
+ 32,
10
+ 32
11
+ ],
12
+ "enable_time_sign_embed": false,
13
+ "eps": 1e-06,
14
+ "guidance_embeds": false,
15
+ "in_channels": 128,
16
+ "joint_attention_dim": 7680,
17
+ "mlp_ratio": 3.0,
18
+ "musubi_block_swap_device": "cpu",
19
+ "musubi_blocks_to_swap": 0,
20
+ "num_attention_heads": 24,
21
+ "num_layers": 5,
22
+ "num_single_layers": 20,
23
+ "out_channels": null,
24
+ "patch_size": 1,
25
+ "rope_theta": 2000,
26
+ "timestep_guidance_channels": 256
27
+ }
transformer-packed-mflux/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b21737bdf02690b7d662907781c4dc8b8bf22a2c98b823b1ca3336f48371a84f
3
+ size 1425271472
transformer-packed-mflux/quantization_config.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "mlx-packed-affine",
3
+ "solver": "ternary",
4
+ "bits": 2,
5
+ "group_size": 128,
6
+ "scale_dtype": "bfloat16",
7
+ "skip_patterns": [
8
+ "proj_out",
9
+ "x_embedder",
10
+ "context_embedder",
11
+ "time_text_embed",
12
+ "time_guidance_embed",
13
+ "norm_out",
14
+ "double_stream_modulation_img",
15
+ "double_stream_modulation_txt",
16
+ "single_stream_modulation"
17
+ ],
18
+ "quantized_modules": [
19
+ "single_transformer_blocks.0.attn.to_out",
20
+ "single_transformer_blocks.0.attn.to_qkv_mlp_proj",
21
+ "single_transformer_blocks.1.attn.to_out",
22
+ "single_transformer_blocks.1.attn.to_qkv_mlp_proj",
23
+ "single_transformer_blocks.10.attn.to_out",
24
+ "single_transformer_blocks.10.attn.to_qkv_mlp_proj",
25
+ "single_transformer_blocks.11.attn.to_out",
26
+ "single_transformer_blocks.11.attn.to_qkv_mlp_proj",
27
+ "single_transformer_blocks.12.attn.to_out",
28
+ "single_transformer_blocks.12.attn.to_qkv_mlp_proj",
29
+ "single_transformer_blocks.13.attn.to_out",
30
+ "single_transformer_blocks.13.attn.to_qkv_mlp_proj",
31
+ "single_transformer_blocks.14.attn.to_out",
32
+ "single_transformer_blocks.14.attn.to_qkv_mlp_proj",
33
+ "single_transformer_blocks.15.attn.to_out",
34
+ "single_transformer_blocks.15.attn.to_qkv_mlp_proj",
35
+ "single_transformer_blocks.16.attn.to_out",
36
+ "single_transformer_blocks.16.attn.to_qkv_mlp_proj",
37
+ "single_transformer_blocks.17.attn.to_out",
38
+ "single_transformer_blocks.17.attn.to_qkv_mlp_proj",
39
+ "single_transformer_blocks.18.attn.to_out",
40
+ "single_transformer_blocks.18.attn.to_qkv_mlp_proj",
41
+ "single_transformer_blocks.19.attn.to_out",
42
+ "single_transformer_blocks.19.attn.to_qkv_mlp_proj",
43
+ "single_transformer_blocks.2.attn.to_out",
44
+ "single_transformer_blocks.2.attn.to_qkv_mlp_proj",
45
+ "single_transformer_blocks.3.attn.to_out",
46
+ "single_transformer_blocks.3.attn.to_qkv_mlp_proj",
47
+ "single_transformer_blocks.4.attn.to_out",
48
+ "single_transformer_blocks.4.attn.to_qkv_mlp_proj",
49
+ "single_transformer_blocks.5.attn.to_out",
50
+ "single_transformer_blocks.5.attn.to_qkv_mlp_proj",
51
+ "single_transformer_blocks.6.attn.to_out",
52
+ "single_transformer_blocks.6.attn.to_qkv_mlp_proj",
53
+ "single_transformer_blocks.7.attn.to_out",
54
+ "single_transformer_blocks.7.attn.to_qkv_mlp_proj",
55
+ "single_transformer_blocks.8.attn.to_out",
56
+ "single_transformer_blocks.8.attn.to_qkv_mlp_proj",
57
+ "single_transformer_blocks.9.attn.to_out",
58
+ "single_transformer_blocks.9.attn.to_qkv_mlp_proj",
59
+ "transformer_blocks.0.attn.add_k_proj",
60
+ "transformer_blocks.0.attn.add_q_proj",
61
+ "transformer_blocks.0.attn.add_v_proj",
62
+ "transformer_blocks.0.attn.to_add_out",
63
+ "transformer_blocks.0.attn.to_k",
64
+ "transformer_blocks.0.attn.to_out.0",
65
+ "transformer_blocks.0.attn.to_q",
66
+ "transformer_blocks.0.attn.to_v",
67
+ "transformer_blocks.0.ff.linear_in",
68
+ "transformer_blocks.0.ff.linear_out",
69
+ "transformer_blocks.0.ff_context.linear_in",
70
+ "transformer_blocks.0.ff_context.linear_out",
71
+ "transformer_blocks.1.attn.add_k_proj",
72
+ "transformer_blocks.1.attn.add_q_proj",
73
+ "transformer_blocks.1.attn.add_v_proj",
74
+ "transformer_blocks.1.attn.to_add_out",
75
+ "transformer_blocks.1.attn.to_k",
76
+ "transformer_blocks.1.attn.to_out.0",
77
+ "transformer_blocks.1.attn.to_q",
78
+ "transformer_blocks.1.attn.to_v",
79
+ "transformer_blocks.1.ff.linear_in",
80
+ "transformer_blocks.1.ff.linear_out",
81
+ "transformer_blocks.1.ff_context.linear_in",
82
+ "transformer_blocks.1.ff_context.linear_out",
83
+ "transformer_blocks.2.attn.add_k_proj",
84
+ "transformer_blocks.2.attn.add_q_proj",
85
+ "transformer_blocks.2.attn.add_v_proj",
86
+ "transformer_blocks.2.attn.to_add_out",
87
+ "transformer_blocks.2.attn.to_k",
88
+ "transformer_blocks.2.attn.to_out.0",
89
+ "transformer_blocks.2.attn.to_q",
90
+ "transformer_blocks.2.attn.to_v",
91
+ "transformer_blocks.2.ff.linear_in",
92
+ "transformer_blocks.2.ff.linear_out",
93
+ "transformer_blocks.2.ff_context.linear_in",
94
+ "transformer_blocks.2.ff_context.linear_out",
95
+ "transformer_blocks.3.attn.add_k_proj",
96
+ "transformer_blocks.3.attn.add_q_proj",
97
+ "transformer_blocks.3.attn.add_v_proj",
98
+ "transformer_blocks.3.attn.to_add_out",
99
+ "transformer_blocks.3.attn.to_k",
100
+ "transformer_blocks.3.attn.to_out.0",
101
+ "transformer_blocks.3.attn.to_q",
102
+ "transformer_blocks.3.attn.to_v",
103
+ "transformer_blocks.3.ff.linear_in",
104
+ "transformer_blocks.3.ff.linear_out",
105
+ "transformer_blocks.3.ff_context.linear_in",
106
+ "transformer_blocks.3.ff_context.linear_out",
107
+ "transformer_blocks.4.attn.add_k_proj",
108
+ "transformer_blocks.4.attn.add_q_proj",
109
+ "transformer_blocks.4.attn.add_v_proj",
110
+ "transformer_blocks.4.attn.to_add_out",
111
+ "transformer_blocks.4.attn.to_k",
112
+ "transformer_blocks.4.attn.to_out.0",
113
+ "transformer_blocks.4.attn.to_q",
114
+ "transformer_blocks.4.attn.to_v",
115
+ "transformer_blocks.4.ff.linear_in",
116
+ "transformer_blocks.4.ff.linear_out",
117
+ "transformer_blocks.4.ff_context.linear_in",
118
+ "transformer_blocks.4.ff_context.linear_out"
119
+ ]
120
+ }
vae/config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKLFlux2",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "_name_or_path": "black-forest-labs/FLUX.2-dev",
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
+ "down_block_types": [
15
+ "DownEncoderBlock2D",
16
+ "DownEncoderBlock2D",
17
+ "DownEncoderBlock2D",
18
+ "DownEncoderBlock2D"
19
+ ],
20
+ "force_upcast": true,
21
+ "in_channels": 3,
22
+ "latent_channels": 32,
23
+ "layers_per_block": 2,
24
+ "mid_block_add_attention": true,
25
+ "norm_num_groups": 32,
26
+ "out_channels": 3,
27
+ "patch_size": [
28
+ 2,
29
+ 2
30
+ ],
31
+ "sample_size": 1024,
32
+ "up_block_types": [
33
+ "UpDecoderBlock2D",
34
+ "UpDecoderBlock2D",
35
+ "UpDecoderBlock2D",
36
+ "UpDecoderBlock2D"
37
+ ],
38
+ "use_post_quant_conv": true,
39
+ "use_quant_conv": true
40
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca70d2202afe6415bdbcb8793ba8cd99fd159cfe6192381504d6c4d3036e0f04
3
+ size 168120878