add kv rsnorm rope cache archive task - #155
Open
justice-dance wants to merge 43 commits into
Open
Conversation
Br ascend optimization
add level30 allcase json+add relubackward and fix realdiv
[triton] 适配多用例benchmark评测
【benchmark】修改elu_grad算子的标杆代码逻辑,使标杆性能达到正常水平
【benchmark】修改RealDiv算子的标杆代码逻辑,不使用走cpu的tf实现,改为走npu的torch实现
主要改动 1. 阈值标准化 - get_limit() 返回 2 的幂次方阈值(FP16: 2^-10, BF16: 2^-7, FP32: 2^-13) 2. 判定逻辑升级 - 使用 MERE + MARE 双指标: - MERE (平均相对误差) < threshold - MARE (最大相对误差) < 10 * threshold 3. 分母保护 - eps 从 1e-8 统一为 1e-7 4. 代码重构 - 提取 _check_accuracy_npu_benchmark() 独立函数,提升可读性和可维护性 保留特性 - NaN/Inf 位置和符号检查 - 布尔值精确比对 - 输出形状一致性检查 - 详细的错误值定位(前10个不匹配点) (cherry picked from commit cad9fb8)
补充hifloat32,float8_e4m3,float8_e5m2类型精度阈值 (cherry picked from commit dfc3680)
对齐用profile方式验证性能+对齐精度验证方式+保存每个case 的加速比
[benchmark] 修复17_logaddexp用例类型问题
feat:精度测试参考AscendCOPBenchMark修改。
[triton] Phase 4基线评测复用Phase 3结果,并强制精度全通过才能进入性能评测
[triton] benchmark评测方式变更,由延时求和计算加速比更改为几何平均计算加速比
[Bug] 修复脚本支持绝对路径
cumsum修复+修复提前退出
修复logaddexp算子精度问题
更新部分uint8用例,避免出现负值入参
Signed-off-by: justice-dance <justice1717@163.com>
Signed-off-by: justice-dance <justice1717@163.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
添加kv rsnorm rope cache kernel样例,性能0.7x左右
变更类型
影响范围
性能数据(涉及算子生成/优化时必填)
Benchmark 评测(与 BASELINE.md 对比)
测试环境
冒烟测试(涉及算子生成/框架改动时必填)
验证清单
退化说明(如有通过率下跌)