codeShare commited on
Commit
84b7af9
·
verified ·
1 Parent(s): d5d78d8

Upload SDNQ Flux2 Klein fine-tuned transformer

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: diffusers
3
+ ---
4
+
5
+ # Model Card for Model ID
6
+
7
+ <!-- Provide a quick summary of what the model is/does. -->
8
+
9
+
10
+
11
+ ## Model Details
12
+
13
+ ### Model Description
14
+
15
+ <!-- Provide a longer summary of what this model is. -->
16
+
17
+ This is the model card of a 🧨 diffusers model that has been pushed on the Hub. This model card has been automatically generated.
18
+
19
+ - **Developed by:** [More Information Needed]
20
+ - **Funded by [optional]:** [More Information Needed]
21
+ - **Shared by [optional]:** [More Information Needed]
22
+ - **Model type:** [More Information Needed]
23
+ - **Language(s) (NLP):** [More Information Needed]
24
+ - **License:** [More Information Needed]
25
+ - **Finetuned from model [optional]:** [More Information Needed]
26
+
27
+ ### Model Sources [optional]
28
+
29
+ <!-- Provide the basic links for the model. -->
30
+
31
+ - **Repository:** [More Information Needed]
32
+ - **Paper [optional]:** [More Information Needed]
33
+ - **Demo [optional]:** [More Information Needed]
34
+
35
+ ## Uses
36
+
37
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
38
+
39
+ ### Direct Use
40
+
41
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
42
+
43
+ [More Information Needed]
44
+
45
+ ### Downstream Use [optional]
46
+
47
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
48
+
49
+ [More Information Needed]
50
+
51
+ ### Out-of-Scope Use
52
+
53
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
54
+
55
+ [More Information Needed]
56
+
57
+ ## Bias, Risks, and Limitations
58
+
59
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
60
+
61
+ [More Information Needed]
62
+
63
+ ### Recommendations
64
+
65
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
66
+
67
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
68
+
69
+ ## How to Get Started with the Model
70
+
71
+ Use the code below to get started with the model.
72
+
73
+ [More Information Needed]
74
+
75
+ ## Training Details
76
+
77
+ ### Training Data
78
+
79
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
80
+
81
+ [More Information Needed]
82
+
83
+ ### Training Procedure
84
+
85
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
86
+
87
+ #### Preprocessing [optional]
88
+
89
+ [More Information Needed]
90
+
91
+
92
+ #### Training Hyperparameters
93
+
94
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
95
+
96
+ #### Speeds, Sizes, Times [optional]
97
+
98
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
99
+
100
+ [More Information Needed]
101
+
102
+ ## Evaluation
103
+
104
+ <!-- This section describes the evaluation protocols and provides the results. -->
105
+
106
+ ### Testing Data, Factors & Metrics
107
+
108
+ #### Testing Data
109
+
110
+ <!-- This should link to a Dataset Card if possible. -->
111
+
112
+ [More Information Needed]
113
+
114
+ #### Factors
115
+
116
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
117
+
118
+ [More Information Needed]
119
+
120
+ #### Metrics
121
+
122
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
123
+
124
+ [More Information Needed]
125
+
126
+ ### Results
127
+
128
+ [More Information Needed]
129
+
130
+ #### Summary
131
+
132
+
133
+
134
+ ## Model Examination [optional]
135
+
136
+ <!-- Relevant interpretability work for the model goes here -->
137
+
138
+ [More Information Needed]
139
+
140
+ ## Environmental Impact
141
+
142
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
143
+
144
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
145
+
146
+ - **Hardware Type:** [More Information Needed]
147
+ - **Hours used:** [More Information Needed]
148
+ - **Cloud Provider:** [More Information Needed]
149
+ - **Compute Region:** [More Information Needed]
150
+ - **Carbon Emitted:** [More Information Needed]
151
+
152
+ ## Technical Specifications [optional]
153
+
154
+ ### Model Architecture and Objective
155
+
156
+ [More Information Needed]
157
+
158
+ ### Compute Infrastructure
159
+
160
+ [More Information Needed]
161
+
162
+ #### Hardware
163
+
164
+ [More Information Needed]
165
+
166
+ #### Software
167
+
168
+ [More Information Needed]
169
+
170
+ ## Citation [optional]
171
+
172
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
173
+
174
+ **BibTeX:**
175
+
176
+ [More Information Needed]
177
+
178
+ **APA:**
179
+
180
+ [More Information Needed]
181
+
182
+ ## Glossary [optional]
183
+
184
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
185
+
186
+ [More Information Needed]
187
+
188
+ ## More Information [optional]
189
+
190
+ [More Information Needed]
191
+
192
+ ## Model Card Authors [optional]
193
+
194
+ [More Information Needed]
195
+
196
+ ## Model Card Contact
197
+
198
+ [More Information Needed]
model_index.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Flux2KleinPipeline",
3
+ "_diffusers_version": "0.38.0.dev0",
4
+ "_name_or_path": "codeShare/FLUX.2-klein-AIO-SDNQ-4bit-dynamic",
5
+ "is_distilled": true,
6
+ "scheduler": [
7
+ "diffusers",
8
+ "FlowMatchEulerDiscreteScheduler"
9
+ ],
10
+ "text_encoder": [
11
+ "transformers",
12
+ "Qwen3ForCausalLM"
13
+ ],
14
+ "tokenizer": [
15
+ "transformers",
16
+ "Qwen2Tokenizer"
17
+ ],
18
+ "transformer": [
19
+ "diffusers",
20
+ "Flux2Transformer2DModel"
21
+ ],
22
+ "vae": [
23
+ "diffusers",
24
+ "AutoencoderKLFlux2"
25
+ ]
26
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "FlowMatchEulerDiscreteScheduler",
3
+ "_diffusers_version": "0.38.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/config.json ADDED
@@ -0,0 +1,492 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "dtype": "float16",
9
+ "eos_token_id": 151645,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2560,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 9728,
15
+ "layer_types": [
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention"
52
+ ],
53
+ "max_position_embeddings": 40960,
54
+ "max_window_layers": 36,
55
+ "model_type": "qwen3",
56
+ "num_attention_heads": 32,
57
+ "num_hidden_layers": 36,
58
+ "num_key_value_heads": 8,
59
+ "pad_token_id": null,
60
+ "quantization_config": {
61
+ "add_skip_keys": false,
62
+ "dequantize_fp32": true,
63
+ "dynamic_loss_threshold": 0.01,
64
+ "group_size": 0,
65
+ "is_integer": true,
66
+ "is_training": false,
67
+ "modules_dtype_dict": {
68
+ "int5": [
69
+ "transformer_blocks.0.attn.to_k.weight",
70
+ "single_transformer_blocks.19.attn.to_qkv_mlp_proj.weight",
71
+ "model.layers.2.mlp.down_proj.weight"
72
+ ],
73
+ "uint4": [
74
+ "transformer_blocks.1.attn.add_k_proj.weight",
75
+ "single_transformer_blocks.15.attn.to_out.weight",
76
+ "single_transformer_blocks.13.attn.to_qkv_mlp_proj.weight",
77
+ "single_transformer_blocks.16.attn.to_qkv_mlp_proj.weight",
78
+ "transformer_blocks.4.attn.to_v.weight",
79
+ "transformer_blocks.3.attn.to_v.weight",
80
+ "single_transformer_blocks.3.attn.to_out.weight",
81
+ "transformer_blocks.0.ff_context.linear_out.weight",
82
+ "transformer_blocks.1.attn.to_k.weight",
83
+ "single_transformer_blocks.9.attn.to_out.weight",
84
+ "transformer_blocks.3.attn.to_add_out.weight",
85
+ "transformer_blocks.3.ff_context.linear_in.weight",
86
+ "transformer_blocks.3.attn.to_out.0.weight",
87
+ "transformer_blocks.0.attn.to_out.0.weight",
88
+ "transformer_blocks.4.ff.linear_in.weight",
89
+ "transformer_blocks.2.ff.linear_out.weight",
90
+ "transformer_blocks.1.ff.linear_in.weight",
91
+ "transformer_blocks.4.attn.to_q.weight",
92
+ "transformer_blocks.3.attn.add_v_proj.weight",
93
+ "transformer_blocks.1.ff.linear_out.weight",
94
+ "single_transformer_blocks.17.attn.to_qkv_mlp_proj.weight",
95
+ "transformer_blocks.4.attn.add_k_proj.weight",
96
+ "single_transformer_blocks.2.attn.to_out.weight",
97
+ "transformer_blocks.0.attn.to_v.weight",
98
+ "transformer_blocks.4.attn.add_q_proj.weight",
99
+ "transformer_blocks.0.attn.add_q_proj.weight",
100
+ "transformer_blocks.0.attn.add_v_proj.weight",
101
+ "single_transformer_blocks.7.attn.to_out.weight",
102
+ "transformer_blocks.1.attn.to_v.weight",
103
+ "transformer_blocks.4.ff.linear_out.weight",
104
+ "transformer_blocks.2.attn.to_q.weight",
105
+ "single_transformer_blocks.5.attn.to_qkv_mlp_proj.weight",
106
+ "transformer_blocks.2.attn.add_q_proj.weight",
107
+ "single_transformer_blocks.0.attn.to_out.weight",
108
+ "single_transformer_blocks.19.attn.to_out.weight",
109
+ "transformer_blocks.4.ff_context.linear_out.weight",
110
+ "transformer_blocks.1.ff_context.linear_out.weight",
111
+ "transformer_blocks.2.attn.add_v_proj.weight",
112
+ "single_transformer_blocks.10.attn.to_qkv_mlp_proj.weight",
113
+ "single_transformer_blocks.6.attn.to_qkv_mlp_proj.weight",
114
+ "transformer_blocks.4.attn.to_k.weight",
115
+ "transformer_blocks.0.ff.linear_out.weight",
116
+ "single_transformer_blocks.14.attn.to_qkv_mlp_proj.weight",
117
+ "single_transformer_blocks.14.attn.to_out.weight",
118
+ "single_transformer_blocks.11.attn.to_qkv_mlp_proj.weight",
119
+ "single_transformer_blocks.0.attn.to_qkv_mlp_proj.weight",
120
+ "single_transformer_blocks.8.attn.to_qkv_mlp_proj.weight",
121
+ "transformer_blocks.0.ff_context.linear_in.weight",
122
+ "single_transformer_blocks.12.attn.to_out.weight",
123
+ "transformer_blocks.3.attn.add_q_proj.weight",
124
+ "single_transformer_blocks.16.attn.to_out.weight",
125
+ "transformer_blocks.3.ff.linear_in.weight",
126
+ "transformer_blocks.1.attn.to_add_out.weight",
127
+ "transformer_blocks.3.attn.add_k_proj.weight",
128
+ "transformer_blocks.0.attn.to_add_out.weight",
129
+ "single_transformer_blocks.12.attn.to_qkv_mlp_proj.weight",
130
+ "transformer_blocks.2.ff_context.linear_out.weight",
131
+ "transformer_blocks.4.attn.to_add_out.weight",
132
+ "transformer_blocks.3.ff_context.linear_out.weight",
133
+ "transformer_blocks.4.attn.to_out.0.weight",
134
+ "single_transformer_blocks.17.attn.to_out.weight",
135
+ "single_transformer_blocks.4.attn.to_out.weight",
136
+ "transformer_blocks.1.attn.to_out.0.weight",
137
+ "single_transformer_blocks.18.attn.to_qkv_mlp_proj.weight",
138
+ "transformer_blocks.1.ff_context.linear_in.weight",
139
+ "transformer_blocks.1.attn.to_q.weight",
140
+ "single_transformer_blocks.9.attn.to_qkv_mlp_proj.weight",
141
+ "single_transformer_blocks.1.attn.to_qkv_mlp_proj.weight",
142
+ "single_transformer_blocks.7.attn.to_qkv_mlp_proj.weight",
143
+ "single_transformer_blocks.18.attn.to_out.weight",
144
+ "transformer_blocks.4.attn.add_v_proj.weight",
145
+ "single_transformer_blocks.1.attn.to_out.weight",
146
+ "transformer_blocks.1.attn.add_q_proj.weight",
147
+ "transformer_blocks.2.ff.linear_in.weight",
148
+ "transformer_blocks.2.ff_context.linear_in.weight",
149
+ "transformer_blocks.3.ff.linear_out.weight",
150
+ "single_transformer_blocks.5.attn.to_out.weight",
151
+ "single_transformer_blocks.3.attn.to_qkv_mlp_proj.weight",
152
+ "transformer_blocks.2.attn.to_v.weight",
153
+ "transformer_blocks.0.attn.to_q.weight",
154
+ "single_transformer_blocks.4.attn.to_qkv_mlp_proj.weight",
155
+ "transformer_blocks.1.attn.add_v_proj.weight",
156
+ "single_transformer_blocks.11.attn.to_out.weight",
157
+ "transformer_blocks.0.ff.linear_in.weight",
158
+ "transformer_blocks.0.attn.add_k_proj.weight",
159
+ "transformer_blocks.2.attn.to_k.weight",
160
+ "transformer_blocks.2.attn.to_out.0.weight",
161
+ "transformer_blocks.2.attn.to_add_out.weight",
162
+ "transformer_blocks.3.attn.to_k.weight",
163
+ "transformer_blocks.2.attn.add_k_proj.weight",
164
+ "single_transformer_blocks.15.attn.to_qkv_mlp_proj.weight",
165
+ "single_transformer_blocks.13.attn.to_out.weight",
166
+ "single_transformer_blocks.8.attn.to_out.weight",
167
+ "single_transformer_blocks.6.attn.to_out.weight",
168
+ "transformer_blocks.4.ff_context.linear_in.weight",
169
+ "single_transformer_blocks.10.attn.to_out.weight",
170
+ "single_transformer_blocks.2.attn.to_qkv_mlp_proj.weight",
171
+ "transformer_blocks.3.attn.to_q.weight",
172
+ "model.layers.0.mlp.down_proj.weight",
173
+ "model.layers.0.mlp.gate_proj.weight",
174
+ "model.layers.0.mlp.up_proj.weight",
175
+ "model.layers.0.self_attn.k_proj.weight",
176
+ "model.layers.0.self_attn.o_proj.weight",
177
+ "model.layers.0.self_attn.q_proj.weight",
178
+ "model.layers.0.self_attn.v_proj.weight",
179
+ "model.layers.1.mlp.down_proj.weight",
180
+ "model.layers.1.mlp.gate_proj.weight",
181
+ "model.layers.1.mlp.up_proj.weight",
182
+ "model.layers.1.self_attn.k_proj.weight",
183
+ "model.layers.1.self_attn.o_proj.weight",
184
+ "model.layers.1.self_attn.q_proj.weight",
185
+ "model.layers.1.self_attn.v_proj.weight",
186
+ "model.layers.2.mlp.gate_proj.weight",
187
+ "model.layers.2.mlp.up_proj.weight",
188
+ "model.layers.2.self_attn.k_proj.weight",
189
+ "model.layers.2.self_attn.o_proj.weight",
190
+ "model.layers.2.self_attn.q_proj.weight",
191
+ "model.layers.2.self_attn.v_proj.weight",
192
+ "model.layers.3.mlp.down_proj.weight",
193
+ "model.layers.3.mlp.gate_proj.weight",
194
+ "model.layers.3.mlp.up_proj.weight",
195
+ "model.layers.3.self_attn.k_proj.weight",
196
+ "model.layers.3.self_attn.o_proj.weight",
197
+ "model.layers.3.self_attn.q_proj.weight",
198
+ "model.layers.3.self_attn.v_proj.weight",
199
+ "model.layers.4.mlp.down_proj.weight",
200
+ "model.layers.4.mlp.gate_proj.weight",
201
+ "model.layers.4.mlp.up_proj.weight",
202
+ "model.layers.4.self_attn.k_proj.weight",
203
+ "model.layers.4.self_attn.o_proj.weight",
204
+ "model.layers.4.self_attn.q_proj.weight",
205
+ "model.layers.4.self_attn.v_proj.weight",
206
+ "model.layers.5.mlp.down_proj.weight",
207
+ "model.layers.5.mlp.gate_proj.weight",
208
+ "model.layers.5.mlp.up_proj.weight",
209
+ "model.layers.5.self_attn.k_proj.weight",
210
+ "model.layers.5.self_attn.o_proj.weight",
211
+ "model.layers.5.self_attn.q_proj.weight",
212
+ "model.layers.5.self_attn.v_proj.weight",
213
+ "model.layers.6.mlp.down_proj.weight",
214
+ "model.layers.6.mlp.gate_proj.weight",
215
+ "model.layers.6.mlp.up_proj.weight",
216
+ "model.layers.6.self_attn.k_proj.weight",
217
+ "model.layers.6.self_attn.o_proj.weight",
218
+ "model.layers.6.self_attn.q_proj.weight",
219
+ "model.layers.6.self_attn.v_proj.weight",
220
+ "model.layers.7.mlp.down_proj.weight",
221
+ "model.layers.7.mlp.gate_proj.weight",
222
+ "model.layers.7.mlp.up_proj.weight",
223
+ "model.layers.7.self_attn.k_proj.weight",
224
+ "model.layers.7.self_attn.o_proj.weight",
225
+ "model.layers.7.self_attn.q_proj.weight",
226
+ "model.layers.7.self_attn.v_proj.weight",
227
+ "model.layers.8.mlp.down_proj.weight",
228
+ "model.layers.8.mlp.gate_proj.weight",
229
+ "model.layers.8.mlp.up_proj.weight",
230
+ "model.layers.8.self_attn.k_proj.weight",
231
+ "model.layers.8.self_attn.o_proj.weight",
232
+ "model.layers.8.self_attn.q_proj.weight",
233
+ "model.layers.8.self_attn.v_proj.weight",
234
+ "model.layers.9.mlp.down_proj.weight",
235
+ "model.layers.9.mlp.gate_proj.weight",
236
+ "model.layers.9.mlp.up_proj.weight",
237
+ "model.layers.9.self_attn.k_proj.weight",
238
+ "model.layers.9.self_attn.o_proj.weight",
239
+ "model.layers.9.self_attn.q_proj.weight",
240
+ "model.layers.9.self_attn.v_proj.weight",
241
+ "model.layers.10.mlp.down_proj.weight",
242
+ "model.layers.10.mlp.gate_proj.weight",
243
+ "model.layers.10.mlp.up_proj.weight",
244
+ "model.layers.10.self_attn.k_proj.weight",
245
+ "model.layers.10.self_attn.o_proj.weight",
246
+ "model.layers.10.self_attn.q_proj.weight",
247
+ "model.layers.10.self_attn.v_proj.weight",
248
+ "model.layers.11.mlp.down_proj.weight",
249
+ "model.layers.11.mlp.gate_proj.weight",
250
+ "model.layers.11.mlp.up_proj.weight",
251
+ "model.layers.11.self_attn.k_proj.weight",
252
+ "model.layers.11.self_attn.o_proj.weight",
253
+ "model.layers.11.self_attn.q_proj.weight",
254
+ "model.layers.11.self_attn.v_proj.weight",
255
+ "model.layers.12.mlp.down_proj.weight",
256
+ "model.layers.12.mlp.gate_proj.weight",
257
+ "model.layers.12.mlp.up_proj.weight",
258
+ "model.layers.12.self_attn.k_proj.weight",
259
+ "model.layers.12.self_attn.o_proj.weight",
260
+ "model.layers.12.self_attn.q_proj.weight",
261
+ "model.layers.12.self_attn.v_proj.weight",
262
+ "model.layers.13.mlp.down_proj.weight",
263
+ "model.layers.13.mlp.gate_proj.weight",
264
+ "model.layers.13.mlp.up_proj.weight",
265
+ "model.layers.13.self_attn.k_proj.weight",
266
+ "model.layers.13.self_attn.o_proj.weight",
267
+ "model.layers.13.self_attn.q_proj.weight",
268
+ "model.layers.13.self_attn.v_proj.weight",
269
+ "model.layers.14.mlp.down_proj.weight",
270
+ "model.layers.14.mlp.gate_proj.weight",
271
+ "model.layers.14.mlp.up_proj.weight",
272
+ "model.layers.14.self_attn.k_proj.weight",
273
+ "model.layers.14.self_attn.o_proj.weight",
274
+ "model.layers.14.self_attn.q_proj.weight",
275
+ "model.layers.14.self_attn.v_proj.weight",
276
+ "model.layers.15.mlp.down_proj.weight",
277
+ "model.layers.15.mlp.gate_proj.weight",
278
+ "model.layers.15.mlp.up_proj.weight",
279
+ "model.layers.15.self_attn.k_proj.weight",
280
+ "model.layers.15.self_attn.o_proj.weight",
281
+ "model.layers.15.self_attn.q_proj.weight",
282
+ "model.layers.15.self_attn.v_proj.weight",
283
+ "model.layers.16.mlp.down_proj.weight",
284
+ "model.layers.16.mlp.gate_proj.weight",
285
+ "model.layers.16.mlp.up_proj.weight",
286
+ "model.layers.16.self_attn.k_proj.weight",
287
+ "model.layers.16.self_attn.o_proj.weight",
288
+ "model.layers.16.self_attn.q_proj.weight",
289
+ "model.layers.16.self_attn.v_proj.weight",
290
+ "model.layers.17.mlp.down_proj.weight",
291
+ "model.layers.17.mlp.gate_proj.weight",
292
+ "model.layers.17.mlp.up_proj.weight",
293
+ "model.layers.17.self_attn.k_proj.weight",
294
+ "model.layers.17.self_attn.o_proj.weight",
295
+ "model.layers.17.self_attn.q_proj.weight",
296
+ "model.layers.17.self_attn.v_proj.weight",
297
+ "model.layers.18.mlp.down_proj.weight",
298
+ "model.layers.18.mlp.gate_proj.weight",
299
+ "model.layers.18.mlp.up_proj.weight",
300
+ "model.layers.18.self_attn.k_proj.weight",
301
+ "model.layers.18.self_attn.o_proj.weight",
302
+ "model.layers.18.self_attn.q_proj.weight",
303
+ "model.layers.18.self_attn.v_proj.weight",
304
+ "model.layers.19.mlp.down_proj.weight",
305
+ "model.layers.19.mlp.gate_proj.weight",
306
+ "model.layers.19.mlp.up_proj.weight",
307
+ "model.layers.19.self_attn.k_proj.weight",
308
+ "model.layers.19.self_attn.o_proj.weight",
309
+ "model.layers.19.self_attn.q_proj.weight",
310
+ "model.layers.19.self_attn.v_proj.weight",
311
+ "model.layers.20.mlp.down_proj.weight",
312
+ "model.layers.20.mlp.gate_proj.weight",
313
+ "model.layers.20.mlp.up_proj.weight",
314
+ "model.layers.20.self_attn.k_proj.weight",
315
+ "model.layers.20.self_attn.o_proj.weight",
316
+ "model.layers.20.self_attn.q_proj.weight",
317
+ "model.layers.20.self_attn.v_proj.weight",
318
+ "model.layers.21.mlp.down_proj.weight",
319
+ "model.layers.21.mlp.gate_proj.weight",
320
+ "model.layers.21.mlp.up_proj.weight",
321
+ "model.layers.21.self_attn.k_proj.weight",
322
+ "model.layers.21.self_attn.o_proj.weight",
323
+ "model.layers.21.self_attn.q_proj.weight",
324
+ "model.layers.21.self_attn.v_proj.weight",
325
+ "model.layers.22.mlp.down_proj.weight",
326
+ "model.layers.22.mlp.gate_proj.weight",
327
+ "model.layers.22.mlp.up_proj.weight",
328
+ "model.layers.22.self_attn.k_proj.weight",
329
+ "model.layers.22.self_attn.o_proj.weight",
330
+ "model.layers.22.self_attn.q_proj.weight",
331
+ "model.layers.22.self_attn.v_proj.weight",
332
+ "model.layers.23.mlp.down_proj.weight",
333
+ "model.layers.23.mlp.gate_proj.weight",
334
+ "model.layers.23.mlp.up_proj.weight",
335
+ "model.layers.23.self_attn.k_proj.weight",
336
+ "model.layers.23.self_attn.o_proj.weight",
337
+ "model.layers.23.self_attn.q_proj.weight",
338
+ "model.layers.23.self_attn.v_proj.weight",
339
+ "model.layers.24.mlp.down_proj.weight",
340
+ "model.layers.24.mlp.gate_proj.weight",
341
+ "model.layers.24.mlp.up_proj.weight",
342
+ "model.layers.24.self_attn.k_proj.weight",
343
+ "model.layers.24.self_attn.o_proj.weight",
344
+ "model.layers.24.self_attn.q_proj.weight",
345
+ "model.layers.24.self_attn.v_proj.weight",
346
+ "model.layers.25.mlp.down_proj.weight",
347
+ "model.layers.25.mlp.gate_proj.weight",
348
+ "model.layers.25.mlp.up_proj.weight",
349
+ "model.layers.25.self_attn.k_proj.weight",
350
+ "model.layers.25.self_attn.o_proj.weight",
351
+ "model.layers.25.self_attn.q_proj.weight",
352
+ "model.layers.25.self_attn.v_proj.weight",
353
+ "model.layers.26.mlp.down_proj.weight",
354
+ "model.layers.26.mlp.gate_proj.weight",
355
+ "model.layers.26.mlp.up_proj.weight",
356
+ "model.layers.26.self_attn.k_proj.weight",
357
+ "model.layers.26.self_attn.o_proj.weight",
358
+ "model.layers.26.self_attn.q_proj.weight",
359
+ "model.layers.26.self_attn.v_proj.weight",
360
+ "model.layers.27.mlp.down_proj.weight",
361
+ "model.layers.27.mlp.gate_proj.weight",
362
+ "model.layers.27.mlp.up_proj.weight",
363
+ "model.layers.27.self_attn.k_proj.weight",
364
+ "model.layers.27.self_attn.o_proj.weight",
365
+ "model.layers.27.self_attn.q_proj.weight",
366
+ "model.layers.27.self_attn.v_proj.weight",
367
+ "model.layers.28.mlp.down_proj.weight",
368
+ "model.layers.28.mlp.gate_proj.weight",
369
+ "model.layers.28.mlp.up_proj.weight",
370
+ "model.layers.28.self_attn.k_proj.weight",
371
+ "model.layers.28.self_attn.o_proj.weight",
372
+ "model.layers.28.self_attn.q_proj.weight",
373
+ "model.layers.28.self_attn.v_proj.weight",
374
+ "model.layers.29.mlp.down_proj.weight",
375
+ "model.layers.29.mlp.gate_proj.weight",
376
+ "model.layers.29.mlp.up_proj.weight",
377
+ "model.layers.29.self_attn.k_proj.weight",
378
+ "model.layers.29.self_attn.o_proj.weight",
379
+ "model.layers.29.self_attn.q_proj.weight",
380
+ "model.layers.29.self_attn.v_proj.weight",
381
+ "model.layers.30.mlp.down_proj.weight",
382
+ "model.layers.30.mlp.gate_proj.weight",
383
+ "model.layers.30.mlp.up_proj.weight",
384
+ "model.layers.30.self_attn.k_proj.weight",
385
+ "model.layers.30.self_attn.o_proj.weight",
386
+ "model.layers.30.self_attn.q_proj.weight",
387
+ "model.layers.30.self_attn.v_proj.weight",
388
+ "model.layers.31.mlp.down_proj.weight",
389
+ "model.layers.31.mlp.gate_proj.weight",
390
+ "model.layers.31.mlp.up_proj.weight",
391
+ "model.layers.31.self_attn.k_proj.weight",
392
+ "model.layers.31.self_attn.o_proj.weight",
393
+ "model.layers.31.self_attn.q_proj.weight",
394
+ "model.layers.31.self_attn.v_proj.weight",
395
+ "model.layers.32.mlp.down_proj.weight",
396
+ "model.layers.32.mlp.gate_proj.weight",
397
+ "model.layers.32.mlp.up_proj.weight",
398
+ "model.layers.32.self_attn.k_proj.weight",
399
+ "model.layers.32.self_attn.o_proj.weight",
400
+ "model.layers.32.self_attn.q_proj.weight",
401
+ "model.layers.32.self_attn.v_proj.weight",
402
+ "model.layers.33.mlp.down_proj.weight",
403
+ "model.layers.33.mlp.gate_proj.weight",
404
+ "model.layers.33.mlp.up_proj.weight",
405
+ "model.layers.33.self_attn.k_proj.weight",
406
+ "model.layers.33.self_attn.o_proj.weight",
407
+ "model.layers.33.self_attn.q_proj.weight",
408
+ "model.layers.33.self_attn.v_proj.weight",
409
+ "model.layers.34.mlp.down_proj.weight",
410
+ "model.layers.34.mlp.gate_proj.weight",
411
+ "model.layers.34.mlp.up_proj.weight",
412
+ "model.layers.34.self_attn.k_proj.weight",
413
+ "model.layers.34.self_attn.o_proj.weight",
414
+ "model.layers.34.self_attn.q_proj.weight",
415
+ "model.layers.34.self_attn.v_proj.weight",
416
+ "model.layers.35.mlp.down_proj.weight",
417
+ "model.layers.35.mlp.gate_proj.weight",
418
+ "model.layers.35.mlp.up_proj.weight",
419
+ "model.layers.35.self_attn.k_proj.weight",
420
+ "model.layers.35.self_attn.o_proj.weight",
421
+ "model.layers.35.self_attn.q_proj.weight",
422
+ "model.layers.35.self_attn.v_proj.weight"
423
+ ]
424
+ },
425
+ "modules_quant_config": {},
426
+ "modules_to_not_convert": [
427
+ "context_embedder",
428
+ ".vid_out",
429
+ "time_text_embed",
430
+ "single_stream_modulation",
431
+ ".t_embedder",
432
+ "lm_head.weight",
433
+ "model.embed_tokens.weight",
434
+ "norm_out",
435
+ "multi_modal_projector",
436
+ "double_stream_modulation_txt",
437
+ ".img_in",
438
+ "model.embed_tokens",
439
+ "patch_emb",
440
+ "double_stream_modulation_img",
441
+ "lm_head",
442
+ ".emb_in",
443
+ "wte",
444
+ ".y_embedder",
445
+ ".x_embedder",
446
+ ".txt_out",
447
+ ".norm_out",
448
+ ".condition_embedder",
449
+ "patch_embedding",
450
+ ".emb_out",
451
+ ".context_embedder",
452
+ "patch_embed",
453
+ ".txt_in",
454
+ ".final_layer",
455
+ ".proj_out",
456
+ "time_guidance_embed",
457
+ ".img_out",
458
+ ".vid_in",
459
+ "x_embedder",
460
+ ".time_embed"
461
+ ],
462
+ "non_blocking": false,
463
+ "quant_conv": false,
464
+ "quant_embedding": false,
465
+ "quant_method": "sdnq",
466
+ "quantization_device": null,
467
+ "quantized_matmul_dtype": null,
468
+ "return_device": null,
469
+ "sdnq_version": "0.1.7",
470
+ "svd_rank": 32,
471
+ "svd_steps": 8,
472
+ "use_dynamic_quantization": true,
473
+ "use_grad_ckpt": true,
474
+ "use_quantized_matmul": false,
475
+ "use_quantized_matmul_conv": false,
476
+ "use_static_quantization": true,
477
+ "use_stochastic_rounding": false,
478
+ "use_svd": false,
479
+ "weights_dtype": "uint4"
480
+ },
481
+ "rms_norm_eps": 1e-06,
482
+ "rope_parameters": {
483
+ "rope_theta": 1000000,
484
+ "rope_type": "default"
485
+ },
486
+ "sliding_window": null,
487
+ "tie_word_embeddings": true,
488
+ "transformers_version": "5.6.1",
489
+ "use_cache": true,
490
+ "use_sliding_window": false,
491
+ "vocab_size": 151936
492
+ }
text_encoder/generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 151643,
4
+ "eos_token_id": 151645,
5
+ "transformers_version": "5.6.1",
6
+ "use_cache": true
7
+ }
text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ef127ff8904fee738c3d8b4374d9823ae2d1e9140e710d413030acd38baedfa
3
+ size 3050007528
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/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
3
+ size 11422650
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "local_files_only": false,
25
+ "model_max_length": 131072,
26
+ "model_specific_special_tokens": {},
27
+ "pad_token": "<|endoftext|>",
28
+ "split_special_tokens": false,
29
+ "tokenizer_class": "Qwen2Tokenizer",
30
+ "unk_token": null
31
+ }
transformer/config.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Flux2Transformer2DModel",
3
+ "_diffusers_version": "0.38.0.dev0",
4
+ "_name_or_path": "codeShare/FLUX.2-klein-AIO-SDNQ-4bit-dynamic",
5
+ "attention_head_dim": 128,
6
+ "auto_map": {
7
+ "AutoModel": "modeling_flux2.Flux2Transformer2DModel"
8
+ },
9
+ "axes_dims_rope": [
10
+ 32,
11
+ 32,
12
+ 32,
13
+ 32
14
+ ],
15
+ "eps": 1e-06,
16
+ "guidance_embeds": false,
17
+ "in_channels": 128,
18
+ "joint_attention_dim": 7680,
19
+ "mlp_ratio": 3.0,
20
+ "num_attention_heads": 24,
21
+ "num_layers": 5,
22
+ "num_single_layers": 20,
23
+ "out_channels": null,
24
+ "patch_size": 1,
25
+ "quantization_config": {
26
+ "add_skip_keys": false,
27
+ "dequantize_fp32": true,
28
+ "dynamic_loss_threshold": 0.01,
29
+ "group_size": 0,
30
+ "is_integer": true,
31
+ "is_training": false,
32
+ "modules_dtype_dict": {
33
+ "int5": [
34
+ "single_transformer_blocks.19.attn.to_qkv_mlp_proj.weight",
35
+ "transformer_blocks.0.attn.to_k.weight"
36
+ ],
37
+ "uint4": [
38
+ "single_transformer_blocks.0.attn.to_out.weight",
39
+ "single_transformer_blocks.0.attn.to_qkv_mlp_proj.weight",
40
+ "single_transformer_blocks.1.attn.to_out.weight",
41
+ "single_transformer_blocks.1.attn.to_qkv_mlp_proj.weight",
42
+ "single_transformer_blocks.10.attn.to_out.weight",
43
+ "single_transformer_blocks.10.attn.to_qkv_mlp_proj.weight",
44
+ "single_transformer_blocks.11.attn.to_out.weight",
45
+ "single_transformer_blocks.11.attn.to_qkv_mlp_proj.weight",
46
+ "single_transformer_blocks.12.attn.to_out.weight",
47
+ "single_transformer_blocks.12.attn.to_qkv_mlp_proj.weight",
48
+ "single_transformer_blocks.13.attn.to_out.weight",
49
+ "single_transformer_blocks.13.attn.to_qkv_mlp_proj.weight",
50
+ "single_transformer_blocks.14.attn.to_out.weight",
51
+ "single_transformer_blocks.14.attn.to_qkv_mlp_proj.weight",
52
+ "single_transformer_blocks.15.attn.to_out.weight",
53
+ "single_transformer_blocks.15.attn.to_qkv_mlp_proj.weight",
54
+ "single_transformer_blocks.16.attn.to_out.weight",
55
+ "single_transformer_blocks.16.attn.to_qkv_mlp_proj.weight",
56
+ "single_transformer_blocks.17.attn.to_out.weight",
57
+ "single_transformer_blocks.17.attn.to_qkv_mlp_proj.weight",
58
+ "single_transformer_blocks.18.attn.to_out.weight",
59
+ "single_transformer_blocks.18.attn.to_qkv_mlp_proj.weight",
60
+ "single_transformer_blocks.19.attn.to_out.weight",
61
+ "single_transformer_blocks.2.attn.to_out.weight",
62
+ "single_transformer_blocks.2.attn.to_qkv_mlp_proj.weight",
63
+ "single_transformer_blocks.3.attn.to_out.weight",
64
+ "single_transformer_blocks.3.attn.to_qkv_mlp_proj.weight",
65
+ "single_transformer_blocks.4.attn.to_out.weight",
66
+ "single_transformer_blocks.4.attn.to_qkv_mlp_proj.weight",
67
+ "single_transformer_blocks.5.attn.to_out.weight",
68
+ "single_transformer_blocks.5.attn.to_qkv_mlp_proj.weight",
69
+ "single_transformer_blocks.6.attn.to_out.weight",
70
+ "single_transformer_blocks.6.attn.to_qkv_mlp_proj.weight",
71
+ "single_transformer_blocks.7.attn.to_out.weight",
72
+ "single_transformer_blocks.7.attn.to_qkv_mlp_proj.weight",
73
+ "single_transformer_blocks.8.attn.to_out.weight",
74
+ "single_transformer_blocks.8.attn.to_qkv_mlp_proj.weight",
75
+ "single_transformer_blocks.9.attn.to_out.weight",
76
+ "single_transformer_blocks.9.attn.to_qkv_mlp_proj.weight",
77
+ "transformer_blocks.0.attn.add_k_proj.weight",
78
+ "transformer_blocks.0.attn.add_q_proj.weight",
79
+ "transformer_blocks.0.attn.add_v_proj.weight",
80
+ "transformer_blocks.0.attn.to_add_out.weight",
81
+ "transformer_blocks.0.attn.to_out.0.weight",
82
+ "transformer_blocks.0.attn.to_q.weight",
83
+ "transformer_blocks.0.attn.to_v.weight",
84
+ "transformer_blocks.0.ff.linear_in.weight",
85
+ "transformer_blocks.0.ff.linear_out.weight",
86
+ "transformer_blocks.0.ff_context.linear_in.weight",
87
+ "transformer_blocks.0.ff_context.linear_out.weight",
88
+ "transformer_blocks.1.attn.add_k_proj.weight",
89
+ "transformer_blocks.1.attn.add_q_proj.weight",
90
+ "transformer_blocks.1.attn.add_v_proj.weight",
91
+ "transformer_blocks.1.attn.to_add_out.weight",
92
+ "transformer_blocks.1.attn.to_k.weight",
93
+ "transformer_blocks.1.attn.to_out.0.weight",
94
+ "transformer_blocks.1.attn.to_q.weight",
95
+ "transformer_blocks.1.attn.to_v.weight",
96
+ "transformer_blocks.1.ff.linear_in.weight",
97
+ "transformer_blocks.1.ff.linear_out.weight",
98
+ "transformer_blocks.1.ff_context.linear_in.weight",
99
+ "transformer_blocks.1.ff_context.linear_out.weight",
100
+ "transformer_blocks.2.attn.add_k_proj.weight",
101
+ "transformer_blocks.2.attn.add_q_proj.weight",
102
+ "transformer_blocks.2.attn.add_v_proj.weight",
103
+ "transformer_blocks.2.attn.to_add_out.weight",
104
+ "transformer_blocks.2.attn.to_k.weight",
105
+ "transformer_blocks.2.attn.to_out.0.weight",
106
+ "transformer_blocks.2.attn.to_q.weight",
107
+ "transformer_blocks.2.attn.to_v.weight",
108
+ "transformer_blocks.2.ff.linear_in.weight",
109
+ "transformer_blocks.2.ff.linear_out.weight",
110
+ "transformer_blocks.2.ff_context.linear_in.weight",
111
+ "transformer_blocks.2.ff_context.linear_out.weight",
112
+ "transformer_blocks.3.attn.add_k_proj.weight",
113
+ "transformer_blocks.3.attn.add_q_proj.weight",
114
+ "transformer_blocks.3.attn.add_v_proj.weight",
115
+ "transformer_blocks.3.attn.to_add_out.weight",
116
+ "transformer_blocks.3.attn.to_k.weight",
117
+ "transformer_blocks.3.attn.to_out.0.weight",
118
+ "transformer_blocks.3.attn.to_q.weight",
119
+ "transformer_blocks.3.attn.to_v.weight",
120
+ "transformer_blocks.3.ff.linear_in.weight",
121
+ "transformer_blocks.3.ff.linear_out.weight",
122
+ "transformer_blocks.3.ff_context.linear_in.weight",
123
+ "transformer_blocks.3.ff_context.linear_out.weight",
124
+ "transformer_blocks.4.attn.add_k_proj.weight",
125
+ "transformer_blocks.4.attn.add_q_proj.weight",
126
+ "transformer_blocks.4.attn.add_v_proj.weight",
127
+ "transformer_blocks.4.attn.to_add_out.weight",
128
+ "transformer_blocks.4.attn.to_k.weight",
129
+ "transformer_blocks.4.attn.to_out.0.weight",
130
+ "transformer_blocks.4.attn.to_q.weight",
131
+ "transformer_blocks.4.attn.to_v.weight",
132
+ "transformer_blocks.4.ff.linear_in.weight",
133
+ "transformer_blocks.4.ff.linear_out.weight",
134
+ "transformer_blocks.4.ff_context.linear_in.weight",
135
+ "transformer_blocks.4.ff_context.linear_out.weight"
136
+ ]
137
+ },
138
+ "modules_quant_config": {},
139
+ "modules_to_not_convert": [
140
+ "time_guidance_embed",
141
+ "norm_out",
142
+ "context_embedder",
143
+ "double_stream_modulation_txt",
144
+ "x_embedder",
145
+ "double_stream_modulation_img",
146
+ ".proj_out",
147
+ "single_stream_modulation"
148
+ ],
149
+ "non_blocking": false,
150
+ "quant_conv": false,
151
+ "quant_embedding": false,
152
+ "quant_method": "sdnq",
153
+ "quantization_device": null,
154
+ "quantized_matmul_dtype": null,
155
+ "return_device": null,
156
+ "sdnq_version": "0.1.7",
157
+ "svd_rank": 32,
158
+ "svd_steps": 8,
159
+ "use_dynamic_quantization": true,
160
+ "use_grad_ckpt": true,
161
+ "use_quantized_matmul": false,
162
+ "use_quantized_matmul_conv": false,
163
+ "use_static_quantization": true,
164
+ "use_stochastic_rounding": false,
165
+ "use_svd": false,
166
+ "weights_dtype": "uint4"
167
+ },
168
+ "rope_theta": 2000,
169
+ "timestep_guidance_channels": 256
170
+ }
transformer/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbd79005c296da015e07dc7c2b9ee73e06cf73bf25f0b6f8f60b185b85c0444a
3
+ size 2693392792
vae/config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKLFlux2",
3
+ "_diffusers_version": "0.38.0.dev0",
4
+ "_name_or_path": "/root/.cache/huggingface/hub/models--codeShare--FLUX.2-klein-AIO-SDNQ-4bit-dynamic/snapshots/5e4894cd88d1e032cb5ad469cdf2d1743928e38b/vae",
5
+ "act_fn": "silu",
6
+ "batch_norm_eps": 0.0001,
7
+ "batch_norm_momentum": 0.1,
8
+ "block_out_channels": [
9
+ 128,
10
+ 256,
11
+ 512,
12
+ 512
13
+ ],
14
+ "decoder_block_out_channels": null,
15
+ "down_block_types": [
16
+ "DownEncoderBlock2D",
17
+ "DownEncoderBlock2D",
18
+ "DownEncoderBlock2D",
19
+ "DownEncoderBlock2D"
20
+ ],
21
+ "force_upcast": true,
22
+ "in_channels": 3,
23
+ "latent_channels": 32,
24
+ "layers_per_block": 2,
25
+ "mid_block_add_attention": true,
26
+ "norm_num_groups": 32,
27
+ "out_channels": 3,
28
+ "patch_size": [
29
+ 2,
30
+ 2
31
+ ],
32
+ "sample_size": 1024,
33
+ "up_block_types": [
34
+ "UpDecoderBlock2D",
35
+ "UpDecoderBlock2D",
36
+ "UpDecoderBlock2D",
37
+ "UpDecoderBlock2D"
38
+ ],
39
+ "use_post_quant_conv": true,
40
+ "use_quant_conv": true
41
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db7953d19cacc295915865a5849da2a350546e85984624feefc3ace38c70db85
3
+ size 168120630