Model reference · open weights

sarashina-embedding

Available as managed deployment Licence fee Embeddings sbintuitions Embeddings 1 variants 392k dl/mo

sarashina-embedding is an open-weight embedding model from sbintuitions. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released bysbintuitions
TypeEmbedding models
TaskEmbeddings
Parameters (lead)1.2B
Context8k tokens
Runs withsentence-transformers
Released2024-11-22
Popularity392k downloads / month
LicenceCommercial licence needed

About

What sarashina-embedding is

日本語のREADME/Japanese README

"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.

Read the full model card

Model Details

Model Description

Full Model Architecture

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})
)

Usage

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

  • You do not need to add prefixes such as "Query: " and "Document: " to the beginning of the input sentence.
  • This model is licensed under the Sarashina Model NonCommercial License Agreement, which has restrictions on commercial use. If you are interested in utilizing this model for your business, please feel free to contact us through our contact page.

Training

"Sarashina-Embedding-v1-1B" is created through the following two-stage learning process:

Stage 1: Weakly-supervised Learning

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.

Datasets
datasetcounts
Auto Wiki QA/NLI50,521,135
web-crawled data (ours)47,370,649
MQA12,941,472
llm-japanese-dataset9,074,340
Wikipedia5,555,212
Quiz dataset (ours)988,478
Natural Questions132,796
JSQuAD62,859
SNOW(T15+T23)62,758
JaQuAD31,746
MKQA3,318
total126,744,763

Step2: Supervised Fine-tuning

To enable the model to learn a more accurate query-document similarity, we performed supervised fine-tuning using the following datasets.

Datasets
datasetcounts
JSNLI141,388
NU-MNLI67,987
Mr. TyDi (only Japanese subset)3,697
Natural Questions (sampled)20,000
total233,072

Evaluation Results with JMTEB

ModelMax TokensAvg.RetrievalSTSClassificationRerankingClusteringPairClassification
OpenAI/text-embedding-3-large[^oai]819174.0574.4882.5277.5893.5853.3262.35
cl-nagoya/ruri-large51273.3173.0283.1377.4392.9951.8262.29
pkshatech/GLuCoSE-base-ja-v251272.2373.3682.9674.2193.0148.6562.37
pkshatech/RoSEtta-base-ja102472.0473.2181.3972.4192.6953.2361.74
[intflo

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys sarashina-embedding for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (sarashina-embedding below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"sarashina-embedding","input":"text to embed"}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms