Downloads · 30 days
0
inference4j/all-MiniLM-L6-v2
all-MiniLM-L6-v2 is a sentence similarity model from inference4j. Use it when you need a score for how close two texts are. It is set up for onnx. The card lists the license as apache-2.0.
ONNX export of all-MiniLM-L6-v2, a sentence-transformers model that maps sentences to a 384-dimensional dense vector space. Fine-tuned on a 1B+ sentence pairs dataset using a self-supervised contrastive learning objec…
Downloads · 30 days
0
Access
Public
Updated Feb 13, 2026
Repo size
90.4 MB
Likes
0
Public
Click a slice to open those files.
.onnx90.4 MB · 100%
From the Hugging Face model README
ONNX export of all-MiniLM-L6-v2, a sentence-transformers model that maps sentences to a 384-dimensional dense vector space. Fine-tuned on a 1B+ sentence pairs dataset using a self-supervised contrastive learning objective.
Mirrored for use with inference4j, an inference-only AI library for Java.
try (SentenceTransformer model = SentenceTransformer.fromPretrained("models/all-MiniLM-L6-v2")) {
float[] embedding = model.encode("Hello, world!");
System.out.println("Dimension: " + embedding.length); // 384
}
| Property | Value |
|---|---|
| Architecture | MiniLM-L6 (6 layers, 384 hidden) |
| Task | Sentence embeddings / semantic similarity |
| Output dimension | 384 |
| Max sequence length | 256 |
| Training data | 1B+ sentence pairs |
| Original framework | PyTorch (sentence-transformers) |
This model is licensed under the Apache License 2.0. Original model by sentence-transformers.