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

AlekseyCalvin
/
FLUX2_dev_2bit_hqq

Image-to-Image
Diffusers
Safetensors
Transformers
GGUF
English
Flux2Pipeline
image-generation
image-editing
text-to-image
flux2
flux
quantization
hqq
optimization
quantized
2bit
Model card Files Files and versions
xet
Community

Instructions to use AlekseyCalvin/FLUX2_dev_2bit_hqq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use AlekseyCalvin/FLUX2_dev_2bit_hqq 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("AlekseyCalvin/FLUX2_dev_2bit_hqq", 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]
  • Transformers

    How to use AlekseyCalvin/FLUX2_dev_2bit_hqq with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-to-image", model="AlekseyCalvin/FLUX2_dev_2bit_hqq")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("AlekseyCalvin/FLUX2_dev_2bit_hqq", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
FLUX2_dev_2bit_hqq / transformer
10.1 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
AlekseyCalvin's picture
AlekseyCalvin
Update transformer/config.json
d912c12 verified 6 months ago
  • config.json
    635 Bytes
    Update transformer/config.json 6 months ago
  • diffusion_pytorch_model.safetensors
    10.1 GB
    xet
    Upload folder using huggingface_hub 6 months ago