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

Support for vision transformer models #586

Open
wwymak opened this issue Feb 8, 2025 · 0 comments
Open

Support for vision transformer models #586

wwymak opened this issue Feb 8, 2025 · 0 comments

Comments

@wwymak
Copy link

wwymak commented Feb 8, 2025

In sentence transformers, we have the option of using vision transformer models, and it would be useful to be able to use these with setfit -- while I appreciate from #107 that setfit is designed to work with text, there's no reason for the technique to not work with vision embedding models, and the only thing that stops one from using the library for this task is that the ModelCardCallback run various functions at init time that assumes the input dataset is text (e.g. sort by length, word counts etc). By commenting out the ModelCardCallback I managed to train a setfit model based clip-ViT-L-14.

It would be great if the ModelCardCallback setup can be updated to support other modalities, or if that is not on the roadmap, at least add in the option of excluding that callback completely.

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