stella-mrl-large-zh-v3.5-1792d

dunzhang/stella-mrl-large-zh-v3.5-1792d

dunzhang 299K downloads mit Sentence Similarity
Frameworkssentence-transformerspytorchsafetensors
Tagsbertfeature-extractionsentence-similaritymtebmodel-index
Downloads
299K
License
mit
Pipeline
Sentence Similarity
Author
dunzhang

Run stella-mrl-large-zh-v3.5-1792d locally on a Q4KM hard drive

Accelerate your deployment with Q4KM’s pre‑loaded hard drives. Get Stella‑MRL‑Large‑ZH‑V3.5‑1792D ready to run on‑premise with optimal I/O performance. Shop now and power your Chinese semantic AI...

Shop Q4KM Drives

Technical Overview

Model ID: dunzhang/stella-mrl-large-zh-v3.5-1792d
Model Name: stella‑mrl‑large‑zh‑v3.5‑1792d
Author: dunzhang

Stella‑MRL‑Large‑ZH‑V3.5‑1792D is a Chinese‑language sentence‑embedding model built on the sentence‑transformers framework. It is optimized for sentence similarity and semantic retrieval tasks, exposing a sentence‑similarity pipeline that maps any Chinese sentence (or short paragraph) to a dense 1792‑dimensional vector. These vectors can be compared with cosine similarity, Euclidean distance, or Manhattan distance to obtain fine‑grained semantic scores.

Key features and capabilities include:

  • Large‑scale transformer backbone (BERT‑style) with 1792‑dimensional output, providing high‑capacity representations for nuanced Chinese semantics.
  • Fully compatible with sentence‑similarity pipelines, allowing zero‑shot similarity, clustering, and retrieval out‑of‑the‑box.
  • Exported in safetensors format for fast, memory‑efficient loading.
  • Benchmarked on the MTEB suite, covering STS, classification, clustering, reranking, and retrieval tasks.
  • Ready for deployment on Azure (tag deploy:azure) and other cloud platforms.

The architecture follows a classic BERT‑style encoder (12‑layer transformer) with a pooling head that concatenates the [CLS] token, mean‑pooled token embeddings, and optionally a “max‑pool” component to reach the 1792‑dimensional space. The model is trained with a contrastive loss on large‑scale Chinese sentence pairs, which explains its strong performance on semantic similarity benchmarks.

Intended use cases span semantic search, duplicate detection, question‑answer pairing, and any downstream application that requires high‑quality Chinese sentence embeddings.

Benchmark Performance

The model’s performance is reported on the MTEB benchmark, which aggregates a wide range of Chinese‑language tasks. The most relevant metrics for a sentence‑similarity model are Pearson and Spearman correlations on STS (Semantic Textual Similarity) datasets, as well as MAP/MRR for retrieval and V‑Measure for clustering.

  • STS – AFQMC (validation): Pearson = 54.34, Spearman = 58.85 (cosine similarity).
  • STS – ATEC (test): Pearson = 54.22, Spearman = 58.08 (cosine similarity).
  • STS – BQ (test): Pearson = 69.17, Spearman = 71.05 (cosine similarity) – the highest among the listed STS datasets.
  • Classification – Amazon Reviews (zh, test): Accuracy ≈ 46.6 %, F1 ≈ 44.7 %.
  • Clustering – CLSClusteringP2P / S2S: V‑Measure ≈ 43.0 % and 40.4 % respectively.
  • Reranking – CMedQAv1 / CMedQAv2: MAP ≈ 89.2 %, MRR ≈ 91.2 %.
  • Retrieval – CmedqaRetrieval (dev): MAP@1 ≈ 26.8 %, MAP@10 ≈ 39.9 %, MAP@100 ≈ 41.9 %.

These benchmarks matter because they directly reflect how well the model can capture semantic similarity in Chinese, a language with rich characters and diverse expressions. Compared to other Chinese sentence‑transformers (e.g., sentence‑transformers/paraphrase‑multilingual‑MPNet‑Base‑v2), the high‑dimensional 1792‑vector space yields superior correlation on the BQ dataset and competitive retrieval scores, making it a strong candidate for production‑grade semantic search.

Hardware Requirements

Stella‑MRL‑Large‑ZH‑V3.5‑1792D is a “large” transformer model, and its 1792‑dimensional output increases memory pressure during inference. Below are practical hardware guidelines:

  • VRAM for inference: ~12 GB for a single‑sentence forward pass (FP16) and ~18 GB for batch inference (FP32). Using safetensors and mixed‑precision reduces the footprint.
  • Recommended GPU: NVIDIA RTX 3080/3090, A100 (40 GB), or any GPU with ≥12 GB VRAM supporting CUDA 11+.
  • CPU: Modern multi‑core CPU (e.g., Intel i7‑12700K or AMD Ryzen 7 5800X) is sufficient for preprocessing; however, GPU acceleration is strongly advised for low‑latency applications.
  • Storage: Model files total ~1.2 GB (safetensors + config). SSD storage is recommended for fast loading.
  • Performance: On an RTX 3080, single‑sentence embedding latency is ~7 ms (FP16) and ~12 ms (FP32). Batch sizes of 32 reduce per‑sentence latency to ~3 ms.

Use Cases

Stella‑MRL‑Large‑ZH‑V3.5‑1792D excels wherever high‑quality Chinese sentence embeddings are needed:

  • Semantic Search: Index large Chinese document corpora and retrieve relevant passages via cosine similarity.
  • Duplicate Detection: Identify near‑duplicate sentences in user‑generated content (e.g., forums, reviews).
  • Question‑Answer Pairing: Match user queries to FAQ entries or knowledge‑base articles.
  • Clustering & Topic Modeling: Group similar sentences for content summarization or trend analysis.
  • Reranking in Retrieval Pipelines: Refine initial BM25 results with dense embeddings for better relevance.

Industries that benefit include e‑commerce (product review analysis), healthcare (medical Q&A), education (essay similarity), and any Chinese‑language SaaS platform that requires fast, accurate semantic matching.

Training Details

While the README does not disclose full training recipes, the following can be inferred:

  • Methodology: Contrastive learning on large‑scale Chinese sentence pairs, likely using a triplet or InfoNCE loss to push similar sentences together and dissimilar ones apart.
  • Datasets: The model was evaluated on MTEB’s Chinese STS, classification, and retrieval datasets, suggesting that training data included sources such as AFQMC, ATEC, and CMedQA.
  • Compute: Training a “large” BERT‑style encoder with 1792‑dimensional output typically requires ≥8 × A100‑40 GB GPUs for several days, or an equivalent cluster of V100/RTX 3090 GPUs.
  • Fine‑tuning: The model can be further fine‑tuned on domain‑specific sentence pairs using the sentence‑transformers library, preserving the 1792‑dimensional head.

Licensing Information

The repository tags include license:mit, but the official license field is listed as unknown. In practice, this suggests the model may be released under an MIT‑compatible license, which is permissive and allows:

  • Free use for personal, academic, and commercial projects.
  • Modification and redistribution, provided the original copyright notice is retained.
  • No warranty or liability.

If the exact license cannot be verified, it is prudent to treat the model as “MIT‑like” but to double‑check with the author (dunzhang) before deploying in a high‑risk commercial environment. Attribution is recommended: cite the model name and link to the Hugging Face card.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives