test(mhc): 补充 post 正确性边界测试 #2

Merged
eryi merged 1 commits from kangmx into group4/stable 2026-08-04 17:22:46 +08:00
Collaborator

改动说明

本合并请求为 Test-only 改动,基于:

  • 基线:group4/stable@bd416abad3bbeea0db9c9cccaee86b558341981e
  • 测试提交:913a845cf7ebde0f1d04229e26799373bc8eff12

仅修改:

  • tests/ops/test_mhc.py
  • docs/summer-camp/mhc-post-correctness-test-cases.md

不修改 Op、Kernel、Manifest、workload 或 Benchmark。

新增测试

新增以下正确性覆盖:

  • 最小合法 shape:(B,N,C)=(1,1,1)
  • 对齐中间规模:(2,4,1024)
  • N != 4 路径:(1,3,128)
  • tail 边界:C=65/127/129
  • FakeTensor 输出 [B,N*C] 契约;
  • BF16 逐元素 assert_close
  • 显式检查输出 shape、dtype、device。

新增正确性 shape 与 Benchmark workload 不重合。

C500 验证

环境:

  • MetaX C500
  • 16GB sGPU
  • 25% Compute
  • TileLang 0.1.10 MetaX
  • PyTorch 2.8.0+metax3.7.1.3

执行命令:

python -m pytest -q tests/ops/test_mhc.py -k mhc_post

结果:
6 failed, 4 passed, 3 deselected in 32.37s
REFINED_RED_EXIT_CODE=1
失败归因:
(1,1,1):Kernel grid 出现0维;
(1,3,128):TileLang 报 no available layout found;
C=65:tail 未正确写入;
C=127:tail 未正确写入;
C=129:tail 未正确写入;
FakeTensor 实际返回 [2,65],期望 [2,195]。
原有三个正式 case和新增 (2,4,1024) 均通过。
额外隔离诊断确认:C=1024 本身可以运行,当前 layout 失败由 N=3 路径触发。
测试节点增量
Base: 6
Current: 13
Delta: +7
Growth: +116.7%
每个新增节点均对应独立边界或回归路径,不是笛卡尔积扩张。
## 改动说明 本合并请求为 Test-only 改动,基于: - 基线:`group4/stable@bd416abad3bbeea0db9c9cccaee86b558341981e` - 测试提交:`913a845cf7ebde0f1d04229e26799373bc8eff12` 仅修改: - `tests/ops/test_mhc.py` - `docs/summer-camp/mhc-post-correctness-test-cases.md` 不修改 Op、Kernel、Manifest、workload 或 Benchmark。 ## 新增测试 新增以下正确性覆盖: - 最小合法 shape:`(B,N,C)=(1,1,1)`; - 对齐中间规模:`(2,4,1024)`; - `N != 4` 路径:`(1,3,128)`; - tail 边界:`C=65/127/129`; - FakeTensor 输出 `[B,N*C]` 契约; - BF16 逐元素 `assert_close`; - 显式检查输出 shape、dtype、device。 新增正确性 shape 与 Benchmark workload 不重合。 ## C500 验证 环境: - MetaX C500 - 16GB sGPU - 25% Compute - TileLang 0.1.10 MetaX - PyTorch 2.8.0+metax3.7.1.3 执行命令: ```bash python -m pytest -q tests/ops/test_mhc.py -k mhc_post 结果: 6 failed, 4 passed, 3 deselected in 32.37s REFINED_RED_EXIT_CODE=1 失败归因: (1,1,1):Kernel grid 出现0维; (1,3,128):TileLang 报 no available layout found; C=65:tail 未正确写入; C=127:tail 未正确写入; C=129:tail 未正确写入; FakeTensor 实际返回 [2,65],期望 [2,195]。 原有三个正式 case和新增 (2,4,1024) 均通过。 额外隔离诊断确认:C=1024 本身可以运行,当前 layout 失败由 N=3 路径触发。 测试节点增量 Base: 6 Current: 13 Delta: +7 Growth: +116.7% 每个新增节点均对应独立边界或回归路径,不是笛卡尔积扩张。
kangmx added 1 commit 2026-08-04 17:21:10 +08:00
auto-label / apply-label (pull_request) Has been cancelled Details
913a845cf7
test(mhc): cover post correctness boundaries
eryi merged commit 8bcf429202 into group4/stable 2026-08-04 17:22:46 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: eryi/TileOPs-Metax#2
No description provided.