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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

zjwfufu
/
SMD-FLUX.1-dev

Text-to-Image
Diffusers
English
smd
diffusion-distillation
few-step
lora
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use zjwfufu/SMD-FLUX.1-dev with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("zjwfufu/SMD-FLUX.1-dev")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
SMD-FLUX.1-dev
2.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
zjwfufu's picture
zjwfufu
fix download counting error
319378b verified about 9 hours ago
  • examples
    initial commit 6 days ago
  • lora
    initial commit 6 days ago
  • .gitattributes
    1.58 kB
    initial commit 6 days ago
  • LICENSE-code
    11.4 kB
    initial commit 6 days ago
  • README.md
    3.62 kB
    fix download counting error about 9 hours ago
  • infer.py
    4.19 kB
    initial commit 6 days ago
  • inference_utils.py
    5.63 kB
    fix download counting error about 9 hours ago
  • requirements.txt
    210 Bytes
    initial commit 6 days ago
  • sampling.json
    773 Bytes
    initial commit 6 days ago
  • smd_lora.safetensors
    1.3 GB
    xet
    fix download counting error about 9 hours ago