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

Support checkpointing in JAX iterator #5282

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Conversation

szkarpinski
Copy link
Collaborator

@szkarpinski szkarpinski commented Jan 18, 2024

Category:

New feature (non-breaking change which adds functionality)

Description:

Checkpointing support was already implemented in BaseIterator in #5061, but wasn't tested for frameworks other than Pytorch. In this PR I add tests for JAX Iterator and fix a problem with ES checkpointing.

When an iterator is created and there's no data in the external source, DALI reports "no data in pipeline" error. The problem is that if we checkpoint after the last iteration and restore from such checkpoint, there's no data in the external source but it's not an error. In this PR I silence this error if we're restoring from checkpoint. Exactly the same change was made in #5213.

Additional information:

Affected modules and functionalities:

JAX Iterator

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: DALI-3749

Signed-off-by: Szymon Karpiński <skarpinski@nvidia.com>
Signed-off-by: Szymon Karpiński <skarpinski@nvidia.com>
@szkarpinski
Copy link
Collaborator Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12281672]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12281672]: BUILD PASSED

@szkarpinski szkarpinski merged commit 7ecdd01 into NVIDIA:main Jan 26, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants