Skip to content

Commit 86a8ace

Browse files
authored
Port: #282 from extension (#52)
HabanaAI/vllm-hpu-extension#282 Signed-off-by: Agata Dobrzyniewicz <[email protected]>
1 parent b50b3b0 commit 86a8ace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm_gaudi/extension/bucketing/exponential.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def generate_prompt_buckets(bs_bucket_config,
109109
else:
110110
num_buckets_3d = math.ceil(math.log2(max_blocks_range)) + 1
111111

112-
for i in range(num_buckets_3d):
112+
for i in range(1, num_buckets_3d + 1):
113113
power_unpadded = 1 * np.float_power(
114-
max_blocks_range, (1 / float(num_buckets_3d - 1)) * i)
114+
max_blocks_range, (1 / float(num_buckets_3d)) * i)
115115
new_bucket = math.ceil(power_unpadded)
116116
buckets_3d.append((bs, b, new_bucket))
117117

0 commit comments

Comments
 (0)