-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
[UT] enhance free kv cache block queue popleft_n #24220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UT] enhance free kv cache block queue popleft_n #24220
Conversation
Signed-off-by: Andy Xie <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request enhances the unit test for FreeKVCacheBlockQueue.popleft_n by adding assertions to verify the number of free blocks after each pop operation. The added assertions are correct and improve the test's robustness by explicitly checking the queue's state. The changes are sound and I have no further suggestions.
Signed-off-by: Andy Xie <[email protected]>
Signed-off-by: Andy Xie <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Signed-off-by: Andy Xie <[email protected]>
Signed-off-by: Andy Xie <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Purpose
Enhance free kv cache block queue popleft_n ut with assert queue element size.
Test Plan
NA
Test Result
NA
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.