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

Lhotse Sharding Fix #9187

Merged
merged 9 commits into from
May 17, 2024
Merged

Lhotse Sharding Fix #9187

merged 9 commits into from
May 17, 2024

Conversation

tbartley94
Copy link
Collaborator

What does this PR do ?

Caches manifest entries during LazyNeMoTarredIterator in Lhotse to avoid errors from improper sorting. Allows back compatibility with webdataset behavior.

Collection: [Note which collection this PR will affect]

  • ASR

Changelog

  • Added caching to the dataloader that loads manifest entries into memory. Tarred files now only have to check the cache when doing lookup.

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:

  • [ Y] Make sure you read and followed Contributor guidelines
  • [N] Did you write any new necessary tests?
  • [N] Did you add or update any necessary documentation?
  • [ N] 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:

  • [ Y] New Feature
  • [ Y] 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)

Signed-off-by: Travis Bartley <tbartley@nvidia.com>
f"Mismatched entry between JSON manifest ('{manifest_path}') and tar file ('{tar_path}'). "
f"Conflicting audio file names are JSON='{data['audio_filepath']}' and TAR='{tar_info.name}'"
f"Cannot locate manifest entry for TAR='{tar_info.name}'"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
f"Cannot locate manifest entry for TAR='{tar_info.name}'"
f"Cannot locate JSON audio path '{data['audio_filepath']}' in tar file '{tar_info.name}'"

It'd be better to mention which specific audio filepath is missing e.g. like this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That won't work here since we're iterating through data first. It also isn't informative anymore since this doesn't enforce order.

Signed-off-by: Piotr Żelasko <petezor@gmail.com>
tbartley94 and others added 2 commits May 15, 2024 13:38
Signed-off-by: Travis Bartley <tbartley@nvidia.com>
Signed-off-by: tbartley94 <tbartley94@users.noreply.github.com>
@pzelasko pzelasko merged commit eb31309 into NVIDIA:main May 17, 2024
130 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants