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
Link the training data; note the transformers version for Sentence Transformers
Browse filesThe card's metadata lists the training dataset (UCSC-VLAA/OpenEmbed-Data), and the Sentence Transformers section says to use transformers 5.15 or later: older versions keep the position offsets of the last batch with images and can fail on a later batch without images. The weights and the other files are unchanged.
README.md
CHANGED
|
@@ -4,6 +4,8 @@ library_name: transformers
|
|
| 4 |
pipeline_tag: feature-extraction
|
| 5 |
base_model:
|
| 6 |
- Qwen/Qwen3.5-2B-Base
|
|
|
|
|
|
|
| 7 |
tags:
|
| 8 |
- multimodal-embedding
|
| 9 |
- image-text-retrieval
|
|
@@ -138,7 +140,7 @@ candidates = model.encode([
|
|
| 138 |
print(model.similarity(queries, candidates))
|
| 139 |
```
|
| 140 |
|
| 141 |
-
Add `processor_kwargs={"use_fast": False}` to resize images exactly as our evaluation did.
|
| 142 |
|
| 143 |
### vLLM
|
| 144 |
|
|
|
|
| 4 |
pipeline_tag: feature-extraction
|
| 5 |
base_model:
|
| 6 |
- Qwen/Qwen3.5-2B-Base
|
| 7 |
+
datasets:
|
| 8 |
+
- UCSC-VLAA/OpenEmbed-Data
|
| 9 |
tags:
|
| 10 |
- multimodal-embedding
|
| 11 |
- image-text-retrieval
|
|
|
|
| 140 |
print(model.similarity(queries, candidates))
|
| 141 |
```
|
| 142 |
|
| 143 |
+
Add `processor_kwargs={"use_fast": False}` to resize images exactly as our evaluation did. Use transformers 5.15 or later with Sentence Transformers: older versions keep the position offsets of the last batch with images and can fail on a later batch without images.
|
| 144 |
|
| 145 |
### vLLM
|
| 146 |
|