ruri-v3-130m-mlx
Model Summary
This is an MLX conversion of
cl-nagoya/ruri-v3-130m, a Japanese text embedding
model developed by the Ruri project (Nagoya University / cl-nagoya).
This is an unofficial, community-produced conversion for running the model
natively on Apple Silicon via the mlx-embeddings
package, instead of PyTorch/sentence-transformers. All credit for the original
model goes to the cl-nagoya team.
- Live demo: Ruri Atlas — explore Japanese & English sentence embeddings as a 3-D map in your browser (WebGPU), switch embedding models, toggle the reranker, and see where a prompt-injection lands. Nothing is sent to a server.
Usage
pip install -U mlx-embeddings
from mlx_embeddings import load, generate
import mlx.core as mx
model, tokenizer = load("masahiroid/ruri-v3-130m-mlx")
texts = [
"クエリ: 猫はどこにいますか?",
"文章: 猫はソファの上で寝ている。",
]
output = generate(model, tokenizer, texts=texts)
embeddings = output.text_embeds
# cosine similarity
q, d = embeddings[0], embeddings[1]
sim = mx.sum(q * d) / (mx.sqrt(mx.sum(q * q)) * mx.sqrt(mx.sum(d * d)))
print(float(sim))
Specs
| Item | Value |
|---|---|
| Base model | cl-nagoya/ruri-v3-130m |
| Architecture | ModernBERT |
| Precision | bfloat16 (no quantization) |
| Framework | MLX via mlx-embeddings |
Notes
- This is a community conversion, not an official release from the Ruri / cl-nagoya team.
Security
Audited against its upstream with model-audit-lite: weight format, bundled code, and a machine-readable lineage (ML-BOM). Details, checksums and how to reproduce: SECURITY.md.