Skip to content

Commit

Permalink
[V1][Log] Add max request concurrency log to V1 (vllm-project#12569)
Browse files Browse the repository at this point in the history
Signed-off-by: mgoin <[email protected]>
Signed-off-by: Srikanth Srinivas <[email protected]>
  • Loading branch information
mgoin authored and srikanthsrnvs committed Feb 3, 2025
1 parent f7a4e12 commit 95b49be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vllm/v1/core/kv_cache_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ def _get_kv_cache_config_uniform_type(vllm_config: VllmConfig,
num_blocks = num_gpu_blocks_override

logger.info("# GPU blocks: %d", num_blocks)
max_concurrency = (num_blocks * vllm_config.cache_config.block_size /
vllm_config.model_config.max_model_len)
logger.info("Maximum concurrency for %s tokens per request: %.2fx",
vllm_config.model_config.max_model_len, max_concurrency)

per_layer_size = page_size * num_blocks

Expand Down

0 comments on commit 95b49be

Please sign in to comment.