BAAI/bge-reranker-v2-m3, a multilingual cross-encoder reranker, with int8 weights.
This is an unofficial conversion. It is not made, reviewed or endorsed by the authors of BAAI/bge-reranker-v2-m3. All credit for the model belongs to them; please cite their work (below). Converted with optimum-intel (optimum-cli export openvino, 8-bit weight compression) and the OpenVINO tokenizer converter; no fine-tuning or other change to the model.
hf download jermalk/bge-reranker-v2-m3-int8-ov --local-dir /opt/rustedvino/models/bge-reranker-v2-m3-int8-ov
rv add bge-reranker-v2-m3-int8-ov --kind reranking
Measured on one Intel Core Ultra 7 laptop with the model forced onto the CPU: about 0.5 s per passage of ~200 tokens, 1.0 GB of RAM in use (CPU). Treat figures as orders of magnitude (they moved up to 25% between runs).
Multilingual. On Polish it did no harm to a good e5 ranking, while the English-only ms-marco-MiniLM made it much worse. CPU reranking is slow: rerank a short candidate list (5-10 passages), not dozens.
If you find this repository useful, please consider giving a star and citation
@misc{li2023making,
title={Making Large Language Models A Better Foundation For Dense Retrieval},
author={Chaofan Li and Zheng Liu and Shitao Xiao and Yingxia Shao},
year={2023},
eprint={2312.15503},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
@misc{chen2024bge,
title={BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation},
author={Jianlv Chen and Shitao Xiao and Peitian Zhang and Kun Luo and Defu Lian and Zheng Liu},
year={2024},
eprint={2402.03216},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
openvino_model.bin 570 MBopenvino_tokenizer.bin 6 MBopenvino_detokenizer.bin 4 MBBAAI/bge-reranker-v2-m3