Skip to content

Conversation

@andyxning
Copy link
Contributor

@andyxning andyxning commented Aug 28, 2025

Purpose

When kv_cache_configs needs sort, the result should check for the sorted kv_cache_configs instead of num_blocks.

Test Plan

NA

Test Result

NA

Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

@mergify mergify bot added the v1 label Aug 28, 2025
@andyxning andyxning force-pushed the fix_unify_kv_cache_configs_when_kv_cache_config_needs_sort branch from 81b86f9 to 3362ecd Compare August 28, 2025 15:58
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@andyxning andyxning force-pushed the fix_unify_kv_cache_configs_when_kv_cache_config_needs_sort branch 2 times, most recently from ccc3c17 to 2cf7bb1 Compare August 29, 2025 02:36
Signed-off-by: Andy Xie <andy.xning@gmail.com>
@andyxning andyxning force-pushed the fix_unify_kv_cache_configs_when_kv_cache_config_needs_sort branch from 2cf7bb1 to 9bcc7c9 Compare August 29, 2025 05:59
Copy link
Member

@hmellor hmellor left a 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>
@mgoin mgoin enabled auto-merge (squash) August 30, 2025 08:37
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 30, 2025
@mgoin mgoin merged commit 5490d63 into vllm-project:main Aug 30, 2025
17 of 18 checks passed
@andyxning andyxning deleted the fix_unify_kv_cache_configs_when_kv_cache_config_needs_sort branch August 30, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants