arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.01193cs.LGcs.AI
收藏

为移动端压缩大规模扩散模型

Squeezing Large-Scale Diffusion Models for Mobile

SqueezeBits Inc.(SqueezeBits公司);Seoul National University(首尔国立大学)

Jiwoong Choi, Minkyu Kim, Daehyun Ahn, Taesu Kim, Yulhwa Kim, Dongwon Jo, Hyesung Jeon, Jae-Joon Kim, Hyungjun Kim

AI总结:

本文提出了使用TensorFlow Lite框架将大规模Stable Diffusion模型部署到移动设备的挑战与解决方案,实现了Mobile Stable Diffusion在移动GPU上生成512x512图像推理延迟小于7秒。

摘要:

扩散模型的出现极大地拓宽了高保真图像合成的范围,在实际应用和学术研究中均取得了显著进展。随着该模型在各种实际应用中的积极采用,对设备端部署的需求大幅增长。然而,将如Stable Diffusion这样参数超过十亿的大型扩散模型部署到移动设备上,由于计算和内存资源有限(且可能因设备而异),带来了独特的挑战。在本文中,我们提出了在移动设备上使用TensorFlow Lite框架部署Stable Diffusion的挑战与解决方案,该框架支持iOS和Android设备。最终实现的Mobile Stable Diffusion在使用移动GPU的Android设备上,生成512x512图像的推理延迟小于7秒。

英文摘要:

The emergence of diffusion models has greatly broadened the scope of high-fidelity image synthesis, resulting in notable advancements in both practical implementation and academic research. With the active adoption of the model in various real-world applications, the need for on-device deployment has grown considerably. However, deploying large diffusion models such as Stable Diffusion with more than one billion parameters to mobile devices poses distinctive challenges due to the limited computational and memory resources, which may vary according to the device. In this paper, we present the challenges and solutions for deploying Stable Diffusion on mobile devices with TensorFlow Lite framework, which supports both iOS and Android devices. The resulting Mobile Stable Diffusion achieves the inference latency of smaller than 7 seconds for a 512x512 image generation on Android devices with mobile GPUs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