Skip to content

Streaming Sortformer release PR04: Adding functional tests for streaming sortformer - #14435

Merged
tango4j merged 4 commits into
NVIDIA-NeMo:mainfrom
tango4j:streaming_sortformer_pr4_citests
Aug 8, 2025
Merged

tango4j merged 4 commits into
NVIDIA-NeMo:mainfrom
tango4j:streaming_sortformer_pr4_citests

Conversation

@tango4j

@tango4j tango4j commented Aug 8, 2025

Copy link
Copy Markdown
Collaborator

What does this PR do ?

This PR is adding functional tests (CI tests) for inference and training.

Collection: [Note which collection this PR will affect]

ASR/speaker_tasks

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

  • Adding these functional tests:

L2_Speaker_dev_run_EndtoEnd_Streaming_Speaker_Diarization_Sortformer.sh
L2_Speaker_dev_run_EndtoEnd_Streaming_Diarizer_Inference.sh

  • Also adding streaming_sortformer_train.py

  • You can potentially add a usage example below

# For evaluation of streaming speaker diarization
python $BASEPATH/neural_diarizer/e2e_diarize_speech.py \
    model_path=/path/to/diar_streaming_sortformer_4spk-v2.nemo \
    batch_size=1 \
    dataset_manifest=/path/to/diarization_manifest.json

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 NeMo ASR

Additional Information

  • Related to # (issue)

Signed-off-by: taejinp <tango4j@gmail.com>
Signed-off-by: taejinp <tango4j@gmail.com>
@tango4j
tango4j requested review from Copilot and ipmedenn August 8, 2025 00:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functional tests for the streaming Sortformer speaker diarization model, including both training and inference test scenarios. The purpose is to ensure the streaming Sortformer functionality works correctly in CI environments.

  • Adds two functional test scripts for end-to-end streaming speaker diarization testing
  • Introduces a new training script specifically for streaming Sortformer diarization
  • Provides test coverage for both training and inference workflows

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/functional_tests/L2_Speaker_dev_run_EndtoEnd_Streaming_Speaker_Diarization_Sortformer.sh Functional test script for training streaming Sortformer with fast dev run
tests/functional_tests/L2_Speaker_dev_run_EndtoEnd_Streaming_Diarizer_Inference.sh Functional test script for inference using pre-trained streaming Sortformer model
examples/speaker_tasks/diarization/neural_diarizer/streaming_sortformer_diar_train.py Training script for streaming Sortformer diarization model

@tango4j
tango4j requested a review from nithinraok August 8, 2025 00:51
@tango4j tango4j added Run CICD and removed Run CICD labels Aug 8, 2025
Signed-off-by: taejinp <tango4j@gmail.com>
@ko3n1g ko3n1g added Run CICD and removed Run CICD labels Aug 8, 2025
@tango4j tango4j added Run CICD and removed Run CICD labels Aug 8, 2025
Signed-off-by: tango4j <tango4j@users.noreply.github.com>

@ipmedenn ipmedenn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@tango4j
tango4j merged commit 447daf4 into NVIDIA-NeMo:main Aug 8, 2025
nasretdinovr pushed a commit to nasretdinovr/NeMo that referenced this pull request Aug 8, 2025
…ing sortformer (NVIDIA-NeMo#14435)

* Adding functional tests for streaming sortformer

Signed-off-by: taejinp <tango4j@gmail.com>

* Fixing the unchanged part from offline sortformer

Signed-off-by: taejinp <tango4j@gmail.com>

* Fixing lightning imports for seeding

Signed-off-by: taejinp <tango4j@gmail.com>

* Apply isort and black reformatting

Signed-off-by: tango4j <tango4j@users.noreply.github.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
…ing sortformer (NVIDIA-NeMo#14435)

* Adding functional tests for streaming sortformer

Signed-off-by: taejinp <tango4j@gmail.com>

* Fixing the unchanged part from offline sortformer

Signed-off-by: taejinp <tango4j@gmail.com>

* Fixing lightning imports for seeding

Signed-off-by: taejinp <tango4j@gmail.com>

* Apply isort and black reformatting

Signed-off-by: tango4j <tango4j@users.noreply.github.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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants