CoolFace
Modelpublic

andreasmartin/apertus-v1.5-swiss-embed-4.9b-bidir

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
2likes68downloads
Model Card

Apertus v1.5 Swiss multilingual retrieval embeddings

A standalone Sentence Transformers retrieval model derived from `andreasmartin/apertus-v1.5-8b-text`. The model targets multilingual retrieval for German, English, French, Italian, Romansh, and Alemannic / Swiss German.

Model

PropertyValue
Parameters4,904,133,672 (4.904B)
Source`andreasmartin/apertus-v1.5-8b-text`
Apertus lineage`swiss-ai/Apertus-v1.5-8B`
Transformer layers20 / 32
Attentionbidirectional
Poolingmean
Projection4096 → 1024
Native embedding dimension1024
Matryoshka dimensions[1024, 768, 512, 256]
Maximum inference length1024 tokens

LoRA is used during retrieval training and fully merged before publication. The released repository is therefore a standalone model without a PEFT adapter dependency.

Training

Training uses MultipleNegativesRankingLoss with cross-device negatives and MatryoshkaLoss.

All datasets were loaded from Hugging Face at exact immutable revisions. The released data_manifest.json records source URLs, dataset commit SHAs, the recipe signature and SHA256 hashes of the processed data files.

Training data:

Actual final training set: 31,483 rows (23,149 Swiss monolingual, 6,884 cross-lingual, 1,450 multilingual preservation).

Training profile: `quality`. Configuration: 2000 steps, batch/GPU 8, learning rate 5e-05, training length 512 tokens, gradient checkpointing True, LoRA r=8, alpha=16.

Evaluation

Development evaluation uses held-out Wikipedia pairs, `eljuanina/VotingBooklets-Diamond-v1`, and a held-out SwissGov-RSD split. Diamond is evaluation-only and is therefore not listed in the datasets training metadata above.

DiagnosticDimAccuracy@1Recall@10nDCG@10MRR@10
Swiss monolingual10240.86250.95420.90590.8906
Swiss monolingual5120.86250.95420.90490.8895
Swiss cross-lingual10240.32920.98960.70350.6061
Swiss cross-lingual5120.32920.98960.70370.6065

Monolingual development queries: 480 Cross-lingual development queries: 480

These are internal development diagnostics, not MTEB/MMTEB benchmark claims.

Usage

python
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("andreasmartin/apertus-v1.5-swiss-embed-4.9b-bidir")

queries = model.encode_query([
    "Welche Aufgaben hat der Bundesrat?"
])

documents = model.encode_document([
    "Le Conseil fédéral est l'autorité exécutive suprême de la Confédération suisse.",
    "Der Nationalrat ist die grosse Kammer der Bundesversammlung.",
])

scores = model.similarity(queries, documents)
print(scores)

For compact Matryoshka embeddings:

python
embeddings = model.encode_query(texts, truncate_dim=512)

Limitations

  • —Wikipedia title→paragraph pairs are pseudo-retrieval supervision.
  • —Parallel passages provide semantic alignment rather than natural search queries.
  • —Alemannic / Swiss German has monolingual but no explicit parallel supervision.
  • —External MTEB/MMTEB/MIRACL and Swiss/domain-specific evaluation is required for comparative quality claims.

License and attribution

Apertus is developed by the Swiss AI Initiative. This is an independent retrieval adaptation and not an official Swiss AI Initiative embedding release.

The direct source model is andreasmartin/apertus-v1.5-8b-text. Available license and usage-policy files from the source repository are copied into this model repository. See the linked Hugging Face dataset cards for dataset licensing and attribution.