huggingface / huggingface/setfit
Support for vision transformer models
- Dominant language
- Jupyter Notebook
- Stars
- 2.8k
- Forks
- 267
- Avg merge
- 36m
- Merged PRs (30d)
- 5
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.