| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
恢复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 个月前 | |
feat: quant_flash_attn and quant_flash_attn_metadata operators Co-authored-by: lijinxi<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !313 merge dev into dev feat: quant_flash_attn and quant_flash_attn_metadata operators Created-by: weixin_44144262 Commit-by: lijinxi Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #136 # Purpose 新增mxfp4的fa算子,配套的还有一个aicpu的metadata算子 # Test Plan 运行tests/ops/quant_flash_attn/quant_flash_attn_golden.py测试单算子精度 # Test Report  See merge request: Ascend/MindIE-SD!313 | 4 个月前 | |
[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 | 4 个月前 | |
[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 | 4 个月前 | |
[Refactor][build]Preserve cmake build dirs to enable incremental compilation Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !304 merge incremental_build_1 into dev [Refactor][build]Preserve cmake build dirs to enable incremental compilation Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix #131 # Purpose 本次修改旨在支持 cmake 增量编译,避免每次构建时删除构建目录导致缓存失效: 1. build/build_ascendc_ops.sh:移除 clean() 中的 rm -rf ${BUILD_DIR},删除冗余的 clean_build_dirs 死代码,改为直接保存 compile_commands.json 2. build/build_plugin.sh:移除 rm -rf build,将 plugin 构建目录从 build 独立为 plugin_build,避免与 ops 共用目录 3. setup.py:clean_build_dirs() 改为仅保存 compile_commands.json,不再删除 bdist.linux-*、custom_project_tik、lib、output 等目录;同步更新 plugin 相关路径为 plugin_build 4. .gitignore:新增 build/plugin_build/、build/bdist.linux-*/、build/lib/ 及 build/plugin_build/compile_commands.json 的忽略规则 # Test Plan - [x] 首次全量编译通过 - [x] 修改 csrc/ops/sparse_block_estimate 源码后再次编译,验证仅触发增量编译 - [x] 对比全量编译与增量编译耗时差异 # Test Report - 全量编译耗时:约 100s - 增量编译耗时:约30s See merge request: Ascend/MindIE-SD!304 | 4 个月前 | |
[Bugfix][build] Skip TIK operator build when CMake >= 4.1.0 Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !298 merge fatik_build into dev [Bugfix][build] Skip TIK operator build when CMake >= 4.1.0 Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes Fixes #[97] # Purpose 在 build_tik_ops.sh 中增加 CMake 版本检查。当检测到 CMake >= 4.1.0 时,跳过 TIK 算子构建并给出提示信息,避免链接失败。 # Test Plan - [x] CMake 3.28 环境:TIK 算子正常构建 - [x] CMake 4.3 环境:TIK 算子被跳过,输出警告信息,整体构建不中断 See merge request: Ascend/MindIE-SD!298 | 5 个月前 | |
[dev]同步最新代码 Co-authored-by: mazhixin00_00<mazhixin7@huawei.com> | 10 个月前 | |
feat: quant_flash_attn and quant_flash_attn_metadata operators Co-authored-by: lijinxi<lijinxi2@huawei.com> # message auto-generated for no-merge-commit merge: !313 merge dev into dev feat: quant_flash_attn and quant_flash_attn_metadata operators Created-by: weixin_44144262 Commit-by: lijinxi Merged-by: ascend-robot Description: # Which issue(s) this PR fixes or accomplishes > Fix part of #136 # Purpose 新增mxfp4的fa算子,配套的还有一个aicpu的metadata算子 # Test Plan 运行tests/ops/quant_flash_attn/quant_flash_attn_golden.py测试单算子精度 # Test Report  See merge request: Ascend/MindIE-SD!313 | 4 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 4 个月前 | ||
| 5 个月前 | ||
| 10 个月前 | ||
| 4 个月前 |