alt.freeweights.embed / ruri-v3-30m-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.embedSubject:

ruri-v3-30m-ONNX

Date: 2026-11-15Commit: 1b41a27Signed: 2DC28CC7B26A283B ✓

Sentence similarity model. Onnx weights, 614 MB in all. Published by onnx-community under Apache-2.0.

embed614MBruri-v3-30m-ONNXonnxpermissive
FactsParamsnot statedSize614 MBFormatsonnxTasksentence similarityLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/ruri-v3-30m-ONNX
# manifest sha256 af0e2c214a62… · 614 MB · 11 files
$ fw verify ./ruri-v3-30m-ONNX onnx-community/ruri-v3-30m-ONNX
From sourceHosted (signed)onnx-community/ruri-v3-30m-ONNXLast check: 2026-11-15 05:15 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of ruri-v3-30m.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Evaluate with

Scan with

Overview

Size
614 MB
Weights
37.0 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
sentence similarity
License
Apache-2.0 (permissive)
Files
11, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

Base model: cl-nagoya/ruri-v3-30m

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:15 UTCpassed

Model card

From the publisher at commit 1b41a27. Shown as plain text with links; images open at the publisher.

ruri-v3-30m (ONNX)#

This is an ONNX version of cl-nagoya/ruri-v3-30m. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for sentence-similarity: https://huggingface.co/docs/transformers.js/api/pipelines


Ruri: Japanese General Text Embeddings#

Ruri v3 is a general-purpose Japanese text embedding model built on top of ModernBERT-Ja. Ruri v3 offers several key technical advantages:

  • State-of-the-art performance for Japanese text embedding tasks.
  • Supports sequence lengths up to 8192 tokens
    • Previous versions of Ruri (v1, v2) were limited to 512.
  • Expanded vocabulary of 100K tokens, compared to 32K in v1 and v2
    • The larger vocabulary make input sequences shorter, improving efficiency.
  • Integrated FlashAttention, following ModernBERT's architecture
    • Enables faster inference and fine-tuning.
  • Tokenizer based solely on SentencePiece
    • Unlike previous versions, which relied on Japanese-specific BERT tokenizers and required pre-tokenized input, Ruri v3 performs tokenization with SentencePiece only—no external word segmentation tool is required.

Model Series#

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" sentence-transformers

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
import torch.nn.functional as F
from sentence_transformers import SentenceTransformer

# Download from the 🤗 Hub
device = "cuda" if torch.cuda.is_available() else "cpu"
model = SentenceTransformer("cl-nagoya/ruri-v3-30m", device=device)

# 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, 256]

similarities = F.cosine_similarity(embeddings.unsqueeze(0), embeddings.unsqueeze(1), dim=2)
print(similarities)
# [[1.0000, 0.9540, 0.8512, 0.7322, 0.7274],
#  [0.9540, 1.0000, 0.8531, 0.7437, 0.7305],
#  [0.8512, 0.8531, 1.0000, 0.8910, 0.8649],
#  [0.7322, 0.7437, 0.8910, 1.0000, 0.9479],
#  [0.7274, 0.7305, 0.8649, 0.9479, 1.0000]]

Benchmarks#

JMTEB#

Evaluated with JMTEB.

|Model|#Param.|Avg.|Retrieval|STS|Classfification|Reranking|Clustering|PairClassification|

|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|

||||||||||

|Ruri-v3-30m (this model)|37M|74.51|78.08|82.48|74.80|93.00|52.12|62.40|

|Ruri-v3-70m|70M|75.48|79.96|79.82|76.97|93.27|52.70|61.75|

|Ruri-v3-130m|132M|76.55|81.89|79.25|77.16|93.31|55.36|62.26|

|Ruri-v3-310m|315M|77.24|81.89|81.22|78.66|93.43|55.69|62.60|

||||||||||

|sbintuitions/sarashina-embedding-v1-1b|1.22B|75.50|77.61|82.71|78.37|93.74|53.86|62.00|

|PLaMo-Embedding-1B|1.05B|76.10|79.94|83.14|77.20|93.57|53.47|62.37|

||||||||||

|OpenAI/text-embedding-ada-002|-|69.48|64.38|79.02|69.75|93.04|48.30|62.40|

|OpenAI/text-embedding-3-small|-|70.86|66.39|79.46|73.06|92.92|51.06|62.27|

|OpenAI/text-embedding-3-large|-|73.97|74.48|82.52|77.58|93.58|53.32|62.35|

||||||||||

|pkshatech/GLuCoSE-base-ja|133M|70.44|59.02|78.71|76.82|91.90|49.78|66.39|

|pkshatech/GLuCoSE-base-ja-v2|133M|72.23|73.36|82.96|74.21|93.01|48.65|62.37|

