Downloads · 30 days
183
27% of all-time downloads
litillabs/octen-law-8b-v1
octen-law-8b-v1 is a feature extraction model from litillabs. Use it when you need embeddings to search or compare text. It is set up for sentence-transformers. The card lists the license as apache-2.0.
Octen Law 8B v1 is a 7.57B-parameter multilingual dense encoder for legal retrieval. It is built from Octen/Octen-Embedding-8B and produces one normalized 4,096-dimensional vector for each query or document.
Downloads · 30 days
183
27% of all-time downloads
All-time downloads
689
Public
Parameters
7.6B
15.1 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors15.1 GB · 100%
From the Hugging Face model README
Octen Law 8B v1 is a 7.57B-parameter multilingual dense encoder for legal
retrieval. It is built from
Octen/Octen-Embedding-8B
and produces one normalized 4,096-dimensional vector for each query or
document.
The release is one merged SentenceTransformers model. It does not require a runtime adapter, reranker, router, retrieval sidecar, or ensemble.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer(
"litillabs/octen-law-8b-v1",
model_kwargs={"torch_dtype": "bfloat16"},
)
queries = model.encode(
["Which statute governs this legal issue?"],
prompt_name="query",
normalize_embeddings=True,
)
documents = model.encode(
["The relevant statutory provision is ..."],
prompt_name="document",
normalize_embeddings=True,
)
scores = queries @ documents.T
We post-trained the base model with LoRA on 48,141 public and synthetic English, German, and Chinese legal retrieval examples, then merged the adapter into the model. The checkpoint was selected with held-out retention checks. The eight official MTEB Law scores were not used to choose it.
The training pack included 42,000 rows from public training assets released by
Hanno Labs: 20,000 German query-passage
pairs and 12,000 Chinese case-pair rows from
Hanno-Labs/legal-retrieval-pairs-v2,
plus 10,000 German Wikipedia query-passage pairs from
Hanno-Labs/legal-retrieval-pairs-dewiki.
Hanno Labs created and released those retrieval pairs; we credit Hanno Labs and
Clause Logic Inc. for that work. The remaining 6,141 rows came from
LegalPincite, CUAD, and WikiQA training data.
Because Hanno's released training assets make up a substantial part of this model's post-training data and were also used for Dinghy, this result should not be read as an independent training-data comparison with Hanno Labs. A separate independently sourced run is forthcoming.
The training-data audit found six benchmark-adjacent near-duplicate relationships involving GerDaLIRSmall and LeCaRDv2. Those two task scores should not be treated as results from a fully independent holdout.
Evaluation used the official test split and cosine similarity for each task.
| Task | nDCG@10 |
|---|---|
| AILACasedocs | 0.63978 |
| AILAStatutes | 0.95500 |
| GerDaLIRSmall | 0.47855 |
| LeCaRDv2 | 0.75709 |
| LegalBenchConsumerContractsQA | 0.84990 |
| LegalBenchCorporateLobbying | 0.95849 |
| LegalQuAD | 0.74046 |
| LegalSummarization | 0.76270 |
| Macro mean | 0.76774625 |
This model retrieves text. It does not determine whether an authority is current, binding, overruled, or controlling in the relevant jurisdiction. This release only tested English, German, and Chinese legal retrieval.
Apache License 2.0, following the Octen and Qwen3 embedding lineage.