Downloads · 30 days
163
8% of all-time downloads
seansitter/bge-m3-safetensors
bge-m3-safetensors is a feature extraction model from seansitter. Use it when you need embeddings to search or compare text. It is set up for sentence-transformers. The card lists the license as mit.
This is a drop-in replacement for BAAI/bge-m3 that ships the model weights as model.safetensors with bare key names (no model. prefix), suitable for use with vLLM's transformers backend for dense embedding inference.
Downloads · 30 days
163
8% of all-time downloads
All-time downloads
2K
Public
Parameters
568M
2.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.3 GB · 99%
From the Hugging Face model README
This is a drop-in replacement for BAAI/bge-m3 that ships the model weights as model.safetensors with bare key names (no model. prefix), suitable for use with vLLM's transformers backend for dense embedding inference.
The upstream BAAI/bge-m3 repo only ships pytorch_model.bin. vLLM's native XLM-RoBERTa pooling implementation has a weight-name mapping bug that leaves LayerNorm and embedding parameters uninitialized — using --model-impl transformers (which calls HF AutoModel directly) works around it, but that path requires safetensors with bare-key names, which the upstream repo doesn't provide. This repo solves that.
All other files (config, tokenizer, sentence-transformers pooling config) are unchanged from the upstream release. The original pytorch_model.bin and auxiliary heads (colbert_linear.pt, sparse_linear.pt) are omitted — dense-embedding inference doesn't need them.
vllm serve seansitter/bge-m3-safetensors \
--runner pooling \
--load-format safetensors \
--model-impl transformers \
--trust-remote-code \
--max-model-len 8192 \
--port 8001
BAAI/bge-m3 (MIT license)pytorch_model.bin → model.safetensors with bare keys (stripped model. prefix from all parameter names)Use the original BAAI/bge-m3 citation:
@misc{bge-m3,
title={BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation},
author={Chen, Jianlv and Xiao, Shitao and Zhang, Peitian and Luo, Kun and Lian, Defu and Liu, Zheng},
year={2024},
eprint={2402.03216},
archivePrefix={arXiv}
}