Skip to content

Fix HashTopK empty output - #1

Open
Vaibhaav-Tiwari wants to merge 1 commit into
glaziermag:agent/fix-hash-topk-empty-outputfrom
Vaibhaav-Tiwari:fix-hashtopk-empty-return-annotation
Open

Vaibhaav-Tiwari wants to merge 1 commit into
glaziermag:agent/fix-hash-topk-empty-outputfrom
Vaibhaav-Tiwari:fix-hashtopk-empty-return-annotation

Conversation

@Vaibhaav-Tiwari

Copy link
Copy Markdown

Motivation

Address the gemini-code-assist review comment on sgl-project#30939 by adding the missing return type annotation to HashTopK.empty_topk_output.

Modifications

  • Added -> StandardTopKOutput to HashTopK.empty_topk_output.

This PR is intended as a small helper PR into glaziermag:agent/fix-hash-topk-empty-output, so the commit can be cherry-picked into sgl-project#30939.

Commit to cherry-pick: 7867e6b621b68d079a60657128a0b932a23901f5

Accuracy Tests

Not applicable.

Local check:

  • python -m py_compile python/sglang/srt/layers/moe/hash_topk.py test/registered/moe/test_hash_topk.py

Speed Tests and Profiling

Not applicable.

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
  • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  1. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

return annotation

Fixes the gemini-code-assist review comment by adding the StandardTopKOutput return annotation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant