We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a6ba3 commit 2c26980Copy full SHA for 2c26980
examples/disaggregated_prefill_v1/gen_ranktable.py
@@ -63,8 +63,11 @@ def get_cmd_stdout(cmd):
63
chips_per_card = int(chips_per_card)
64
65
if args.local_device_ids:
66
- local_device_ids = args.local_device_ids.split(',')
67
- local_device_ids = [int(id_str) for id_str in local_device_ids]
+ try:
+ local_device_ids = [int(id_str) for id_str in args.local_device_ids.split(',')]
68
+ except ValueError:
69
+ print(f"Error: --local-device-ids must be a comma-separated list of integers. Received: '{args.local_device_ids}'")
70
+ exit(1)
71
else:
72
local_device_ids = []
73
for card_id in range(num_cards):
0 commit comments