Open
【geir通路】INTrainingUpdateGradGammaBeta算子golden中tolerance中取值不正确 #238
sleeveenAdd on  6 days ago
sleeveen
sleeveenCollaborators
6 days ago Create

golden地址:https://gitcode.com/opencann/operator-artifacts/blob/master/hpc-group/september/INTrainingUpdateGradGammaBeta/04_golden/golden.py

golden中取值如下,不符合标准,标准为浮点型:cross_check
tolerance = {
"float32": {"standard": "stat_rel_err", "threshold": 1.0e-4},
}

开发责任人:张磊
PL:张磊

likedislike
raoliang_sac
raoliang_sacCollaborators
5 days ago Comments:

您好,核对了原交付要求和实际测试记录,目前建议保留这个配置。

我们原来分两种方式检查精度:

  • 普通检查用 stat_rel_err=1e-4,把 NPU 结果与高精度 Golden 比较。质量加固复测Kernel 的正向用例和 GEIR 的 8 条正向对照用例均通过。
  • 跟 GPU 做三方对比时,测试命令明确指定 --compare cross_check,它会覆盖 Golden 文件里的默认值。历史 Kernel 三方测试已完成的 102 条全部通过

所以,Golden 里写 stat_rel_err,不等于没有做 cross_check。原交付验收要求也明确规定了这两种检查。

按原交付要求,现在的写法有依据,不能因为默认值不是 cross_check 就判为错误。目前没有因此修改代码的依据。

likedislike
sleeveensleeveenCollaborators
3 days ago Added label: 已提单
raoliang_sacraoliang_sacCollaborators
3 days ago Associated pull request
raoliang_sacraoliang_sacCollaborators
3 days ago Associated pull request
raoliang_sac
raoliang_sacCollaborators
3 days ago Comments:

已按本轮确认,将INTrainingUpdateGradGammaBeta的浮点Golden默认配置改为cross_check、level="L1"。不显式指定--compare时,Kernel和GEIR就会默认做三方检查。

已验证TTK配置能按预期生效,源码与交付快照一致。此次只调整默认配置及相关说明,计算逻辑未变,没有重新跑整套数值或性能测试。两个PR目前待合入。

likedislike