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

  • Log In
  • Sign Up

diffusers
/
flux2-bnb-4bit-modular

Text-to-Image
Diffusers
Safetensors
modular-diffusers
flux2
Model card Files Files and versions
xet
Community
2

Instructions to use diffusers/flux2-bnb-4bit-modular with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use diffusers/flux2-bnb-4bit-modular with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("diffusers/flux2-bnb-4bit-modular", 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
flux2-bnb-4bit-modular
66.5 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 7 commits
YiYiXu's picture
YiYiXu HF Staff
Update modular_model_index.json
90dac08 verified 2 months ago
  • scheduler
    Upload Flux2ModularPipeline (#1) 2 months ago
  • text_encoder
    Upload Flux2ModularPipeline (#2) 2 months ago
  • tokenizer
    Upload Flux2ModularPipeline (#2) 2 months ago
  • transformer
    Upload Flux2ModularPipeline (#1) 2 months ago
  • vae
    Upload Flux2ModularPipeline (#1) 2 months ago
  • .gitattributes
    1.58 kB
    Upload Flux2ModularPipeline (#2) 2 months ago
  • README.md
    1.14 kB
    Upload Flux2ModularPipeline (#2) 2 months ago
  • modular_model_index.json
    1.73 kB
    Update modular_model_index.json 2 months ago