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

feizhai123
/
flux2-dev-modelopt-fp8

Image-to-Image
Diffusers
Safetensors
Flux2Pipeline
Model card Files Files and versions
xet
Community

Instructions to use feizhai123/flux2-dev-modelopt-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use feizhai123/flux2-dev-modelopt-fp8 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("feizhai123/flux2-dev-modelopt-fp8", 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
flux2-dev-modelopt-fp8 / transformer
33 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
feizhai123's picture
feizhai123
Add files using upload-large-folder tool
fe97816 verified about 1 month ago
  • config.json
    1.55 kB
    Add files using upload-large-folder tool about 1 month ago
  • diffusion_pytorch_model-00001-of-00004.safetensors
    9.82 GB
    xet
    Add files using upload-large-folder tool about 1 month ago
  • diffusion_pytorch_model-00002-of-00004.safetensors
    9.81 GB
    xet
    Add files using upload-large-folder tool about 1 month ago
  • diffusion_pytorch_model-00003-of-00004.safetensors
    9.81 GB
    xet
    Add files using upload-large-folder tool about 1 month ago
  • diffusion_pytorch_model-00004-of-00004.safetensors
    3.59 GB
    xet
    Add files using upload-large-folder tool about 1 month ago
  • diffusion_pytorch_model.safetensors.index.json
    79.6 kB
    Add files using upload-large-folder tool about 1 month ago