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
6 changes: 5 additions & 1 deletion examples/disaggregated_prefill_v1/gen_ranktable.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def get_cmd_stdout(cmd):
chips_per_card = int(chips_per_card)

if args.local_device_ids:
local_device_ids = args.local_device_ids.split(',')
try:
local_device_ids = [int(id_str) for id_str in args.local_device_ids.split(',')]
except ValueError:
print(f"Error: --local-device-ids must be a comma-separated list of integers. Received: '{args.local_device_ids}'")
exit(1)
else:
local_device_ids = []
for card_id in range(num_cards):
Expand Down
Loading