Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mixed precision training #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

NarutoUA
Copy link

@NarutoUA NarutoUA commented Feb 28, 2021

This pull request adds option to enable mixed precision training by using torch.cuda.amp package.

I can't figure out why but for Tacotron, mixed precision decreases training speed so I recommend to keep tts_use_mixed_precision opion disabled. For WaveRNN I had ~30% training speed boost (2.5 steps/sec vs 3.2 steps/sec on RTX2080s/custom dataset) and reduced GPU memory usage by ~40% (3.37GB vs 2.43GB) (voc_use_mixed_precision is enabled by default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant