Repository navigation
Conversation
🤖 ds-review-bot Code Reviewv6该变更正确转发了缓存分发所需的 top-k 权重,并返回接收端实际生成的索引与权重,符合 ElasticBuffer.dispatch 的接口和现有测试约定。 v5该 MR(提交 ab9b5da)为纯文档修复,仅改动 README.md 中推理解码示例 v4p本 MR 修复 README 中缓存解码 dispatch 示例:在 cached handle 分支传入当前 topk_weights,并返回 dispatch 实际输出的 recv_topk_idx 和 recv_topk_weights,而不是缓存的 sender 端 topk_idx 和 None。变更与 ElasticBuffer.dispatch 的接口契约一致,属于最小且正确的文档修复,无运行时代码影响。 Files reviewed: 1 📍 未定位到 diff 的评论🔵 suggestion |
|
@sphish, would you mind taking a look at this? It fixes the cached |
|
V2.5 removed the original README example, so I updated this PR to fix the cached-weight docstring contradiction that still exists in I executed the current Python wrapper with a recording runtime stub: cached dispatch accepts optional weights and preserves them through ordinary/expanded layouts and immediate/deferred epilogues. The C++ implementation and existing cached-expanded test agree. Pinned formatting and lint checks pass; the required file cleanup is in a separate commit. GPU kernels were not run. Would someone familiar with the EP dispatch path take a look? |
|
@LyricZhao, would you mind taking a look? This clarifies the optional-weight behavior of cached |
0ba6b86 to
52f7b69
Compare
Summary
The
topk_weightsparameter documentation says weights must beNonewhen a cachedhandleis supplied, but thehandledocumentation explicitly allows them. The implementation and existing EP test also support optional weights with a cached handle.Changes
Correct the parameter docstring to match the existing behavior. This changes documentation only.
Testing
git diff --checkpasses. Checked Python syntax, confirmed executable code is unchanged, and validated cached weight handling with a runtime stub. GPU tests were not run.