Text-to-Image
Diffusers
Safetensors
Flux2KleinPipeline
colab
kaggle
jupyter
klein
9b
image_edit
text-generation-inference
sdnq
quantization
T4
notebook
batch_edit
16GB
LoRa
Instructions to use codeShare/FLUX.2-klein-9b-SDNQ-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use codeShare/FLUX.2-klein-9b-SDNQ-4bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("codeShare/FLUX.2-klein-9b-SDNQ-4bit", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Upload transformer component
Browse files
transformer/config.json
CHANGED
|
@@ -178,14 +178,14 @@
|
|
| 178 |
},
|
| 179 |
"modules_quant_config": {},
|
| 180 |
"modules_to_not_convert": [
|
| 181 |
-
"double_stream_modulation_txt",
|
| 182 |
-
"single_stream_modulation",
|
| 183 |
-
"x_embedder",
|
| 184 |
"context_embedder",
|
| 185 |
".proj_out",
|
|
|
|
| 186 |
"norm_out",
|
| 187 |
"double_stream_modulation_img",
|
| 188 |
-
"
|
|
|
|
|
|
|
| 189 |
],
|
| 190 |
"non_blocking": false,
|
| 191 |
"quant_conv": false,
|
|
@@ -196,7 +196,7 @@
|
|
| 196 |
"return_device": "cpu",
|
| 197 |
"sdnq_version": "0.1.8",
|
| 198 |
"svd_rank": 32,
|
| 199 |
-
"svd_steps":
|
| 200 |
"use_dynamic_quantization": true,
|
| 201 |
"use_grad_ckpt": true,
|
| 202 |
"use_quantized_matmul": false,
|
|
|
|
| 178 |
},
|
| 179 |
"modules_quant_config": {},
|
| 180 |
"modules_to_not_convert": [
|
|
|
|
|
|
|
|
|
|
| 181 |
"context_embedder",
|
| 182 |
".proj_out",
|
| 183 |
+
"x_embedder",
|
| 184 |
"norm_out",
|
| 185 |
"double_stream_modulation_img",
|
| 186 |
+
"double_stream_modulation_txt",
|
| 187 |
+
"time_guidance_embed",
|
| 188 |
+
"single_stream_modulation"
|
| 189 |
],
|
| 190 |
"non_blocking": false,
|
| 191 |
"quant_conv": false,
|
|
|
|
| 196 |
"return_device": "cpu",
|
| 197 |
"sdnq_version": "0.1.8",
|
| 198 |
"svd_rank": 32,
|
| 199 |
+
"svd_steps": 16,
|
| 200 |
"use_dynamic_quantization": true,
|
| 201 |
"use_grad_ckpt": true,
|
| 202 |
"use_quantized_matmul": false,
|
transformer/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aca7c2d21d3b2bc11bfb0bb390d85f4781b45ca35871fa4ea285a3dc737097fe
|
| 3 |
+
size 5907008376
|