huggingface / huggingface/diffusers

Modular guiders should provide sane defaults

Open
#12,404 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

roadmap stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

Modular guiders are a great concept, but right now they are nearly impossible to use due to sane lack of default values.
For example, PerturbedAttentionGuidance requires either SkipLayerGuidance: List[int] param or perturbed_guidance_config: LayerSkipConfig param

There are no chance that normal user would know any of such deep internals. Ask is to provide default values and any such params should be optional.

cc @yiyixuxu @sayakpaul @DN6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the definitions and call sites for PerturbedAttentionGuidance and LayerSkipConfig, then inspect how modular guiders are instantiated without explicit configuration. Determine which parameters can be optional and what defaults preserve normal-user behavior; done means a guider can be created without either deep-internal argument and the relevant existing behavior remains covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.