BAAI / BGE-VL-MLLM-S2

huggingface.co
Total runs: 177
24-hour runs: 2
7-day runs: -9
30-day runs: -78
Model's Last Updated: April 10 2026
sentence-similarity

Introduction of BGE-VL-MLLM-S2

Model Details of BGE-VL-MLLM-S2

MegaPairs: Massive Data Synthesis For Universal Multimodal Retrieval

Build Build Build

Build Build Build Build

News

2024-3-4 🚀🚀 We have released the BGE-VL-MLLM models on Huggingface: BGE-VL-MLLM-S1 and BGE-VL-MLLM-S2 . BGE-VL-MLLM-S1 is trained exclusively on our MegaPairs dataset, achieving outstanding performance in composed image retrieval, with an 8.1% improvement on the CIRCO benchmark (mAP@5) over the previous state-of-the-art. BGE-VL-MLLM-S2 builds on BGE-VL-MLLM-S1 with an additional epoch of fine-tuning on the MMEB benchmark training set, delivering enhanced performance across a broader range of multimodal embedding tasks.

2024-12-27 🚀🚀 BGE-VL-CLIP models are released on Huggingface: BGE-VL-base and BGE-VL-large .

2024-12-19 🎉🎉 Release our paper: MegaPairs: Massive Data Synthesis For Universal Multimodal Retrieval .

Release Plan
  • Paper
  • BGE-VL-base and BGE-VL-large models
  • BGE-VL-MLLM model
  • MegaPairs Dataset
  • Evaluation code
  • Fine-tuning code
Introduction

In this work, we introduce MegaPairs , a novel data synthesis method that leverages open-domain images to create heterogeneous KNN triplets for universal multimodal retrieval. Our MegaPairs dataset contains over 26 million triplets, and we have trained a series of multimodal retrieval models, BGE-VL , including BGE-VL-CLIP (base and large) and BGE-VL-MLLM.

BGE-VL achieve state-of-the-art performance on four popular zero-shot composed image retrieval benchmarks and the massive multimodal embedding benchmark (MMEB). Extensive experiments demonstrate the efficiency, scalability, and generalization features of MegaPairs. Please refer to our paper for more details.

Model Usage
1. BGE-VL-CLIP Models

You can easily use BGE-VL-CLIP models based on transformers

import torch
from transformers import AutoModel

MODEL_NAME = "BAAI/BGE-VL-base" # or "BAAI/BGE-VL-large"

model = AutoModel.from_pretrained(MODEL_NAME, trust_remote_code=True) # You must set trust_remote_code=True
model.set_processor(MODEL_NAME)
model.eval()

with torch.no_grad():
    query = model.encode(
        images = "./assets/cir_query.png", 
        text = "Make the background dark, as if the camera has taken the photo at night"
    )

    candidates = model.encode(
        images = ["./assets/cir_candi_1.png", "./assets/cir_candi_2.png"]
    )
    
    scores = query @ candidates.T
print(scores)

See the demo for a complete example of using BGE-VL for multimodel retrieval.

2. BGE-VL-MLLM Models
import torch
from transformers import AutoModel
from PIL import Image

MODEL_NAME= "BAAI/BGE-VL-MLLM-S1"

model = AutoModel.from_pretrained(MODEL_NAME, trust_remote_code=True)
model.eval()
model.cuda()

with torch.no_grad():
    model.set_processor(MODEL_NAME)

    query_inputs = model.data_process(
        text="Make the background dark, as if the camera has taken the photo at night", 
        images="./assets/cir_query.png",
        q_or_c="q",
        task_instruction="Retrieve the target image that best meets the combined criteria by using both the provided image and the image retrieval instructions: "
    )

    candidate_inputs = model.data_process(
        images=["./assets/cir_candi_1.png", "./assets/cir_candi_2.png"],
        q_or_c="c",
    )

    query_embs = model(**query_inputs, output_hidden_states=True)[:, -1, :]
    candi_embs = model(**candidate_inputs, output_hidden_states=True)[:, -1, :]
    
    query_embs = torch.nn.functional.normalize(query_embs, dim=-1)
    candi_embs = torch.nn.functional.normalize(candi_embs, dim=-1)

    scores = torch.matmul(query_embs, candi_embs.T)
