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
53dc7e6e
Commit
53dc7e6e
authored
Dec 09, 2021
by
zihanl
Browse files
add out_seq_length for api prompt
parent
e755f6fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tasks/knwl_dialo/prompt.py
tasks/knwl_dialo/prompt.py
+1
-1
No files found.
tasks/knwl_dialo/prompt.py
View file @
53dc7e6e
...
@@ -144,7 +144,7 @@ def generate_samples_by_calling_api():
...
@@ -144,7 +144,7 @@ def generate_samples_by_calling_api():
# get the output generations from the api,
# get the output generations from the api,
# and write to the output file
# and write to the output file
generations
=
call_model_api
(
inputs
)
generations
=
call_model_api
(
inputs
,
args
.
out_seq_length
)
fname_out
.
write
(
generations
)
fname_out
.
write
(
generations
)
fname_out
.
write
(
"
\n
"
)
fname_out
.
write
(
"
\n
"
)
...
...
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