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
File size: 748 Bytes
2b0f1cd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | {
"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
}
}
} |