USER-bge-m3 INT8 for Manticore Search auto-embeddings
deepvk/USER-bge-m3 (Russian, 1024 dimensions), INT8-quantized, repackaged so that Manticore Search (tested on 29.0.2) can download and run it by itself:
CREATE TABLE hotels (
doc TEXT,
vec FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='cosine'
MODEL_NAME='<this repo>' FROM='doc'
);
No prefixes are needed for queries or documents, as in the original model.
Why not the original files
Manticore runs ONNX models with fixed assumptions that the available exports do not meet:
| Manticore 29.0.2 | Change in this repo |
|---|---|
always feeds a token_type_ids input |
an unused token_type_ids input is added to the graph |
| averages token outputs (mean pooling), while USER-bge-m3 is trained on the first token (CLS) | the CLS vector is written to every output position, so the mean equals CLS |
| cannot read the tokenizer of newer exports (Metaspace with split) | tokenizer.json of the original deepvk model, truncation to 512 tokens |
On our hotel-search test set the CLS fix matters: plain mean pooling drops precision@10 from 0.40 to 0.30. Texts longer than 512 tokens are truncated: beyond that the vectors diverge from the original model.
Sources
- Weights: skatzR/USER-BGE-M3-ONNX-INT8
model_quantized.onnx, revision4c89cf5351b21965791ef223c6d2f8d045474be0(dynamic INT8 quantization of deepvk/USER-bge-m3, apache-2.0). - Tokenizer: deepvk/USER-bge-m3
tokenizer.json, revision0cc6cfe48e260fb0474c753087a69369e88709ae(apache-2.0).
Files
| File | sha256 |
|---|---|
onnx/model.onnx |
cef7d932fcdb2a2868b341e145c3b6b09b26f0da935f2432280361475a2e1fa9 |
tokenizer.json |
9419ceafb14c4fd1139a1ab46c14b59ca26db66ba2400fb930da574910d569c3 |
config.json |
eaf18a810dc4882eac88772c6e76fc30ddfa0fbca2dfb1ad40f60346f1aa6d86 |
Manticore always downloads the main branch. Files here are never replaced: a rebuilt model goes to a new
repository, so stored vectors never mix with vectors of a different model.
License
Apache 2.0, as the original model and the INT8 quantization.