昇腾亲和的多模态加速系列套件,现已支持vLLM Omni,Diffusers+CacheDit等框架。
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[Docs]补充安装指引、测试说明、模型权重获取及版本信息 Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !336 merge doc_yiyongxing into dev [Docs]补充安装指引、测试说明、模型权重获取及版本信息 Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #172 # Purpose 本次修改解决以下文档问题,改善开源社区新用户体验: 1. **README 增加安装入口**:README.md 和 README.en.md 新增「安装指南」章节,链接至 installation.md / installing_guide.md。 2. **测试指引完善**:中英文 test.md 增加「测试环境说明」章节,说明 CPU 兼容测试与 NPU 依赖测试的分类,补充 run_UT_test.sh 和 run_test.sh 三种模式(--all / --cpu_only / --npu_only)的完整使用方法。 3. **模型权重获取指引**:中英文 quick_start.md 将原来的单段「模型下载与运行」拆分为「获取推理脚本」「获取模型权重」「运行推理」三步,明确说明仓库不含权重,给出 HuggingFace 权重下载链接和期望目录结构。 4. **CANN 安装指引**:中文 installation.md 新增「CANN 安装」小节,给出官方安装指南链接和环境变量设置命令。 5. **依赖版本更新**: - CANN 版本统一更新为 9.0.0(涉及 installation.md、release_note.md、Dockerfile、docker/README.md、installing_guide.md、SKILL.md) - torch/torch_npu 版本列表增加 2.10 - 新增部署依赖 triton==3.5.0 和 triton-ascend==3.2.1(requirements.txt、installation.md、installing_guide.md、SKILL.md) # Test Plan - 文档内容为纯文本修改,无代码逻辑变更 - 建议 markdownlint 检查通过:pre-commit run markdownlint --all-files --hook-stage manual - 建议验证文档站点可正常构建: ```bash python -m pip install -r docs/requirements-docs.txt python docs/build_docs.py See merge request: Ascend/MindIE-SD!336 | 4 个月前 | |
[Docs] refresh lint and dependency config, docker, docs Co-authored-by: weixin_44144262<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !243 merge dev into dev [Docs] refresh lint and dependency config, docker, docs Created-by: weixin_44144262 Commit-by: weixin_44144262 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #72 # Purpose This PR delivers five grouped changes: 1. add a 910B AArch64 docker build environment; 2. refresh repository lint/dependency inputs; 3. reorganize developer documentation and navigation; 4. align homepage, manuals, and tech report entrypoints; 5. consolidate governance skill routing and require proactive commit/PR draft output. # Test Plan 1. Review the new docker build files and README. 2. Review repository dependency and pre-commit configuration changes. 3. Review Chinese and English developer guide updates and navigation entrypoints. 4. Review homepage/manual/report entry changes. 5. Review AGENTS.md and .agents/skills/mindie-sd-community-governance/SKILL.md for routing and PR-drafting requirements. # Test Report  See merge request: Ascend/MindIE-SD!243 | 5 个月前 | |
feat: implement basic dev container capabilities Co-authored-by: hejianping<hejianping7@huawei.com> # message auto-generated for no-merge-commit merge: !235 merge build/devcontainer into dev feat: implement basic dev container capabilities Created-by: hejianping Commit-by: hejianping Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes Fixes [#69](https://gitcode.com/Ascend/MindIE-SD/issues/69) # Purpose 在社区提供DevContainer核心能力,让 1.环境标准化:把“我本地能跑”变成“团队都能跑” 2 多角色/多场景配置:一个仓库不必只有一种环境 3 Features:把工具安装标准化、模块化 4 Templates:把最佳实践打包成开箱模板 5 生命周期脚本:让环境初始化自动完成 6 预构建能力:把“第一次进入很慢”变成“秒级可用” 7 CLI:把 IDE 体验变成流水线能力 # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request 在wsl下测试执行UT成功,信息如下: INFO:root:creating build/lib/mindiesd/ops/vendors/customize INFO:root:creating build/lib/mindiesd/ops/vendors/customize/framework INFO:root:creating build/lib/mindiesd/ops/vendors/customize/framework/onnx INFO:root:copying mindiesd/ops/vendors/customize/framework/onnx/libcust_onnx_parsers.so -> build/lib/mindiesd/ops/vendors/customize/framework/onnx INFO:root:creating build/lib/mindiesd/ops/vendors/customize/framework/tensorflow INFO:root:copying mindiesd/ops/vendors/customize/framework/tensorflow/npu_supported_ops.json -> build/lib/mindiesd/ops/vendors/customize/framework/tensorflow INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/config INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/config/ascend310p INFO:root:copying mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/config/ascend310p/aic-ascend310p-ops-info.json -> build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/config/ascend310p INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl/constants.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl/flash_attention_fwd.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl/flash_attention_tik.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl/tik_ops_utils.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/ai_core/tbe/customize_impl INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/vector_core INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/vector_core/tbe INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl/constants.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl/flash_attention_fwd.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl/flash_attention_tik.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl INFO:root:copying mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl/tik_ops_utils.py -> build/lib/mindiesd/ops/vendors/customize/op_impl/vector_core/tbe/customize_impl INFO:root:creating build/lib/mindiesd/ops/vendors/customize/op_proto INFO:root:copying mindiesd/ops/vendors/customize/op_proto/libcust_op_proto.so -> build/lib/mindiesd/ops/vendors/customize/op_proto INFO:root:copying mindiesd/plugin/libPTAExtensionOPS.so -> build/lib/mindiesd/plugin WARNING:root:warning: CustomBuildPy: byte-compiling is disabled, skipping. root@00464f0fc4a3:/workspace/MindIE-SD# bash tests/run_UT_test.sh ........2026-04-08 20:11:51.462+08:00 CST [10710] [138009548819328] [MindIE-SD] [ERROR] exception.py:26: [MIE06E000002] Config parameter err. Test config exception! .2026-04-08 20:11:51.462+08:00 CST [10710] [138009548819328] [MindIE-SD] [ERROR] exception.py:47: [MIE06E000005] Model exec err. Test model exec exception! .2026-04-08 20:11:51.462+08:00 CST [10710] [138009548819328] [MindIE-SD] [ERROR] exception.py:40: [MIE06E000004] Model init err. Test model init exception! .2026-04-08 20:11:51.463+08:00 CST [10710] [138009548819328] [MindIE-SD] [ERROR] exception.py:19: [MIE06E000001] Parameters invalid. Test parameter exception! .2026-04-08 20:11:51.463+08:00 CST [10710] [138009548819328] [MindIE-SD] [ERROR] exception.py:33: [MIE06E000003] Torch exec err. Test torch exception! ..... ---------------------------------------------------------------------- Ran 17 tests in 0.038s OK # Test Report See merge request: Ascend/MindIE-SD!235 | 5 个月前 | |
[revert]dev同步到master Co-authored-by: mazhixin00_00<mazhixin7@huawei.com> # message auto-generated for no-merge-commit merge: !220 merge revert-mr-213-1774087912878-auto into master [revert]dev同步到master Created-by: mazhixin00_00 Commit-by: mazhixin00_00 Merged-by: ascend-robot Description: dev同步到master See merge request: Ascend/MindIE-SD!220 | 6 个月前 | |
[dev]同步最新代码 Co-authored-by: mazhixin00_00<mazhixin7@huawei.com> | 10 个月前 | |
[Feature][Build]Conditionally set ascend_compute_unit by CANN version Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !367 merge cann_950 into dev [Feature][Build]Conditionally set ascend_compute_unit by CANN version Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes Fixes [#184](https://gitcode.com/Ascend/MindIE-SD/issues/184) # Purpose 在 build/build_ops.sh 中根据 CANN 版本动态设置 ascend_compute_unit: - CANN < 9.0.0 时,编译目标为 ascend910;ascend910b;ascend910_93,不包含 ascend950 - CANN ≥ 9.0.0 时,编译目标为 ascend910;ascend910b;ascend910_93;ascend950 将变量赋值从 build_ops() 函数内提升到顶层,与已有的 CANN 版本检测逻辑合并,避免重复检测。 # Test Plan - 在 CANN 8.x 环境下执行 build_ops.sh,确认 ascend_compute_unit 不包含 ascend950 - 在 CANN 9.x 环境下执行 build_ops.sh,确认 ascend_compute_unit 包含 ascend950 # Test Report CANN 8.5.1下编译通过:  See merge request: Ascend/MindIE-SD!367 | 3 个月前 | |
[Bugfix][SparseEstimate]Fix uninitialized variables on invalid input_layout and align fake op with C++ plugin Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !356 merge sparse_block_estimate into dev [Bugfix][SparseEstimate]Fix uninitialized variables on invalid input_layout and align fake op with C++ plugin Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fixes #186 # Purpose 修复 sparse_block_estimate C++ plugin 中的 input_layout 校验缺陷。 **问题根因:** - csrc/plugin/sparse_block_estimate.cpp 中,当 input_layout 不属于 BNSD/BSND/BSH 时,else 分支仅打印 std::cerr 日志,不 return 也不抛异常,导致 b/nq/s/d 四个局部变量保持未初始化状态,后续用这些随机值计算 tensor shape 并分配 NPU 内存。 - Python fake op (mindiesd/layers/_custom_ops.py) 不支持 BSH layout,与 C++ plugin 支持范围不一致;且非法 layout 的错误语义不一致(fake op 抛异常,C++ 不抛)。 **本次修改内容:** 1. **C++ Plugin (csrc/plugin/sparse_block_estimate.cpp)** - 将 int64_t b/nq/s/d 初始化为 0,消除未初始化变量风险 - 将 else 分支中的 std::cerr 替换为 TORCH_CHECK(false, ...),非法 layout 立即抛出 RuntimeError 2. **Python Fake Op (mindiesd/layers/_custom_ops.py)** - 新增 elif input_layout == "BSH" 分支,与 C++ plugin 的 BSH 支持对齐 - 统一错误消息为 supports 'BNSD', 'BSND', 'BSH' 3. **测试 (tests/plugin/test_sparseblockestimate.py)** - 新增 test_bsh_layout_output_shape:验证 BSH layout 正常工作且输出 shape 正确 - 新增 test_invalid_layout_empty_string:验证空字符串 layout 抛出 RuntimeError - 原有 test_invalid_layout 补充 docstring # Test Plan 1. C++ 编译验证: ```bash cd build && bash build_plugin.sh 预期:libPTAExtensionOPS.so 编译成功,无编译错误或警告。 NPU 功能测试: MINDIE_TEST_MODE=ALL python -m pytest tests/plugin/test_sparseblockestimate.py -v 预期:全部测试通过,包括新增的 test_bsh_layout_output_shape 和 test_invalid_layout_empty_string。 CPU 模式 fake op 测试(无需 NPU 设备): MINDIE_TEST_MODE=CPU python -m pytest tests/plugin/test_sparseblockestimate.py -v -k "test_invalid" 验证非法 layout 在 fake op 路径也能正确抛出异常。 Test Report  See merge request: Ascend/MindIE-SD!356 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
[Test]Standardize test infrastructure and fix lint compliance across test suite Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !340 merge test_correct_0608 into dev [Test]Standardize test infrastructure and fix lint compliance across test suite Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #179 # Purpose 1. **统一测试基础设施** - 新增 tests/conftest.py,通过 pytest 内置机制配置 sys.path 和 ASCEND_CUSTOM_OPP_PATH,替代各测试文件中散落的 sys.path.append / sys.path.insert - 同时将各测试文件中散落的 sys.path.append / sys.path.insert和 ASCEND_CUSTOM_OPP_PATH添加到run.py中和run_test.sh中 - 新增 tests/utils/utils/torch_npu_mock.py,抽取统一的 mock_torch_npu() 工具函数,替代 tests/run.py 和 tests/UT/run.py 中重复的内联 mock 逻辑 2. **修复 lint 合规性** - 移除所有测试文件中手动的 sys.path 操作(由 conftest.py 统一接管) - 添加 # pylint: disable=no-name-in-module 消除 NPU 模块 import 告警 - 统一 @unittest.skipIf 装饰器为多行格式 - 修复 import 排序、去除多余空行和尾逗号 3. **Pre-commit 配置对齐** - pre-commit/pyproject.toml:pylint disable 列表新增 duplicate-code ## 运行测试 ### 全量测试 ** 使用 run_test.sh(推荐,含覆盖率报告)** bash cd tests # 运行全量测试(含覆盖率报告) bash run_test.sh # 仅运行 CPU 兼容测试(无需 NPU 环境) bash run_test.sh --cpu_only # 仅运行 NPU 依赖测试 bash run_test.sh --npu_only ### 执行单个测试用例 方式一:使用 run_test.sh 指定文件 bash cd tests # 运行单个测试文件 bash run_test.sh quantization/test_layer.py # 运行多个测试文件 bash run_test.sh layers/test_embedding.py quantization/test_mode.py # CPU 模式下运行单个文件 bash run_test.sh --cpu_only quantization/test_mode.py 方式二:使用 pytest 方式 bash # pytest 方式(支持更多过滤选项) python -m pytest tests/quantization/test_layer.py -v # Test Plan 1. CPU 模式验证:MINDIE_TEST_MODE=CPU python -m pytest tests/ -k "not NPU",确认 mock 机制正确加载 2. Lint 检查:pre-commit run --all-files,确认新增 disable 项生效且无新增告警 3. 构建验证:在 CANN 8.x 环境执行 bash build/build_ops.sh,确认 customize_transformer 目录自动创建 4. NPU 模式回归:python tests/run.py,确认全量测试无回归 # Test Report 全量UT测试:  See merge request: Ascend/MindIE-SD!340 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
[openlibing.ci] auto fixes by pre-commit | 4 个月前 | |
[CI][build]Adopt PEP 517 build flow and refresh UT coverage Co-authored-by: weixin_44144262<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !247 merge dev into dev [CI][build]Adopt PEP 517 build flow and refresh UT coverage Created-by: weixin_44144262 Commit-by: weixin_44144262 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #72 # Purpose Adopt PEP 517 build flow and refresh UT coverage # Test Plan CI同步修改构建入口和覆盖率拦截,需要通过CIE配置自定义流水线验证 https://gitcode.com/Ascend/MindIE-CI/pull/62 # Test Report   See merge request: Ascend/MindIE-SD!247 | 5 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
[Docs][developer-guide]Optimize developer guide structure and content Co-authored-by: blian6<bin.lian@outlook.com> # message auto-generated for no-merge-commit merge: !306 merge dev into dev [Docs][developer-guide]Optimize developer guide structure and content Created-by: blian Commit-by: blian6 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes N/A # Purpose 对 docs/zh/developer_guide/ 下的开发者指南进行系统性优化: **文件重组** - tooling.md → dev_setup.md(zh + en 同步改名) - build_guide.md:删除 5 节无关内容(镜像安装、容器安装、升级、卸载) - test.md:删除「常见异常说明」节(推理期运行时错误,与测试无关) - pattern_dev_guide.md:删除 Mismatch 调试和 Copy 消减两节 - benchmark_and_profiling.md:精简为纯性能分析文档 **新增文件(4 个)** - repo_structure.md:仓库目录结构与模块说明 - contribution_guide.md:贡献全流程(编码规范表格化、PR 流程、新手上路) - pattern_dev_guide.md:Pattern 开发 5 阶段指南 - benchmark_and_profiling.md:性能分析(Profiling 采集 + 数据分析 + 特性说明) **内容扩充** - test.md:新增「测试编写规范」节(组织原则 + 性能规范) - contribution_guide.md:编码规范从 1 段扩展为 Ruff 规则表 + pre-commit 钩子表 + Python 约定 - 新增编码注意事项(新功能支持准则、多分支默认路径优先) **文档导航** - docs/zh/index.md toctree 同步更新 **Skill 修正** - profiling-collection/SKILL.md:warmup 步数修正、移除不存在的 collect_profile.py 引用 # Test Plan 1. 基础 pre-commit 检查: pre-commit run --all-files 2. Markdown lint 检查:pre-commit run markdownlint --all-files --hook-stage manual 3. 文档站点编译:python docs/build_docs.py # Test Report | 检查项 | 结果 | |--------|------| | trailing-whitespace | ✅ Passed | | end-of-file-fixer | ✅ Passed | | codespell | ✅ Passed | | typos | ✅ Passed | | markdownlint | ✅ Passed(MD032/MD034 已修复) | | 中文 Sphinx build(25 源文件) | ✅ build succeeded,无 error/warning | | 英文 Sphinx build(21 源文件) | ✅ build succeeded,无 error/warning | See merge request: Ascend/MindIE-SD!306 | 4 个月前 | |
[Feature][flash_attn]A5 注意力/稀疏算子兼容适配:公共 API 自动路由与旧算子保护 Co-authored-by: daviwang<daviwang@noreply.gitcode.com> # message auto-generated for no-merge-commit merge: !315 merge dev into dev [Feature][flash_attn]A5 注意力/稀疏算子兼容适配:公共 API 自动路由与旧算子保护 Created-by: mazhixin00_00 Commit-by: daviwang Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes Fixes #162 # Purpose 适配 A5芯片:部分注意力与稀疏注意力算子在 A5 上不再可用,本 PR 让上层代码无需改动即可在 A5 上继续运行,并对直接调用下线算子的场景给出清晰报错与迁移指引。 - 新增 is_a5_device()(mindiesd/utils/get_platform.py)统一识别 A5。 - 公共 API 在 A5 上自动路由: - attention_forward(manual / static / 默认):ascend_laser_attention、prompt_flash_attn → fused_attn_score(warning 提示迁移)。 - sparse_attention:rf_v2 → rf_v3(inner_precise 按 v3 要求强制为 4,info 日志);ada_bsa 抛 ParametersInvalid,后继算子待下个版本(v2)提供。 - 底层算子被绕过公共 API 直接调用时,在 A5 上抛 ParametersInvalid 并指引使用公共 API: ascend_laser_attention、ascend_laser_preprocess、prompt_flash_attn(同时移除 register_op_a5 注册)、rain_fusion_attention、ada_block_sparse_attention / get_estimate_mask。 - 行为变更:attention_func.get_attention_function_static 默认 op_type 由 prompt_flash_attn 调整为 fused_attn_score(影响非 A5 默认路径,已确认为预期)。 # Test Plan 1、在A5上,调用attention_forward接口,测试传入LA、PFA的场景,自动路由到fascore 2、在A5上,调用sparse_attention接口,测试传入ada_bsa、rf_v2的场景。传入ada_bsa,抛错,等A5版本;传入rf_v2,路由到rf_v3 3、全量测试,在A5上不能跑的用例直接跳过 # Test Report 1、  返回  2、  返回  See merge request: Ascend/MindIE-SD!315 | 4 个月前 | |
[Docs][RTD]Fix ReadTheDocs build to use zh/en source directories Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !293 merge rtd_0513 into dev [Docs][RTD]Fix ReadTheDocs build to use zh/en source directories Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes 无关issue,仅修正文档服务 # Purpose - 修复 ReadTheDocs 因python版本和Sphinx版本不匹配导致无法构建的问题。 修改内容: 1. .readthedocs.yaml:改用 python3.11 - 修复 ReadTheDocs 构建的文档首页显示英文目录而非中文目录的问题。 根因:ReadTheDocs 默认使用 docs/ 作为 Sphinx 源目录,首页渲染的是 docs/index.md,其 toctree caption 为英文("Getting Started"、"User Guide" 等)。而中文首页 docs/zh/index.md 的 toctree caption 为中文("快速开始"、"加速特性" 等),但 ReadTheDocs 未以其为构建源目录。 修改内容: 1. .readthedocs.yaml:改用 build.commands 自定义构建,分别用 docs/zh/ 和 docs/en/ 作为源目录构建中文和英文文档,根入口重定向到中文首页 2. docs/conf.py:根据 READTHEDOCS 环境变量动态设置语言切换器 URL,适配 ReadTheDocs 与本地构建的不同输出路径 3. docs/_templates/language-switcher.html 及其组件:改进 JS 路径解析,同时支持本地构建的 /html/ 路径和 ReadTheDocs 的 /zh/、/en/ 路径 # Test Plan 1. 合并后触发 ReadTheDocs 构建,观察构建日志是否成功 2. 访问 https://mindie-sd-docs.readthedocs.io/zh-cn/latest/ 确认自动跳转到中文首页 3. 检查中文首页左侧目录是否为中文标题("快速开始"、"加速特性" 等) 4. 检查英文首页左侧目录是否为英文标题("Getting Started"、"Feature Guides" 等) 5. 验证语言切换器在中英文页面间正确跳转 # Test Report https://mindie-sd-docs.readthedocs.io/zh-cn/latest/zh/index.html See merge request: Ascend/MindIE-SD!293 | 4 个月前 | |
[Docs] refresh lint and dependency config, docker, docs Co-authored-by: weixin_44144262<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !243 merge dev into dev [Docs] refresh lint and dependency config, docker, docs Created-by: weixin_44144262 Commit-by: weixin_44144262 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #72 # Purpose This PR delivers five grouped changes: 1. add a 910B AArch64 docker build environment; 2. refresh repository lint/dependency inputs; 3. reorganize developer documentation and navigation; 4. align homepage, manuals, and tech report entrypoints; 5. consolidate governance skill routing and require proactive commit/PR draft output. # Test Plan 1. Review the new docker build files and README. 2. Review repository dependency and pre-commit configuration changes. 3. Review Chinese and English developer guide updates and navigation entrypoints. 4. Review homepage/manual/report entry changes. 5. Review AGENTS.md and .agents/skills/mindie-sd-community-governance/SKILL.md for routing and PR-drafting requirements. # Test Report  See merge request: Ascend/MindIE-SD!243 | 5 个月前 | |
[Docs] refresh lint and dependency config, docker, docs Co-authored-by: weixin_44144262<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !243 merge dev into dev [Docs] refresh lint and dependency config, docker, docs Created-by: weixin_44144262 Commit-by: weixin_44144262 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #72 # Purpose This PR delivers five grouped changes: 1. add a 910B AArch64 docker build environment; 2. refresh repository lint/dependency inputs; 3. reorganize developer documentation and navigation; 4. align homepage, manuals, and tech report entrypoints; 5. consolidate governance skill routing and require proactive commit/PR draft output. # Test Plan 1. Review the new docker build files and README. 2. Review repository dependency and pre-commit configuration changes. 3. Review Chinese and English developer guide updates and navigation entrypoints. 4. Review homepage/manual/report entry changes. 5. Review AGENTS.md and .agents/skills/mindie-sd-community-governance/SKILL.md for routing and PR-drafting requirements. # Test Report  See merge request: Ascend/MindIE-SD!243 | 5 个月前 | |
docs: 更新社区治理和文档 Co-authored-by: weixin_44144262<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !232 merge dev into dev docs: 更新社区治理和文档 Created-by: weixin_44144262 Commit-by: weixin_44144262 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes 更新社区治理和文档 # Purpose 更新相关文档要求 # Test Plan 文档更新 # Test Report See merge request: Ascend/MindIE-SD!232 | 5 个月前 | |
[Docs] refresh lint and dependency config, docker, docs Co-authored-by: weixin_44144262<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !243 merge dev into dev [Docs] refresh lint and dependency config, docker, docs Created-by: weixin_44144262 Commit-by: weixin_44144262 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #72 # Purpose This PR delivers five grouped changes: 1. add a 910B AArch64 docker build environment; 2. refresh repository lint/dependency inputs; 3. reorganize developer documentation and navigation; 4. align homepage, manuals, and tech report entrypoints; 5. consolidate governance skill routing and require proactive commit/PR draft output. # Test Plan 1. Review the new docker build files and README. 2. Review repository dependency and pre-commit configuration changes. 3. Review Chinese and English developer guide updates and navigation entrypoints. 4. Review homepage/manual/report entry changes. 5. Review AGENTS.md and .agents/skills/mindie-sd-community-governance/SKILL.md for routing and PR-drafting requirements. # Test Report  See merge request: Ascend/MindIE-SD!243 | 5 个月前 | |
【docs】文档修改-增加API参考&加速API Co-authored-by: xiao-qing123<xiaoqing14@h-partners.com> # message auto-generated for no-merge-commit merge: !263 merge dev into dev 【docs】文档修改-增加API参考&加速API Created-by: xiao-qing123 Commit-by: xiao-qing123 Merged-by: ascend-robot Description: fixes [#86](https://gitcode.com/Ascend/MindIE-SD/issues/86) 1、新增API参考(社区API接口) 2、新增加速API(原社区layer层) 3、删除readme中的快速入门和单多卡并行示例内容(有单独的quick_start承载) 4、算子融合单独拆分出来,在特性章节独立存在 5、删除特性章节目录名称中的“加速特性” 6、黄区大模型检测问题修改 See merge request: Ascend/MindIE-SD!263 | 5 个月前 | |
恢复run包构建 Co-authored-by: taoyuan_guo<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !233 merge run_package into dev 恢复run包构建 Created-by: changetheway Commit-by: changetheway;taoyuan_guo Merged-by: ascend-robot Description: 修改方案: 1)将setup.py和原本的build.sh解耦,原来的算子编译和plugin编译在build.sh中执行,setup.py需要调用build.sh 2)build.sh改成两步:运行setup.py生成whl包、构建run包所需的tar.gz包 这样,既可以使用现在的python setup.py bdist_wheel构建whl包,也可以执行bash build.sh恢复run包构建 See merge request: Ascend/MindIE-SD!233 | 5 个月前 | |
[dev]同步最新代码 Co-authored-by: mazhixin00_00<mazhixin7@huawei.com> | 10 个月前 | |
[Docs] Corrected the link error and deleted expired QR codes Co-authored-by: herizhen<1270637059@qq.com> # message auto-generated for no-merge-commit merge: !370 merge dev into dev [Docs] Corrected the link error and deleted expired QR codes Created-by: herizhen Commit-by: herizhen Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes Corrected the link error and deleted expired QR codes Fixes #177 # Purpose # Test Plan Documentation-only changes, no testing required. # Test Report See merge request: Ascend/MindIE-SD!370 | 3 个月前 | |
[Docs] Corrected the link error and deleted expired QR codes Co-authored-by: herizhen<1270637059@qq.com> # message auto-generated for no-merge-commit merge: !370 merge dev into dev [Docs] Corrected the link error and deleted expired QR codes Created-by: herizhen Commit-by: herizhen Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes Corrected the link error and deleted expired QR codes Fixes #177 # Purpose # Test Plan Documentation-only changes, no testing required. # Test Report See merge request: Ascend/MindIE-SD!370 | 3 个月前 | |
【docs】文档修改-增加API参考&加速API Co-authored-by: xiao-qing123<xiaoqing14@h-partners.com> # message auto-generated for no-merge-commit merge: !263 merge dev into dev 【docs】文档修改-增加API参考&加速API Created-by: xiao-qing123 Commit-by: xiao-qing123 Merged-by: ascend-robot Description: fixes [#86](https://gitcode.com/Ascend/MindIE-SD/issues/86) 1、新增API参考(社区API接口) 2、新增加速API(原社区layer层) 3、删除readme中的快速入门和单多卡并行示例内容(有单独的quick_start承载) 4、算子融合单独拆分出来,在特性章节独立存在 5、删除特性章节目录名称中的“加速特性” 6、黄区大模型检测问题修改 See merge request: Ascend/MindIE-SD!263 | 5 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
docs: 更新社区治理和文档 Co-authored-by: weixin_44144262<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !232 merge dev into dev docs: 更新社区治理和文档 Created-by: weixin_44144262 Commit-by: weixin_44144262 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes 更新社区治理和文档 # Purpose 更新相关文档要求 # Test Plan 文档更新 # Test Report See merge request: Ascend/MindIE-SD!232 | 5 个月前 | |
[Feature][build]支持多 torch 版本 wheel 打包 Co-authored-by: guowenna1<guowenna1@huawei.com> # message auto-generated for no-merge-commit merge: !342 merge pypi into dev [Feature][build]支持多 torch 版本 wheel 打包 Created-by: guowenna1 Commit-by: guowenna1 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes https://gitcode.com/Ascend/MindIE-SD/issues/180 # Purpose 本 PR 支持构建一个可适配多个 torch 版本的 MindIE-SD wheel 包,同时保留原有固定 torch 版本构建方式。 主要变更: - 新增 MINDIESD_WHEEL_MODE=multi_torch 打包模式。 - 默认仍保持原有固定 torch 版本构建方式不变。 - 运行时根据当前 torch.__version__ 自动选择对应的 libPTAExtensionOPS.so。 - 支持在同一个 wheel 中包含 torch 2.6、2.7、2.8、2.9、2.10 对应的 plugin 动态库。 - 新增 build/build_multi_torch_wheel.sh,用于从已准备好的 torch 容器中编译并收集多版本 plugin。 - 更新 package data 规则,支持打包 plugin/torchXX/*.so。 - 将 distribution 标记为二进制包,便于后续通过 auditwheel 修复为 PyPI 可接受的 manylinux wheel。 - 支持通过 ASCEND_OP_NAME 和 ASCEND_COMPUTE_UNIT 配置 Ascend ops 构建范围。 # Test Plan 可按以下方式验证: 1. 检查 Python 和 shell 语法: ``bash python3 -m py_compile setup.py mindiesd/layers/register_ops.py bash -n build/build_ops.sh bash -n build/build_multi_torch_wheel.sh 构建多 torch 版本 wheel: bash bash build/build_multi_torch_wheel.sh 检查 wheel 中是否包含多版本 plugin: bash python3 - <<'PY' import zipfile from pathlib import Path wheel = Path("dist/mindiesd-3.0.0-cp311-cp311-linux_aarch64.whl") with zipfile.ZipFile(wheel) as zf: libs = sorted(name for name in zf.namelist() if name.endswith("libPTAExtensionOPS.so")) print("\n".join(libs)) PY 修复为 PyPI 可接受的 manylinux wheel: bash python3 -m auditwheel repair \ --plat manylinux_2_34_aarch64 \ -w dist/repaired \ dist/mindiesd-3.0.0-cp311-cp311-linux_aarch64.whl 检查上传包元数据: bash python3 -m twine check dist/repaired/*.whl Test Report 已执行以下检查: bash python3 -m py_compile setup.py mindiesd/layers/register_ops.py bash -n build/build_ops.sh bash -n build/build_multi_torch_wheel.sh 结果:通过。 已在以下容器中验证 multi-torch wheel 构建流程: lala_torch26 lala_torch27 lala_torch28 lala_torch29 lala_torch210 生成的 wheel 包含以下 plugin: mindiesd/plugin/torch26/libPTAExtensionOPS.so mindiesd/plugin/torch27/libPTAExtensionOPS.so mindiesd/plugin/torch28/libPTAExtensionOPS.so mindiesd/plugin/torch29/libPTAExtensionOPS.so mindiesd/plugin/torch210/libPTAExtensionOPS.so PyPI 上传包检查: bash python3 -m twine check dist/repaired/mindiesd-3.0.0-cp311-cp311-manylinux_2_34_aarch64.whl 结果:通过。 补充说明: 1. **变更类别** 功能增强 / 构建与发布 2. **影响文件** setup.py、pyproject.toml、mindiesd/layers/register_ops.py、build/build_ops.sh、build/build_multi_torch_wheel.sh`、quant flash attention 相关 opdef 文件。 See merge request: Ascend/MindIE-SD!342 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
dev同步master Co-authored-by: LagavulinNeat<wangzihe9@h-partners.com> Co-authored-by: betta18<jiangmengyu1@huawei.com> Co-authored-by: yjy_ac<yujunyu3@huawei.com> Co-authored-by: zqxu<xuzhenqiang3@huawei.com> Co-authored-by: guowenna1<guowenna1@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> Co-authored-by: weixin_44144262<lijinxi2@huawei.com> Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !406 merge dev into master dev同步master Created-by: guowenna1 Commit-by: weixin_44144262;guowenna1;changetheway;betta18;LagavulinNeat;zqxu;hyh_hh;yjy_ac Merged-by: mazhixin00_00 Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > **如问题已解决,按照下方示例附上ISSUE单号 / Apply bug or request issue as follow if the solved**\ > Fixes #ISSUE ID\ > **Fixes关键字会自动关闭issue,如问题部分解决请不要使用Fixes,可以用下方标签替代\ > Fixes will automatically close issue, please use the following tag if only part of the issue is solved**\ > Fix part of #ISSUE ID # Purpose # Test Plan > 设计了哪些测试内容,指导他人如何对你的PR进行测试\ > Apply information to show others your test design and how to test your Pull Request # Test Report See merge request: Ascend/MindIE-SD!406 | 3 个月前 | |
[Feature][build]支持多 torch 版本 wheel 打包 Co-authored-by: guowenna1<guowenna1@huawei.com> # message auto-generated for no-merge-commit merge: !342 merge pypi into dev [Feature][build]支持多 torch 版本 wheel 打包 Created-by: guowenna1 Commit-by: guowenna1 Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes https://gitcode.com/Ascend/MindIE-SD/issues/180 # Purpose 本 PR 支持构建一个可适配多个 torch 版本的 MindIE-SD wheel 包,同时保留原有固定 torch 版本构建方式。 主要变更: - 新增 MINDIESD_WHEEL_MODE=multi_torch 打包模式。 - 默认仍保持原有固定 torch 版本构建方式不变。 - 运行时根据当前 torch.__version__ 自动选择对应的 libPTAExtensionOPS.so。 - 支持在同一个 wheel 中包含 torch 2.6、2.7、2.8、2.9、2.10 对应的 plugin 动态库。 - 新增 build/build_multi_torch_wheel.sh,用于从已准备好的 torch 容器中编译并收集多版本 plugin。 - 更新 package data 规则,支持打包 plugin/torchXX/*.so。 - 将 distribution 标记为二进制包,便于后续通过 auditwheel 修复为 PyPI 可接受的 manylinux wheel。 - 支持通过 ASCEND_OP_NAME 和 ASCEND_COMPUTE_UNIT 配置 Ascend ops 构建范围。 # Test Plan 可按以下方式验证: 1. 检查 Python 和 shell 语法: ``bash python3 -m py_compile setup.py mindiesd/layers/register_ops.py bash -n build/build_ops.sh bash -n build/build_multi_torch_wheel.sh 构建多 torch 版本 wheel: bash bash build/build_multi_torch_wheel.sh 检查 wheel 中是否包含多版本 plugin: bash python3 - <<'PY' import zipfile from pathlib import Path wheel = Path("dist/mindiesd-3.0.0-cp311-cp311-linux_aarch64.whl") with zipfile.ZipFile(wheel) as zf: libs = sorted(name for name in zf.namelist() if name.endswith("libPTAExtensionOPS.so")) print("\n".join(libs)) PY 修复为 PyPI 可接受的 manylinux wheel: bash python3 -m auditwheel repair \ --plat manylinux_2_34_aarch64 \ -w dist/repaired \ dist/mindiesd-3.0.0-cp311-cp311-linux_aarch64.whl 检查上传包元数据: bash python3 -m twine check dist/repaired/*.whl Test Report 已执行以下检查: bash python3 -m py_compile setup.py mindiesd/layers/register_ops.py bash -n build/build_ops.sh bash -n build/build_multi_torch_wheel.sh 结果:通过。 已在以下容器中验证 multi-torch wheel 构建流程: lala_torch26 lala_torch27 lala_torch28 lala_torch29 lala_torch210 生成的 wheel 包含以下 plugin: mindiesd/plugin/torch26/libPTAExtensionOPS.so mindiesd/plugin/torch27/libPTAExtensionOPS.so mindiesd/plugin/torch28/libPTAExtensionOPS.so mindiesd/plugin/torch29/libPTAExtensionOPS.so mindiesd/plugin/torch210/libPTAExtensionOPS.so PyPI 上传包检查: bash python3 -m twine check dist/repaired/mindiesd-3.0.0-cp311-cp311-manylinux_2_34_aarch64.whl 结果:通过。 补充说明: 1. **变更类别** 功能增强 / 构建与发布 2. **影响文件** setup.py、pyproject.toml、mindiesd/layers/register_ops.py、build/build_ops.sh、build/build_multi_torch_wheel.sh`、quant flash attention 相关 opdef 文件。 See merge request: Ascend/MindIE-SD!342 | 3 个月前 | |
恢复run包构建 Co-authored-by: taoyuan_guo<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !233 merge run_package into dev 恢复run包构建 Created-by: changetheway Commit-by: changetheway;taoyuan_guo Merged-by: ascend-robot Description: 修改方案: 1)将setup.py和原本的build.sh解耦,原来的算子编译和plugin编译在build.sh中执行,setup.py需要调用build.sh 2)build.sh改成两步:运行setup.py生成whl包、构建run包所需的tar.gz包 这样,既可以使用现在的python setup.py bdist_wheel构建whl包,也可以执行bash build.sh恢复run包构建 See merge request: Ascend/MindIE-SD!233 | 5 个月前 |
MindIE SD
📢 Latest News
- 12/31/2025: MindIE SD提供稀疏Attention计算能力
- 12/25/2025:vLLM Omni x MindIE SD 实现 Qwen-Image-Edit-2511 / Qwen-Image-Layered 昇腾原生高性能推理
- 11/30/2025:MindIE SD 正式宣布开源并面向公众开放!会议日历
🚀 简介
MindIE SD(Mind Inference Engine Stable Diffusion)是 MindIE 的视图生成推理模型套件,它的目标是为稳定扩散(Stable Diffusion, SD)系列大模型提供在昇腾硬件及其软件栈上的端到端推理解决方案。该软件系统内部集成了各功能模块,并对外提供统一的编程接口。
以下是两个 MindIE-SD 代码仓库智能体,只需点击 "Ask AI" 徽章,即可进入其专属页面,有效缓解源码阅读的困难,开启智能代码学习与问答体验!它们将帮助您更深入地理解 MindIE-SD 的运行原理,并协助解决使用过程中遇到的问题与错误。
📦 安装指南
快速开始:
pip install mindiesd
其他安装方式和环依赖详见安装指导。
🚀 架构介绍
MindIE SD 架构和关键特性详见架构介绍。

⚡️ 快速入门
快速开始: 以wan2.1为例,介绍使用mindiesd后的整体加速效果。
📚 开发文档
贡献指南:说明如何提交 Issue、Pull Request 以及代码规范。 AI Agent支持: 介绍仓内默认使用的一些skills及使用agent辅助开发流程 测试验证:介绍单元测试样例运行流程
🌐 生态支持
以下项目已集成MindIE SD作为多模态推理后端:
📝 Paper Citations
@misc{RainFusion2.0@2025,
title = {RainFusion2.0: Temporal-Spatial Awareness and Hardware-Efficient Block-wise Sparse Attention},
url = {https://gitcode.com/Ascend/MindIE-SD.git},
note = {Open-source software available at https://gitcode.com/Ascend/MindIE-SD.git},
author = {Aiyue Chen and others},
year = {2025}
}