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

Fix triton import guards #8552

Merged
merged 7 commits into from
Mar 6, 2024
Merged

Fix triton import guards #8552

merged 7 commits into from
Mar 6, 2024

Conversation

michal2409
Copy link
Collaborator

What does this PR do ?

As far as pkg_resources is concerned, there's no such thing as triton. Instead, it recognizes pytorch-triton. Here's the fix. Also, if the pytorch-triton lib is missing, it raises pkg_resources.DistributionNotFound which currently is not being handled properly.
Collection: nlp

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 

Jenkins CI

To run Jenkins, a NeMo User with write access must comment jenkins on the PR.

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)

@michal2409
Copy link
Collaborator Author

jenkins

Signed-off-by: Michal Futrega <[email protected]>
@michal2409
Copy link
Collaborator Author

jenkins

@hsiehjackson
Copy link
Collaborator

@michal2409 as far as I know we install triton in here instead of pytorch-triton. Looks like you install pytorch-triton in your container?

@mmarcinkiewicz
Copy link

@michal2409 as far as I know we install triton in here instead of pytorch-triton. Looks like you install pytorch-triton in your container?

You're right. I checked the DLFW containers and they do have pytorch-triton and it's different from triton that gets installed by NeMo. We'll revert this change.

The other outstanding issue is - what is the expected behavior if triton is not installed? Right now it raises an error that is not being handled, but I would imagine that we should catch it and set flash_attn_func_triton = None and continue the execution. Is that expectation correct?

@hsiehjackson
Copy link
Collaborator

If triton is not installed, we'll get a ModuleNotFoundError when we try to do from flash_attn.flash_attn_triton import flash_attn_func as flash_attn_func_triton in here. Then, we'll have flash_attn_func_triton = None

@mmarcinkiewicz
Copy link

mmarcinkiewicz commented Feb 29, 2024

I don't think this is true. I'm getting:

