Skip to content

Fully disable alignment prior creation for EMTTS - #16316

Open
rfejgin wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
rfejgin:fix_prior_disabling
Open

rfejgin wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
rfejgin:fix_prior_disabling

Conversation

@rfejgin

@rfejgin rfejgin commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

EMTTS disables the alignment prior by passing prior_scaling_factor=0.0 to the data loader. However, the data loader(s) rely on the prior being None in order to actually skip the creation of the prior tensor. The existing implementation does not have a correctness issue (as scaling the prior to zero has the same effect as not using one), but it does result in unnecessary compute and memory use.

This PR sets prior_scaling_factor to None in all cases for EMTTS.

Background: EMTTS training currently runs out of host memory if more than a few data workers (per task) are created. More data loaders may be needed for training speed, and we have observed GPUs being stalled, possibly due to insufficient workers. Hence it makes sense to pay attention to optimizing the data loader, which is how this was found.

EMTTS disables the alignment prior by passing prior_scaling_factor=0.0 to the data loader. However, both data loader flavors rely on the prior being `None` in order to skip creation of the prior. Both solutions are correct, but as we work on optimizing the data loader to enable faster training, it's a good idea to skip the creation entirely.

This change sets `prior_scaling_factor` to `None` in all cases for EMTTS.

Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
@github-actions github-actions Bot added the TTS label Sep 28, 2026
@rfejgin
rfejgin requested review from Edresson, blisc and paarthneekhara and removed request for Edresson and blisc September 28, 2026 23:19
@rfejgin

rfejgin commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

/ok to test 7b8a01f

@github-actions

Copy link
Copy Markdown
Contributor

[🤖]: Hi @rfejgin 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully.

So it might be time to merge this PR or get some approvals.

This branch was successfully deployed

2 active deployments
public — 7b8a01fd Deployed Sep 28, 2026 by copy-pr-bot[bot] via release / finalize / notify #1595
test — 7b8a01fd Deployed Sep 28, 2026 by copy-pr-bot[bot] via cicd-wait-in-queue #21201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant