Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
deepspeed
Commits
6217a6c2
"...text-generation-inference.git" did not exist on "3e2e6240b8f557e4db104fbb4e05dc43456b0b48"
Unverified
Commit
6217a6c2
authored
Jan 15, 2021
by
Jeff Rasley
Committed by
GitHub
Jan 15, 2021
Browse files
skip empty lines in hostfile (#669)
parent
865104be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
deepspeed/launcher/runner.py
deepspeed/launcher/runner.py
+4
-1
No files found.
deepspeed/launcher/runner.py
View file @
6217a6c2
...
@@ -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
(
"="
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment