Downloads · 30 days
0
Chottokun/ruri-v3-70m-lite
ruri-v3-70m-lite is a feature extraction model from Chottokun. Use it when you need embeddings to search or compare text. The card lists the license as apache-2.0.
An ultra-optimized, lightweight Japanese text embedding model derived from cl-nagoya/ruri-v3-70m (ModernBERT-based, 384-dim). Engineered strictly with sentencepiecelite + onnxruntime + numpy — 100% PyTorch-free (Zero-…
Downloads · 30 days
0
Access
Public
Updated Sep 24, 2026
Repo size
708 MB
Likes
0
Public
Click a slice to open those files.
.onnx420 MB · 59%
From the Hugging Face model README
An ultra-optimized, lightweight Japanese text embedding model derived from cl-nagoya/ruri-v3-70m (ModernBERT-based, 384-dim).
Engineered strictly with sentencepiece_lite + onnxruntime + numpy — 100% PyTorch-free (Zero-Torch) and zero compilation required (pre-built wheels provided).
sentencepiece_lite, onnxruntime (or onnxruntime-gpu), numpy, and huggingface_hub.ctypes without PyTorch overhead.End users do not need PyTorch, Transformers, or C++ compilers:
# Install pre-built wheel and runtime dependencies
pip install https://huggingface.co/Chottokun/ruri-v3-70m-lite/resolve/main/wheels/sentencepiece_lite-0.1.0-cp311-cp311-linux_x86_64.whl \
onnxruntime numpy huggingface_hub
# For GPU acceleration (CUDA)
pip install onnxruntime-gpu
from ruri_v3_lite import RuriV3Lite
import numpy as np
# Download and initialize model (automatically chooses FP16 or FP32 based on hardware)
model = RuriV3Lite(repo_id="Chottokun/ruri-v3-70m-lite")
# Sentences formatted with official ruri-v3 task prefixes
queries = ["検索クエリ: 日本の首都はどこですか?"]
documents = [
"文章: 日本の首都は東京都です。",
"文章: 大阪は関西地方の主要都市です。"
]
# Generate normalized embeddings (shape: (N, 384))
q_emb = model.encode(queries)
d_emb = model.encode(documents)
# Compute cosine similarity via dot product
similarities = np.dot(q_emb, d_emb.T)[0]
print(f"Query vs Tokyo: {similarities[0]:.4f}")
print(f"Query vs Osaka: {similarities[1]:.4f}")
This model repository, converted binaries, and wrapper scripts are distributed under the Apache License, Version 2.0 (the "License"). You may not use these files except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
In compliance with Section 4 of the Apache License 2.0:
Base Embedding Model:
.spm.fb).ruri_v3_lite.py) decoupling from PyTorch and Transformers.Tokenizer Engine:
When utilizing or evaluating this model or tokenizer, please cite the corresponding works:
@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},
}
@inproceedings{kudo-richardson-2018-sentencepiece,
title = "{S}entence{P}iece: A simple and language independent subword tokenizer and detokenizer for {N}eural {T}ext {P}rocessing",
author = "Kudo, Taku and Richardson, John",
booktitle = "Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
month = nov,
year = "2018",
address = "Brussels, Belgium",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/D18-2012",
doi = "10.18653/v1/D18-2012",
pages = "66--71",
}
A full copy of the license is included in LICENSE.