Adding bf16 Sortformer train and inference - #14627
Merged
Merged
Conversation
Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: tango4j <tango4j@users.noreply.github.com>
KunalDhawan
previously approved these changes
Sep 3, 2025
KunalDhawan
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, thanks Taejin!
Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: tango4j <tango4j@users.noreply.github.com>
Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: ipmedenn <65592416+ipmedenn@users.noreply.github.com>
ipmedenn
approved these changes
Sep 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do ?
This PR adds bf16 precision training and inference of Sortformer diarizer models.
Hardware: Starting from Ampere (e.g. A100) architecture, native bf16 operation is supported.
Collection: [Note which collection this PR will affect]
ASR/speaker_task
Changelog
NeMo/nemo/collections/asr/losses/bce_loss.pyNeMo/examples/speaker_tasks/diarization/neural_diarizer/e2e_diarize_speech.pyUsage
Although model weights are FP32,
e2e_diarize_speech.pyscript automatically converts the precision tobf16then perform inference based onbf16.for training, specify the following configuration:
trainer.precision="bf16"Before your PR is "Ready for review"
Pre checks:
PR Type:
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