Skip to content

[Optimization] Update estimated_num_new_pages logic in TokenToKVPoolAllocator - #8794

Merged
merrymercy merged 3 commits into
sgl-project:mainfrom
YiXR:main
Aug 10, 2025
Merged

merrymercy merged 3 commits into
sgl-project:mainfrom
YiXR:main

Conversation

@YiXR

@YiXR YiXR commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

Motivation

This PR update estimated_num_new_pages logic and format code which is introduced by the previous PR: #8133

Modifications

Accuracy Test

Benchmark & Profiling

Checklist

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@ShangmingCai ShangmingCai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@merrymercy merrymercy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
It seems this sort is only useful for PD case. Should we add a flag so that it only turns on during PD?

@YiXR

YiXR commented Aug 7, 2025

Copy link
Copy Markdown
Contributor Author

Looks good to me. It seems this sort is only useful for PD case. Should we add a flag so that it only turns on during PD?

done

@merrymercy
merrymercy merged commit 0418b9d into sgl-project:main Aug 10, 2025
narutolhy pushed a commit to narutolhy/sglang that referenced this pull request Aug 17, 2025
MahmoudAshraf97 pushed a commit to MahmoudAshraf97/sglang that referenced this pull request Sep 8, 2025
0826joyce pushed a commit to 0826joyce/sglang-perf-opt that referenced this pull request May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants