Skip to content
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

Support for Ldm3d #304

Merged
merged 19 commits into from
Aug 14, 2023
Merged

Support for Ldm3d #304

merged 19 commits into from
Aug 14, 2023

Conversation

estelleafl
Copy link
Contributor

@estelleafl estelleafl commented Jul 25, 2023

In this PR we integrated our model LDM3D such as the GaudiStableDiffusion pipeline

Where should I write tests?
Should I create a "https://huggingface.co/docs/optimum/habana/package_reference/stable_diffusion_pipeline_ldm3d"

@estelleafl estelleafl changed the title Ldm3d Support for Ldm3d Jul 25, 2023
Copy link
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@estelleafl Nice add to the lib 🔥 🚀

I left a few comments, mainly about the doc and the example.

Regarding tests, you can add some here: https://github.com/huggingface/optimum-habana/blob/main/tests/test_diffusers.py
My suggestion is to add only one slow test to check that there is no generation regression such as this one:

@regisss
Copy link
Collaborator

regisss commented Jul 27, 2023

@estelleafl I saw also that the code style check failed, could you run the following from the root of the repo please?

pip install black ruff
make style

@estelleafl
Copy link
Contributor Author

Hi @regisss
Thanks a lot for your review and comments!
I went through all of them and pushed the new version
Let me know what you think!
Best
Estelle

@estelleafl
Copy link
Contributor Author

Hi @regisss
I see that some tests are failing, could you help me understand why?

@fxmarty
Copy link
Contributor

fxmarty commented Aug 1, 2023

Hi @estelleafl, thank you for the PR! Regis is off until mid-next week unfortunately.

Looking at the workflows, I believe the issue is that these wrokflows run on AWS, and thus require keys stored in github secrets, which may not be used for PRs from external contributors for security reasons: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/.

I'll see if implementing https://iterative.ai/blog/testing-external-contributions-using-github-actions-secrets is safe.

@estelleafl
Copy link
Contributor Author

Thank you @fxmarty let me know if I can help in any way as well

@fxmarty
Copy link
Contributor

fxmarty commented Aug 2, 2023

Hi @estelleafl, could you push to this PR (even an empty commit)? Then I should hopefully be able to trigger the CI.

@estelleafl
Copy link
Contributor Author

Hi @fxmarty
Done!

@regisss regisss added the run-test Run CI for PRs from external contributors label Aug 10, 2023
@HuggingFaceDocBuilderDev

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

Copy link
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@estelleafl Thanks for taking my comments into account!

I left a few more comments. The main one is about removing --ldm3d_model_name_or_path in the example so that we keep only one argument for the model name. I propose an alternative to make sure that the default model is Intel/ldm3d-4c when --ldm3d is given, let me know what you think about it.

docs/source/tutorials/stable_diffusion_ldm3d.mdx Outdated Show resolved Hide resolved
examples/stable-diffusion/README.md Outdated Show resolved Hide resolved
examples/stable-diffusion/README.md Outdated Show resolved Hide resolved
examples/stable-diffusion/text_to_image_generation.py Outdated Show resolved Hide resolved
@regisss regisss added run-test Run CI for PRs from external contributors and removed run-test Run CI for PRs from external contributors labels Aug 14, 2023
Copy link
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests passed, I'm going to merge! Thanks @estelleafl @PhillipHoward for this nice contribution 🔥 🚀

@regisss regisss merged commit deb7ff6 into huggingface:main Aug 14, 2023
11 of 12 checks passed
@estelleafl
Copy link
Contributor Author

great!! thank you

@estelleafl
Copy link
Contributor Author

@regisss could we add ldm3d in here : https://huggingface.co/docs/optimum/habana/index ?
What do you think?

@regisss
Copy link
Collaborator

regisss commented Aug 14, 2023

@regisss could we add ldm3d in here : https://huggingface.co/docs/optimum/habana/index ? What do you think?

@estelleafl Yes definitely! I forgot about it but I'm working on a slight lifting of the table where I already included LDM3D: https://github.com/huggingface/optimum-habana/tree/update_model_table#validated-models
Let me know if you have any feedback!

edit: I linked to the table of the README, but I'm planning to do the same changes to the table of the doc of course

@estelleafl
Copy link
Contributor Author

great! thank you @regisss

@regisss
Copy link
Collaborator

regisss commented Aug 14, 2023

@estelleafl Here it is: https://github.com/huggingface/optimum-habana#validated-models
The doc should be updated in about half an hour.

hsubramony pushed a commit that referenced this pull request Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-test Run CI for PRs from external contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants