-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
[UT] fix unify_kv_cache_configs when kv cache config needs sort #23843
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] fix unify_kv_cache_configs when kv cache config needs sort #23843
Conversation
81b86f9 to
3362ecd
Compare
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 updates a unit test for unify_kv_cache_configs to correctly verify the sorting behavior of kv_cache_groups. The previous implementation only asserted the unification of num_blocks, but this change adds assertions to ensure the kv_cache_groups are sorted as expected, improving the test's correctness and coverage. The change is accurate and enhances the test suite.
ccc3c17 to
2cf7bb1
Compare
Signed-off-by: Andy Xie <andy.xning@gmail.com>
2cf7bb1 to
9bcc7c9
Compare
hmellor
left a comment
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.
Just a nit about naming so it's clearer what it is that's wanted
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Michael Goin <mgoin64@gmail.com>
Purpose
When
kv_cache_configsneeds sort, the result should check for the sortedkv_cache_configsinstead ofnum_blocks.Test Plan
NA
Test Result
NA
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.