Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riva and k2 ASR WFST decoding (2) #9391

Merged
merged 12 commits into from
Aug 21, 2024
Merged

Riva and k2 ASR WFST decoding (2) #9391

merged 12 commits into from
Aug 21, 2024

Conversation

GNroy
Copy link
Collaborator

@GNroy GNroy commented Jun 5, 2024

What does this PR do ?

Adds Riva and k2 WFST decoding options for ASR inference.

Collection: [ASR]

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)

@GNroy GNroy requested a review from artbataev June 5, 2024 16:51
@github-actions github-actions bot added the ASR label Jun 5, 2024
Copy link
Contributor

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jun 20, 2024
@GNroy GNroy removed the stale label Jun 20, 2024
Copy link
Contributor

github-actions bot commented Jul 5, 2024

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jul 5, 2024
@GNroy GNroy removed the stale label Jul 6, 2024
Copy link
Contributor

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jul 21, 2024
@GNroy GNroy removed the stale label Jul 22, 2024
@@ -16,6 +18,7 @@ pyannote.metrics
pydub
pyloudnorm
resampy
riva-asrlib-decoder
Copy link
Collaborator

@artbataev artbataev Jul 23, 2024

Choose a reason for hiding this comment

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

Please, make all these dependencies optional
I suggest adding installation to scripts/asr_language_modeling/ngram_lm/install_beamsearch_decoders.sh

@artbataev
Copy link
Collaborator

artbataev commented Jul 23, 2024

@GNroy, can you please provide the instructions for testing this PR?
A model + test set + LM/text to build LM with the sequence of required operations to build graphs/start decoding (both k2 and Riva).
It may also be worth providing such information for users (make a section in the documentation).

@artbataev
Copy link
Collaborator

Please, also fix CodeQL suggestions - most of them seems to be valuable (e.g., 'except' clause does nothing but pass and there is no explanatory comment., This 'lambda' is just a simple wrapper around a callable object. Use that object directly., Variable wfst_path is not used. etc.)

python eval_wfst_decoding_ctc.py nemo_model_file="stt_en_conformer_ctc_small_ls" \
input_manifest="<data_dir>/Librispeech/test_other.json" \
arpa_model_file="3-gram.pruned.1e-7.arpa" \
beam_width=[8,] \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be beam_width=[8]

Otherwise there is an error "no viable alternative at input [8,]"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, fixed

packed_batch = torch.zeros(len(probs_batch), max(probs_lens), probs_batch[0].shape[-1], device='cpu')

for prob_index in range(len(probs_batch)):
packed_batch[prob_index, : probs_lens[prob_index], :] = torch.tensor(
Copy link
Collaborator

Choose a reason for hiding this comment

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

use probs_batch[prob_index].to(device=...)

See warning from PyTorch:

UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).


score = candidate.score
if preds_output_file:
out_file.write('{}\t{}\n'.format(pred_text, score))
Copy link
Collaborator

@artbataev artbataev Jul 24, 2024

Choose a reason for hiding this comment

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

Please, use f-string when possible (and also print to avoid extra \n).

The following code is significantly more readable:

if preds_output_file:
    print(f'{pred_text}\t{score}', file=out_file)

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's a stylistic choice, f.write is fine and I prefer it because print does more work under the hood than it needs to. Infact using print is a easy way to mistakenly add newlines without realizing it.

GNroy and others added 5 commits July 29, 2024 21:57
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
@github-actions github-actions bot added the core Changes to NeMo Core label Aug 2, 2024
GNroy and others added 2 commits August 2, 2024 06:01
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Copy link
Collaborator

@artbataev artbataev left a comment

Choose a reason for hiding this comment

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

Looks fine. Thanks.
One suggestion about the decoding_wfst_file with decoding_search_type=k2 (but you can add it after this PR).

python eval_wfst_decoding_ctc.py nemo_model_file="stt_en_conformer_ctc_small_ls" \
input_manifest="<data_dir>/Librispeech/test_other.json" \
arpa_model_file="3-gram.pruned.1e-7.arpa" \
decoding_wfst_file="3-gram.pruned.1e-7.fst" \
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest adding to documentation and here, that decoding_search_type=k2 expects .pt file in decoding_wfst_file. Even if the file was saved by this script (did not exist before calling this script), k2 will fail unless the file ends with .pt.

@GNroy GNroy added Run CICD and removed Run CICD labels Aug 21, 2024
@artbataev artbataev merged commit 8606350 into NVIDIA:main Aug 21, 2024
126 of 127 checks passed
akoumpa pushed a commit that referenced this pull request Aug 21, 2024
* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
ko3n1g pushed a commit that referenced this pull request Aug 22, 2024
* Riva and k2 ASR WFST decoding (2) (#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
@GNroy GNroy deleted the riva_decoder branch August 22, 2024 17:04
WoodieDudy pushed a commit to WoodieDudy/NeMo that referenced this pull request Aug 26, 2024
* Riva and k2 ASR WFST decoding (2) (NVIDIA#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
hemildesai pushed a commit that referenced this pull request Aug 28, 2024
* Riva and k2 ASR WFST decoding (2) (#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
adityavavre pushed a commit to adityavavre/NeMo that referenced this pull request Sep 15, 2024
* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: adityavavre <aditya.vavre@gmail.com>
adityavavre pushed a commit to adityavavre/NeMo that referenced this pull request Sep 15, 2024
* Riva and k2 ASR WFST decoding (2) (NVIDIA#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: adityavavre <aditya.vavre@gmail.com>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
* Riva and k2 ASR WFST decoding (2) (#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
tomlifu pushed a commit to tomlifu/NeMo that referenced this pull request Oct 25, 2024
* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Lifu Zhang <tomzhanglf@gmail.com>
tomlifu pushed a commit to tomlifu/NeMo that referenced this pull request Oct 25, 2024
* Riva and k2 ASR WFST decoding (2) (NVIDIA#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Lifu Zhang <tomzhanglf@gmail.com>
tomlifu pushed a commit to tomlifu/NeMo that referenced this pull request Oct 25, 2024
* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Lifu Zhang <tomzhanglf@gmail.com>
tomlifu pushed a commit to tomlifu/NeMo that referenced this pull request Oct 25, 2024
* Riva and k2 ASR WFST decoding (2) (NVIDIA#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Lifu Zhang <tomzhanglf@gmail.com>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
* Riva and k2 ASR WFST decoding (2) (NVIDIA#9391)

* upload

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add comments and use case

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* add initial doc

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix doc and k2+cuda eval

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* isolate decoder components installation and fix suggestions

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: GNroy <GNroy@users.noreply.github.com>

* fix trailing newline

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add DdpParamParityChecker Callback

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Improve messaging

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Rename to DdpParityChecker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add ddp test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* rename to ddp_parity_checker

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove red. imports

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* test fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* missign import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* ignore test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* another missing import

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* make limit_val_batches int

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* remove dup file

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* AG groups decisions on DDP parity

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix test

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

* Exclude from pytest

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Add L2_NeMo_2_GPT_DDP_Param_Parity_check to NeMo_CICD_Test.needs

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* Apply isort and black reformatting

Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: GNroy <GNroy@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: akoumpa <akoumpa@users.noreply.github.com>
Co-authored-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: GNroy <GNroy@users.noreply.github.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Co-authored-by: akoumpa <akoumpa@users.noreply.github.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASR core Changes to NeMo Core Run CICD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants