Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
Chinese
qwen2_vl
image-text-to-text
mteb
Qwen2-VL
vidore
custom_code
Eval Results (legacy)
Instructions to use Alibaba-NLP/gme-Qwen2-VL-2B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Alibaba-NLP/gme-Qwen2-VL-2B-Instruct with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Alibaba-NLP/gme-Qwen2-VL-2B-Instruct", 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] - Transformers
How to use Alibaba-NLP/gme-Qwen2-VL-2B-Instruct with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Alibaba-NLP/gme-Qwen2-VL-2B-Instruct", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("Alibaba-NLP/gme-Qwen2-VL-2B-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -3590,12 +3590,12 @@ model-index:
|
|
| 3590 |
---
|
| 3591 |
|
| 3592 |
<p align="center">
|
| 3593 |
-
<
|
| 3594 |
</p>
|
| 3595 |
|
| 3596 |
<p align="center"><b>GME: General Multimodal Embeddings</b></p>
|
| 3597 |
|
| 3598 |
-
## GME-
|
| 3599 |
|
| 3600 |
We are excited to present `GME-Qwen2VL` series of unified **multimodal embedding models**,
|
| 3601 |
which are based on the advanced [Qwen2-VL](https://huggingface.co/collections/Qwen/qwen2-vl-66cee7455501d7126940800d) multimodal large language models (MLLMs).
|
|
|
|
| 3590 |
---
|
| 3591 |
|
| 3592 |
<p align="center">
|
| 3593 |
+
<img src="images/gme_logo.png" alt="GME Logo" style="width: 100%; max-width: 250px;">
|
| 3594 |
</p>
|
| 3595 |
|
| 3596 |
<p align="center"><b>GME: General Multimodal Embeddings</b></p>
|
| 3597 |
|
| 3598 |
+
## GME-Qwen2-VL-2B
|
| 3599 |
|
| 3600 |
We are excited to present `GME-Qwen2VL` series of unified **multimodal embedding models**,
|
| 3601 |
which are based on the advanced [Qwen2-VL](https://huggingface.co/collections/Qwen/qwen2-vl-66cee7455501d7126940800d) multimodal large language models (MLLMs).
|