Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • 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
18.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 24 commits
AlekseyCalvin's picture
AlekseyCalvin
Update transformer/config.json
d912c12 verified 5 months ago
  • scheduler
    Upload scheduler/scheduler_config.json with huggingface_hub 5 months ago
  • text_encoder
    Update text_encoder/config.json 5 months ago
  • tokenizer
    Upload tokenizer/tokenizer_config.json with huggingface_hub 5 months ago
  • transformer
    Update transformer/config.json 5 months ago
  • vae
    Upload vae/diffusion_pytorch_model.safetensors with huggingface_hub 5 months ago
  • .gitattributes
    1.58 kB
    Upload tokenizer/tokenizer.json with huggingface_hub 5 months ago
  • README.md
    4.53 kB
    Update README.md 5 months ago
  • model_index.json
    430 Bytes
    Upload model_index.json with huggingface_hub 5 months ago