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

Unable to use any CLIP model with model_id #2520

Open
akshayballal95 opened this issue Sep 29, 2024 · 0 comments
Open

Unable to use any CLIP model with model_id #2520

akshayballal95 opened this issue Sep 29, 2024 · 0 comments

Comments

@akshayballal95
Copy link
Contributor

akshayballal95 commented Sep 29, 2024

I was unable to use clip-vit-base-patch16 as there is no deserialization available for the CLIP Configuration. The only model that can be used is clip-vit-base-patch-32. In PR #2527 I have added the ability to get any model using the model_id.

#[derive(Clone, Debug)]
pub struct ClipConfig {
pub text_config: text_model::ClipTextConfig,
pub vision_config: vision_model::ClipVisionConfig,
pub logit_scale_init_value: f32,
pub image_size: usize,
}

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

No branches or pull requests

1 participant