Add OpenVLA model support#29738
Draft
yongming-qin wants to merge 2 commits into
Draft
Conversation
Contributor
Author
|
Note: Currenly the model can be loaded by vllm and we can use it to process image + text instruction. However, the results of vllm and Transformers are different. Comments and collaboration are welcome. |
1 task
1b19006 to
2dc2fef
Compare
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
4 tasks
…vision. Signed-off-by: Luke <yq0536@gmail.com>
…penvla-7b Signed-off-by: Luke <yq0536@gmail.com>
2dc2fef to
f45fa49
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Purpose
Add support for OpenVLA model in vLLM. OpenVLA is a vision-language-action model that uses timm-based vision backbones (Prismatic architecture) with LLM backbones for action prediction tasks. This implementation follows the same pattern as DeepSeek-VL2, which also uses timm for vision processing.
This PR adds:
vllm/model_executor/models/openvla.py)vllm/transformers_utils/configs/openvla.py)vllm/transformers_utils/processors/openvla.py)The implementation supports:
FIX #14739
Test Plan
Basic inference test:
Test with image input:
Compare outputs with HuggingFace implementation:
Test Result
[To be filled after testing]