Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
87677fcc
Unverified
Commit
87677fcc
authored
Apr 16, 2019
by
Ben Mann
Committed by
GitHub
Apr 16, 2019
Browse files
[run_gpt2.py] temperature should be a float, not int
parent
3d78e226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/run_gpt2.py
examples/run_gpt2.py
+1
-1
No files found.
examples/run_gpt2.py
View file @
87677fcc
...
@@ -58,7 +58,7 @@ def run_model():
...
@@ -58,7 +58,7 @@ def run_model():
parser
.
add_argument
(
"--nsamples"
,
type
=
int
,
default
=
1
)
parser
.
add_argument
(
"--nsamples"
,
type
=
int
,
default
=
1
)
parser
.
add_argument
(
"--batch_size"
,
type
=
int
,
default
=-
1
)
parser
.
add_argument
(
"--batch_size"
,
type
=
int
,
default
=-
1
)
parser
.
add_argument
(
"--length"
,
type
=
int
,
default
=-
1
)
parser
.
add_argument
(
"--length"
,
type
=
int
,
default
=-
1
)
parser
.
add_argument
(
"--temperature"
,
type
=
in
t
,
default
=
1
)
parser
.
add_argument
(
"--temperature"
,
type
=
floa
t
,
default
=
1
.0
)
parser
.
add_argument
(
"--top_k"
,
type
=
int
,
default
=
0
)
parser
.
add_argument
(
"--top_k"
,
type
=
int
,
default
=
0
)
parser
.
add_argument
(
'--unconditional'
,
action
=
'store_true'
,
help
=
'If true, unconditional generation.'
)
parser
.
add_argument
(
'--unconditional'
,
action
=
'store_true'
,
help
=
'If true, unconditional generation.'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
...
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