Skip to content

Commit 393578d

Browse files
committed
remove redundant if
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
1 parent fe5e53b commit 393578d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python/ray/llm/_internal/serve/core/configs/accelerators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ def default_bundles(
200200
num_hosts = max(1, num_devices // chips_per_host)
201201

202202
bundle = {"TPU": float(chips_per_host)}
203-
if accelerator_type_str:
204-
bundle[format_ray_accelerator_resource(accelerator_type_str)] = 0.001
203+
bundle[format_ray_accelerator_resource(accelerator_type_str)] = 0.001
205204

206205
return [bundle.copy() for _ in range(num_hosts)]
207206

0 commit comments

Comments
 (0)