sentence-similarity · feature-extraction · 138.24 MB WASM q8 · Apache-2.0

distiluse-base-multilingual-cased-v2 — 15+ Language Browser Embeddings

Multilingual Universal Sentence Encoder knowledge-distilled into a 6-layer cased DistilBertModel (119,547 WordPiece tokens, 138.24 MB q8 CPU WASM via shared ../../lib/webai.js on @huggingface/transformers@3.7.5) aligning 15+ languages into one vector space.

Model Card & Runtime Contract

Tasks
sentence-similarity via feature-extraction
Backend & Quant
WASM · q8 (135.32 MB ONNX + 2.92 MB tok = 138.24 MB)
Architecture
6L · 12H · 768-d ONNX · 119,547 cased WordPiece · pooling: "mean"
Seq Limit & License
128 SentenceTransformer (512 DistilBERT max) · Apache-2.0
Runtime Dimensionality & Cased Design: Upstream Python SentenceTransformer appends a 2_Dense (768 → 512 Tanh) projection after mean pooling. The browser ONNX build (Xenova/distiluse-base-multilingual-cased-v2) exports the 6-layer DistilBertModel backbone directly and produces 768-d L2-normalized mean-pooled vectors (verified live in Chrome) with case-sensitive tokenization (do_lower_case: false) and zero query/passage prefixes across Arabic, Chinese, Dutch, English, French, German, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Thai, and Turkish.

Load & Cache Status

Live Cross-Lingual Scorer & Similarity Matrix

Drop, paste, or upload a .txt, .md, .csv, or .json list of multilingual sentences.

Ranked Cross-Lingual Similarity

Load the model to embed and rank all languages locally.

    2D PCA Cross-Lingual Constellation

    Diamond marks the reference sentence; dashed rays connect top-3 closest cross-lingual matches.

    See Inside the Model (768-d Tensor & Cased Multilingual WordPiece)

    768-d Embedding Sparkline & Distribution

    Run inference to inspect live 768-d coordinate min, max, mean, std, and L2 norm.

    Pairwise Cosine Heatmap (All Sentences)

    Live Cased Multilingual WordPiece (119,547 Vocab) & 128-Token Audit

    Inspects real cased multilingual WordPiece IDs ([CLS] 101, [SEP] 102, [UNK] 100) before truncation.

    Per-sentence script, WordPiece token count, [UNK] count, L2 norm, and cosine score
    ID Script Tokens [UNK] 128-tok Norm Cosine
    Awaiting live inference…

    Show the Code (Exact Worker & Pooling Pipeline)

    Show the code: Off-main-thread feature-extraction + mean pooling (worker.js)
    Show the code: FIFO DistiluseEngine lifecycle & dispose client (distiluse.js)