Model reference · open weights
sarashina-embedding is an open-weight embedding model from sbintuitions. sarashina-embedding-v1-1b (FP32) weighs 2.4 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the sbintuitions/sarashina-embedding-v1-1b model card, 2026-10-01
What it is
| Released by | sbintuitions |
|---|---|
| Released | 2024-11-22 |
| Parameters | 1.2B |
| VRAM | 2.4 GB for the weights |
What it runs on
| Card | Runs | Memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
From the model card
"Sarashina-Embedding-v1-1B" is a Japanese text embedding model, based on the 1.2B-parameter Japanese LLM "Sarashina2.1-1B". We trained this model with multi-stage contrastive learning. We achieved the state-of-the-art average score across 16 datasets in JMTEB (Japanese Massive Text Embedding Benchmark).
This model maps sentences & paragraphs to a 1792-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and other applications.
SentenceTransformer(
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: LlamaModel
(1): Pooling({'word_embedding_dimension': 1792, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': True, 'include_prompt': False})
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sbintuitions/sarashina-embedding-v1-1b")
# Run inference
sentences = [
'更級日記は、平安時代中期に菅原孝標女によって書かれた回想録です。',
'Sarashinaは、SB Intuitionsが開発した日本語大規模言語モデルです。これまでに7B, 13B, 70B, 8x70Bのモデルが公開されています。',
'サラシナエンベディングは日本語言語モデルをベースにした日本語埋め込みモデルです。'
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1792]
# Get the similarity scores between the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Note
"Sarashina-Embedding-v1-1B" is created through the following two-stage learning process:
To achieve generic text embedding performance across a wide range of domains, we performed contrastive training on weakly-supervised data consisting of our own web-crawled data and open data.
| dataset | counts |
|---|---|
| Auto Wiki QA/NLI | 50,521,135 |
| web-crawled data (ours) | 47,370,649 |
| MQA | 12,941,472 |
| llm-japanese-dataset | 9,074,340 |
| Wikipedia | 5,555,212 |
| Quiz dataset (ours) | 988,478 |
| Natural Questions | 132,796 |
| JSQuAD | 62,859 |
| SNOW(T15+T23) | 62,758 |
| JaQuAD | 31,746 |
| MKQA | 3,318 |
| total | 126,744,763 |
To enable the model to learn a more accurate query-document similarity, we performed supervised fine-tuning using the following datasets.
| dataset | counts |
|---|---|
| JSNLI | 141,388 |
| NU-MNLI | 67,987 |
| Mr. TyDi (only Japanese subset) | 3,697 |
| Natural Questions (sampled) | 20,000 |
| total | 233,072 |
| Model | Max Tokens | Avg. | Retrieval | STS | Classification | Reranking | Clustering | PairClassification |
|---|---|---|---|---|---|---|---|---|
| OpenAI/text-embedding-3-large[^oai] | 8191 | 74.05 | 74.48 | 82.52 | 77.58 | 93.58 | 53.32 | 62.35 |
| cl-nagoya/ruri-large | 512 | 73.31 | 73.02 | 83.13 | 77.43 | 92.99 | 51.82 | 62.29 |
| pkshatech/GLuCoSE-base-ja-v2 | 512 | 72.23 | 73.36 | 82.96 | 74.21 | 93.01 | 48.65 | 62.37 |
| pkshatech/RoSEtta-base-ja | 1024 | 72.04 | 73.21 | 81.39 | 72.41 | 92.69 | 53.23 | 61.74 |
| [intflo |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.