Skip to content
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

Add support for Molmo-D-7B Model #1542

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

BabyChouSr
Copy link
Contributor

Support for https://huggingface.co/allenai/Molmo-7B-D-0924

It's been awhile since I've supported a model, so I figured it would be good practice. It seems to be a CLIP-Vit encoder with some embedding pooling and then a Qwen LLM backbone. I'm trying to figure out the vision backbone first and then I think the frozen parts will come together by importing from Qwen2.py file.

@jlia0
Copy link

jlia0 commented Oct 5, 2024

Any updates on this?

@BabyChouSr
Copy link
Contributor Author

@jlia0 I'm working on this slowly since I'm juggling a couple things. It will take me probably a week.

@BabyChouSr BabyChouSr marked this pull request as ready for review October 9, 2024 06:44
@BabyChouSr
Copy link
Contributor Author

/ready

def test_molmo_d(self):
for text, images in CONVS:
for model_path, torch_dtype, tolerance in MODELS:
self.assert_srt_vision_backbone_and_hf_vision_backbone_close(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have an end-to-end test for the whole model?
Can you add a new test here https://github.com/sgl-project/sglang/blob/main/test/srt/test_vision_openai_server.py?

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.

3 participants