Repository navigation
Streaming Sortformer release PR02: unit tests for streaming models and modules - #14417
Merged
tango4j merged 6 commits intoAug 7, 2025
Merged
Conversation
Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: taejinp <tango4j@gmail.com>
…nd modules Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: tango4j <tango4j@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces comprehensive unit tests for streaming Sortformer models and modules, along with necessary bug fixes and parameter refactoring to support the streaming functionality. The changes enhance the testing coverage for speaker diarization models and ensure proper validation of streaming parameters.
- Adds extensive unit test coverage for streaming Sortformer modules and models
- Refactors parameter names and adds validation for streaming configurations
- Fixes bugs related to audio signal dimension handling and target-prediction shape mismatches
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
tests/collections/speaker_tasks/test_diar_sortformer_modules.py |
Comprehensive unit tests for SortformerModules covering streaming parameters, utilities, score computations, and streaming updates |
tests/collections/speaker_tasks/test_diar_sortformer_models.py |
Unit tests for SortformerEncLabelModel with separate test classes for offline and streaming modes |
nemo/collections/asr/modules/sortformer_modules.py |
Core module updates including parameter validation, streaming state management, and bug fixes |
nemo/collections/asr/modules/conformer_encoder.py |
Fix for audio signal dimension handling in bypass_pre_encode mode |
nemo/collections/asr/models/sortformer_diar_models.py |
Model updates with target truncation handling and test step implementation |
examples/speaker_tasks/diarization/neural_diarizer/e2e_diarize_speech.py |
Parameter name updates and streaming validation integration |
examples/speaker_tasks/diarization/conf/post_processing/ |
New YAML configuration files for streaming post-processing |
examples/speaker_tasks/diarization/conf/neural_diarizer/streaming_sortformer_diarizer_4spk-v2.yaml |
Complete configuration file for streaming Sortformer diarizer |
Signed-off-by: taejinp <tango4j@gmail.com>
…m/tango4j/NeMo into streaming_sortformer_pr2_unittest
nasretdinovr
pushed a commit
to nasretdinovr/NeMo
that referenced
this pull request
Aug 8, 2025
…d modules (NVIDIA-NeMo#14417) * Uploading bugfixes, refactored vars and yamlfile name changes Signed-off-by: taejinp <tango4j@gmail.com> * Adding the missing offline pp yamls Signed-off-by: taejinp <tango4j@gmail.com> * Streaming Sortformer release PR02: unit tests for sortformer models and modules Signed-off-by: taejinp <tango4j@gmail.com> * Apply isort and black reformatting Signed-off-by: tango4j <tango4j@users.noreply.github.com> * Resolved CODE QL and test issues Signed-off-by: taejinp <tango4j@gmail.com> --------- Signed-off-by: taejinp <tango4j@gmail.com> Signed-off-by: tango4j <tango4j@users.noreply.github.com> Co-authored-by: tango4j <tango4j@users.noreply.github.com>
guyueh1
pushed a commit
to guyueh1/NeMo
that referenced
this pull request
Aug 25, 2025
…d modules (NVIDIA-NeMo#14417) * Uploading bugfixes, refactored vars and yamlfile name changes Signed-off-by: taejinp <tango4j@gmail.com> * Adding the missing offline pp yamls Signed-off-by: taejinp <tango4j@gmail.com> * Streaming Sortformer release PR02: unit tests for sortformer models and modules Signed-off-by: taejinp <tango4j@gmail.com> * Apply isort and black reformatting Signed-off-by: tango4j <tango4j@users.noreply.github.com> * Resolved CODE QL and test issues Signed-off-by: taejinp <tango4j@gmail.com> --------- Signed-off-by: taejinp <tango4j@gmail.com> Signed-off-by: tango4j <tango4j@users.noreply.github.com> Co-authored-by: tango4j <tango4j@users.noreply.github.com> Signed-off-by: Guyue Huang <guyueh@nvidia.com>
This branch was previously deployed
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 ?
uploading unit tests for streaming Sortformer models and modules
Collection: [Note which collection this PR will affect]
ASR/speaker_tasks
test_diar_sortformer_models.pytest_diar_sortformer_modules.pyAdding bugfix, refactored variables and yaml file name fix.
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 NeMo ASR
Additional Information