Skip to content

LLMGroundedDiffusionPipeline: inherit from DiffusionPipeline and fix peft #6023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

TonyLianLong
Copy link
Contributor

What does this PR do?

As discussed with @yiyixuxu in #5993, we would like to inherit from DiffusionPipeline rather than StableDiffusionPipeline.

This PR also fixes the PEFT issue mentioned by @stevhliu .

This PR updates the example to use the main revision so that it uses the fixed pipeline without requiring diffusers update.

Tested locally that it works with diffusers==0.24.0 with peft==0.6.2 and without peft.

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@yiyixuxu @stevhliu

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@yiyixuxu yiyixuxu merged commit 6182604 into huggingface:main Dec 1, 2023
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…peft (huggingface#6023)

* LLMGroundedDiffusionPipeline: inherit from DiffusionPipeline and fix peft

* Use main in the revision in the examples

* Add "Copied from" statements in comments

* Fix formatting with ruff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants