昇腾SD类模型推理引擎
| Files | Last commit | Last update |
|---|---|---|
[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 | 6 months ago | |
[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 | 6 months ago | |
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 | 6 months ago | |
[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 | 7 months ago | |
[dev]同步最新代码 Co-authored-by: mazhixin00_00<mazhixin7@huawei.com> | 11 months ago | |
删除符号表strip Co-authored-by: taoyuan_guo<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !261 merge build_0421 into dev 删除符号表strip Created-by: changetheway Commit-by: taoyuan_guo Merged-by: ascend-robot Description: # Purpose 按照安全编译的要求,删除二进制文件中的符号表strip # Test Report 全量ut测试通过  See merge request: Ascend/MindIE-SD!261 | 6 months ago | |
[feature] blockSparseAttention plugin & rf_v3 Co-authored-by: chensiyu47<chensiyu49@huawei.com> Co-authored-by: hyh_hh<huyinghong1@huawei.com> # message auto-generated for no-merge-commit merge: !262 merge dev into dev [feature] blockSparseAttention plugin & rf_v3 Created-by: hyh_hh Commit-by: hyh_hh;chensiyu47 Merged-by: ascend-robot Description: # Purpose 在 MindIE-SD 中新增 sparse_type='rf_v3' 稀疏注意力路径,基于 aclnnBlockSparseAttention 算子实现视频 DiT 推理加速。 算法流程: Input q/k/v (BSND or BNSD) │ ├─ [首次/刷新帧] ──────────────────────────────────┐ │ 空间块重排 + avgpool │ │ get_blockwise_mask(return_binary=True) │ │ topk 筛选 + 首帧强制保留 │ │ → int8 mask [B, N, Q_blk, KV_blk] │ │ │ └─ [复用缓存 mask] ─────────────────────────────────┘ 仅做空间重排,跳过 pool + mask 生成 │ ▼ aclnnBlockSparseAttention actual_seq_lengths 传入实际长度,算子处理非对齐 S BSND:内部 permute→BNSD→算子→permute 回 BNSD:直连算子,无额外开销 │ ▼ _bsa_inv_rearrange(input_layout) 对齐路径:全帧整体逆块重排 余数路径:首帧直传 + 其余帧分段逆还原 │ ▼ 返回 (out, new_mask) ← mask 可下步传入 cached_mask 变更文件: csrc/plugin/block_sparse_attention.{h,cpp} 新增算子 C++ 封装 csrc/plugin/register_ops.cpp 注册 schema + impl csrc/CMakeLists.txt 加入编译 mindiesd/layers/_custom_ops.py 新增 Python wrapper + fake op mindiesd/layers/flash_attn/ sparse_flash_attn_rf_v2.py get_blockwise_mask 新增 return_binary 参数 sparse_flash_attn_rf_v3.py 新增(核心实现) sparse_flash_attn.py 新增 rf_v3 分支入口 # Test Plan 1. Fake op 形状验证(无需 NPU,任意环境可跑) python tests/plugin/test_block_sparse_attention_fake_op.py 覆盖 BNSD/TND layout、有无 mask、bfloat16/float16、softmax_lse_flag 等场景下输出 shape/dtype 是否正确。注意:必须独立进程运行,不可与 NPU 测试合并(详见文件头注释)。 2. NPU 算子冒烟测试 python tests/plugin/test_block_sparse_attention.py 验证 BNSD/TND layout 下算子不 crash、输出 shape 与 query 一致。 3. rf_v3 端到端测试 需 Ascend 设备 python tests/plugin/test_rf_v3_attention.py 跳过 NPU,仅跑 mask 形状等 CPU 用例 MINDIE_TEST_MODE=CPU python tests/plugin/test_rf_v3_attention.py 覆盖点: - get_blockwise_mask(return_binary=True) 返回 int8,shape 正确 - sparsity=0.9 时首帧 blocks 仍全为 1(首帧保护) - 输出 shape/dtype 与输入一致(BSND 和 BNSD) - S 不整除 pool_size 时正确返回原始 shape - sparsity=0 时与 npu_fusion_attention 统计量误差 < 10% # Test Report 配置:1280×720 · 81帧 · Wan2.2-I2V-A14B-w8a8c8 · 单卡 · inner_precise=4 10步(baseline = 379.86 s) ┌──────────┬────────────────────┬──────────────┬─────────────┐ │ sparsity │ 最优配置 │ DiT 耗时 (s) │ vs baseline │ ├──────────┼────────────────────┼──────────────┼─────────────┤ │ 0.5 │ start=4, refresh=0 │ 389.85 │ -2.6% │ ├──────────┼────────────────────┼──────────────┼─────────────┤ │ 0.6 │ start=0, refresh=2 │ 363.81 │ +4.2% │ ├──────────┼────────────────────┼──────────────┼─────────────┤ │ 0.7 │ start=0, refresh=2 │ 326.49 │ +14.0% │ ├──────────┼────────────────────┼──────────────┼─────────────┤ │ 0.8 │ start=0, refresh=0 │ 288.93 │ +23.9% │ └──────────┴────────────────────┴──────────────┴─────────────┘ 40步(baseline = 1351.06 s) ┌──────────┬─────────────────────┬──────────────┬─────────────┐ │ sparsity │ 最优配置 │ DiT 耗时 (s) │ vs baseline │ ├──────────┼─────────────────────┼──────────────┼─────────────┤ │ 0.5 │ start=15, refresh=0 │ 1388.08 │ -2.7% │ ├──────────┼─────────────────────┼──────────────┼─────────────┤ │ 0.6 │ start=5, refresh=0 │ 1289.78 │ +4.5% │ ├──────────┼─────────────────────┼──────────────┼─────────────┤ │ 0.7 │ start=0, refresh=0 │ 1139.08 │ +15.7% │ ├──────────┼─────────────────────┼──────────────┼─────────────┤ │ 0.8 │ start=5, refresh=0 │ 1024.81 │ +24.1% │ └──────────┴─────────────────────┴──────────────┴─────────────┘ sparsity ≥ 0.6 在 10步/40步 两种配置下均稳定加速;sparsity=0.5 轻微劣化(跳过计算量不足以覆盖 mask 生成开销),可通过 sparse_start_step 推迟使能缓解。 推荐生产参数: sparsity=0.7, sparse_start_step≈10%总步数, mask_refresh_interval=0 See merge request: Ascend/MindIE-SD!262 | 6 months ago | |
[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 | 6 months ago | |
[Docs][features] 重构特性文档结构,丰富文档信息内容 Co-authored-by: blian<lianbin@huawei.com> # message auto-generated for no-merge-commit merge: !277 merge dev into dev [Docs][features] 重构特性文档结构,丰富文档信息内容 Created-by: blian Commit-by: blian Merged-by: ascend-robot Description: ## Which issue(s) this PR fixes or accomplishes 无关联 Issue,为文档质量优化。 ## Purpose 对 docs/zh/features/ 下全部 10 个特性文档进行结构审计和内容补全,同时清理附录中的孤立文件。核心变更如下: ### 1. 文档结构统一 所有特性文档统一为 **通用原理 → 技术特点 → 接口和使用** 三段式模板: - sparse.md:全文重写,新增 RainFusion2.0 论文技术内容,三段式结构 - cpu_offload.md:全文重写,补齐 enable_offload 接口说明和代码示例 - DyEPLB.md:重构为三段式,精简适配流程,类说明表格化,删除与 apis.md 重复的参数表 - parallelism.md:4 个子章节统一为「原理 → 通信方式 → 适用场景 → 使用示例」结构,新增 TP/RSP/CFG 代码示例及 CFG 融合补充内容 - quantization.md:Linear 量化按三段式重构,基于最新代码更新算法支持表(15 种算法) - share_memory.md:补充 init_share_memory、share_memory 接口说明和主从实例代码示例 - compilation.md:补齐缺失的 fusion pattern 配置项和 ACLGraph 配置项 ### 2. 推荐方案新增 多子策略文档增加推荐方案段落,帮助用户快速选择: - parallelism.md:总览后新增 4 条推荐(TP/USP/RSP/CFG) - cache.md:总览后新增 3 条推荐(DiTCache/AttentionCache/时间步优化) - sparse.md:技术特点后新增推荐方案(rf_v2 优先 / ada_bsa 备选) ### 3. 总览段落补齐 多子话题文档增加总览段落: - parallelism.md:4 种并行策略总览 - cache.md:3 种缓存方式总览 - quantization.md:Linear 量化和 FA 量化覆盖说明 ### 4. API 参考去重与重构 - **删除** docs/zh/appendix/api_reference.md(552 行,孤立文件,不在导航中索引,内容与 core_layers.md 重叠) - 将其中仅有的未覆盖 API Linear 迁移至 core_layers.md - **重写** docs/zh/appendix/apis.md:删除量化系列(移至 quant 特性自包含),新增编译系列/CPU 卸载系列/显存共享系列/EPLB 系列 - 各 feature 文档中的 API 参数表统一引用至 apis.md 或 core_layers.md,消除重复维护 ### 5. 死链修复与词汇一致性 - architecture.md:3 处指向英文侧文件的死链替换为中文侧文件 - architecture.md:补全 EPLB 引用,修复 Cache-DiT 拼写 - index.md:首页描述与 architecture.md 词汇统一 - installation.md:格式修复 ### 6. 审计修复 - core_layers.md:cu_seqlens_q/k 类型标注修正、sparse_type 新增 rf_v3、layernorm_scale_shift 约束放宽 - compilation.md:补齐 Python 示例中 5 个 pattern 配置项、ACLGraph 配置表新增 3 项 ## Test Plan 文档站点编译验证:执行 python docs/build_docs.py 构建中英文文档,无编译错误。 ## Test Report text Chinese: docs/_build/zh/html/index.html English: docs/_build/en/html/index.html Default: docs/_build/index.html Build: Succeeded, no errors. See merge request: Ascend/MindIE-SD!277 | 6 months ago | |
[Feature][dummy_run] Add Qwen-Image and FLUX.1-dev dummy run with unified CLI and ms time Co-authored-by: blian6<bin.lian@outlook.com> Co-authored-by: blian<lianbin@huawei.com> # message auto-generated for no-merge-commit merge: !275 merge dev into dev [Feature][dummy_run] Add Qwen-Image and FLUX.1-dev dummy run with unified CLI and ms time Created-by: blian Commit-by: blian6;blian Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fixes #待补充 # Purpose 在现有 Wan2.2 dummy run 基础上,新增 Qwen-Image 和 FLUX.1-dev 两个模型的空权重运行时验证: - 统一 CLI 参数( --num_layers --compile --profile --skip-vae) - 统一 NPU 直连加载(移除 CPU offload) - 统一毫秒计时(2 位小数),profiling 仅覆盖 timed step - 精简日志输出(减少 ~30 条冗余 warning) - README 从 354 行精简到 182 行 # Test Plan 1. 安装依赖:pip install -r examples/dummy_run/requirements.txt 2. 远端 NPU 验证(910B, 64GB HBM): shell python wan_infer.py --device_id 0 python qwen_image_infer.py --device_id 0 python flux_infer.py --device_id 0 --config_cache /path/to/flux_configs 3. 检查输出 PASSED + 各组件毫秒计时 + Summary 表 # Test Report Model Build (ms) Timed (ms) Peak Mem Status Wan2.2 1,200 7,000 10.18 GB PASSED Qwen-Image 7,000 100 6.26 GB PASSED FLUX.1-dev 20,500 900 24.20 GB PASSED See merge request: Ascend/MindIE-SD!275 | 6 months ago | |
feat(adalayernorm): 支持 [B,S,H] 形状的 scale/shift 以适配 Qwen-Image Co-authored-by: muziyuhui666<lijianfu9@huawei.com> # message auto-generated for no-merge-commit merge: !257 merge feat/qwen-image-adaln-bsh into dev feat(adalayernorm): 支持 [B,S,H] 形状的 scale/shift 以适配 Qwen-Image Created-by: muziyuhui666 Commit-by: muziyuhui666 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > 本 PR 未关联已有 issue,如需跟踪可后续补充。 > No related issue yet. # Purpose mindiesd.layers.layernorm_scale_shift(AdaLayerNorm)当前仅支持 scale / shift 为 [B, H] 或 [B, 1, H], 即同一 batch 内所有 token 共享同一组调制参数。 在 Qwen-Image / Qwen-Image-Edit-2511 等模型中,AdaLayerNorm 使用的是 **token-wise modulation**, scale 和 shift 形状为 [B, S, H],每个 token 有独立的调制参数。因此这些模型当前无法直接使用 mindiesd 提供的融合 AdaLayerNorm 接口,只能回退到手写的非融合实现,影响推理性能。 本 PR 对 mindiesd/layers/adalayernorm.py 做纯 Python 层适配,新增对 [B, S, H] 形状 scale / shift 的支持, **不涉及 C++ / AscendC 算子改动**,通过等价 reshape 复用已有 adaln / adaln_v2 NPU 融合算子。 主要改动: 1. check_input_params - 放开 scale / shift 维度校验:允许 [B, H]、[B, 1, H]、[B, S, H] 三种形状。 - 增加 batch 维一致性校验(scale.size(0) == x.size(0)、shift.size(0) == x.size(0))。 - 调整校验顺序:先统一校验 dim,再校验 size,对异常 tensor 给出更友好的报错。 2. 新增两个内部辅助函数 - _is_tokenwise_modulation(x, tensor):判断是否为真正的 token-wise 调制(dim==3 且 S==x.size(1) 且 x.size(1) != 1)。 - _expand_modulation_to_tokenwise(x, tensor):将 [B, H] / [B, 1, H] 按需 expand 到 [B, S, H]。 3. layernorm_scale_shift fused 路径 - 当 scale 或 shift 为 token-wise 时,将 x reshape 为 [B*S, 1, H]、 scale / shift 统一 expand + reshape 到 [B*S, H],复用现有 ops.adaln / ops.adaln_v2,输出再 reshape 回 [B, S, H]。 - 数学上与 layernorm(x) * (1 + scale) + shift 的非融合实现严格等价。 - 原 [B, H] / [B, 1, H] 路径完全保留,不影响现有模型性能与行为。 4. 非融合(fused=False)路径 - 保留原有 scale[:, None]、shift[:, None] 广播逻辑;对已经是 [B, S, H] 的输入天然兼容,无需额外改动。 # Test Plan 单元测试文件:tests/layers/test_adalayernorm.py 新增 / 调整的用例: 1. **非法第二维校验(已有用例调整)** - test_scale_invalid_second_dim / test_shift_invalid_second_dim: 使用 [B, 512, H](S=512,而 x 的 S=1024)构造非法输入,验证 check_input_params 抛出 ParametersInvalid。 2. **[B, S, H] + affine LayerNorm 数值等价** - test_layernorm_scale_shift_bsh_use_affine: scale / shift 均为 [B, S, H],对比 fused=True 与 fused=False 输出一致。 3. **[B, S, H] + non-affine LayerNorm 数值等价** - test_layernorm_scale_shift_bsh_non_affine: elementwise_affine=False,scale / shift 均为 [B, S, H],对比融合 / 非融合输出一致。 4. **混合形状数值等价** - test_layernorm_scale_shift_bsh_mixed_modulation: scale 为 [B, H],shift 为 [B, S, H],对比融合 / 非融合输出一致。 5. 其余原有用例([B, H] / [B, 1, H]、非法 dim、非法 shape、affine / non-affine)全部保留,保证存量行为不回退。 如何复现测试: ```bash # 在装有 MindIE-SD 及 NPU 环境的机器上 cd MindIE-SD pytest tests/layers/test_adalayernorm.py -v See merge request: Ascend/MindIE-SD!257 | 6 months ago | |
[CI]社区代码静态检查能力增强 Co-authored-by: hejianping<hejianping7@huawei.com> # message auto-generated for no-merge-commit merge: !178 merge dev into dev [CI]社区代码静态检查能力增强 Created-by: hejianping Commit-by: hejianping Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes Fixes [#52](https://gitcode.com/Ascend/MindIE-SD/issues/52) # Purpose 增加pre-commit系列工具部署,进行静态检查能力增强 # 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!178 | 8 months ago | |
feat(adalayernorm): 支持 [B,S,H] 形状的 scale/shift 以适配 Qwen-Image Co-authored-by: muziyuhui666<lijianfu9@huawei.com> # message auto-generated for no-merge-commit merge: !257 merge feat/qwen-image-adaln-bsh into dev feat(adalayernorm): 支持 [B,S,H] 形状的 scale/shift 以适配 Qwen-Image Created-by: muziyuhui666 Commit-by: muziyuhui666 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > 本 PR 未关联已有 issue,如需跟踪可后续补充。 > No related issue yet. # Purpose mindiesd.layers.layernorm_scale_shift(AdaLayerNorm)当前仅支持 scale / shift 为 [B, H] 或 [B, 1, H], 即同一 batch 内所有 token 共享同一组调制参数。 在 Qwen-Image / Qwen-Image-Edit-2511 等模型中,AdaLayerNorm 使用的是 **token-wise modulation**, scale 和 shift 形状为 [B, S, H],每个 token 有独立的调制参数。因此这些模型当前无法直接使用 mindiesd 提供的融合 AdaLayerNorm 接口,只能回退到手写的非融合实现,影响推理性能。 本 PR 对 mindiesd/layers/adalayernorm.py 做纯 Python 层适配,新增对 [B, S, H] 形状 scale / shift 的支持, **不涉及 C++ / AscendC 算子改动**,通过等价 reshape 复用已有 adaln / adaln_v2 NPU 融合算子。 主要改动: 1. check_input_params - 放开 scale / shift 维度校验:允许 [B, H]、[B, 1, H]、[B, S, H] 三种形状。 - 增加 batch 维一致性校验(scale.size(0) == x.size(0)、shift.size(0) == x.size(0))。 - 调整校验顺序:先统一校验 dim,再校验 size,对异常 tensor 给出更友好的报错。 2. 新增两个内部辅助函数 - _is_tokenwise_modulation(x, tensor):判断是否为真正的 token-wise 调制(dim==3 且 S==x.size(1) 且 x.size(1) != 1)。 - _expand_modulation_to_tokenwise(x, tensor):将 [B, H] / [B, 1, H] 按需 expand 到 [B, S, H]。 3. layernorm_scale_shift fused 路径 - 当 scale 或 shift 为 token-wise 时,将 x reshape 为 [B*S, 1, H]、 scale / shift 统一 expand + reshape 到 [B*S, H],复用现有 ops.adaln / ops.adaln_v2,输出再 reshape 回 [B, S, H]。 - 数学上与 layernorm(x) * (1 + scale) + shift 的非融合实现严格等价。 - 原 [B, H] / [B, 1, H] 路径完全保留,不影响现有模型性能与行为。 4. 非融合(fused=False)路径 - 保留原有 scale[:, None]、shift[:, None] 广播逻辑;对已经是 [B, S, H] 的输入天然兼容,无需额外改动。 # Test Plan 单元测试文件:tests/layers/test_adalayernorm.py 新增 / 调整的用例: 1. **非法第二维校验(已有用例调整)** - test_scale_invalid_second_dim / test_shift_invalid_second_dim: 使用 [B, 512, H](S=512,而 x 的 S=1024)构造非法输入,验证 check_input_params 抛出 ParametersInvalid。 2. **[B, S, H] + affine LayerNorm 数值等价** - test_layernorm_scale_shift_bsh_use_affine: scale / shift 均为 [B, S, H],对比 fused=True 与 fused=False 输出一致。 3. **[B, S, H] + non-affine LayerNorm 数值等价** - test_layernorm_scale_shift_bsh_non_affine: elementwise_affine=False,scale / shift 均为 [B, S, H],对比融合 / 非融合输出一致。 4. **混合形状数值等价** - test_layernorm_scale_shift_bsh_mixed_modulation: scale 为 [B, H],shift 为 [B, S, H],对比融合 / 非融合输出一致。 5. 其余原有用例([B, H] / [B, 1, H]、非法 dim、非法 shape、affine / non-affine)全部保留,保证存量行为不回退。 如何复现测试: ```bash # 在装有 MindIE-SD 及 NPU 环境的机器上 cd MindIE-SD pytest tests/layers/test_adalayernorm.py -v See merge request: Ascend/MindIE-SD!257 | 6 months ago | |
[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 | 6 months ago | |
[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 | 6 months ago | |
[Feature][compilation]Fix timing measurement and add MulAdd fusion pattern Co-authored-by: blian6<bin.lian@outlook.com> Co-authored-by: blian<lianbin@huawei.com> # message auto-generated for no-merge-commit merge: !270 merge dev into dev [Feature][compilation]Add muls_add Triton kernel fusion pattern, benchmark utilities, and framework fixes Created-by: blian Commit-by: blian6;blian Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes 修复compilation模块的benchmark方法,并添加triton算子的感知方案 # Purpose 本 PR 包含两部分工作: ## Part A: muls_add Triton kernel 融合 参考 vllm-ascend 的 muls_add 融合方案,将 mul_add_pattern.py 中的代数优化替换为 kernel 级融合: - **新增** mindiesd/layers/triton_utils.py — Triton Ascend 辅助函数,含 _TRITON_ON_ASCEND 运行时检测 - **新增** mindiesd/layers/muls_add.py — muls_add(x, y, scale) 逐元素融合 kernel(Triton 优先 + torch 自动降级),通过 torch.library.custom_op 注册为 torch.ops.mindiesd.muls_add - **重构** mindiesd/compilation/patterns/mul_add_pattern.py — 工厂函数 create(dtype, scale) + PatternBase 静态接口;pattern 从 mul(a,c)+mul(b,c) 改为 x * scale + y;replacement 从 mul(add(a,b),c) 改为 muls_add(x, y, scale) kernel 调用 - **修改** mindiesd/layers/__init__.py — 导出 muls_add - **新增** tests/layers/test_muls_add.py — 13 项 kernel 单元测试(dtype/shape/scale/边界/inplace/device 保真性) - **修改** tests/compilation/patterns/test_mul_add_pattern.py — 适配 2-输入 + scale pattern,仅保留正确性断言(cosine similarity ≥ 2^-7) ## Part B: benchmark 基础设施与框架修复 - **新增** tests/compilation/test_bench_utils.py — 公共 benchmark 函数(warmup + sync + 多迭代 + 后5平均),替代原有不准确的 time.perf_counter() 单次测量 - **修复** 4 个 pattern 测试文件接入新 benchmark,断言改为 compiled_time < original_time: - tests/compilation/patterns/test_adelayernorm_pattern.py - tests/compilation/patterns/test_gelu_pattern.py - tests/compilation/patterns/test_rmsnorm_pattern.py - tests/compilation/patterns/test_rope_pattern.py - **修复** passes/__init__.py 中 threading.Lock 误用(threading.Lock() → Lock 实例) - FusionPatterns 新增 enable_mul_add 开关 - passes/__init__.py 新增末尾换行符 - **移除** tests/compilation/test_backend.py(SamplePass 为数学恒等变换,不支持 CPU 运行) # Test Plan ### Kernel 层测试 tests/layers/test_muls_add.py — 13 项,覆盖 float32/float16/bfloat16 三种 dtype × 5 种 shape × 7 种 scale 组合,边界值(scale=0/1/-1),inplace 安全性,device/dtype 保真性,多次调用一致性。 ### Pattern 集成测试 tests/compilation/patterns/test_mul_add_pattern.py — 4 项(bfloat16, float16, float32, 32×8192),验证 torch.compile + MindieSDBackend 全链路,cosine similarity ≥ 2^-7。 ### Benchmark + 注册测试 - tests/compilation/test_pattern_registration.py — enable_mul_add 开关测试 - tests/compilation/test_bench_utils.py — benchmark 工具函数 - tests/compilation/patterns/test_adelayernorm_pattern.py - tests/compilation/patterns/test_gelu_pattern.py - tests/compilation/patterns/test_rmsnorm_pattern.py - tests/compilation/patterns/test_rope_pattern.py ### 远端验证命令 bash python -m pytest tests/layers/test_muls_add.py -v python -m pytest tests/compilation/patterns/ -v python -m pytest tests/compilation/test_pattern_registration.py -v Test Report 环境 Ascend 910B (175.99.1.3), torch 2.8.0, torch_npu 2.8.0, triton_ascend 3.2.0 Kernel 单元测试 13/13 passed, 15 subtests Pattern 集成测试 4/4 passed Benchmark + 注册测试 9/9 passed Triton 硬件 40 vector cores, 20 AI cores See merge request: Ascend/MindIE-SD!270 | 6 months ago | |
update: 更新文件 .pre-commit-config.yaml Co-authored-by: xqchen7<chenxueqing7@huawei.com> # message auto-generated for no-merge-commit merge: !250 merge dev_414 into dev update: 更新文件 .pre-commit-config.yaml Created-by: xqchen7 Commit-by: xqchen7 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes > 谷歌原有的pre-commit一行为80个字符,与之前规则不同,修改为120个字符\ > Fixes [#76] # Purpose # Test Plan > 原有的pre-commit一行为80个字符,与之前规则不同,修改为120个字符。 # Test Report See merge request: Ascend/MindIE-SD!250 | 6 months ago | |
[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 | 6 months ago | |
[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 | 6 months ago | |
[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 | 6 months ago | |
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 | 6 months ago | |
[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 | 6 months ago | |
【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 | 6 months ago | |
恢复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 | 6 months ago | |
[dev]同步最新代码 Co-authored-by: mazhixin00_00<mazhixin7@huawei.com> | 11 months ago | |
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 | 6 months ago | |
【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 | 6 months ago | |
【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 | 6 months ago | |
[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 | 6 months ago | |
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 | 6 months ago | |
恢复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 | 6 months ago | |
[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 | 6 months ago | |
[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 | 6 months ago | |
[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 | 6 months ago | |
【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 | 6 months ago | |
恢复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 | 6 months ago |
MindIE SD
MindIE SD is an Ascend-focused inference acceleration toolkit for Stable Diffusion and related multimodal generation workloads.
Highlights
- Ascend-friendly custom operators and fused kernels
- Quantization, sparse quantization, cache, and parallel execution features
torch.compileintegration for graph-level acceleration
Quick start
Complete the environment preparation and MindIE SD installation first, then install model-specific dependencies and run an example:
git clone https://modelers.cn/MindIE/Wan2.1.git
cd Wan2.1
pip install -r requirements.txt
Documentation
- English overview: docs/en/README.md
- English quick start: docs/en/quick_start.md
- English installation guide: docs/en/installing_guide.md
- English user guide: docs/en/menu_user_manual.md
- English architecture: docs/en/architecture.md
- English environment variables: docs/en/environment_variable_configuration.md
- English support matrix: docs/en/features/supported_matrix.md
- English cache features: docs/en/features/cache.md
- English parallelism features: docs/en/features/parallelism.md
- English sparse quantization: docs/en/features/sparse_quantization.md
- Chinese overview: docs/zh/index.md
- Chinese quick start: docs/zh/quick_start.md
- Chinese installation guide: docs/zh/installing_guide.md
- Chinese architecture: docs/zh/architecture.md
Community and governance
- Contributing: contributing.md
- Code of conduct: CODE_OF_CONDUCT.md
- Governance: docs/en/community/governance.md