Skip to content

Nvingest curator tutorial #584

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

Open
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

ruchaa-apte
Copy link
Contributor

Description

This tutorial is divided into two parts:
Part 1: Multimodal Extraction - guide to extracting various modalities (text, images, tables, etc.) from PDFs using NVIDIA's multimodal extraction (nv-ingest) framework.
Part 2: Data Curation for Domain-Adaptive Pre-Training (DAPT) - covers best practices for data curation in DAPT. This stage processes extracted text, tables, charts, and images using the curation pipeline.

Usage

Follow the README under ingest first and then curator folder for installation of pre-reqs

cd ingest
python main.py --analyze --display
cd curator
python main.py --device "gpu"

Checklist

  • [Y] I am familiar with the Contributing Guide.
  • [Y] New or Existing tests cover these changes.
  • [Y] The documentation is up to date with these changes.

@ruchaa-apte
Copy link
Contributor Author

pre-commit.ci autofix

Copy link

@ChrisJar ChrisJar left a comment

Choose a reason for hiding this comment

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

Lgtm! Just had one small nitpick

Copy link

@ChrisJar ChrisJar left a comment

Choose a reason for hiding this comment

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

One more thing

Copy link
Collaborator

@sarahyurick sarahyurick left a comment

Choose a reason for hiding this comment

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

Very clean code, thank you. Added a bunch of nits.

@sarahyurick
Copy link
Collaborator

If needed, could you add pdfminer.six==20221105 as a requirement for the DAPT tutorial?

ruchaa-apte and others added 13 commits April 2, 2025 12:49
Co-authored-by: Sarah Yurick <[email protected]>
Signed-off-by: Rucha Apte <[email protected]>
…ntic_dedupe_config.yaml

Co-authored-by: Sarah Yurick <[email protected]>
Signed-off-by: Rucha Apte <[email protected]>
…ic_dedupe_config.yaml

Co-authored-by: Sarah Yurick <[email protected]>
Signed-off-by: Rucha Apte <[email protected]>
…ntic_dedupe_config.yaml

Co-authored-by: Sarah Yurick <[email protected]>
Signed-off-by: Rucha Apte <[email protected]>
…ic_dedupe_config.yaml

Co-authored-by: Sarah Yurick <[email protected]>
Signed-off-by: Rucha Apte <[email protected]>
ruchaa-apte and others added 15 commits April 2, 2025 12:52
Signed-off-by: Rucha Apte <[email protected]>
Signed-off-by: Rucha Apte <[email protected]>
Signed-off-by: Rucha Apte <[email protected]>
@ruchaa-apte ruchaa-apte requested a review from sarahyurick April 8, 2025 00:42
@ruchaa-apte
Copy link
Contributor Author

pre-commit.ci autofix

Comment on lines +20 to +23
# Extract dedup configuration
eps_thresholds:
- 0.1
- 0.01
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think eps_thresholds should be removed, has been deprecated.

Comment on lines +20 to +23
# Extract dedup configuration
eps_thresholds:
- 0.1
- 0.01
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think eps_thresholds should be removed, has been deprecated.

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.

3 participants