print(scores)
Model Performance
Zero-Shot Composed Image Retrieval

BGE-VL sets a new performance benchmark in zero-shot composed image retrieval tasks. On the CIRCO benchmark, our BGE-VL-base model, with only 149 million parameters, surpasses all previous models, including those with 50 times more parameters. Additionally, BGE-VL-MLLM achieves an 8.1% improvement over the previous state-of-the-art model.

Zero-Shot Performance on MMEB

BGE-VL-MLLM achieves state-of-the-art zero-shot performance on the Massive Multimodal Embedding Benchmark (MMEB), despite being trained only on the ImageText-to-Image paradigm. This demonstrates the excellent generalization capability of MegaPairs for multimodal embedding.

Fine-Tuning Performance on MMEB

After fine-tuning on downstream tasks, BGE-VL-MLLM maintains its leading performance. Notably, it surpasses the previous state-of-the-art by 7.1% on the MMEB out-of-distribution (OOD) set. These results demonstrate the robust generalization capability of BGE-VL-MLLM and highlight the potential of MegaPairs as foundational training data for universal multimodal embedding.

Performance Scaling

MegaPairs showcases scalability : BGE-VL-base improves as training data increases. It also demonstrates efficiency : with just 0.5M training samples, BGE-VL-base significantly outperforms MagicLens, which uses the same CLIP-base backbone and was trained on 36.7M samples.

License

The annotations for MegaPairs and the BGE-VL models are released under the MIT License . The images in MegaPairs originate from the Recap-Datacomp , which is released under the CC BY 4.0 license.

Citation

If you find this repository useful, please consider giving a star ⭐ and citation

@article{zhou2024megapairs,
  title={MegaPairs: Massive Data Synthesis For Universal Multimodal Retrieval},
  author={Zhou, Junjie and Liu, Zheng and Liu, Ze and Xiao, Shitao and Wang, Yueze and Zhao, Bo and Zhang, Chen Jason and Lian, Defu and Xiong, Yongping},
  journal={arXiv preprint arXiv:2412.14475},
  year={2024}
}

Runs of BAAI BGE-VL-MLLM-S2 on huggingface.co

177
Total runs
2
24-hour runs
2
3-day runs
-9
7-day runs
-78
30-day runs

More Information About BGE-VL-MLLM-S2 huggingface.co Model

More BGE-VL-MLLM-S2 license Visit here:

https://choosealicense.com/licenses/mit

BGE-VL-MLLM-S2 huggingface.co

BGE-VL-MLLM-S2 huggingface.co is an AI model on huggingface.co that provides BGE-VL-MLLM-S2's model effect (), which can be used instantly with this BAAI BGE-VL-MLLM-S2 model. huggingface.co supports a free trial of the BGE-VL-MLLM-S2 model, and also provides paid use of the BGE-VL-MLLM-S2. Support call BGE-VL-MLLM-S2 model through api, including Node.js, Python, http.

BGE-VL-MLLM-S2 huggingface.co Url

https://huggingface.co/BAAI/BGE-VL-MLLM-S2

BAAI BGE-VL-MLLM-S2 online free

BGE-VL-MLLM-S2 huggingface.co is an online trial and call api platform, which integrates BGE-VL-MLLM-S2's modeling effects, including api services, and provides a free online trial of BGE-VL-MLLM-S2, you can try BGE-VL-MLLM-S2 online for free by clicking the link below.

BAAI BGE-VL-MLLM-S2 online free url in huggingface.co:

https://huggingface.co/BAAI/BGE-VL-MLLM-S2

BGE-VL-MLLM-S2 install

BGE-VL-MLLM-S2 is an open source model from GitHub that offers a free installation service, and any user can find BGE-VL-MLLM-S2 on GitHub to install. At the same time, huggingface.co provides the effect of BGE-VL-MLLM-S2 install, users can directly use BGE-VL-MLLM-S2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

BGE-VL-MLLM-S2 install url in huggingface.co:

https://huggingface.co/BAAI/BGE-VL-MLLM-S2

Url of BGE-VL-MLLM-S2

