Skip to content

Conversation

Leili
Copy link
Collaborator

@Leili Leili commented Aug 20, 2025

Important

The Update branch button must only be pressed in very rare occassions.
An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.

What does this PR do ?

Adding whisper output normalization for GRPO
Normalization currently covers following languages: english, spanish, french, german, mandarin
If no language is specified, it uses english by default

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 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

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)

@Leili Leili requested review from blisc and shehzeen August 20, 2025 19:42
@Leili Leili self-assigned this Aug 20, 2025
@github-actions github-actions bot added core Changes to NeMo Core TTS CI common labels Aug 20, 2025
@Leili Leili changed the base branch from main to magpietts_2503 August 20, 2025 19:43
@github-actions github-actions bot removed core Changes to NeMo Core CI labels Aug 20, 2025
@Leili Leili removed their assignment Aug 20, 2025
@Leili Leili force-pushed the whisper_output_normalization branch from e507dd6 to 9bdb326 Compare August 20, 2025 23:10
@github-actions github-actions bot removed the common label Aug 20, 2025
@Leili Leili force-pushed the whisper_output_normalization branch from 9bdb326 to 5335d50 Compare August 20, 2025 23:22
@@ -60,6 +72,8 @@ def __init__(self, cfg: DictConfig, trainer: 'Trainer' = None):
self.whisper_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-large-v3")
self.whisper_model.eval()

self._normalize_whisper_transcript = cfg.get('normalize_whisper_transcript', True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You define _normalize_whisper_transcript in the MagpieTTSModelOfflinePODataGen class but you don't initialize them in this class. Can you add an initialization to this class?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @blisc
Can you help me understand this comment? I'm initializing the variable to True, if it's not found in the config

Copy link
Collaborator

Choose a reason for hiding this comment

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

_normalize_whisper_transcript is being initialized inside the if cfg.get('load_whisper_model', False): and is also being used in a similar if statement in the test_step. It should be fine. @blisc is your concern that we might end up using it elsewhere in the code and we should avoid that?

@blisc blisc added the Run CICD label Aug 27, 2025
Copy link
Contributor

[🤖]: Hi @Leili 👋,

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

I'm just a bot so I'll leave it you what to do next.

//cc @pablo-garay @ko3n1g

@github-actions github-actions bot removed the Run CICD label Aug 27, 2025
blisc added a commit to blisc/NeMo that referenced this pull request Aug 28, 2025
@blisc
Copy link
Collaborator

blisc commented Aug 28, 2025

Will merge this, but will use #14600 instead as we are updating the dev branches

@blisc blisc merged commit 2b1614f into magpietts_2503 Aug 28, 2025
52 checks passed
@blisc blisc deleted the whisper_output_normalization branch August 28, 2025 15:13
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.

3 participants