Skip to content

feat(nemotron_parse): input processor and VLM factory wiring - #123

Merged
solderzzc merged 2 commits into
mainfrom
sl/nemotron-parse-processor
Nov 12, 2026
Merged

solderzzc merged 2 commits into
mainfrom
sl/nemotron-parse-processor

Conversation

@solderzzc

Copy link
Copy Markdown
Member

What

Adds the nemotron_parse input processor and wires the model into the VLM factory (vlmWiredKeys, processor map).

  • Processor: aspect-fit resize with cv2 INTER_LINEAR semantics (half-pixel centres, half-up rounding), white padding, NCHW pixels, default task prompt. Reference logic read from the upstream processor source (text only).
  • Airgap case: the synthetic checkpoint is written in the raw conv layout (rawLayoutPermutations), so the sanitizer is the only thing that converts it.
  • ConformanceExpectations regenerated.

Tests run (named files, local)

Nemotron Configuration/Registration/Sanitize/Processor suites, SharpAIVLMAirgapLoadTests, SharpAIVLMOverlaysTests, ConformanceRegistryTests, config-processor tests: EXIT=0.

Not verified

No real checkpoint was downloaded. Numerics against the reference processor and model are unverified; this is "wired", not "verified against the reference".

Expect a small merge conflict with #122 on the VLM wiring test and aggregate lines.

🤖 Generated with Claude Code

solderzzc and others added 2 commits November 11, 2026 12:25
- SharpAINemotronParseProcessor: aspect-fit resize (cv2 INTER_LINEAR semantics, half-up
  rounding), white padding, NCHW pixels, default task prompt.
- Registered in SharpAIVLMModelOverlays (vlmWiredKeys, processor map).
- Airgap case writes the synthetic checkpoint in the raw conv layout so the sanitizer is
  the only thing that converts it.
- Regenerated ConformanceExpectations.

Numerics are unverified against a real checkpoint (none downloaded).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Keep both sides: nemotron_parse and qianfan_ocr processors, airgap cases,
and the wired-key list. Regenerate ConformanceExpectations with
scripts/conformance/gen_expectations.py. vlmWiredKeys count is now 17.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@solderzzc
solderzzc merged commit 8214f88 into main Nov 12, 2026
3 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.

1 participant