TIGER-Lab_VLM2Vec-Full
TIGER-Lab · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
license: apache-2.0 datasets:
- TIGER-Lab/MMEB-train language:
- en metrics:
- accuracy base_model:
- microsoft/Phi-3.5-vision-instruct library_name: transformers tags:
- Embedding
VLM2Vec
This repo contains the code and data for VLM2Vec: Training Vision-Language Models for Massive Multimodal Embedding Tasks. In this paper, we aimed at building a unified multimodal embedding model for any tasks. Our model is based on converting an existing well-trained VLM (Phi-3.5-V) into an embedding model.
We’ve released several VLM2Vec models built on different VLM backbones: https://huggingface.co/collections/TIGER-Lab/vlm2vec-6705f418271d085836e0cdd5
Also, the performance of these models is updated in the README of our GitHub repository: https://github.com/TIGER-AI-Lab/VLM2Vec/blob/main/README.md
Release
Our model is being trained on MMEB-train and evaluated on MMEB-eval with contrastive learning. We only use in-batch negatives for training. Our best results were based on Lora training with batch size of 1024. We also have checkpoint with full training with batch size of 2048. Our results on 36 evaluation datasets are:
Train/Eval Data
- Train data: https://huggingface.co/datasets/TIGER-Lab/MMEB-train
- Eval data: https://huggingface.co/datasets/TIGER-Lab/MMEB-eval
VLM2Vec Checkpoints
Github
- Github
Experimental Results
Our model can outperform the existing baselines by a huge margin.
How to use VLM2Vec
First you can clone our github
git clone https://github.com/TIGER-AI-Lab/VLM2Vec.git
pip -r requirements.txt
Then you can enter the directory to run the following command.
from src.model import MMEBModel
from src.arguments import ModelArguments
from src.utils import load_processor
import torch
from transformers import HfArgumentParser, AutoProcessor
from PIL import Image
import numpy as np
model_args = ModelArguments(
model_name='TIGER-Lab/VLM2Vec-Full',
pooling='last',
normalize=True,
model_backbone='phi3_v',
num_crops=16)
processor = load_processor(model_args)
model = MMEBModel.load(model_args)
model.eval()
model = model.to('cuda', dtype=torch.bfloat16)
# Image + Text -> Text
inputs = processor('<|image_1|> Represent the given image with the following question: What is in the image', [Image.open(
'figures/example.jpg')])
inputs = {key: value.to('cuda') for key, value in inputs.items()}
qry_output = model(qry=inputs)["qry_reps"]
string = 'A cat and a dog'
inputs = processor(string)
inputs = {key: value.to('cuda') for key, value in inputs.items()}
tgt_output = model(tgt=inputs)["tgt_reps"]
print(string, '=', model.compute_similarity(qry_output, tgt_output))
## A cat and a dog = tensor([[0.3008]], device='cuda:0', dtype=torch.bfloat16)
string = 'A cat and a tiger'
inputs = processor(string)
inputs = {key: value.to('cuda') for key, value in inputs.items()}
tgt_output = model(tgt=inputs)["tgt_reps"]
print(string, '=', model.compute_similarity(qry_output, tgt_output))
## A cat and a tiger = tensor([[0.2051]], device='cuda:0', dtype=torch.bfloat16)
# Text -> Image
inputs = processor('Find me an everyday image that matches the given caption: A cat and a dog.',)
inputs = {key: value.to('cuda') for key, value in inputs.items()}
qry_output = model(qry=inputs)["qry_reps"]
string = '<|image_1|> Represent the given image.'
inputs = processor(string, [Image.open('figures/example.jpg')])
inputs = {key: value.to('cuda') for key, value in inputs.items()}
tgt_output = model(tgt=inputs)["tgt_reps"]
print(string, '=', model.compute_similarity(qry_output, tgt_output))
## <|image_1|> Represent the given image. = tensor([[0.2930]], device='cuda:0', dtype=torch.bfloat16)
inputs = processor('Find me an everyday image that matches the given caption: A cat and a tiger.',)
inputs = {key: value.to('cuda') for key, value in inputs.items()}
qry_output = model(qry=inputs)["qry_reps"]
string = '<|image_1|> Represent the given image.'
inputs = processor(string, [Image.open('figures/example.jpg')])
inputs = {key: value.to('cuda') for key, value in inputs.items()}
tgt_output = model(tgt=inputs)["tgt_reps"]
print(string, '=', model.compute_similarity(qry_output, tgt_output))
## <|image_1|> Represent the given image. = tensor([[0.2012]], device='cuda:0', dtype=torch.bfloat16)
Citation
@article{jiang2024vlm2vec,
title={VLM2Vec: Training Vision-Language Models for Massive Multimodal Embedding Tasks},
author={Jiang, Ziyan and Meng, Rui and Yang, Xinyi and Yavuz, Semih and Zhou, Yingbo and Chen, Wenhu},
journal={arXiv preprint arXiv:2410.05160},
year={2024}
}
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:fcbb370095984e82f3d75bd3083066e6a9722936&dn=TIGER-Lab_VLM2Vec-FullOpen magnet in torrent client · infohash fcbb370095984e82f3d75bd3083066e6a9722936
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 5.0 KB (5,126 B) | d9dac4a7bf2420d62eb012a74dd9c98883ba7e7b | 0c28d326d78c2d0cda9fe26b44cd8f4e6a4c9717468c661998bbce359f26baec |
| config.json | 3.7 KB (3,838 B) | 8825321ab365bd04a214332fbc6961ab2f4ac42c | 258532affee473d12eb1f071e5d1bd44a6591f35b801af75376cdc3653d68d51 |
| configuration_phi3_v.py | 10.5 KB (10,712 B) | e3affcbfa11f737f840d7f0f4b34153fd0415098 | 18ff44c5c1f9a6523184fb2e580e03ebf722a65f37b9cc57cd1a6d620a0f2666 |
| generation_config.json | 136 B (136 B) | 255400d32c6fb8d61348171a9a32ded59c3ddd02 | c0f167006fa95101715aa5acc9d0e4dd9e2d724cc760b6ae3fafe329b450e624 |
| model-00001-of-00002.safetensors | 4.60 GB (4,944,122,176 B) | 170ae7e227c9617d85163cafdb4e2c68086b5b38 | 8b4afd2a33c0becd2baf8fe9fe22268cf11389f22c837dd4fb91fe5d4b3bada8 |
| model-00002-of-00002.safetensors | 3.12 GB (3,349,208,776 B) | 39d43eefd224f900c82e821664236fa273d34d98 | aef787eda0aba8a14f2a5ffdd6f42c7fcc2a4f7071c07c9fb551ce577e51af07 |
| model.safetensors.index.json | 69.7 KB (71,364 B) | 096b779bc61913efb48dcce7d23e84d81bfffae6 | a2bcabd376d773e5878f81a981cbcff46b52765d9799c44528fc6bcf3b16bb48 |
| modeling_phi3_v.py | 86.8 KB (88,866 B) | f08fb1649b5d530c8a0ed1c74d8f379ddc50c096 | b223be7d7e9f01903dd8704e5da45c6030824134441aa2734c40c36597c3b41c |
| preprocessor_config.json | 442 B (442 B) | 5559abc31e77a754d6c876fc86878f7b6c679986 | 0f3d920fcec587bb425312d30b0660e1fabaf46a75961f2b75ddbb1ff92de01c |
| processing_phi3_v.py | 22.7 KB (23,286 B) | b892edf0589a704049f5da878a332650f25a30ca | 213afe05da2a9836cde4587e1fec15cb97a742392b980d2a47c91bb6aed7dbd3 |
| processor_config.json | 119 B (119 B) | b9cdc63dde1bec3027ff85f7ea884603bb4fff50 | 286a9e7fb58a489eae6825b79be69f62068c2028435c29ee52c3a485d071707b |
| pytorch_model-00001-of-00002.bin | 4.60 GB (4,944,235,995 B) | f34554c123f3b222703b056a15d2a556a4502cfe | 5b69e08c127139b5cebf6e09a2d7923728e9b2046c96fbb68e0eeed23cd61a08 |
| pytorch_model-00002-of-00002.bin | 3.12 GB (3,349,227,876 B) | 9360d28e8e7d15288fbc8fc69b16a840bd1b58b5 | 25bf365e3eb45808bd22580469c18a0180ee5532758feeb8eccd7898841165ca |
| pytorch_model.bin.index.json | 67.4 KB (68,981 B) | 2250b0a6c39c53a9d67e9edb19551379830a682c | a4fbb0efb864e489ae50365599f8bcda3d339324f8c22978eb286bdb4c984c45 |
| special_tokens_map.json | 670 B (670 B) | 0616f20a3af0830d0991f72c15c4f5e6d5dc02fa | f9535fada19315e0d8eb89521cebe111c008fee98d16e7c6744acfb50505d8c3 |
| tokenizer.json | 1.8 MB (1,851,360 B) | 6a0986c7e1b01a58ff8cc31fc2d64ddd230fec7e | 493f8ad437be806d5ccdc57e91479bdbb0c656448c1b89ff70f7653530d78518 |
| tokenizer_config.json | 9.3 KB (9,519 B) | 3c7b5bda28936460312aa5161c8ad08d583829fc | 581d4654c018fbcef2504b57a805dcad37126038137b5d25d22b5a02abc1ef29 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/TIGER-Lab_VLM2Vec-Full/
- Slug
- TIGER-Lab_VLM2Vec-Full
- Infohash
- fcbb370095984e82f3d75bd3083066e6a9722936
- License
- apache-2.0
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: TIGER-Lab_VLM2Vec-Full.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | TIGER-Lab/VLM2Vec-Full |
|---|---|
| Revision (pinned) | a0dcd8153e2563f1b39d80ae9afd71a4394773fb |
| Fetched at | 2026-09-03T20:32:22Z |
| License at fetch | apache-2.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-03T20:35:14Z
apache-2.015.45 GB (16,588,929,242 bytes)transformerspytorchsafetensorsphi3_vtext-generationEmbeddingconversationalcustom_code1 language (en)paper: 2410.05160