Skip to content
AscendPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

18 stars

Watchers

0 watching

Forks

Latest commit

 

History

469 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MindIE SD

Documentation PyPI Community QR Code License SIG Meetings Zread DeepWiki

简体中文 | English

🚀 简介

MindIE SD(Mind Inference Engine Stable Diffusion)是 MindIE 的视图生成推理模型套件,它的目标是为稳定扩散(Stable Diffusion, SD)系列大模型提供在昇腾硬件及其软件栈上的端到端推理解决方案。该软件系统内部集成了各功能模块,并对外提供统一的编程接口。

支持的模型及特性叠加情况请参见模型/框架支持矩阵。

📢 Latest News

📦 安装指南

pip install mindiesd

其他安装方式和环境依赖详见安装指导。

🚀 架构介绍

MindIE SD 架构和关键特性详见架构介绍。

MindIE SD架构图

⚡️ 快速入门

快速开始: 以wan2.1为例,介绍使用mindiesd后的整体加速效果。

📚 开发文档

  • 贡献指南:说明如何提交 Issue、Pull Request 以及代码规范。
  • AI Agent 支持:介绍仓内默认使用的一些 skills 及使用 Agent 辅助开发流程。
  • 测试验证:介绍单元测试样例运行流程。

🌐 生态支持

以下项目已集成MindIE SD作为多模态推理后端:

🙏 Acknowledgment

感谢 CANN ops-transformer 和 CANN ops-nn 社区提供的算子源码。

  • 迁移与多模态性能优化:本仓的 QuantFlashAttn、EagleFusedInferAttentionScore、EagleBlockSparseAttention 和 EagleFfn 分别迁移自 CANN 的 QuantFlashAttn、FusedInferAttentionScore、BlockSparseAttention 和 FFN,并针对多模态推理场景进行性能优化。
  • 基于 CANN 算子开发:
    • sigmoid_mul_dynamic_mx_quant 复用 CANN Sigmoid 的向量计算和 DynamicMxQuant 的分组最大值归约、两种共享 scale 算法与 E4M3FN 量化,在 UB 内完成 FP32 或 BF16 门控乘法。
    • EagleQuantBlockSparseAttention 基于 CANN BlockSparseAttention 开发混合精度块稀疏注意力。
    • quant_four_over_six_a5 基于 CANN 动态 MX 量化 基础代码开发 Four Over Six 量化扩展。
    • eagle_quant_batch_matmul_swiglu 基于 CANN QuantBatchMatmulV3 的量化矩阵乘实现,参考 SwiGlu 的门控计算,在同一算子内完成 INT8 矩阵乘、FP32 反量化和 SwiGLU 激活。

感谢以下贡献者在相关 CANN 算子上的工作:cardiac_index, XiyueL, jiang-lirui, monologue815, chenyizhou, liwenguihw, wmg1, liyuanqiang, llqx-1, wuyi_huawei, merlinsantosh, lhlll, pingchuantang, F0rty-tw0, pyq17870581669, luo-yong-qing, ji-jun1。

📝 Paper Citations

Show more @misc{yu2026mxattentiondatafreeoptimalscaling, title={MXAttention: Data-Free Optimal Scaling and Pre-Normalization Quantization for MXFP4 Attention}, author={Jianlin Yu and Jing Lin and Linghui Kong and Aiyue Chen and Weiyi Sun and Chenyu Zeng and Wangli Lan and Jinxi Li and Zhuo Zheng and Ziyang Yue and Danning Ke and Fei Yi and Tianchi Hu and Yuan Ding and Yiwu Yao and Junsong Wang}, year={2026}, eprint={2607.24377}, archivePrefix={arXiv}, primaryClass={cs.LG}, url={https://arxiv.org/abs/2607.24377}, } @misc{liu2026rotateattentionropeawarerotationrange, title={RotateAttention: RoPE-Aware Rotation and Range Rectification for INT4 Quantized Attention in Video Generation}, author={Yaofu Liu and Wanli Lan and Jinxi Li and Binhang Yuan and Harry Yang}, year={2026}, eprint={2607.02584}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2607.02584}, } @misc{RainFusion2.0@2025, title = {RainFusion2.0: Temporal-Spatial Awareness and Hardware-Efficient Block-wise Sparse Attention}, author = {Aiyue Chen and Yaofu Liu and Junjian Huang and Guang Lian and Yiwu Yao and Wangli Lan and Jing Lin and Zhixin Ma and Tingting Zhou and Harry Yang}, year = {2025}, url = {https://gitcode.com/Ascend/MindIE-SD/blob/dev/docs/tech_report/RainFusion2.0.pdf} } @misc{zhang2025slasparsitydiffusiontransformers, title={SLA: Beyond Sparsity in Diffusion Transformers via Fine-Tunable Sparse-Linear Attention}, author={Jintao Zhang and Haoxu Wang and Kai Jiang and Shuo Yang and Kaiwen Zheng and Haocheng Xi and Ziteng Wang and Hongzhou Zhu and Min Zhao and Ion Stoica and Joseph E. Gonzalez and Jun Zhu and Jianfei Chen}, year={2025}, eprint={2509.24006}, archivePrefix={arXiv}, primaryClass={cs.LG}, url={https://arxiv.org/abs/2509.24006}, } @misc{zhang2025sageattentionaccurate8bitattention, title={SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration}, author={Jintao Zhang and Jia Wei and Haofeng Huang and Pengle Zhang and Jun Zhu and Jianfei Chen}, year={2025}, eprint={2410.02367}, archivePrefix={arXiv}, primaryClass={cs.LG}, url={https://arxiv.org/abs/2410.02367}, } @misc{ashkboos2024quarotoutlierfree4bitinference, title={QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs}, author={Saleh Ashkboos and Amirkeivan Mohtashami and Maximilian L. Croci and Bo Li and Pashmina Cameron and Martin Jaggi and Dan Alistarh and Torsten Hoefler and James Hensman}, year={2024}, eprint={2404.00456}, archivePrefix={arXiv}, primaryClass={cs.LG}, url={https://arxiv.org/abs/2404.00456}, } @misc{cook2026sixaccuratenvfp4quantization, title={Four Over Six: More Accurate NVFP4 Quantization with Adaptive Block Scaling}, author={Jack Cook and Junxian Guo and Guangxuan Xiao and Yujun Lin and Keith Wyss and Mahdi Nazemi and Asit Mishra and Carlo del Mundo and Tijmen Blankevoort and Song Han}, year={2026}, eprint={2512.02010}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2512.02010}, }

💬 联系我们

欢迎通过 GitCode Issues 直接参与讨论与反馈。

为了更便捷地交流并获得更快的响应,我们建立了 MindIE SD 微信交流群。您可以扫描左侧的微信群二维码加入交流群;若群二维码已失效,请扫描右侧的个人微信二维码,添加好友后由其邀请您加入交流群。

微信交流群 个人微信(群二维码失效时添加)
微信群聊二维码 个人微信二维码

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages