Image-to-Image
Diffusers
Safetensors
Flux2Pipeline
sdnq
flux
image-editing
4-bit precision
8-bit precision
Instructions to use Disty0/FLUX.2-dev-SDNQ-uint4-svd-r32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Disty0/FLUX.2-dev-SDNQ-uint4-svd-r32 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Disty0/FLUX.2-dev-SDNQ-uint4-svd-r32", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| { | |
| "add_skip_keys": false, | |
| "dequantize_fp32": false, | |
| "group_size": 0, | |
| "is_integer": true, | |
| "is_training": false, | |
| "modules_dtype_dict": {}, | |
| "modules_to_not_convert": [ | |
| ".img_out", | |
| "wte", | |
| "patch_emb", | |
| ".final_layer", | |
| "multi_modal_projector", | |
| "time_text_embed", | |
| ".emb_in", | |
| ".img_in", | |
| ".condition_embedder", | |
| "lm_head.weight", | |
| "lm_head", | |
| ".emb_out", | |
| "patch_embed", | |
| ".txt_in", | |
| ".time_embed", | |
| ".context_embedder", | |
| ".x_embedder", | |
| ".vid_in", | |
| ".txt_out", | |
| ".norm_out", | |
| ".vid_out", | |
| ".proj_out", | |
| "patch_embedding" | |
| ], | |
| "non_blocking": false, | |
| "quant_conv": false, | |
| "quant_method": "sdnq", | |
| "quantization_device": null, | |
| "quantized_matmul_dtype": null, | |
| "return_device": null, | |
| "svd_rank": 32, | |
| "svd_steps": 8, | |
| "use_grad_ckpt": true, | |
| "use_quantized_matmul": false, | |
| "use_quantized_matmul_conv": false, | |
| "use_static_quantization": true, | |
| "use_stochastic_rounding": false, | |
| "use_svd": true, | |
| "weights_dtype": "uint4" | |
| } | |