Skip to content

test - #1239

Open
nepdada wants to merge 1 commit into
mindspore-ai:masterfrom
nepdada:master
Open

test#1239
nepdada wants to merge 1 commit into
mindspore-ai:masterfrom
nepdada:master

Conversation

@nepdada

@nepdada nepdada commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Paired: GitHub #1239 ↔ GitCode !1822

What type of PR is this?

/kind task

What does this PR do / why do we need it:
修复 test_semantic_difference_documentation 在新版本环境下的失败。

背景:该测试原先在 CANN 9.1 + MindSpore 2.10 环境下稳定通过,升级到
CANN 9.2 + MindSpore 2.11 后,原断言开始出现误差导致失败。

原因:测试用 assertEqual 断言 Megatron 的 full-softmax 概率和精确等于
num_tokens,但 float32 下对 num_tokens * num_experts 个 softmax 概率
求和必然存在舍入误差。新版本 CANN / MindSpore 的算子实现与累加顺序变化,
使该舍入误差显现出来(本次观测到 ~7.6e-6),精确相等不再成立。

本 PR:

  • 将精确的 assertEqual 改为 assertAlmostEqual(..., delta=1e-5),
    容忍 fp32 舍入误差;
  • 补充注释说明容差来源;
  • 不改变测试语义:Megatron 求和等于 num_tokens(允许 fp32 舍入),
    HyperParallel(仅 top-k)求和严格小于 num_tokens。

Which issue(s) this PR fixes:

Fixes #341

Code review checklist [illustration]:

  • whether to verify the function's return value (It is forbidden to use void to mask the return values of security functions and self-developed functions. C++ STL functions can be masked if there is no problem)
  • Whether to comply with SOLID principle / Demeter's law
  • Whether there is UT test case && the test case is a valid (if there is no test case, please explain the reason)
  • Whether the API change is involved
  • Whether official document modification is involved

Comment thread build.sh Resolved
Comment thread build.sh
# -----------------------------------------------------------------------------------------------------------

set -euo pipefail
set -xeuo pipefail

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

111

@nepdada

nepdada commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #67 is running. Please wait a moment... (Link)

@nepdada

nepdada commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ❌ FAILURE 67

@nepdada

nepdada commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #70 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ✅ SUCCESS 68%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Platform Type Module Excution Time Time Limit
- activation_memory 120.23925s 120.0s
- shard 177.3s 300.0s
- auto_models 93.943s 150.0s
- pipeline_parallel 546.383s 600.0s
- expert_parallel 150.863s 120.0s
- accuracy 74.722s 120.0s
- swap_optimizer 226.453s 300.0s
- tensor_parallel 227.113s 300.0s
- context_parallel 73.418s 120.0s
- optimizer 225.136s 300.0s
- distributed_checkpoint 76.642s 120.0s
- fully_shard 307.225s 600.0s
- multicore 123.14325s 120.0s
- dtensor 71.541s 120.0s
- clip_grad 75.749s 120.0s
- init_weights 74.44s 118.75s
- process_group 68.558s 90.0s
- llama3_examples 62.74s 120.0s

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ✅ SUCCESS 70

@nepdada

nepdada commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

@nepdada

nepdada commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

1 similar comment
@nepdada

nepdada commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #74 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ❌ FAILURE 74
Compile_Ascend_X86 FAILURE 74

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ❌ FAILURE 18%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ❌ FAILURE 95

@mindspore-ai-bot

Copy link
Copy Markdown
Platform Type Module Excution Time Time Limit
- shard 223.373s 300.0s
- optimizer 386.917s 300.0s
- accuracy 144.301s 120.0s
- clip_grad 133.912s 120.0s
- fully_shard 412.73s 600.0s
- pipeline_parallel 750.364s 600.0s
- activation_memory 124.83037s 120.0s
- swap_optimizer 417.961s 300.0s
- auto_models 117.115s 150.0s
- dtensor 95.562s 120.0s
- process_group 79.041s 90.0s
- tensor_parallel 257.843s 300.0s
- context_parallel 84.869s 120.0s
- distributed_checkpoint 102.991s 120.0s
- llama3_examples 89.077s 120.0s
- expert_parallel 180.28075s 200.0s
- multicore 127.1115s 120.0s
- init_weights 95.408s 118.75s

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_Debug - ❌ FAILURE 22