>>> a= pkg_resources.get_distribution("triton")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 528, in get_distribution
    dist = get_provider(dist)
  File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 400, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 829, in resolve
    dist = self._resolve_dist(
  File "/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py", line 870, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'triton' distribution was not found and is required by the application

which is not being handled. Could you please double check @hsiehjackson ? Maybe I'm doing something wrong

EDIT:
Essentially what we need is to swap L76 from:
except (ImportError, ModuleNotFoundError, AssertionError):
to
except (ImportError, ModuleNotFoundError, AssertionError, pkg_resources.DistributionNotFound):
(the second line that is changed in this PR)

@hsiehjackson
Copy link
Collaborator

When my container install pytorch-triton instead of triton, I'll get the following error. How do you pass from flash_attn.flash_attn_triton import flash_attn_func as flash_attn_func_triton when you just install pytorch-triton?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/dist-packages/flash_attn/flash_attn_triton.py", line 45, in <module>
    import triton
  File "/usr/local/lib/python3.10/dist-packages/triton/__init__.py", line 1, in <module>
    raise RuntimeError("Should never be installed")
RuntimeError: Should never be installed

@mmarcinkiewicz
Copy link

I don't know, it works for me. But sure, if you need triton instead of pytorch-triton then we'll revert the change, no problem - this is actually not a blocker for us. The blocker is that you are not handling the pkg_resources.DistributionNotFound exception and my code crashes. Can we handle that exception as well?

@hsiehjackson
Copy link
Collaborator

Sure! @michal2409 Can you help me revert the first line assert pkg_resources.get_distribution("pytorch-triton").version == '2.0.0.dev20221202'? I think we only need the second line as @mmarcinkiewicz suggested.

Signed-off-by: Michal Futrega <[email protected]>
@michal2409
Copy link
Collaborator Author

michal2409 commented Mar 1, 2024

@hsiehjackson done

@michal2409
Copy link
Collaborator Author

jenkins

@michal2409
Copy link
Collaborator Author

jenkins

1 similar comment
@michal2409
Copy link
Collaborator Author

jenkins

Copy link
Collaborator

@hsiehjackson hsiehjackson left a comment

Choose a reason for hiding this comment

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

LGTM!

@michal2409
Copy link
Collaborator Author

jenkins

@michal2409
Copy link
Collaborator Author

jenkins

@michal2409 michal2409 merged commit bcaea4b into main Mar 6, 2024
13 checks passed
@michal2409 michal2409 deleted the mfutrega/triton branch March 6, 2024 11:03
pzelasko pushed a commit that referenced this pull request Mar 7, 2024
* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>
zpx01 pushed a commit to zpx01/NeMo that referenced this pull request Mar 8, 2024
* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Zeeshan Patel <[email protected]>
va290 pushed a commit to va290/NeMo that referenced this pull request Mar 10, 2024
* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: duongvdo <[email protected]>
Agoniii pushed a commit to Agoniii/NeMo that referenced this pull request Mar 15, 2024
* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Agoniii <[email protected]>
JRD971000 pushed a commit that referenced this pull request Mar 15, 2024
* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: ataghibakhsh <[email protected]>
pablo-garay pushed a commit that referenced this pull request Mar 19, 2024
* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Pablo Garay <[email protected]>
pzelasko added a commit that referenced this pull request Apr 16, 2024
…t-only) dataloading (#8581)

* wip

Signed-off-by: Piotr Żelasko <[email protected]>

* Partially working config groups

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with abasic group in the input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with nested groups in input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with specifying a YAML path for input_cfg

Signed-off-by: Piotr Żelasko <[email protected]>

* a very rough example of text dataloading via lhotse

Signed-off-by: Piotr Żelasko <[email protected]>

* Cleaner integration of multimodal audio/text loading that allows to control the effective audio vs text size (requires latest lhotse)

Signed-off-by: Piotr Żelasko <[email protected]>

* remove obsolete test

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix an import in export_utils.py (#8571)

Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Yttm deprecation (#8322)

* yttm deprecation init commit

Signed-off-by: AlexGrinch <[email protected]>

* removed tests

Signed-off-by: AlexGrinch <[email protected]>

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

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

* bug fix

Signed-off-by: AlexGrinch <[email protected]>

* path fix

Signed-off-by: AlexGrinch <[email protected]>

* fixing path

Signed-off-by: AlexGrinch <[email protected]>

* updated tests to spm

Signed-off-by: AlexGrinch <[email protected]>

* updated Jenkinsfile

Signed-off-by: AlexGrinch <[email protected]>

* new model with spm in tests

Signed-off-by: AlexGrinch <[email protected]>

* yttm removed

Signed-off-by: AlexGrinch <[email protected]>

* updated aayn config

Signed-off-by: AlexGrinch <[email protected]>

---------

Signed-off-by: AlexGrinch <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed missing copy import in rnnt_decoder.py (#8580)

* Added copy import to rnnt_decoding.py

Signed-off-by: Isaac McFadyen <[email protected]>

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

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

---------

Signed-off-by: Isaac McFadyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix bug in RNNT Joint WER calculation for fused batch (#8587)

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed Context Parallel HtoD sync (#8557)

* Fixed cp HtoD sync

Signed-off-by: Selvaraj Anandaraj <[email protected]>

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

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

---------

Signed-off-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* change default and add key to config files (#8594)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix triton import guards (#8552)

* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Add config key for dropout position in LoRA adapter (#8583)

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* fix ia3 mlp infused adapter (#8597)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Prevent Redundant Gather for LoRA Sequence Parallel (#8602)

* enable layernorm output gathered

Signed-off-by: Chen Cui <[email protected]>

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

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

---------

Signed-off-by: Chen Cui <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Accelerate `transcribe_speech.py` for short-form data: pre-sorting support (#8564)

* POC using bucketing in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* extend to multi task aed

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes for aed multi task text/lang field selectors

Signed-off-by: Piotr Żelasko <[email protected]>

* remove assert

Signed-off-by: Piotr Żelasko <[email protected]>

* fix

Signed-off-by: Piotr Żelasko <[email protected]>

* expose option for bucket buffer size

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes, ctc support

Signed-off-by: Piotr Żelasko <[email protected]>

* support pre-sorting manifests in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* cleanup

Signed-off-by: Piotr Żelasko <[email protected]>

* reorder transcriptions back to original manifest order

Signed-off-by: Piotr Żelasko <[email protected]>

* remove bucketing entirely

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes--amend

Signed-off-by: Piotr Żelasko <[email protected]>

* refactor text_field/lang_field passing

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix reordering bug; disable presorting for multi task for now

Signed-off-by: Piotr Żelasko <[email protected]>

* Add support for presort + multi task model

Signed-off-by: Piotr Żelasko <[email protected]>

* Code reviews

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix jenkins tests, add user-friendly error msg for canary

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>

* fix tests

Signed-off-by: Piotr Żelasko <[email protected]>

* Bump min required lhotse version

Signed-off-by: Piotr Żelasko <[email protected]>

* Add some documentation about this config format and the multimodal features

Signed-off-by: Piotr Żelasko <[email protected]>

* Add caution about multiple shards

Signed-off-by: Piotr Żelasko <[email protected]>

* Address Tom's code review

Signed-off-by: Piotr Żelasko <[email protected]>

* Add copyright header

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix (hopefully) issue with forced ascii encoding in CI

Signed-off-by: Piotr Żelasko <[email protected]>

* Support resolving input_cfg path into config contents

Signed-off-by: Piotr Żelasko <[email protected]>

* Code review changes in docs

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix unicode decode error

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>
Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: AlexGrinch <[email protected]>
Signed-off-by: Isaac McFadyen <[email protected]>
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Selvaraj Anandaraj <[email protected]>
Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Michal Futrega <[email protected]>
Co-authored-by: w4-jinhyeonkim <[email protected]>
Co-authored-by: Aleksey Grinchuk (Oleksii Hrinchuk) <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Isaac McFadyen <[email protected]>
Co-authored-by: Somshubra Majumdar <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Chen Cui <[email protected]>
Co-authored-by: Michal Futrega <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
xingyaoww pushed a commit to xingyaoww/NeMo that referenced this pull request Apr 23, 2024
…t-only) dataloading (NVIDIA#8581)

* wip

Signed-off-by: Piotr Żelasko <[email protected]>

* Partially working config groups

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with abasic group in the input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with nested groups in input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with specifying a YAML path for input_cfg

Signed-off-by: Piotr Żelasko <[email protected]>

* a very rough example of text dataloading via lhotse

Signed-off-by: Piotr Żelasko <[email protected]>

* Cleaner integration of multimodal audio/text loading that allows to control the effective audio vs text size (requires latest lhotse)

Signed-off-by: Piotr Żelasko <[email protected]>

* remove obsolete test

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix an import in export_utils.py (NVIDIA#8571)

Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Yttm deprecation (NVIDIA#8322)

* yttm deprecation init commit

Signed-off-by: AlexGrinch <[email protected]>

* removed tests

Signed-off-by: AlexGrinch <[email protected]>

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

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

* bug fix

Signed-off-by: AlexGrinch <[email protected]>

* path fix

Signed-off-by: AlexGrinch <[email protected]>

* fixing path

Signed-off-by: AlexGrinch <[email protected]>

* updated tests to spm

Signed-off-by: AlexGrinch <[email protected]>

* updated Jenkinsfile

Signed-off-by: AlexGrinch <[email protected]>

* new model with spm in tests

Signed-off-by: AlexGrinch <[email protected]>

* yttm removed

Signed-off-by: AlexGrinch <[email protected]>

* updated aayn config

Signed-off-by: AlexGrinch <[email protected]>

---------

Signed-off-by: AlexGrinch <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed missing copy import in rnnt_decoder.py (NVIDIA#8580)

* Added copy import to rnnt_decoding.py

Signed-off-by: Isaac McFadyen <[email protected]>

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

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

---------

Signed-off-by: Isaac McFadyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix bug in RNNT Joint WER calculation for fused batch (NVIDIA#8587)

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed Context Parallel HtoD sync (NVIDIA#8557)

* Fixed cp HtoD sync

Signed-off-by: Selvaraj Anandaraj <[email protected]>

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

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

---------

Signed-off-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* change default and add key to config files (NVIDIA#8594)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix triton import guards (NVIDIA#8552)

* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Add config key for dropout position in LoRA adapter (NVIDIA#8583)

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* fix ia3 mlp infused adapter (NVIDIA#8597)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Prevent Redundant Gather for LoRA Sequence Parallel (NVIDIA#8602)

* enable layernorm output gathered

Signed-off-by: Chen Cui <[email protected]>

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

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

---------

Signed-off-by: Chen Cui <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Accelerate `transcribe_speech.py` for short-form data: pre-sorting support (NVIDIA#8564)

* POC using bucketing in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* extend to multi task aed

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes for aed multi task text/lang field selectors

Signed-off-by: Piotr Żelasko <[email protected]>

* remove assert

Signed-off-by: Piotr Żelasko <[email protected]>

* fix

Signed-off-by: Piotr Żelasko <[email protected]>

* expose option for bucket buffer size

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes, ctc support

Signed-off-by: Piotr Żelasko <[email protected]>

* support pre-sorting manifests in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* cleanup

Signed-off-by: Piotr Żelasko <[email protected]>

* reorder transcriptions back to original manifest order

Signed-off-by: Piotr Żelasko <[email protected]>

* remove bucketing entirely

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes--amend

Signed-off-by: Piotr Żelasko <[email protected]>

* refactor text_field/lang_field passing

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix reordering bug; disable presorting for multi task for now

Signed-off-by: Piotr Żelasko <[email protected]>

* Add support for presort + multi task model

Signed-off-by: Piotr Żelasko <[email protected]>

* Code reviews

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix jenkins tests, add user-friendly error msg for canary

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>

* fix tests

Signed-off-by: Piotr Żelasko <[email protected]>

* Bump min required lhotse version

Signed-off-by: Piotr Żelasko <[email protected]>

* Add some documentation about this config format and the multimodal features

Signed-off-by: Piotr Żelasko <[email protected]>

* Add caution about multiple shards

Signed-off-by: Piotr Żelasko <[email protected]>

* Address Tom's code review

Signed-off-by: Piotr Żelasko <[email protected]>

* Add copyright header

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix (hopefully) issue with forced ascii encoding in CI

Signed-off-by: Piotr Żelasko <[email protected]>

* Support resolving input_cfg path into config contents

Signed-off-by: Piotr Żelasko <[email protected]>

* Code review changes in docs

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix unicode decode error

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>
Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: AlexGrinch <[email protected]>
Signed-off-by: Isaac McFadyen <[email protected]>
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Selvaraj Anandaraj <[email protected]>
Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Michal Futrega <[email protected]>
Co-authored-by: w4-jinhyeonkim <[email protected]>
Co-authored-by: Aleksey Grinchuk (Oleksii Hrinchuk) <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Isaac McFadyen <[email protected]>
Co-authored-by: Somshubra Majumdar <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Chen Cui <[email protected]>
Co-authored-by: Michal Futrega <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
alxzhang-amazon pushed a commit to alxzhang-amazon/NeMo that referenced this pull request Apr 26, 2024
…t-only) dataloading (NVIDIA#8581)

* wip

Signed-off-by: Piotr Żelasko <[email protected]>

* Partially working config groups

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with abasic group in the input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with nested groups in input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with specifying a YAML path for input_cfg

Signed-off-by: Piotr Żelasko <[email protected]>

* a very rough example of text dataloading via lhotse

Signed-off-by: Piotr Żelasko <[email protected]>

* Cleaner integration of multimodal audio/text loading that allows to control the effective audio vs text size (requires latest lhotse)

Signed-off-by: Piotr Żelasko <[email protected]>

* remove obsolete test

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix an import in export_utils.py (NVIDIA#8571)

Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Yttm deprecation (NVIDIA#8322)

* yttm deprecation init commit

Signed-off-by: AlexGrinch <[email protected]>

* removed tests

Signed-off-by: AlexGrinch <[email protected]>

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

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

* bug fix

Signed-off-by: AlexGrinch <[email protected]>

* path fix

Signed-off-by: AlexGrinch <[email protected]>

* fixing path

Signed-off-by: AlexGrinch <[email protected]>

* updated tests to spm

Signed-off-by: AlexGrinch <[email protected]>

* updated Jenkinsfile

Signed-off-by: AlexGrinch <[email protected]>

* new model with spm in tests

Signed-off-by: AlexGrinch <[email protected]>

* yttm removed

Signed-off-by: AlexGrinch <[email protected]>

* updated aayn config

Signed-off-by: AlexGrinch <[email protected]>

---------

Signed-off-by: AlexGrinch <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed missing copy import in rnnt_decoder.py (NVIDIA#8580)

* Added copy import to rnnt_decoding.py

Signed-off-by: Isaac McFadyen <[email protected]>

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

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

---------

Signed-off-by: Isaac McFadyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix bug in RNNT Joint WER calculation for fused batch (NVIDIA#8587)

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed Context Parallel HtoD sync (NVIDIA#8557)

* Fixed cp HtoD sync

Signed-off-by: Selvaraj Anandaraj <[email protected]>

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

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

---------

Signed-off-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* change default and add key to config files (NVIDIA#8594)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix triton import guards (NVIDIA#8552)

* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Add config key for dropout position in LoRA adapter (NVIDIA#8583)

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* fix ia3 mlp infused adapter (NVIDIA#8597)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Prevent Redundant Gather for LoRA Sequence Parallel (NVIDIA#8602)

* enable layernorm output gathered

Signed-off-by: Chen Cui <[email protected]>

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

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

---------

Signed-off-by: Chen Cui <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Accelerate `transcribe_speech.py` for short-form data: pre-sorting support (NVIDIA#8564)

* POC using bucketing in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* extend to multi task aed

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes for aed multi task text/lang field selectors

Signed-off-by: Piotr Żelasko <[email protected]>

* remove assert

Signed-off-by: Piotr Żelasko <[email protected]>

* fix

Signed-off-by: Piotr Żelasko <[email protected]>

* expose option for bucket buffer size

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes, ctc support

Signed-off-by: Piotr Żelasko <[email protected]>

* support pre-sorting manifests in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* cleanup

Signed-off-by: Piotr Żelasko <[email protected]>

* reorder transcriptions back to original manifest order

Signed-off-by: Piotr Żelasko <[email protected]>

* remove bucketing entirely

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes--amend

Signed-off-by: Piotr Żelasko <[email protected]>

* refactor text_field/lang_field passing

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix reordering bug; disable presorting for multi task for now

Signed-off-by: Piotr Żelasko <[email protected]>

* Add support for presort + multi task model

Signed-off-by: Piotr Żelasko <[email protected]>

* Code reviews

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix jenkins tests, add user-friendly error msg for canary

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>

* fix tests

Signed-off-by: Piotr Żelasko <[email protected]>

* Bump min required lhotse version

Signed-off-by: Piotr Żelasko <[email protected]>

* Add some documentation about this config format and the multimodal features

Signed-off-by: Piotr Żelasko <[email protected]>

* Add caution about multiple shards

Signed-off-by: Piotr Żelasko <[email protected]>

* Address Tom's code review

Signed-off-by: Piotr Żelasko <[email protected]>

* Add copyright header

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix (hopefully) issue with forced ascii encoding in CI

Signed-off-by: Piotr Żelasko <[email protected]>

* Support resolving input_cfg path into config contents

Signed-off-by: Piotr Żelasko <[email protected]>

* Code review changes in docs

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix unicode decode error

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>
Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: AlexGrinch <[email protected]>
Signed-off-by: Isaac McFadyen <[email protected]>
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Selvaraj Anandaraj <[email protected]>
Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Michal Futrega <[email protected]>
Co-authored-by: w4-jinhyeonkim <[email protected]>
Co-authored-by: Aleksey Grinchuk (Oleksii Hrinchuk) <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Isaac McFadyen <[email protected]>
Co-authored-by: Somshubra Majumdar <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Chen Cui <[email protected]>
Co-authored-by: Michal Futrega <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
suiyoubi pushed a commit that referenced this pull request May 2, 2024
…t-only) dataloading (#8581)

* wip

Signed-off-by: Piotr Żelasko <[email protected]>

* Partially working config groups

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with abasic group in the input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with nested groups in input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with specifying a YAML path for input_cfg

Signed-off-by: Piotr Żelasko <[email protected]>

* a very rough example of text dataloading via lhotse

Signed-off-by: Piotr Żelasko <[email protected]>

* Cleaner integration of multimodal audio/text loading that allows to control the effective audio vs text size (requires latest lhotse)

Signed-off-by: Piotr Żelasko <[email protected]>

* remove obsolete test

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix an import in export_utils.py (#8571)

Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Yttm deprecation (#8322)

* yttm deprecation init commit

Signed-off-by: AlexGrinch <[email protected]>

* removed tests

Signed-off-by: AlexGrinch <[email protected]>

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

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

* bug fix

Signed-off-by: AlexGrinch <[email protected]>

* path fix

Signed-off-by: AlexGrinch <[email protected]>

* fixing path

Signed-off-by: AlexGrinch <[email protected]>

* updated tests to spm

Signed-off-by: AlexGrinch <[email protected]>

* updated Jenkinsfile

Signed-off-by: AlexGrinch <[email protected]>

* new model with spm in tests

Signed-off-by: AlexGrinch <[email protected]>

* yttm removed

Signed-off-by: AlexGrinch <[email protected]>

* updated aayn config

Signed-off-by: AlexGrinch <[email protected]>

---------

Signed-off-by: AlexGrinch <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed missing copy import in rnnt_decoder.py (#8580)

* Added copy import to rnnt_decoding.py

Signed-off-by: Isaac McFadyen <[email protected]>

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

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

---------

Signed-off-by: Isaac McFadyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix bug in RNNT Joint WER calculation for fused batch (#8587)

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed Context Parallel HtoD sync (#8557)

* Fixed cp HtoD sync

Signed-off-by: Selvaraj Anandaraj <[email protected]>

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

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

---------

Signed-off-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* change default and add key to config files (#8594)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix triton import guards (#8552)

* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Add config key for dropout position in LoRA adapter (#8583)

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* fix ia3 mlp infused adapter (#8597)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Prevent Redundant Gather for LoRA Sequence Parallel (#8602)

* enable layernorm output gathered

Signed-off-by: Chen Cui <[email protected]>

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

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

---------

Signed-off-by: Chen Cui <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Accelerate `transcribe_speech.py` for short-form data: pre-sorting support (#8564)

* POC using bucketing in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* extend to multi task aed

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes for aed multi task text/lang field selectors

Signed-off-by: Piotr Żelasko <[email protected]>

* remove assert

Signed-off-by: Piotr Żelasko <[email protected]>

* fix

Signed-off-by: Piotr Żelasko <[email protected]>

* expose option for bucket buffer size

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes, ctc support

Signed-off-by: Piotr Żelasko <[email protected]>

* support pre-sorting manifests in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* cleanup

Signed-off-by: Piotr Żelasko <[email protected]>

* reorder transcriptions back to original manifest order

Signed-off-by: Piotr Żelasko <[email protected]>

* remove bucketing entirely

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes--amend

Signed-off-by: Piotr Żelasko <[email protected]>

* refactor text_field/lang_field passing

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix reordering bug; disable presorting for multi task for now

Signed-off-by: Piotr Żelasko <[email protected]>

* Add support for presort + multi task model

Signed-off-by: Piotr Żelasko <[email protected]>

* Code reviews

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix jenkins tests, add user-friendly error msg for canary

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>

* fix tests

Signed-off-by: Piotr Żelasko <[email protected]>

* Bump min required lhotse version

Signed-off-by: Piotr Żelasko <[email protected]>

* Add some documentation about this config format and the multimodal features

Signed-off-by: Piotr Żelasko <[email protected]>

* Add caution about multiple shards

Signed-off-by: Piotr Żelasko <[email protected]>

* Address Tom's code review

Signed-off-by: Piotr Żelasko <[email protected]>

* Add copyright header

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix (hopefully) issue with forced ascii encoding in CI

Signed-off-by: Piotr Żelasko <[email protected]>

* Support resolving input_cfg path into config contents

Signed-off-by: Piotr Żelasko <[email protected]>

* Code review changes in docs

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix unicode decode error

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>
Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: AlexGrinch <[email protected]>
Signed-off-by: Isaac McFadyen <[email protected]>
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Selvaraj Anandaraj <[email protected]>
Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Michal Futrega <[email protected]>
Co-authored-by: w4-jinhyeonkim <[email protected]>
Co-authored-by: Aleksey Grinchuk (Oleksii Hrinchuk) <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Isaac McFadyen <[email protected]>
Co-authored-by: Somshubra Majumdar <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Chen Cui <[email protected]>
Co-authored-by: Michal Futrega <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
Signed-off-by: Ao Tang <[email protected]>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
…t-only) dataloading (NVIDIA#8581)

* wip

Signed-off-by: Piotr Żelasko <[email protected]>

* Partially working config groups

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with abasic group in the input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with nested groups in input config

Signed-off-by: Piotr Żelasko <[email protected]>

* Working test with specifying a YAML path for input_cfg

Signed-off-by: Piotr Żelasko <[email protected]>

* a very rough example of text dataloading via lhotse

Signed-off-by: Piotr Żelasko <[email protected]>

* Cleaner integration of multimodal audio/text loading that allows to control the effective audio vs text size (requires latest lhotse)

Signed-off-by: Piotr Żelasko <[email protected]>

* remove obsolete test

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix an import in export_utils.py (NVIDIA#8571)

Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Yttm deprecation (NVIDIA#8322)

* yttm deprecation init commit

Signed-off-by: AlexGrinch <[email protected]>

* removed tests

Signed-off-by: AlexGrinch <[email protected]>

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

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

* bug fix

Signed-off-by: AlexGrinch <[email protected]>

* path fix

Signed-off-by: AlexGrinch <[email protected]>

* fixing path

Signed-off-by: AlexGrinch <[email protected]>

* updated tests to spm

Signed-off-by: AlexGrinch <[email protected]>

* updated Jenkinsfile

Signed-off-by: AlexGrinch <[email protected]>

* new model with spm in tests

Signed-off-by: AlexGrinch <[email protected]>

* yttm removed

Signed-off-by: AlexGrinch <[email protected]>

* updated aayn config

Signed-off-by: AlexGrinch <[email protected]>

---------

Signed-off-by: AlexGrinch <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed missing copy import in rnnt_decoder.py (NVIDIA#8580)

* Added copy import to rnnt_decoding.py

Signed-off-by: Isaac McFadyen <[email protected]>

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

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

---------

Signed-off-by: Isaac McFadyen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix bug in RNNT Joint WER calculation for fused batch (NVIDIA#8587)

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fixed Context Parallel HtoD sync (NVIDIA#8557)

* Fixed cp HtoD sync

Signed-off-by: Selvaraj Anandaraj <[email protected]>

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

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

---------

Signed-off-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* change default and add key to config files (NVIDIA#8594)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Fix triton import guards (NVIDIA#8552)

* Fix triton import guards

Signed-off-by: Michal Futrega <[email protected]>

* Update attention.py

Signed-off-by: Michal Futrega <[email protected]>

---------

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Add config key for dropout position in LoRA adapter (NVIDIA#8583)

Signed-off-by: Michal Futrega <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* fix ia3 mlp infused adapter (NVIDIA#8597)

Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Piotr Żelasko <[email protected]>

* Prevent Redundant Gather for LoRA Sequence Parallel (NVIDIA#8602)

* enable layernorm output gathered

Signed-off-by: Chen Cui <[email protected]>

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

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

---------

Signed-off-by: Chen Cui <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Piotr Żelasko <[email protected]>

* Accelerate `transcribe_speech.py` for short-form data: pre-sorting support (NVIDIA#8564)

* POC using bucketing in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* extend to multi task aed

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes for aed multi task text/lang field selectors

Signed-off-by: Piotr Żelasko <[email protected]>

* remove assert

Signed-off-by: Piotr Żelasko <[email protected]>

* fix

Signed-off-by: Piotr Żelasko <[email protected]>

* expose option for bucket buffer size

Signed-off-by: Piotr Żelasko <[email protected]>

* fixes, ctc support

Signed-off-by: Piotr Żelasko <[email protected]>

* support pre-sorting manifests in transcribe_speech.py

Signed-off-by: Piotr Żelasko <[email protected]>

* cleanup

Signed-off-by: Piotr Żelasko <[email protected]>

* reorder transcriptions back to original manifest order

Signed-off-by: Piotr Żelasko <[email protected]>

* remove bucketing entirely

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes

Signed-off-by: Piotr Żelasko <[email protected]>

* code review changes--amend

Signed-off-by: Piotr Żelasko <[email protected]>

* refactor text_field/lang_field passing

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix reordering bug; disable presorting for multi task for now

Signed-off-by: Piotr Żelasko <[email protected]>

* Add support for presort + multi task model

Signed-off-by: Piotr Żelasko <[email protected]>

* Code reviews

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix jenkins tests, add user-friendly error msg for canary

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>

* fix tests

Signed-off-by: Piotr Żelasko <[email protected]>

* Bump min required lhotse version

Signed-off-by: Piotr Żelasko <[email protected]>

* Add some documentation about this config format and the multimodal features

Signed-off-by: Piotr Żelasko <[email protected]>

* Add caution about multiple shards

Signed-off-by: Piotr Żelasko <[email protected]>

* Address Tom's code review

Signed-off-by: Piotr Żelasko <[email protected]>

* Add copyright header

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix (hopefully) issue with forced ascii encoding in CI

Signed-off-by: Piotr Żelasko <[email protected]>

* Support resolving input_cfg path into config contents

Signed-off-by: Piotr Żelasko <[email protected]>

* Code review changes in docs

Signed-off-by: Piotr Żelasko <[email protected]>

* Fix unicode decode error

Signed-off-by: Piotr Żelasko <[email protected]>

---------

Signed-off-by: Piotr Żelasko <[email protected]>
Signed-off-by: w4-jinhyeonkim <[email protected]>
Signed-off-by: AlexGrinch <[email protected]>
Signed-off-by: Isaac McFadyen <[email protected]>
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: Selvaraj Anandaraj <[email protected]>
Signed-off-by: Chen Cui <[email protected]>
Signed-off-by: Michal Futrega <[email protected]>
Co-authored-by: w4-jinhyeonkim <[email protected]>
Co-authored-by: Aleksey Grinchuk (Oleksii Hrinchuk) <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Isaac McFadyen <[email protected]>
Co-authored-by: Somshubra Majumdar <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Selvaraj Anandaraj <[email protected]>
Co-authored-by: Chen Cui <[email protected]>
Co-authored-by: Michal Futrega <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
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.

None yet

3 participants