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
dgl
Commits
e3bf1825
"...text-generation-inference.git" did not exist on "d077150eb7b9884f33e60abe99fe6359bf6e3e64"
Unverified
Commit
e3bf1825
authored
Nov 07, 2022
by
kylasa
Committed by
GitHub
Nov 07, 2022
Browse files
alltoall returns tensor list with None values, which is failing torch.cat(). (#4788)
parent
98b9e0fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tools/distpartitioning/dist_lookup.py
tools/distpartitioning/dist_lookup.py
+3
-0
No files found.
tools/distpartitioning/dist_lookup.py
View file @
e3bf1825
...
@@ -310,6 +310,9 @@ class DistLookupService:
...
@@ -310,6 +310,9 @@ class DistLookupService:
# Send the shuffle-global-nids to their respective ranks.
# Send the shuffle-global-nids to their respective ranks.
mapped_global_nids
=
alltoallv_cpu
(
self
.
rank
,
self
.
world_size
,
shuffle_nids_list
)
mapped_global_nids
=
alltoallv_cpu
(
self
.
rank
,
self
.
world_size
,
shuffle_nids_list
)
for
idx
in
range
(
len
(
mapped_global_nids
)):
if
mapped_global_nids
[
idx
]
==
None
:
mapped_global_nids
[
idx
]
=
torch
.
empty
((
0
,),
dtype
=
torch
.
int64
)
# Reorder to match global_nids (function parameter).
# Reorder to match global_nids (function parameter).
global_nids_order
=
np
.
concatenate
(
id_list
)
global_nids_order
=
np
.
concatenate
(
id_list
)
...
...
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