@nepdada

nepdada commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #96 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ✅ SUCCESS 74%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Platform Type Module Excution Time Time Limit
- shard 175.582s 300.0s
- activation_memory 117.07188s 120.0s
- auto_models 99.241s 150.0s
- pipeline_parallel 537.602s 600.0s
- optimizer 232.615s 300.0s
- swap_optimizer 291.983s 300.0s
- expert_parallel 148.91025s 200.0s
- accuracy 76.712s 120.0s
- fully_shard 304.77s 600.0s
- multicore 110.51587s 120.0s
- tensor_parallel 217.985s 300.0s
- distributed_checkpoint 74.26s 120.0s
- context_parallel 71.56s 120.0s
- clip_grad 81.753s 120.0s
- init_weights 74.175s 118.75s
- dtensor 73.54s 120.0s
- llama3_examples 57.591s 120.0s
- process_group 63.325s 90.0s

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ✅ SUCCESS 96

@nepdada

nepdada commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@mindspore-ai-bot

Copy link
Copy Markdown

Gate trigger failed: please fix the /check-pr findings and obtain the pr-check-pass label before retrying.

@nepdada

nepdada commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/check-pr

@nepdada

nepdada commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #1446 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ✅ SUCCESS 74%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Platform Type Module Excution Time Time Limit
- shard 221.743s 300.0s
- pipeline_parallel 750.183s 600.0s
- optimizer 313.138s 300.0s
- fully_shard 385.224s 600.0s
- clip_grad 118.953s 120.0s
- activation_memory 133.99038s 120.0s
- auto_models 116.601s 150.0s
- swap_optimizer 371.696s 300.0s
- accuracy 119.601s 120.0s
- expert_parallel 210.51687s 200.0s
- distributed_checkpoint 118.76s 120.0s
- tensor_parallel 289.544s 300.0s
- context_parallel 86.6s 120.0s
- init_weights 99.753s 118.75s
- multicore 141.9185s 120.0s
- dtensor 89.102s 120.0s
- llama3_examples 79.35s 120.0s
- process_group 83.191s 90.0s

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate - ✅ SUCCESS 1446

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #97 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ❌ FAILURE 97

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #98 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ❌ FAILURE 98

@nepdada

nepdada commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

/retest_hyper

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #101 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ❌ FAILURE 76%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Platform Type Module Excution Time Time Limit
- distributed_data 356.223s 450.0s
- activation_memory 462.865s 375.0s
- shard 214.158s 300.0s
- auto_models 134.21s 150.0s
- pipeline_parallel 764.096s 675.0s
- optimizer 379.229s 300.0s
- accuracy 139.556s 120.0s
- fully_shard 386.524s 600.0s
- distributed_checkpoint 92.211s 120.0s
- swap_optimizer 391.824s 300.0s
- clip_grad 109.293s 120.0s
- init_weights 90.786s 118.75s
- tensor_parallel 284.133s 300.0s
- context_parallel 184.933s 120.0s
- multicore 126.58738s 120.0s
- expert_parallel 203.81538s 200.0s
- process_group 91.936s 90.0s
- llama3_examples 91.989s 120.0s
- dtensor 100.225s 120.0s

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ❌ FAILURE 101
Smoke_Ascend910b_Torch FAILURE 101

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #102 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ❌ FAILURE 76%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Platform Type Module Excution Time Time Limit
- distributed_data 387.144s 450.0s
- activation_memory 469.264s 375.0s
- pipeline_parallel 746.735s 675.0s
- shard 202.013s 300.0s
- optimizer 373.883s 300.0s
- swap_optimizer 388.79s 300.0s
- clip_grad 124.548s 120.0s
- fully_shard 405.746s 600.0s
- auto_models 135.029s 150.0s
- accuracy 119.245s 120.0s
- tensor_parallel 274.218s 300.0s
- context_parallel 207.842s 120.0s
- distributed_checkpoint 99.477s 120.0s
- multicore 137.75887s 120.0s
- init_weights 81.188s 118.75s
- process_group 94.2s 90.0s
- dtensor 99.983s 120.0s
- expert_parallel 188.757s 200.0s
- llama3_examples 84.086s 120.0s

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate_zb - ❌ FAILURE 102
Smoke_Ascend910b_Torch FAILURE 102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

【Bugfix】修复门禁报错

3 participants