diff --git a/knowledge/repos/vllm-omni/rules.md b/knowledge/repos/vllm-omni/rules.md index 9732d022..798018f6 100644 --- a/knowledge/repos/vllm-omni/rules.md +++ b/knowledge/repos/vllm-omni/rules.md @@ -4,7 +4,7 @@ created: 2026-07-10 updated: 2026-10-12 type: rule tags: [vllm-omni] -sources: [benchmark/incidents/_index.md, ci/incidents/_index.md, git/incidents/_index.md, remote/incidents/_index.md, "PR #8014", "PR #8786"] +sources: [benchmark/incidents/_index.md, ci/incidents/_index.md, git/incidents/_index.md, remote/incidents/_index.md, "PR #8014", "PR #8786", "PR #8770"] --- # vLLM-Omni 硬门禁 @@ -116,3 +116,12 @@ sources: [benchmark/incidents/_index.md, ci/incidents/_index.md, git/incidents/_ - 验收:贡献者自查时,四个意图问题均有人类回答或公开安全引用并已回答“是否需要 PR”,bug fix 附可核验的失败证据(期望与实际行为、受影响修订版本与环境、最小复现/失败回归测试/失败 trace 之一);改动四个文件的 PR 中,模板仍含四个带 `Required` 占位注释的小节,SKILL.md 含 `Contributor intent gate` 节,两份贡献文档指向 `#contributor-intent-gate` 的链接有效。^[PR #8786] + +## VLLM-OMNI-PR8770-NPU-RECORD-SHAPES — NPU profiler 必须显式转发 torch_profiler_record_shapes + +- 触发:改动 `vllm_omni/platforms/npu/profiler.py` 中 `NPUOmniProfiler._create_profiler` 传给 `torch_npu.profiler.profile(...)` 的参数集合,特别是 `record_shapes` 一项的取舍。 +- 强制:该调用必须保留 `record_shapes=profiler_config.torch_profiler_record_shapes` 的显式转发。依据 PR #8770 随该行新增的代码注释:缺省此参数时 NPU profiler 会静默忽略 `torch_profiler_record_shapes=True`。 +- 禁止:从 `_create_profiler` 删除 `record_shapes` 转发,或将其改为不读取 `profiler_config.torch_profiler_record_shapes` 的常量,使该配置项重新被静默忽略。 +- 验收:`vllm_omni/platforms/npu/profiler.py` 的 `_create_profiler` 中,`torch_npu.profiler.profile(...)` 调用包含 `record_shapes=profiler_config.torch_profiler_record_shapes`。^[PR #8770] + +