Repository navigation
feat(vlm): add PaddleOCR-VL vision-language model with Rust parser - #12
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements PaddleOCR-VL-1.5 vision-language model for OCR and document understanding tasks, with a complete Rust-native parser for structured table output.
VLM Implementation
model.chat()Rust Parser (
parsePaddleResponse)Error Handling Improvements
@mlx-node/vlm Package
Note
Medium Risk
Medium risk because CI execution flow changes (artifact-based build reuse) and many TypeScript tests are removed, which could reduce regression coverage and hide runtime issues.
Overview
CI is reworked to split native build and tests. The workflow now builds the native module once, uploads the
.nodeandmlx.metallibartifacts, and the test matrix downloads them before runningcargo testandyarn build:ts && yarn vite run test(also switching model download toyarn oxnode ./scripts/download-model.ts). Thelintjob is expanded to include Nodeyarn typecheckandyarn lintalongside Rustfmt/clippy.Project hygiene and deps are updated.
.gitignorenow ignores/mlx-vlmand*.metallib, and the Rust workspace addsunicode-widthandimage(jpeg/png/webp) dependencies.TypeScript test coverage is significantly reduced. Numerous
__test__/core/*suites (activations, attention, caches, losses, optimizers, numerical consistency, etc.) are deleted, and the remaining autograd training test is updated to use manual SGD instead ofAdam.Written by Cursor Bugbot for commit a54fa48. This will update automatically on new commits. Configure here.
Summary by CodeRabbit
New Features
Package Changes
Tests
Documentation
Chores