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
593b47b4
Commit
593b47b4
authored
Sep 14, 2021
by
rprenger
Browse files
Addressing comments
parent
2c500111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
megatron/text_generation_utils.py
megatron/text_generation_utils.py
+0
-2
No files found.
megatron/text_generation_utils.py
View file @
593b47b4
...
@@ -222,8 +222,6 @@ def generate_samples_eval(model, context, max_gen_length, eos_token_id):
...
@@ -222,8 +222,6 @@ def generate_samples_eval(model, context, max_gen_length, eos_token_id):
resp_sentences
=
generate
(
model
,
[
context
],
max_gen_length
)
resp_sentences
=
generate
(
model
,
[
context
],
max_gen_length
)
if
resp_sentences
:
if
resp_sentences
:
return
resp_sentences
[
0
][
raw_text_len
:]
return
resp_sentences
[
0
][
raw_text_len
:]
else
:
return
[
None
]
# This is horrible
def
switch
(
val1
,
val2
,
boolean
):
def
switch
(
val1
,
val2
,
boolean
):
boolean
=
boolean
.
type_as
(
val1
)
boolean
=
boolean
.
type_as
(
val1
)
...
...
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