[Cherry-Pick][Metrics] Support cpu-cache-block-num (#6390)#6391
Draft
Copilot wants to merge 2 commits intorelease/2.4from
Draft
[Cherry-Pick][Metrics] Support cpu-cache-block-num (#6390)#6391Copilot wants to merge 2 commits intorelease/2.4from
Copilot wants to merge 2 commits intorelease/2.4from
Conversation
|
|
|
Thanks for your contribution! |
Copilot
AI
changed the title
[WIP] Cherry pick PR 6390 to release 2.4 branch
[Cherry-Pick][Metrics] Support cpu-cache-block-num (#6390)
Feb 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Cherry-pick PR #6390 to release/2.4 branch. Adds
max_cpu_block_nummetric to report CPU cache block capacity alongside existing GPU block metrics.Modifications
Core changes:
fastdeploy/metrics/metrics.py: Addedmax_cpu_block_numGauge metric definition toMetricsManagerandMETRIC_CONFIGSfastdeploy/cache_manager/prefix_cache_manager.py: Setmax_cpu_block_nummetric in__init__()andupdate_cache_config()methods usingself.num_cpu_blocksDocumentation:
docs/online_serving/metrics.md: Addedfastdeploy:max_cpu_block_nummetric entrydocs/zh/online_serving/metrics.md: Added metric entry and clarifiedmax_gpu_block_numdescription to specify GPU blocksUsage or Command
The new metric is automatically reported when FastDeploy starts with CPU cache enabled:
Accuracy Tests
Documentation-only change for metrics reporting. No impact on model outputs or computation.
Checklist
pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.