ONNX Model Zoo

vlad-m-dev/distiluse-base-multilingual-v2-merged-onnx

By vlad-m-dev · ↓ 0 · ♥ 1 · Updated 2025-10-29

What's in this repo

This page lists the files in vlad-m-dev/distiluse-base-multilingual-v2-merged-onnx, including combined_tokenizer_embedded_model.onnx, dense_768to512.onnx, future_intent_classifier.onnx and more.

  • 6 ONNX models (.onnx files)
  • 9 files, including 6 .onnx, 1 .md, 1 .json
  • Last updated 2025-10-29

ONNX files

File Size Download
combined_tokenizer_embedded_model.onnx — Download
dense_768to512.onnx — Download
future_intent_classifier.onnx — Download
merged_sentence_model.onnx — Download
past_intent_classifier.onnx — Download
temporal_intent_classifier.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

🧠 Unified Multilingual Distiluse Text Embedder (ONNX + Tokenizer Merged)

This is a highly optimized, quantized, and fully standalone model for generating sentence embeddings from multilingual text, including Ukrainian, English, Polish, and more.

Built upon distiluse-base-multilingual-cased-v2, the model has been:

  • 🔁 Merged with its tokenizer into a single ONNX file
  • ⚙️ Extended with a custom preprocessing layer
  • ⚡ Quantized to INT8 and ARM64-ready
  • 🧪 Extensively tested across real-world NLP tasks
  • 🛠️ Bug-fixed vs the original sentence-transformers quantized version that produced inaccurate cosine similarity

🚀 Key Features

  • 🧩 Single-file architecture: no need for external tokenizer, vocab, or transformers library.
  • ⚡ 93% faster inference on mobile compared to the original model.
  • 🗣️ Multilingual: robust across many languages, including low-resource ones.
  • 🧠 Output = pure embeddings: pass a string, get a 768-dim vector. That’s it.
  • 🛠️ Ready for production: small, fast, accurate, and easy to integrate.
  • 📱 Ideal for edge-AI, mobile, and offline scenarios.

🤖 Author @vlad-m-dev Built for edge-ai/phone/tablet offline Telegram: https://t.me/dwight_schrute_engineer


🐍 Python Example

import numpy as np
import onnxruntime as ort
from onnxruntime_extensions import get_library_path

sess_options = ort.SessionOptions()
sess_options.register_custom_ops_library(get_library_path())

session = ort.InferenceSession(
    'model.onnx',
    sess_options=sess_options,
    providers=['CPUExecutionProvider']
)

input_feed = {"text": np.asarray(['something..'])}
outputs = session.run(None, input_feed)
embedding = outputs[0]

🐍 JS Example

const session = await InferenceSession.create(EMBEDDING_FULL_MODEL_PATH); 
const inputTensor = new Tensor('string', ['something..'], [1]); 
const feeds = { text: inputTensor };
const outputMap = await session.run(feeds);
const embedding = outputMap.text_embedding.data;

Model info

feature-extraction sentence-transformers
sentence-transformers onnx feature-extraction sentence-embeddings sentence-similarity semantic-search vector-search retrieval-augmented-generation multilingual cross-lingual low-resource merged-model
↓ 0 ♥ 1

Created: 2025-06-20

Updated: 2025-10-29

View on Hugging Face

Files (9)

.gitattributes
README.md
combined_tokenizer_embedded_model.onnx ONNX
dense_768to512.onnx ONNX
future_intent_classifier.onnx ONNX
label_encoder_temporal_intent.json
merged_sentence_model.onnx ONNX
past_intent_classifier.onnx ONNX
temporal_intent_classifier.onnx ONNX

Related models