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
98e1fe31
Commit
98e1fe31
authored
Mar 04, 2024
by
Yoach Lacombe
Browse files
fix ddp issue
parent
e7cc576a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
run_stable_speech_training.py
run_stable_speech_training.py
+2
-4
No files found.
run_stable_speech_training.py
View file @
98e1fe31
...
...
@@ -1389,10 +1389,8 @@ def main():
if
cur_step
==
total_train_steps
:
# un-wrap student model for save
model
=
accelerator
.
unwrap_model
(
model
)
model
.
save_pretrained
(
training_args
.
output_dir
)
# re-wrap student model for final eval
model
=
accelerator
.
prepare
(
model
)
unwrapped_model
=
accelerator
.
unwrap_model
(
model
)
unwrapped_model
.
save_pretrained
(
training_args
.
output_dir
)
if
training_args
.
push_to_hub
:
repo
.
push_to_hub
(
...
...
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