This is a weight-only int8 quantisation of the
cross-encoder/ms-marco-MiniLM-L6-v2
reranker (formerly ms-marco-MiniLM-L-6-v2) at revision
c5ee24cb16019beea0893ab7796b1df96625c6b8. Given a query and a passage, it
returns one relevance logit.
It is the reranker the Remanence memory engine loads in process. The engine's full image carries these files: when the image is built, they are downloaded from a pinned revision of this repository and checked against the SHA-256 values below. The slim image carries none. The reranker is off by default. When it is enabled in process, the engine downloads any missing file from the same revision at start, unless it runs offline, and keeps a downloaded file only if its SHA-256 matches. With either image, each time the engine starts with the reranker enabled in process, it checks every file against the SHA-256 values below before loading it.
cross-encoder/ms-marco-MiniLM-L6-v2 @
c5ee24cb16019beea0893ab7796b1df96625c6b8. The FP32 ONNX export it
publishes is onnx/model.onnx; tokenizer.json is used unchanged.LICENSE here holds the Apache License
2.0 text, with a note naming the source and revision. This derivative is
distributed under the same licence. The modification is the int8 weight-only
quantisation described below.datasets: sentence-transformers/msmarco), and names
cross-encoder/ms-marco-MiniLM-L12-v2 as its base model. Microsoft's terms
for that dataset are reproduced under MS MARCO below.Fetch the source files at the pinned revision, and check each against its SHA-256 before use:
| upstream file | SHA-256 |
|---|---|
onnx/model.onnx |
5d3e70fd0c9ff14b9b5169a51e957b7a9c74897afd0a35ce4bd318150c1d4d4a |
tokenizer.json |
d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66 |
Quantise with onnxruntime's MatMulNBitsQuantizer: bits=8,
block_size=128, is_symmetric=True.
MatMulNBits with 8-bit weights.model.onnx.Environment, all pinned:
python@sha256:e697c81897302a4c4333bade000d98038fbb21eb064f8ee1fd42d02ebcd9d337;onnx==1.23.2, onnxruntime==1.31.1, numpy==2.5.4, onnx-ir==1.1.0
and tokenizers==0.23.3.| file | bytes | SHA-256 |
|---|---|---|
model.onnx |
59497949 | 7ae515e4f03531eecee91033f00ef2d9d5bae44deeb1d4317728f5d854af3b3c |
tokenizer.json |
711396 | d241a60d5e8f04cc1b2b3e9ef7a4921b27bf526d9f6050ab90f9267a1f9e5c66 |
tokenizer.json is the source's file, byte for byte.
input_ids,
attention_mask and token_type_ids (int64, [batch, sequence]).This repository does not contain the MS MARCO dataset. The source model was trained on it, as stated above. Microsoft's terms for the dataset, verbatim from https://microsoft.github.io/msmarco/ ("Terms and Conditions"):
The MS MARCO datasets are intended for non-commercial research purposes only to promote advancement in the field of artificial intelligence and related areas, and is made available free of charge without extending any license or other intellectual property rights. The dataset is provided “as is” without warranty and usage of the data has risks since we may not own the underlying rights in the documents. We are not be liable for any damages related to use of the dataset. Feedback is voluntarily given and can be used as we see fit. Upon violation of any of these terms, your rights to use the dataset will end automatically.
cross-encoder/ms-marco-MiniLM-L6-v2