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
Megatron-LM
Commits
28450473
Commit
28450473
authored
Jun 10, 2021
by
Mostofa Patwary
Browse files
addressed comments
parent
c45109ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
tasks/orqa/supervised/finetune.py
tasks/orqa/supervised/finetune.py
+0
-1
No files found.
tasks/orqa/supervised/finetune.py
View file @
28450473
...
@@ -45,7 +45,6 @@ def check_and_append_tensor_for_gather(group, rank, world_size, input_):
...
@@ -45,7 +45,6 @@ def check_and_append_tensor_for_gather(group, rank, world_size, input_):
torch
.
distributed
.
all_gather
(
input_list
,
first_dim
,
group
=
group
)
torch
.
distributed
.
all_gather
(
input_list
,
first_dim
,
group
=
group
)
all_input_list
=
torch
.
cat
(
input_list
,
dim
=
0
).
contiguous
()
all_input_list
=
torch
.
cat
(
input_list
,
dim
=
0
).
contiguous
()
max_length
=
torch
.
max
(
all_input_list
)
max_length
=
torch
.
max
(
all_input_list
)
min_length
=
torch
.
min
(
all_input_list
)
# if the size are different than the max, extend the tensor
# if the size are different than the max, extend the tensor
# accordingly
# accordingly
...
...
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