[P2] A/B 输入 dtype 不一致时无告警:models.py 注释承诺的 warning 未实现 #8

Closed
opened 2026-09-03 10:56:39 +00:00 by admin · 1 comment
Owner

现象models.py:93-94 注释写明"A/B 同 dtype,不一致时取较大者并在校验中报 warning";全仓 grep 无任何 warning 实现(dtype_in_bytes 静默取 max 后继续建模)。dtype_a != dtype_b(如 A=fp8、B=bf16 混精度)时软件静默按较大者计算数据量,用户得不到任何提示。

期望:在 load_casesevaluator._check_constraints 中实现该告警;同时明确混精度对结果的影响边界。

**现象**:`models.py:93-94` 注释写明"A/B 同 dtype,不一致时取较大者**并在校验中报 warning**";全仓 grep 无任何 warning 实现(`dtype_in_bytes` 静默取 max 后继续建模)。`dtype_a != dtype_b`(如 A=fp8、B=bf16 混精度)时软件静默按较大者计算数据量,用户得不到任何提示。 **期望**:在 `load_cases` 或 `evaluator._check_constraints` 中实现该告警;同时明确混精度对结果的影响边界。
Author
Owner

【修复说明 · 乱码重写】原评论提交时编码损坏、内容不可恢复, 以下按 git 记录 / issue 正文 / 残留文本重建 (要点级, 非逐字原稿):

[P2] A/B dtype 不一致无告警 已修复 (io_csv 解析层, e7db521 等):

  • load_cases 对 dtype_a != dtype_b 向 stderr 打印 warning, 兑现 models.py 注释承诺;
  • 混精度口径: 数据量按较大者建模, dValue/带宽影响未精确建模 (标注待后续)。
【修复说明 · 乱码重写】原评论提交时编码损坏、内容不可恢复, 以下按 git 记录 / issue 正文 / 残留文本重建 (要点级, 非逐字原稿): [P2] A/B dtype 不一致无告警 已修复 (io_csv 解析层, e7db521 等): - load_cases 对 dtype_a != dtype_b 向 stderr 打印 warning, 兑现 models.py 注释承诺; - 混精度口径: 数据量按较大者建模, dValue/带宽影响未精确建模 (标注待后续)。
admin closed this issue 2026-09-03 12:05:43 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/matmul-analysis#8
No description provided.