Downloads · 30 days
17
21% of all-time downloads
surazbhandari/miniembed-product
miniembed-product is a machine learning model from surazbhandari. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for generic. The card lists the license as mit.
This model uses the same MiniEmbed architecture, trained from scratch exclusively for high-accuracy product matching (entity resolution).
Downloads · 30 days
17
21% of all-time downloads
All-time downloads
82
Public
Parameters
16M
64 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors64 MB · 98%
From the Hugging Face model README
This model uses the same MiniEmbed architecture, trained from scratch exclusively for high-accuracy product matching (entity resolution).
It is designed to determine if two product listings—often with different titles, specifications, or formatting—refer to the exact same physical item.
E-commerce Product Matching & Entity Resolution
This model is trained to solve the "Same Product, Different Description" problem in e-commerce:
Example Challenges Handled:
This repository includes a Streamlit app to demonstrate the matching capability.
To run locally:
pip install -r requirements.txt
streamlit run demo.py
SafeTensors (Hugging Face ready)Since this is a custom model, you need to download the code and weights from the Hub:
from huggingface_hub import snapshot_download
import sys
# 1. Download model (one-time)
model_dir = snapshot_download("surazbhandari/miniembed-product")
# 2. Add to path so we can import 'src'
sys.path.insert(0, model_dir)
# 3. Load Model
from src.inference import EmbeddingInference
model = EmbeddingInference.from_pretrained(model_dir)
# Define two product titles
product_a = "Sony WH-1000XM5 Wireless Noise Canceling Headphones, Black"
product_b = "Sony WH1000XM5/B Headphones"
# Calculate similarity (0 to 1)
score = model.similarity(product_a, product_b)
print(f"Similarity: {score:.4f}")
This repository is automatically synced to Hugging Face Spaces via GitHub Actions.
MIT