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

  • Log In
  • Sign Up

rezashkv
/
diffusion_pruning

Text-to-Image
Diffusers
Safetensors
English
stable-diffusion
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use rezashkv/diffusion_pruning with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("rezashkv/diffusion_pruning", 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
diffusion_pruning / APTP-Base-CC3M /quantizer
211 kB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 1 commit
rezashkv's picture
rezashkv
add hypernet and quantizer
e79103d verified almost 2 years ago
  • config.json
    3 kB
    add hypernet and quantizer almost 2 years ago
  • diffusion_pytorch_model.safetensors
    208 kB
    xet
    add hypernet and quantizer almost 2 years ago