Skip to content

feat(gdp-pdf): task generation for long-document question answering (GDP.pdf) - #26

Draft
dylanelu wants to merge 1 commit into
mainfrom
feat/gdp-pdf
Draft

dylanelu wants to merge 1 commit into
mainfrom
feat/gdp-pdf

Conversation

@dylanelu

@dylanelu dylanelu commented Nov 29, 2026 •

Copy link
Copy Markdown

What does this PR do?

Adds a project, projects/gdp-pdf, with its first part: task generation for a model that answers professional requests about long PDFs, the setting of the GDP.pdf benchmark. The student is Nemotron 3.5 Super VL. There is no related issue; the project is new. Training on the generated tasks (RL, supervised fine-tuning) and the benchmark evaluation follow in a second pull request on top of this one.

Step Workflows What it does
Documents documents/prepare page text and page images for the PDFs you supply
Task generation sdg/naive, sdg/skill, sdg/failure one author prompt with one conditioning slot. naive: the author is told nothing about the student. skill: which skills each task should stress. failure: the same skills, plus what the student got wrong on this document. Every criterion is source-checked against its cited pages, and tasks are filtered by the student's answers

Every step is one workflow started with nvflow run --all --workflow gdp-pdf:<name> --cluster <cluster>; its stages wait on each other through NVFlow's dependencies and nothing keeps running on the submitting machine. Settings are workflow keys; a user's own paths go in a private_<name>.yaml beside the workflow with _base_. sdg/smoke is the short form of task generation.

The project ships no PDFs, no benchmark question or rubric, and no key: you supply documents, weights and an endpoint key.

Outside the project:

  • dockerfiles/Dockerfile.nemo-gym: the image now installs NeMo Gym's GDP.pdf environment, which document preparation and task generation use.
  • README.md, docs/README.md: a link to the new project.
  • tests/test_documentation.py, tests/test_dependency_platforms.py, tests/execution/test_reference_plans.py: the new project in the tests that list projects and count runnable workflows.

This pull request first held task generation, RL and evaluation in one diff too large for the automated review. It now holds task generation only (about 590 KB), as one commit on current main.

Validation

Run against the final diff:

  • PYTHONPATH=projects/gdp-pdf uv run pytest projects/gdp-pdf/tests --no-cov: 59 passed.
  • scripts/run_ci_test_lane.sh minimal: 2,030 passed, 21 skipped.
  • scripts/run_ci_test_lane.sh nemo: 316 passed, 1 skipped.
  • uv run pre-commit run --all-files: all hooks pass.
  • nvflow validate on sdg/smoke, sdg/naive, sdg/skill, sdg/failure.

Plan or run evidence

The project adds workflows and changes none. Runs on a Slurm cluster, on the final code; details are in projects/gdp-pdf/docs/smokes.md.

Smoke Result
Documents, documents/prepare 10 of 10 PDFs prepared, 83 pages
Task generation, sdg/smoke (hosted author and checker, CPU jobs), one nvflow run --all 24 tasks written from 8 of 10 documents (the author declined two), 22 verified against their cited pages, 15 selected
Task generation, the same command a second time the three finished stages reused their saved results and made no hosted call; the filter was recomputed and selected 15 tasks again

Not yet run:

  • Task generation with the author and the student served on GPUs: sdg/naive in full, sdg/skill, sdg/failure, and the optional teacher stage.

One limit found on the way: the hosted author cannot take a document whose page images exceed its request size (about 65 pages). Tasks on longer documents need the served author.

Compatibility

None for existing workflows, the CLI, project contracts or cluster configs. New: the project's workflows use the standard image roles (nemo-skills, nemo-gym, vllm). The nemo-gym image gains the GDP.pdf environment.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally (scripts/run_ci_test_lane.sh nemo and scripts/run_ci_test_lane.sh minimal), or N/A for docs-only changes.
  • Documentation added or updated, or N/A with justification.
  • Pre-commit checks pass locally (uv run pre-commit run --all-files).
  • New source files include the NVIDIA Apache-2.0 license header.
  • Nothing in the change exposes credentials, internal hostnames or paths, or unreleased model names; this repository is public.
  • All commits have DCO sign-off (git commit -s).

@dylanelu dylanelu changed the title gdp-pdf: task generation, RL and evaluation for long-document question answering (GDP.pdf) feat(gdp-pdf): task generation, RL and evaluation for long-document question answering (GDP.pdf) Nov 30, 2026
…GDP.pdf)

Adds the project `projects/gdp-pdf` with document preparation and three variants of task generation
for a model that answers professional requests about long PDFs: `naive`, `skill` and `failure`, one
author prompt with one conditioning slot. Every rubric criterion is checked against its cited pages,
and tasks are filtered by the student's answers. The project ships no documents and no benchmark text.

Signed-off-by: Dylan Lu <dylu@nvidia.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@dylanelu dylanelu changed the title feat(gdp-pdf): task generation, RL and evaluation for long-document question answering (GDP.pdf) feat(gdp-pdf): task generation for long-document question answering (GDP.pdf) Dec 2, 2026
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.

1 participant