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

JOC Optimization in FastPitch #5450

Merged
merged 1 commit into from
Nov 18, 2022
Merged

JOC Optimization in FastPitch #5450

merged 1 commit into from
Nov 18, 2022

Conversation

subhankar-ghosh
Copy link
Contributor

@subhankar-ghosh subhankar-ghosh commented Nov 17, 2022

Signed-off-by: subhankar-ghosh subhankar2321@gmail.com

What does this PR do ?

Adds JoC Optimizations in FastPitch

  1. Correcting dimensions, it will give wrong results in case of >1 attention heads in nemo/collections/tts/modules/transformer.py
  2. Optimized implementation of mas_width1 method in nemo/collections/tts/helpers/helpers.py
  3. Converted attn to log attn in binarize_attention_parallel and corresponding changes in aligner loss.

Collection: [Note which collection this PR will affect]

TTS

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

Copy link
Collaborator

@redoctopus redoctopus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this!

Could you write a few bullet points in the PR to summarize the changes made?

nemo/collections/tts/losses/aligner_loss.py Show resolved Hide resolved
nemo/collections/tts/modules/transformer.py Show resolved Hide resolved
@subhankar-ghosh
Copy link
Contributor Author

Thanks for tackling this!

Could you write a few bullet points in the PR to summarize the changes made?

These are mostly JoC performance optimizations that Adrian had worked on. Like an optimized implementation of mas_width1 method and aligner loss.

Signed-off-by: subhankar-ghosh <subhankar2321@gmail.com>
Copy link
Collaborator

@redoctopus redoctopus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@subhankar-ghosh subhankar-ghosh merged commit bccf6d5 into main Nov 18, 2022
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 29, 2022
Signed-off-by: subhankar-ghosh <subhankar2321@gmail.com>

Signed-off-by: subhankar-ghosh <subhankar2321@gmail.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 29, 2022
Signed-off-by: subhankar-ghosh <subhankar2321@gmail.com>

Signed-off-by: subhankar-ghosh <subhankar2321@gmail.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
andrusenkoau pushed a commit to andrusenkoau/NeMo that referenced this pull request Jan 5, 2023
Signed-off-by: subhankar-ghosh <subhankar2321@gmail.com>

Signed-off-by: subhankar-ghosh <subhankar2321@gmail.com>
Signed-off-by: andrusenkoau <andrusenkoau@gmail.com>
@titu1994 titu1994 deleted the joc_optimization branch February 23, 2023 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants