Skip to content

Fix verbose timestamps#15475

Open
azziko wants to merge 4 commits intoNVIDIA-NeMo:mainfrom
azziko:fix-verbose-timestamps
Open

Fix verbose timestamps#15475
azziko wants to merge 4 commits intoNVIDIA-NeMo:mainfrom
azziko:fix-verbose-timestamps

Conversation

@azziko
Copy link

@azziko azziko commented Mar 7, 2026

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 ?

For the EncDecMultitaskModel, when timestamps were set to true in the MultitaskTranscriptionConfig, verbose mode was ignored. This PR fixes this behaviour.

Collection: models

Changelog

  • Pass verbose as a parametr in the sequence get_forced_aligned_timestamps_with_external_model -> get_batch_variables.
  • Remove rewrite of the timestamps in the EncDecMultitaskModel.transcribe() so that the parameter can be passed using the config.

Usage

from nemo.collections.asr.models import ASRModel
from nemo.collections.asr.models.aed_multitask_models import MultiTaskTranscriptionConfig

model = ASRModel.from_pretrained(model_name="nvidia/canary-1b-v2")
cfg = MultiTaskTranscriptionConfig(timestamps=True, verbose=False)

hypotheses = model.transcribe(["test.wav"], override_config=cfg)

hyp = hypotheses[0]
print("Text:", hyp.text)
print("Timestamps:", hyp.timestamp)

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

@nithinraok

azziko added 2 commits March 7, 2026 12:37
Signed-off-by: azziko <sharipov.wdev@gmail.com>
Signed-off-by: azziko <sharipov.wdev@gmail.com>
@github-actions github-actions bot added the ASR label Mar 7, 2026
azziko and others added 2 commits March 7, 2026 12:55
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.

1 participant