Downloads · 30 days
0
inference4j/ms-marco-MiniLM-L-6-v2
ms-marco-MiniLM-L-6-v2 is a text classification model from inference4j. Use it when you need a label for a piece of text. It is set up for onnx. The card lists the license as apache-2.0.
ONNX export of ms-marco-MiniLM-L-6-v2, a cross-encoder model trained on MS MARCO passage ranking data. Scores query-document pairs for search result reranking.
Downloads · 30 days
0
Access
Public
Updated Feb 13, 2026
Repo size
91 MB
Likes
0
Public
Click a slice to open those files.
.onnx91 MB · 100%
From the Hugging Face model README
ONNX export of ms-marco-MiniLM-L-6-v2, a cross-encoder model trained on MS MARCO passage ranking data. Scores query-document pairs for search result reranking.
Mirrored for use with inference4j, an inference-only AI library for Java.
try (MiniLMReranker reranker = MiniLMReranker.fromPretrained("models/ms-marco-MiniLM-L-6-v2")) {
float score = reranker.score("What is Java?", "Java is a programming language.");
System.out.printf("Relevance score: %.4f%n", score);
}
| Property | Value |
|---|---|
| Architecture | MiniLM-L6 cross-encoder (6 layers, 384 hidden) |
| Task | Query-document relevance scoring / search reranking |
| Training data | MS MARCO passage ranking |
| Max sequence length | 512 |
| Output | Single relevance score per query-document pair |
| Original framework | PyTorch (sentence-transformers cross-encoder) |
| ONNX export | By Xenova (Transformers.js) |
This model is licensed under the Apache License 2.0. Original model by sentence-transformers, ONNX export by Xenova.