cl-nagoya / ruri-v3-pt-310m

huggingface.co
Total runs: 647
24-hour runs: -30
7-day runs: -693
30-day runs: -156
Model's Last Updated: April 18 2025
sentence-similarity

Introduction of ruri-v3-pt-310m

Model Details of ruri-v3-pt-310m

Ruri: Japanese General Text Embeddings

⚠️Notes: This model is a pretrained version and has not been fine-tuned.
For the fine-tuned version, please use cl-nagoya/ruri-v3-310m !

Fine-tuned Model Series

Ruri v3 is a general-purpose Japanese text embedding model built on top of ModernBERT-Ja . We provide Ruri-v3 in several model sizes. Below is a summary of each model.

ID #Param. #Param.
w/o Emb.
Dim. #Layers Avg. JMTEB
cl-nagoya/ruri-v3-30m 37M 10M 256 10 74.51
cl-nagoya/ruri-v3-70m 70M 31M 384 13 75.48
cl-nagoya/ruri-v3-130m 132M 80M 512 19 76.55
cl-nagoya/ruri-v3-310m 315M 236M 768 25 77.24
Usage

You can use our models directly with the transformers library v4.48.0 or higher:

pip install -U "transformers>=4.48.0"

Additionally, if your GPUs support Flash Attention 2, we recommend using our models with Flash Attention 2.

pip install flash-attn --no-build-isolation

Then you can load this model and run inference.

import torch.nn.functional as F
from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("cl-nagoya/ruri-v3-pt-310m")

# Ruri v3 employs a 1+3 prefix scheme to distinguish between different types of text inputs:
# "" (empty string) is used for encoding semantic meaning.
# "トピック: " is used for classification, clustering, and encoding topical information.
# "検索クエリ: " is used for queries in retrieval tasks.
# "検索文書: " is used for documents to be retrieved.
sentences = [
    "川べりでサーフボードを持った人たちがいます",
    "サーファーたちが川べりに立っています",
    "トピック: 瑠璃色のサーファー",
    "検索クエリ: 瑠璃色はどんな色?",
    "検索文書: 瑠璃色(るりいろ)は、紫みを帯びた濃い青。名は、半貴石の瑠璃(ラピスラズリ、英: lapis lazuli)による。JIS慣用色名では「こい紫みの青」(略号 dp-pB)と定義している[1][2]。",
]

embeddings = model.encode(sentences, convert_to_tensor=True)
print(embeddings.size())
# [5, 768]

similarities = F.cosine_similarity(embeddings.unsqueeze(0), embeddings.unsqueeze(1), dim=2)
print(similarities)
Citation
@misc{
  Ruri,
  title={{Ruri: Japanese General Text Embeddings}}, 
  author={Hayato Tsukagoshi and Ryohei Sasano},
  year={2024},
  eprint={2409.07737},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  url={https://arxiv.org/abs/2409.07737}, 
}
License

This model is published under the Apache License, Version 2.0 .

Runs of cl-nagoya ruri-v3-pt-310m on huggingface.co

647
Total runs
-30
24-hour runs
-681
3-day runs
-693
7-day runs
-156
30-day runs

More Information About ruri-v3-pt-310m huggingface.co Model

More ruri-v3-pt-310m license Visit here:

https://choosealicense.com/licenses/apache-2.0

ruri-v3-pt-310m huggingface.co

ruri-v3-pt-310m huggingface.co is an AI model on huggingface.co that provides ruri-v3-pt-310m's model effect (), which can be used instantly with this cl-nagoya ruri-v3-pt-310m model. huggingface.co supports a free trial of the ruri-v3-pt-310m model, and also provides paid use of the ruri-v3-pt-310m. Support call ruri-v3-pt-310m model through api, including Node.js, Python, http.

ruri-v3-pt-310m huggingface.co Url

https://huggingface.co/cl-nagoya/ruri-v3-pt-310m

cl-nagoya ruri-v3-pt-310m online free

ruri-v3-pt-310m huggingface.co is an online trial and call api platform, which integrates ruri-v3-pt-310m's modeling effects, including api services, and provides a free online trial of ruri-v3-pt-310m, you can try ruri-v3-pt-310m online for free by clicking the link below.

cl-nagoya ruri-v3-pt-310m online free url in huggingface.co:

https://huggingface.co/cl-nagoya/ruri-v3-pt-310m

ruri-v3-pt-310m install

ruri-v3-pt-310m is an open source model from GitHub that offers a free installation service, and any user can find ruri-v3-pt-310m on GitHub to install. At the same time, huggingface.co provides the effect of ruri-v3-pt-310m install, users can directly use ruri-v3-pt-310m installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ruri-v3-pt-310m install url in huggingface.co:

https://huggingface.co/cl-nagoya/ruri-v3-pt-310m

Url of ruri-v3-pt-310m

ruri-v3-pt-310m huggingface.co Url

Provider of ruri-v3-pt-310m huggingface.co

cl-nagoya
ORGANIZATIONS

Other API from cl-nagoya

huggingface.co

Total runs: 206.9K
Run Growth: -175.0K
Growth Rate: -84.59%
Updated:April 17 2025
huggingface.co

Total runs: 22.7K
Run Growth: -18.0K
Growth Rate: -79.16%
Updated:April 17 2025
huggingface.co

Total runs: 19.6K
Run Growth: 4.7K
Growth Rate: 23.96%
Updated:April 15 2025
huggingface.co

Total runs: 17.0K
Run Growth: 7.1K
Growth Rate: 41.81%
Updated:April 15 2025
huggingface.co

Total runs: 1.2K
Run Growth: -3.2K
Growth Rate: -261.24%
Updated:April 15 2025