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

Community Integration: Making AIGC cheaper, faster, and more efficient. #1212

Closed
binmakeswell opened this issue Nov 9, 2022 · 18 comments
Closed
Labels
stale Issues that haven't received updates

Comments

@binmakeswell
Copy link

Is your feature request related to a problem? Please describe.
AIGC has recently risen to be one of the hottest topics in AI. Unfortunately, large hardware requirements and training costs are still a severe impediment to the rapid growth of the AIGC industry. The Stable Diffusion v1 version of the model requires 150,000 A100 GPU Hours for a single training session.

Describe the solution you'd like
We are happy to share a fantastic solution where the costs of training AIGC models such as stable diffusion can be 7 times cheaper!

Colossal-AI release a complete open-source Stable Diffusion pretraining and fine-tuning solution with the pretraining cost reduced by 6.5 times, and the hardware cost of fine-tuning by 7 times. An RTX 2070/3050 PC is good enough to accomplish the fine-tuning task flow, allowing AIGC models such as Stable Diffusion to be available to a wider community.

Open-source code:https://github.com/hpcaitech/ColossalAI/tree/main/examples/images/diffusion

Additional context
More details can be found on the blog. We believe the democratization of AIGC models is also very helpful for Hugging Face members. We would appreciate it if we could build the integration with you to benefit both of our users and we are willing to provide help you need in this cooperation for free.

Thank you very much.

Best regards,
Yongbin Li, HPC-AI Tech

@patrickvonplaten
Copy link
Contributor

Hey @binmakeswell,

This sounds great - I think we'd be very interested in having a better integration here! Also cc @patil-suraj @thomwolf

@patil-suraj
Copy link
Contributor

This is very cool @binmakeswell ! Would be very happy to integrate diffusers in colossalAI examples!

@binmakeswell
Copy link
Author

Thanks for your enthusiastic response and we look forward to working together!

How do you expect it to be carried out?
Take our collaboration with Lightning for example, we communicated in slack for details, provided documentation and eventually did a joint release.

@0xdevalias
Copy link
Contributor

0xdevalias commented Nov 14, 2022

Would love to see a simple integration between diffusers and ColossalAI!

Here's a collection of related issues I found/opened on various StableDiffusion / Dreambooth related projects about this:

It would also be really interesting to hear/see benchmarks for how ColossalAI is compares and contrasts with the various other speed/memory/etc optimisations out there (eg. xformers, AITemplate, deepspeed, deepspeed-MII, bitsandbytes, kernl, Triton, etc); whether it is a replacement for them, or whether it can be used alongside them for even greater gains. A few related issues off the top of my head:

@binmakeswell
Copy link
Author

Thanks for your enthusiastic response and we look forward to working together!

How do you expect it to be carried out? Take our collaboration with Lightning for example, we communicated in slack for details, provided documentation and eventually did a joint release.

Hi, @patrickvonplaten and @patil-suraj , thank you for the enthusiastic response.
Do you have any requests or suggestions? Hopefully, we can discuss the details soon and complete this integration. Thanks.

@patrickvonplaten
Copy link
Contributor

Hey @binmakeswell,

Should we jump on a call to discuss? :-) I think we've reached out via email

@binmakeswell
Copy link
Author

Hey @binmakeswell,

Should we jump on a call to discuss? :-) I think we've reached out via email

Sure. @patrickvonplaten I just emailed(ybl@hpcaitech.com) you our available hours. Looking forward to our meeting and cooperation :-)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Dec 15, 2022
@0xdevalias
Copy link
Contributor

Hopefully not stale.

@binmakeswell
Copy link
Author

We are working in process for this integration : )

@haofanwang
Copy link
Contributor

haofanwang commented Jan 5, 2023

Any update @binmakeswell ? It would be very great to fasten training process.

I found train_dreambooth.py and train_dreambooth_colossalai.py that are based on diffusers.

@Fazziekey
Copy link
Contributor

Any update @binmakeswell ? It would be very great to fasten training process.

I found train_dreambooth.py and train_dreambooth_colossalai.py that are based on diffusers.

Thank you for your interest and contribution to colossalai, we have merged into the hugging face diffuser library.
https://github.com/huggingface/diffusers/tree/main/examples/research_projects/colossalai

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot closed this as completed Feb 7, 2023
@Kuri-su
Copy link

Kuri-su commented Feb 20, 2023

Is there any progress?

@patrickvonplaten
Copy link
Contributor

It's merged to diffusers :-) See:
https://github.com/huggingface/diffusers/tree/main/examples/research_projects/colossalai

@Sniper199999
Copy link

It's merged to diffusers :-) See: https://github.com/huggingface/diffusers/tree/main/examples/research_projects/colossalai

so does that mean that integration with Automatic1111 is around the corner?

@0xdevalias
Copy link
Contributor

@Sniper199999 Last I paid attention, automatic1111 isn't based on diffusers at all, so unless that has changed since I last looked, short answer is "no, probably not"

@patrickvonplaten
Copy link
Contributor

Actually we'd really like to integrate diffusers into A1111, but it seems quite complicated. Note sure if anybody has a clear plan of action. Also related: AUTOMATIC1111/stable-diffusion-webui#2577

Should we try to create a module plug-in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues that haven't received updates
Projects
None yet
Development

No branches or pull requests

8 participants