Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

mit-han-lab
/
svdq-fp4-flux.1-fill-dev

Image-to-Image
Diffusers
English
SVDQuant
FLUX.1-Fill-dev
FLUX.1
Diffusion
Quantization
ICLR2025
Model card Files Files and versions
xet
Community

Instructions to use mit-han-lab/svdq-fp4-flux.1-fill-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use mit-han-lab/svdq-fp4-flux.1-fill-dev 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("mit-han-lab/svdq-fp4-flux.1-fill-dev", 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
svdq-fp4-flux.1-fill-dev
7.04 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
Lmxyy's picture
Lmxyy
Create README.md
cec73b4 verified 11 months ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    1.39 kB
    Create README.md 11 months ago
  • comfy_config.json
    478 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • config.json
    393 Bytes
    Upload folder using huggingface_hub over 1 year ago
  • transformer_blocks.safetensors
    6.91 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • unquantized_layers.safetensors
    130 MB
    xet
    Upload folder using huggingface_hub over 1 year ago