xujiashuai/nlp_corom_sentence-embedding_chinese-tiny-ecom
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

CoROM Sentence Embedding Model (nlp_corom_sentence-embedding_chinese-tiny-ecom)

CoROM is a lightweight BERT-based sentence embedding model optimized for e-commerce domain.

  • Model ID: iic/nlp_corom_sentence-embedding_chinese-tiny-ecom
  • Task: Sentence Embedding
  • Framework: PyTorch
  • Input: Chinese text
  • Output: 256-dim sentence embedding

Verification Environment

ItemValue
NPUAscend910B4
CANN8.5.1
PyTorch2.9.0+cpu
torch_npu2.9.0.post1
Python3.11.14

Accuracy Evaluation

CPU vs NPU cosine similarity:

MetricValue
Cosine Similarity1.000000

Inference Output

Embedding shape: [1, 256]
Embedding sample: [0.1568, -1.2536, 0.1713, -0.5272, -0.1829]
SUCCESS

Reproduction

python3 inference.py
python3 evaluate.py

Materials

  • inference.py - NPU inference script
  • evaluate.py - CPU vs NPU cosine similarity evaluation