Views
No views yet
swiss-ai/Apertus-v1.1-0.5B.
The model targets multilingual retrieval for German, English, French, Italian,
Romansh, and Alemannic / Swiss German.| Property | Value |
|---|---|
| Parameters | 439,397,928 (0.439B) |
| Source | swiss-ai/Apertus-v1.1-0.5B |
| Apertus lineage | swiss-ai/Apertus-8B-2509 |
| Transformer layers | 20 / 20 |
| Attention | bidirectional |
| Pooling | mean |
| Projection | 1024 → 1024 |
| Native embedding dimension | 1024 |
| Matryoshka dimensions | [1024, 768, 512, 256] |
| Maximum inference length | 1024 tokens |
MultipleNegativesRankingLoss with cross-device negatives and
MatryoshkaLoss.data_manifest.json records source URLs, dataset commit SHAs, the recipe signature and SHA256
hashes of the processed data files.wikimedia/wikipedia:
monolingual Swiss-core retrieval pairs plus a small multilingual preservation replay.eljuanina/VotingBooklets-v1:
DE/FR/IT/RM cross-lingual alignment.ZurichNLP/SwissGov-RSD:
EN↔DE/FR/IT cross-lingual alignment.quality. Configuration: 2000 steps,
batch/GPU 16, learning rate 5e-05,
training length 512 tokens, gradient checkpointing
True, LoRA r=8, alpha=16.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.| Diagnostic | Dim | Accuracy@1 | Recall@10 | nDCG@10 | MRR@10 |
|---|---|---|---|---|---|
| Swiss monolingual | 1024 | 0.8042 | 0.9271 | 0.8638 | 0.8439 |
| Swiss monolingual | 512 | 0.7958 | 0.9250 | 0.8594 | 0.8386 |
| Swiss cross-lingual | 1024 | 0.2812 | 0.9437 | 0.6346 | 0.5326 |
| Swiss cross-lingual | 512 | 0.2667 | 0.9396 | 0.6242 | 0.5203 |
1from sentence_transformers import SentenceTransformer
2
3model = SentenceTransformer("andreasmartin/apertus-v1.1-swiss-embed-0.4b-bidir")
4
5queries = model.encode_query([
6 "Welche Aufgaben hat der Bundesrat?"
7])
8
9documents = model.encode_document([
10 "Le Conseil fédéral est l'autorité exécutive suprême de la Confédération suisse.",
11 "Der Nationalrat ist die grosse Kammer der Bundesversammlung.",
12])
13
14scores = model.similarity(queries, documents)
15print(scores)embeddings = model.encode_query(texts, truncate_dim=512)swiss-ai/Apertus-v1.1-0.5B. 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.