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

paraphrase-mpnet-base-v2 — 768-d Browser Paraphrase Encoder

A 109.5M-parameter, 12-layer MPNetModel trained on large-scale paraphrase pairs to map semantically equivalent English sentences into a shared 768-d mean-pooled vector space with a full 512-token context window in 110.80 MB (q8 CPU WASM via shared ../../lib/webai.js on @huggingface/transformers@3.7.5).

Model Card & Runtime Contract

Tasks
sentence-similarity via feature-extraction
Backend & Quant
WASM · q8 (110.09 MB ONNX + 0.71 MB tok = 110.80 MB)
Architecture
12L · 12H · 768-d · 109.5M params · 30,527 uncased vocab · pooling: "mean"
Seq Limit & License
512 SentenceTransformer (514 max_pos) · Apache-2.0
768-d Symmetric Paraphrase Encoder: Unlike asymmetric retrieval models that prepend query:/passage: instructions, paraphrase-mpnet-base-v2 embeds every sentence symmetrically with mean pooling + L2 normalization (1_Pooling/config.json) and supports up to 512 tokens (sentence_bert_config.json, 4× longer than MiniLM's 128-token cap).

Load & Cache Status

Live Paraphrase Scorer & Similarity Matrix

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

Ranked Paraphrase Similarity

Load the model to embed and rank all sentences locally.

    2D PCA Semantic Constellation

    Diamond marks the reference sentence; dashed rays connect top-3 closest paraphrases.

    See Inside the Model (768-d Tensor & MPNet Token Telemetry)

    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 MPNet Tokenization & 512-Token Window Audit

    Inspects real MPNet uncased IDs (<s>=0, </s>=2, [UNK]=104) before truncation.

    Per-sentence MPNet token count, [UNK] count, L2 norm, and cosine score
    ID Tokens [UNK] Window Norm Cosine
    Awaiting live inference…

    Why It Matters

    Show the Code (Exact Worker & Pooling Pipeline)

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