Repository navigation
Fix HashTopK empty output - #1
Open
Vaibhaav-Tiwari wants to merge 1 commit into
Open
Vaibhaav-Tiwari wants to merge 1 commit into
Vaibhaav-Tiwari wants to merge 1 commit into
Conversation
return annotation Fixes the gemini-code-assist review comment by adding the StandardTopKOutput return annotation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Address the
gemini-code-assistreview comment on sgl-project#30939 by adding the missing return type annotation toHashTopK.empty_topk_output.Modifications
-> StandardTopKOutputtoHashTopK.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:
7867e6b621b68d079a60657128a0b932a23901f5Accuracy Tests
Not applicable.
Local check:
python -m py_compile python/sglang/srt/layers/moe/hash_topk.py test/registered/moe/test_hash_topk.pySpeed Tests and Profiling
Not applicable.
Checklist
developer_guide/contribution_guide.html#format-code-with-pre-commit).
contribution_guide.html#run-and-add-unit-tests).
contribution_guide.html#write-documentations).
docs.sglang.io/developer_guide/contribution_guide.html#test-the-accuracy) and [Benchmark the speed]
(https://docs.sglang.io/developer_guide/contribution_guide.html#benchmark-the-speed).
contribution_guide.html#code-style-guidance).
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ci