Instructions to use BAAI/BGE-VL-Screenshot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BAAI/BGE-VL-Screenshot with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BAAI/BGE-VL-Screenshot", trust_remote_code=True) sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "transformer_task": "feature-extraction", | |
| "modality_config": { | |
| "text": { | |
| "method": "forward", | |
| "method_output_name": "last_hidden_state" | |
| }, | |
| "image": { | |
| "method": "forward", | |
| "method_output_name": "last_hidden_state" | |
| }, | |
| "image+text": { | |
| "method": "forward", | |
| "method_output_name": "last_hidden_state" | |
| }, | |
| "message": { | |
| "method": "forward", | |
| "method_output_name": "last_hidden_state", | |
| "format": "structured" | |
| } | |
| }, | |
| "module_output_name": "token_embeddings", | |
| "processing_kwargs": { | |
| "chat_template": { | |
| "add_generation_prompt": true | |
| } | |
| } | |
| } |