mlc-llm icon indicating copy to clipboard operation
mlc-llm copied to clipboard

[Feature Request] Is there any plan for stable diffusion running under this project?

Open felixslu opened this issue 1 year ago • 2 comments

🚀 Feature

Support stable diffusion models! SnapFusion models can run in the phone within 2 seconds!
https://arxiv.org/pdf/2306.00980.pdf

Motivation

Text-to-image diffusion models can create stunning images from natural language descriptions. It is an important node in large model ecology!

Alternatives

should we use weapon of tvm unity to reach the deployment of stable diffusion model on any devices with gpu?

Additional context

felixslu avatar Jun 12 '23 02:06 felixslu

Thanks for suggesting the paper, we'll read it and see how can we benefit from SnapFusion.

Yes, TVM Unity could be used to deploy Stable-Diffusion models, we already have a web-stable-diffusion repo which uses TVM Unity for SD models on web browsers.

yzh119 avatar Jun 12 '23 08:06 yzh119

Thanks for your advise! I will try this repo.(web-stable-diffusion)

As I known,3-4 bit quantization technology (such as gptq) have not been used in the web-stable-diffusion project , maybe it could benefit from the optimization methods in mlc-llm project ? (Maybe your team could support a quantization version for SD to accelerate infer cost time. )

felixslu avatar Jun 12 '23 12:06 felixslu

Hi,MLC team! I have try to run this repo ,but failed!(web-stable-diffusion).

Firstly, I try to use pre-auto-tuned schedule params in directory of log_db ,but get errors. "https://github.com/mlc-ai/web-stable-diffusion/issues/38".

Then, I try to do auto-tuning by myself, but get other errors. "Did you forget to bind? RuntimeError: Memory verification failed with the following errors".

Can I get any furture help from your team? Thanks!

felixslu avatar Jun 13 '23 11:06 felixslu

hi,MLC Team! Could you have time to update the stable diffusion log_db ? (web-stable-diffusion) Because, we can not get auto-tunning params for newly introduced purity flag. We get error below when do "ms.database.create" ops.

/workspace/tvm/src/node/serialization.cc:375: JSONReader: cannot find field purity https://github.com/mlc-ai/mlc-llm/issues/407

felixslu avatar Jun 14 '23 01:06 felixslu

is there any update? it would be really awesome if stable diffusion can be run on mobile phones

Jack47 avatar Jul 20 '23 14:07 Jack47

is there any update? it would be really awesome if stable diffusion can be run on mobile phones

https://github.com/ZTMIDGO/Android-Stable-diffusion-ONNX here

Fcucgvhhhvjv avatar Aug 04 '23 16:08 Fcucgvhhhvjv