-
Notifications
You must be signed in to change notification settings - Fork 503
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 Multimodal inference with multiple images and PDF-s in NATIVE
engine
#1424
Conversation
NATIVE
engine
@@ -43,7 +43,7 @@ def _get_engine(config: InferenceConfig) -> BaseInferenceEngine: | |||
def infer_interactive( | |||
config: InferenceConfig, | |||
*, | |||
input_image_bytes: Optional[bytes] = None, | |||
input_image_bytes: Optional[list[bytes]] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More of a meta comment about this PR: This looks like a breaking change for VLM functionality. Should we consider a larger version bump for our next pypi package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may be lifting one arbitrary/un-documented constraint. The previous code might by broken/not-functional if multi-image inputs are passed to it (most datasets are single-image) => it's probably OK to do regular version increment.
Co-authored-by: Matthew Persons <[email protected]>
Description
-- Update NATIVE inference engine to support prediction with multiple images.
-- Add utils to load PDF-s as N images (1 image per page).
-- Add new target
[file_formats]
to load libraries required for PDF processing-- Update CLI
infer
to support PDF inputs-- Add sample 4-page PDF to
testdata
-- Tested with Llama Vision only for now (will handle other model types and other engines separately)
Related issues
Towards OPE-994, OPE-355
Before submitting
Reviewers
At least one review from a member of
oumi-ai/oumi-staff
is required.