| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[bugfix]解决测试用例导包失败的问题 Co-authored-by: mazhixin00_00<mazhixin7@huawei.com> # message auto-generated for no-merge-commit merge: !199 merge init into dev [bugfix]解决测试用例导包失败的问题 Created-by: mazhixin00_00 Commit-by: mazhixin00_00 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20251224 --> # Which issue(s) this PR fixes or accomplishes 有些环境,跑测试用例导包失败的问题  # Test Plan 全量测试 # Test Report  See merge request: Ascend/MindIE-SD!199 | 4 个月前 | |
[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 | 29 天前 | |
[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 | 29 天前 | |
UT分类测试 Co-authored-by: changetheway<guotaoyuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !203 merge ut_Classification into dev UT分类测试 Created-by: changetheway Commit-by: changetheway Merged-by: ascend-robot Description: # 分类UT测试 测试用例划分为三种类型: - 不依赖npu,可以在cpu环境下下运行的测试用例 执行 cd tests/ bash run_test.sh --cpu_only - 依赖npu运行的测试用例 执行 cd tests/ bash run_test.sh --npu_only - 在npu环境下,运行全量测试用例的方式和之前保持一致 执行 cd tests/ bash run_test.sh # 测试报告 运行cpu_only测试用例成功:  运行npu_only测试用例成功:  运行全量测试用例成功:  See merge request: Ascend/MindIE-SD!203 | 4 个月前 | |
[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 | 29 天前 | |
【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 | 2 个月前 | |
【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 | 2 个月前 | |
[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 | 29 天前 | |
[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 | 1 个月前 | |
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 | 13 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 个月前 | ||
| 29 天前 | ||
| 29 天前 | ||
| 4 个月前 | ||
| 29 天前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 29 天前 | ||
| 1 个月前 | ||
| 13 天前 |