arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.15077cs.CVcs.AI
收藏

面向视频扩散Transformer的硬件友好型静态量化方法

Hardware-Friendly Static Quantization Method for Video Diffusion Transformers

Division of the Humanities and Social Sciences(人文与社会科学系);California Institute of Technology(加州理工学院);Device Solutions Research America(设备解决方案研究美国);Samsung Semiconductor Inc.(三星半导体公司)

Sanghyun Yi, Qingfeng Liu, Mostafa El-Khamy

AI总结:

针对资源受限设备无法支持视频扩散Transformer动态量化的问题,提出一种基于每步校准、通道/张量级量化及平滑量化的静态训练后量化方法,性能媲美FP16与动态量化方案,可高效部署于AI处理器。

摘要:

自SORA展现出优异性能以来,用于视频生成的扩散Transformer已引发大量研究兴趣。这类生成式AI模型在GPU上的高效部署已通过动态量化得到验证。然而,资源受限设备无法支持动态量化,需要对模型进行静态量化以在AI处理器上高效部署。本文提出了一种针对视频扩散Transformer OpenSora的新型训练后量化方法,无需依赖动态量化技术。我们的方法采用静态量化,经CLIP和VQA指标衡量,其生成的视频质量可与FP16及动态量化的ViDiT-Q方法相媲美。具体而言,我们利用每步校准数据为每个时间步充分提供训练后静态量化模型,对权重采用通道级量化,对激活采用张量级量化。通过进一步应用平滑量化技术,我们能使用静态量化模型获得高质量视频输出。大量实验结果表明,对于视频扩散Transformer,静态量化可成为动态量化的可行替代方案,在不牺牲性能的前提下提供更高效的部署方式。

英文摘要:

Diffusion Transformers for video generation have gained significant research interest since the impressive performance of SORA. Efficient deployment of such generative-AI models on GPUs has been demonstrated with dynamic quantization. However, resource-constrained devices cannot support dynamic quantization, and need static quantization of the models for their efficient deployment on AI processors. In this paper, we propose a novel method for the post-training quantization of OpenSora\cite{opensora}, a Video Diffusion Transformer, without relying on dynamic quantization techniques. Our approach employs static quantization, achieving video quality comparable to FP16 and dynamically quantized ViDiT-Q methods, as measured by CLIP, and VQA metrics. In particular, we utilize per-step calibration data to adequately provide a post-training statically quantized model for each time step, incorporating channel-wise quantization for weights and tensor-wise quantization for activations. By further applying the smooth-quantization technique, we can obtain high-quality video outputs with the statically quantized models. Extensive experimental results demonstrate that static quantization can be a viable alternative to dynamic quantization for video diffusion transformers, offering a more efficient approach without sacrificing performance.

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

↑