|retrieva-jp/amber-base|130M|72.12|73.40|77.81|76.14|93.27|48.05|64.03|

|retrieva-jp/amber-large|315M|73.22|75.40|79.32|77.14|93.54|48.73|60.97|

||||||||||

|sentence-transformers/LaBSE|472M|64.70|40.12|76.56|72.66|91.63|44.88|62.33|

|intfloat/multilingual-e5-small|118M|69.52|67.27|80.07|67.62|93.03|46.91|62.19|

|intfloat/multilingual-e5-base|278M|70.12|68.21|79.84|69.30|92.85|48.26|62.26|

|intfloat/multilingual-e5-large|560M|71.65|70.98|79.70|72.89|92.96|51.24|62.15|

||||||||||

|Ruri-Small|68M|71.53|69.41|82.79|76.22|93.00|51.19|62.11|

|Ruri-Small v2|68M|73.30|73.94|82.91|76.17|93.20|51.58|62.32|

|Ruri-Base|111M|71.91|69.82|82.87|75.58|92.91|54.16|62.38|

|Ruri-Base v2|111M|72.48|72.33|83.03|75.34|93.17|51.38|62.35|

|Ruri-Large|337M|73.31|73.02|83.13|77.43|92.99|51.82|62.29|

|Ruri-Large v2|337M|74.55|76.34|83.17|77.18|93.21|52.14|62.27|

Model Details#

Model Description#
Full Model Architecture#
SentenceTransformer(
  (0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: ModernBertModel 
  (1): Pooling({'word_embedding_dimension': 256, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)

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.

Files

11 files · 614 MBWeights 37.0 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md8.39 KBd91d63176ccc02ceebb20709f6e325822854ccd9c1a5e33f6ce0ee5280ecc2ed
config.json1.18 KB1517ea80eb6af7e181f4ed59827a4ae9de20f383d74a82900227c4cb5d903787
onnx/model.onnx147 MB5ffd75c4d39c2d783efc46f45c1b5c9b0e19699e2b2b60396ae45dbd7d8ef869
onnx/model_bnb4.onnx112 MBbed08282738200f1a16192df55e87113d821591a85ddfb087017d61d67bb4abe
onnx/model_fp16.onnx73.7 MB6473afcb5a2a31c0b55a0817014371ad594a2b0ec642fa31e79f0f8480ea34ac
onnx/model_int8.onnx37.0 MBbd07545fa4eb8e7765939536944da1138a7e61441d81633adfa1faf218df6bb1
onnx/model_q4.onnx112 MBbed08282738200f1a16192df55e87113d821591a85ddfb087017d61d67bb4abe
onnx/model_q4f16.onnx58.6 MB778e164c0a5a6de1513c01fbdb2354a7306b2d11c7e39e66bcf90e768d0bb6f8
onnx/model_quantized.onnx37.0 MBbd07545fa4eb8e7765939536944da1138a7e61441d81633adfa1faf218df6bb1
onnx/model_uint8.onnx37.0 MBbc9524f67a5852d8fa9d1aa708f5c7f001e3703110cb71a0c82b87e7cafbb070
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
1b41a27f31 pinned now2026-11-15 05:15 UTC11 files · 614 MB

Use it

$ fw get onnx-community/ruri-v3-30m-ONNX
# manifest sha256 af0e2c214a62… · 614 MB · 11 files
$ fw verify ./ruri-v3-30m-ONNX onnx-community/ruri-v3-30m-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/ruri-v3-30m-ONNX.json --dir ./ruri-v3-30m-ONNX $ python3 fw.py verify ./ruri-v3-30m-ONNX ./onnx-community__ruri-v3-30m-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/ruri-v3-30m-ONNX --revision 1b41a27f31213fc55a9c4653c067770e39406408 --local-dir ./ruri-v3-30m-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
d91d63176ccc02ceebb20709f6e325822854ccd9c1a5e33f6ce0ee5280ecc2ed
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.embedSubject: ruri-v3-30m-ONNXDate: 2026-11-15Commit: 1b41a27Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/ruri-v3-30m-ONNX
Pinned commit
1b41a27f31213fc55a9c4653c067770e39406408
Manifest
ruri-v3-30m-ONNX.json · .minisig
Manifest sha256
af0e2c214a62b4488f5509263069975d9d1d022407533d6fd4a0b236c962688e
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:15 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/ruri-v3-30m-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/ruri-v3-30m-ONNX.json.minisig $ minisign -Vm ruri-v3-30m-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

cl-nagoya/ruri-v3-30m · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/ruri-v3-30m-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. ruri-v3-30m-ONNX.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens