fix: stabilize A5 validation samples#642
fix: stabilize A5 validation samples#642HecreReed wants to merge 1 commit intohw-native-sys:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds support for MSCATTER and MGATHER operations in the NPU validation framework, including logic for index generation and result comparison. It also updates quantization samples to utilize per-row scaling and offsets, simplifying the golden reference generation. Furthermore, the remote validation script now includes a check for required ISA symbols to skip unsupported test cases. Feedback was provided regarding the heuristic used to identify scatter indices, noting an inconsistency with existing logic that could lead to incorrect operand identification.
| for p in reversed(init_ptrs): | ||
| p_dtype = _np_dtype_for_cpp(p["cpp_type"]) | ||
| if p.get("role") == "input" and ( | ||
| p_dtype.startswith("np.int") or p_dtype.startswith("np.uint") | ||
| ): | ||
| mscatter_indices_input = p | ||
| break |
There was a problem hiding this comment.
The heuristic for identifying mscatter_indices_input uses reversed(init_ptrs), which selects the last integer input as the indices. This is inconsistent with the tscatter logic (which selects the first integer input) and may be incorrect depending on the operand order of the MSCATTER operation. In mscatter.py, arg0 appears to be the indices and arg1 the data; if so, this heuristic will misidentify arg1 as the indices, potentially breaking the compare_bin_at_indices logic later. Consider if init_ptrs (picking the first) would be more appropriate or if a more robust identification method is needed.
|
/run a5 abs quant quant_asym mgather mscatter partarg |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
Codex Review该评论由 review 机器人自动更新。
SummaryReview failed at stage Findings未生成结构化 findings,因为 review 过程提前失败。 Log Tail |
A5 板测失败
失败用例
|
A5 板测失败详情:PR #642mscatter
|
|
/run a5 abs quant quant_asym mgather mscatter partarg |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
A5 板测失败
失败用例
|
A5 板测失败详情:PR #642mscatter
|
|
/run a5 abs quant quant_asym mgather mscatter partarg |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
A5 板测失败
失败用例
|
A5 板测失败详情:PR #642quant
quant_asym
mscatter
mgather
abs
|
|
/run a5 abs quant quant_asym mgather mscatter partarg |
|
已接收
页面会自动刷新,可以直接看当前阶段、排队情况和最近结果。 |
A5 板测失败
失败用例
|
A5 板测失败详情:PR #642mscatter
|
Summary
Validation