Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions vllm_gaudi/extension/bucketing/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ def get_decode_cfgs(self, max_num_seqs, block_size, max_num_batched_tokens, max_

decode_bs_bucket_cfg = read_bucket_settings('decode', 'bs', min=1, step=32, max=max_num_seqs)
decode_query_bucket_cfg = [1, 1, 1]
decode_block_bucket_cfg = read_bucket_settings('decode',
'block',
min=block_size,
step=block_size,
max=max_blocks)
decode_block_bucket_cfg = read_bucket_settings('decode', 'block', min=1, step=block_size, max=max_blocks)
if decode_block_bucket_cfg[2] > max_blocks:
logger().info(
f'VLLM_DECODE_BLOCK_BUCKET_MAX={decode_block_bucket_cfg[2]} is higher than max_blocks={max_blocks}. Your configuration VLLM_DECODE_BLOCK_BUCKET_MAX={decode_block_bucket_cfg[2]} will be overwritten to VLLM_DECODE_BLOCK_BUCKET_MAX={max_blocks}'
)
decode_block_bucket_cfg[2] = max_blocks

msg = ("Decode bucket config (min, step, max_warmup) "
f"bs:{decode_bs_bucket_cfg}, "
Expand Down