Skip to content

Commit

Permalink
Fix finding proper block buckets (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaniecki authored Jul 23, 2024
1 parent b419b07 commit 260c710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/worker/habana_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def _prepare_decode(
block_usage = [[self.block_size] * (bu - 1) + [lb] for bu, lb in zip(blocks_used, last_block)]
block_usage = list(itertools.chain(*block_usage))

block_bucket_size = self.decode_block_bucket_cfg[1]
block_bucket_size = find_bucket(len(block_list), self.decode_block_bucket_cfg)
block_list = pad_list(block_list, block_bucket_size, _PAD_SLOT_ID)
block_mapping = pad_list(block_mapping, block_bucket_size, 0)
block_usage = pad_list(block_usage, block_bucket_size, 0)
Expand Down

0 comments on commit 260c710

Please sign in to comment.