Feature Extraction
Transformers
Safetensors
sentence-transformers
English
qwen3_5
image-text-to-text
multimodal-embedding
image-text-retrieval
visual-document-retrieval
custom_code
Instructions to use UCSC-VLAA/OpenEmbed-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UCSC-VLAA/OpenEmbed-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="UCSC-VLAA/OpenEmbed-2B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("UCSC-VLAA/OpenEmbed-2B", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("UCSC-VLAA/OpenEmbed-2B", trust_remote_code=True, device_map="auto") - sentence-transformers
How to use UCSC-VLAA/OpenEmbed-2B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("UCSC-VLAA/OpenEmbed-2B", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Quick start: install transformers>=5.15.0
Browse filesThe install line now asks for transformers 5.15 or later, so an existing 5.2-5.14 install is upgraded before the Sentence Transformers example (older versions reuse the last image batch's position offsets). The weights are unchanged.
README.md
CHANGED
|
@@ -54,7 +54,7 @@ MMEB-V2: 36 image tasks (Hit@1; CLS: classification, VQA: visual question answer
|
|
| 54 |
No remote code is needed. Tested with transformers 5.2.0 and 5.23.0, sentence-transformers 5.7.0 and 6.3.0 (torch 2.8.0), and vLLM 0.34.0.
|
| 55 |
|
| 56 |
```bash
|
| 57 |
-
pip install torch torchvision "transformers>=5.
|
| 58 |
```
|
| 59 |
|
| 60 |
### Input format
|
|
|
|
| 54 |
No remote code is needed. Tested with transformers 5.2.0 and 5.23.0, sentence-transformers 5.7.0 and 6.3.0 (torch 2.8.0), and vLLM 0.34.0.
|
| 55 |
|
| 56 |
```bash
|
| 57 |
+
pip install torch torchvision "transformers>=5.15.0" "sentence-transformers>=5.7.0"
|
| 58 |
```
|
| 59 |
|
| 60 |
### Input format
|