Skip to content

Conversation

@simon-mo
Copy link
Collaborator

@simon-mo simon-mo commented May 1, 2025

built on top of #17519, this PR showcase a way to prioritized KV cache blocks by using the request priority flag. the usage is to keep a notion of priority in the free queue so some blocks are freed earlier than others, instead of a global LRU ordering.

see examples/experiments/offline-priority-prefix-caching.py and examples/experiments/online-priority-prefix-caching.py for usage. in short the request priority needs to be set as priority: 1 or 0. note we are just abusing the API here that this doesn't implement priority scheduling

@github-actions
Copy link

github-actions bot commented May 1, 2025

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

@mergify mergify bot added documentation Improvements or additions to documentation frontend v1 labels May 1, 2025
@mergify
Copy link

mergify bot commented Aug 1, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @simon-mo.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Aug 1, 2025
@simon-mo simon-mo closed this Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation frontend needs-rebase v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant