"...text-generation-inference.git" did not exist on "3e2e6240b8f557e4db104fbb4e05dc43456b0b48"
Unverified Commit 6217a6c2 authored by Jeff Rasley's avatar Jeff Rasley Committed by GitHub
Browse files

skip empty lines in hostfile (#669)

parent 865104be
...@@ -120,9 +120,12 @@ def fetch_hostfile(hostfile_path): ...@@ -120,9 +120,12 @@ def fetch_hostfile(hostfile_path):
# e.g., worker-0 slots=16 # e.g., worker-0 slots=16
with open(hostfile_path, 'r') as fd: with open(hostfile_path, 'r') as fd:
resource_pool = collections.OrderedDict() resource_pool = collections.OrderedDict()
for line in fd.readlines(): for line in fd.readlines():
line = line.strip()
if line == '':
# skip empty lines
continue
try: try:
hostname, slots = line.split() hostname, slots = line.split()
_, slot_count = slots.split("=") _, slot_count = slots.split("=")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment