-
Notifications
You must be signed in to change notification settings - Fork 59
Onboarding Molmo Model #554
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
base: main
Are you sure you want to change the base?
Conversation
**kwargs, | ||
) -> Tuple[torch.Tensor, Optional[Tuple[torch.Tensor, torch.Tensor]]]: | ||
if not self.config.norm_after: | ||
if self._activation_checkpoint_fn is not 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.
Remove all the training related code throughout this file.
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.
Remove all the training related code throughout modelling file.
4156fd1
to
2c9e1b4
Compare
Signed-off-by: Mohit Soni <mohisoni@qti.qualcomm.com>
Signed-off-by: Mohit Soni <mohisoni@qti.qualcomm.com>
|
||
img_size = 588 | ||
img_tile = 576 | ||
num_images = 5 |
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.
Could you make num_images a parameter instead of hardcoding it? The value of num_images here is essentially max_crops (which is one of the image processor kwargs) plus 1. That way, in VLLM, we can apply the same preprocessing logic as we do for llama4
No description provided.