BGE-VL-MLLM-S2 huggingface.co Url

Provider of BGE-VL-MLLM-S2 huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 59.8M
Run Growth: -4.4M
Growth Rate: -7.36%
Updated:February 22 2024
huggingface.co

Total runs: 32.8M
Run Growth: -5.0M
Growth Rate: -15.12%
Updated:July 03 2024
huggingface.co

Total runs: 10.1M
Run Growth: -2.8M
Growth Rate: -27.60%
Updated:February 21 2024
huggingface.co

Total runs: 9.3M
Run Growth: -1.4M
Growth Rate: -15.14%
Updated:February 21 2024
huggingface.co

Total runs: 4.0M
Run Growth: -887.6K
Growth Rate: -21.73%
Updated:October 12 2023
huggingface.co

Total runs: 2.1M
Run Growth: -207.0K
Growth Rate: -10.25%
Updated:April 17 2024
huggingface.co

Total runs: 474.1K
Run Growth: -305.6K
Growth Rate: -62.42%
Updated:October 12 2023
huggingface.co

Total runs: 375.1K
Run Growth: -829.9K
Growth Rate: -216.38%
Updated:April 02 2024
huggingface.co

Total runs: 189.4K
Run Growth: -41.4K
Growth Rate: -22.10%
Updated:December 13 2023
huggingface.co

Total runs: 116.4K
Run Growth: 55.9K
Growth Rate: 48.54%
Updated:October 12 2023
huggingface.co

Total runs: 46.7K
Run Growth: -19.4K
Growth Rate: -40.10%
Updated:July 13 2026
huggingface.co

Total runs: 40.6K
Run Growth: -10.0K
Growth Rate: -24.15%
Updated:October 12 2023
huggingface.co

Total runs: 36.0K
Run Growth: -14.4K
Growth Rate: -45.25%
Updated:November 14 2023
huggingface.co

Total runs: 34.5K
Run Growth: -2.7K
Growth Rate: -7.77%
Updated:January 15 2025
huggingface.co

Total runs: 24.4K
Run Growth: -12.4K
Growth Rate: -41.06%
Updated:October 12 2023
huggingface.co

Total runs: 13.4K
Run Growth: -2.1K
Growth Rate: -15.12%
Updated:April 16 2025
huggingface.co

Total runs: 10.6K
Run Growth: 10.5K
Growth Rate: 100.00%
Updated:September 16 2026
huggingface.co

Total runs: 4.8K
Run Growth: -6.3K
Growth Rate: -130.42%
Updated:October 12 2023
huggingface.co

Total runs: 3.8K
Run Growth: -836
Growth Rate: -22.26%
Updated:May 20 2025
huggingface.co

Total runs: 2.3K
Run Growth: -3.2K
Growth Rate: -144.77%
Updated:April 19 2024
huggingface.co

Total runs: 2.0K
Run Growth: 523
Growth Rate: 26.28%
Updated:April 10 2026
huggingface.co

Total runs: 1.8K
Run Growth: 1.7K
Growth Rate: 100.00%
Updated:October 01 2026
huggingface.co

Total runs: 1.7K
Run Growth: -103
Growth Rate: -6.19%
Updated:January 15 2025
huggingface.co

Total runs: 1.6K
Run Growth: 193
Growth Rate: 11.88%
Updated:April 10 2026
huggingface.co

Total runs: 1.5K
Run Growth: 385
Growth Rate: 24.60%
Updated:November 28 2024
huggingface.co

Total runs: 1.5K
Run Growth: -1.9K
Growth Rate: -129.56%
Updated:September 11 2026
huggingface.co

Total runs: 1.4K
Run Growth: -418
Growth Rate: -29.67%
Updated:December 31 2022
huggingface.co

Total runs: 763
Run Growth: -365
Growth Rate: -47.77%
Updated:February 07 2024
huggingface.co

Total runs: 510
Run Growth: -79
Growth Rate: -15.34%
Updated:July 13 2026
huggingface.co

Total runs: 510
Run Growth: 506
Growth Rate: 99.02%
Updated:October 13 2025
huggingface.co

Total runs: 486
Run Growth: 74
Growth Rate: 15.45%
Updated:April 18 2023
huggingface.co

