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
chenpangpang
transformers
Commits
46078e1b
Unverified
Commit
46078e1b
authored
Apr 17, 2019
by
Thomas Wolf
Committed by
GitHub
Apr 17, 2019
Browse files
Merge pull request #496 from 8enmann/patch-1
[run_gpt2.py] temperature should be a float, not int
parents
b8686130
87677fcc
Changes
1
Show 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 @
46078e1b
...
@@ -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