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

  • Log In
  • Sign Up

diffusers
/
FLUX.1-dev-torchao-fp8

Text-to-Image
Diffusers
FluxPipeline
quantization
Model card Files Files and versions
xet
Community
1

Instructions to use diffusers/FLUX.1-dev-torchao-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use diffusers/FLUX.1-dev-torchao-fp8 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/FLUX.1-dev-torchao-fp8", 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
FLUX.1-dev-torchao-fp8 / text_encoder
492 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
76f0e0e verified 8 months ago
  • config.json
    561 Bytes
    Upload FluxPipeline 12 months ago
  • model.safetensors
    246 MB
    xet
    Adding `safetensors` variant of this model 8 months ago
  • pytorch_model.bin
    246 MB
    xet
    Upload FluxPipeline 12 months ago