Total runs: 483
Run Growth: 286
Growth Rate: 60.47%
Updated:April 02 2024
huggingface.co

Total runs: 471
Run Growth: -282
Growth Rate: -54.55%
Updated:May 23 2025
huggingface.co

Total runs: 445
Run Growth: 129
Growth Rate: 28.67%
Updated:July 13 2026
huggingface.co

Total runs: 421
Run Growth: -55
Growth Rate: -13.00%
Updated:July 13 2026
huggingface.co

Total runs: 415
Run Growth: 9
Growth Rate: 2.23%
Updated:August 11 2026
huggingface.co

Total runs: 409
Run Growth: -13
Growth Rate: -3.13%
Updated:October 27 2023
huggingface.co

Total runs: 409
Run Growth: 119
Growth Rate: 29.10%
Updated:March 07 2024
huggingface.co

Total runs: 402
Run Growth: -638
Growth Rate: -157.92%
Updated:October 24 2024
huggingface.co

Total runs: 394
Run Growth: 12
Growth Rate: 3.05%
Updated:December 25 2025
huggingface.co

Total runs: 377
Run Growth: -856
Growth Rate: -228.88%
Updated:October 23 2024
huggingface.co

Total runs: 368
Run Growth: 187
Growth Rate: 50.00%
Updated:July 13 2026
huggingface.co

Total runs: 362
Run Growth: -23
Growth Rate: -6.28%
Updated:August 11 2026
huggingface.co

Total runs: 336
Run Growth: -127
Growth Rate: -37.57%
Updated:April 10 2026
huggingface.co

Total runs: 298
Run Growth: 12
Growth Rate: 3.96%
Updated:August 18 2026
huggingface.co

Total runs: 279
Run Growth: -39
Growth Rate: -14.03%
Updated:July 13 2026
huggingface.co

Total runs: 268
Run Growth: 63
Growth Rate: 23.33%
Updated:June 06 2025
huggingface.co

Total runs: 261
Run Growth: 60
Growth Rate: 22.47%
Updated:July 13 2026
huggingface.co

Total runs: 260
Run Growth: 83
Growth Rate: 31.44%
Updated:July 13 2026
huggingface.co

Total runs: 259
Run Growth: -21
Growth Rate: -7.89%
Updated:July 13 2026
huggingface.co

Total runs: 245
Run Growth: 120
Growth Rate: 48.78%
Updated:November 28 2023
huggingface.co

Total runs: 238
Run Growth: -53
Growth Rate: -22.84%
Updated:December 25 2025
huggingface.co

Total runs: 223
Run Growth: 10
Growth Rate: 4.39%
Updated:July 17 2026
huggingface.co

Total runs: 220
Run Growth: 101
Growth Rate: 45.70%
Updated:July 13 2026
huggingface.co

Total runs: 217
Run Growth: 71
Growth Rate: 32.72%
Updated:July 13 2026
huggingface.co

Total runs: 206
Run Growth: -1.0K
Growth Rate: -505.83%
Updated:September 11 2026
huggingface.co

Total runs: 196
Run Growth: 40
Growth Rate: 20.00%
Updated:June 24 2024
huggingface.co

Total runs: 192
Run Growth: 32
Growth Rate: 16.24%
Updated:May 13 2024
huggingface.co

Total runs: 192
Run Growth: 33
Growth Rate: 16.75%
Updated:May 13 2024
huggingface.co

Total runs: 191
Run Growth: 20
Growth Rate: 10.20%
Updated:May 13 2024
huggingface.co

Total runs: 186
Run Growth: 25
Growth Rate: 13.23%
Updated:May 31 2024
huggingface.co

Total runs: 185
Run Growth: 53
Growth Rate: 28.04%
Updated:June 24 2024
huggingface.co

Total runs: 184
Run Growth: 52
Growth Rate: 28.11%
Updated:December 21 2023
huggingface.co

Total runs: 184
Run Growth: -30
Growth Rate: -17.05%
Updated:October 23 2024
huggingface.co

Total runs: 180
Run Growth: 54
Growth Rate: 29.51%
Updated:December 21 2023