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
parler-tts
Commits
3754ce00
"include/vscode:/vscode.git/clone" did not exist on "d0b2508d182c1898ee2e02d9af2db66f9f732884"
Commit
3754ce00
authored
Mar 12, 2024
by
yoach@huggingface.co
Browse files
add temperature to args
parent
1652c372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
run_stable_speech_training.py
run_stable_speech_training.py
+6
-0
No files found.
run_stable_speech_training.py
View file @
3754ce00
...
@@ -257,6 +257,10 @@ class ModelArguments:
...
@@ -257,6 +257,10 @@ class ModelArguments:
default
=
False
,
default
=
False
,
metadata
=
{
"help"
:
"Whether to do sampling or greedy decoding."
},
metadata
=
{
"help"
:
"Whether to do sampling or greedy decoding."
},
)
)
temperature
:
float
=
field
(
default
=
0.4
,
metadata
=
{
"help"
:
"Temperature if sampling."
},
)
max_length
:
int
=
field
(
max_length
:
int
=
field
(
default
=
1500
,
# TODO
default
=
1500
,
# TODO
metadata
=
{
"help"
:
"Whether to do sampling or greedy decoding."
},
metadata
=
{
"help"
:
"Whether to do sampling or greedy decoding."
},
...
@@ -756,6 +760,7 @@ def main():
...
@@ -756,6 +760,7 @@ def main():
"weight_decay"
:
training_args
.
weight_decay
,
"weight_decay"
:
training_args
.
weight_decay
,
"adam_beta1"
:
training_args
.
adam_beta1
,
"adam_beta1"
:
training_args
.
adam_beta1
,
"adam_beta2"
:
training_args
.
adam_beta2
,
"adam_beta2"
:
training_args
.
adam_beta2
,
"temperature"
:
model_args
.
temperature
,
})
})
...
@@ -1310,6 +1315,7 @@ def main():
...
@@ -1310,6 +1315,7 @@ def main():
gen_kwargs
=
{
gen_kwargs
=
{
"do_sample"
:
model_args
.
do_sample
,
"do_sample"
:
model_args
.
do_sample
,
"temperature"
:
model_args
.
temperature
,
"max_length"
:
model_args
.
max_length
,
"max_length"
:
model_args
.
max_length
,
}
}
# TODO: add max_length
# TODO: add max_length
...
...
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