Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

swardiantara
/
bert-tiny-amazon_reviews-k5-fixed-euclidean

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:4200100
loss:OrdinalProxyContrastiveLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use swardiantara/bert-tiny-amazon_reviews-k5-fixed-euclidean with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use swardiantara/bert-tiny-amazon_reviews-k5-fixed-euclidean with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("swardiantara/bert-tiny-amazon_reviews-k5-fixed-euclidean")
    
    sentences = [
        "Unless you have this jam-packed full of items, the unit collapses on itself. I never held it's shape therefore, making it hard to reach my items when I needed them. The silver metal pieces on the handle fell off soon after it arrived. I must have missed the \"return by\" date as I now am stuck with it.",
        "very light weight. thin metal. nice looking just not a quality piece.it was okay for a kids gift. don't see it lasting very long as it will dent easy.",
        "Good quality gasket and it was packaged well. Fit great as well.",
        "Fit fine - do not stay up. I haven’t washed or stretched, literally too out of bag and tried on for a bit of walking around the house and within 30 minutes they bunched down. Not sure the elastic will last either. Other than that, colors/patterns and general fabric is nice."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
bert-tiny-amazon_reviews-k5-fixed-euclidean
18.4 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
swardiantara's picture
swardiantara
Upload tsne_validation.pdf with huggingface_hub
d6391b4 verified about 2 months ago
  • 1_Pooling
    Add new SentenceTransformer model about 2 months ago
  • .gitattributes
    1.52 kB
    initial commit about 2 months ago
  • README.md
    19.5 kB
    Add new SentenceTransformer model about 2 months ago
  • config.json
    668 Bytes
    Add new SentenceTransformer model about 2 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model about 2 months ago
  • contrastive_metrics.csv
    182 Bytes
    Upload contrastive_metrics.csv with huggingface_hub about 2 months ago
  • model.safetensors
    17.5 MB
    xet
    Add new SentenceTransformer model about 2 months ago
  • modules.json
    277 Bytes
    Add new SentenceTransformer model about 2 months ago
  • sentence_bert_config.json
    241 Bytes
    Add new SentenceTransformer model about 2 months ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model about 2 months ago
  • tokenizer_config.json
    351 Bytes
    Add new SentenceTransformer model about 2 months ago
  • tsne_validation.pdf
    97 kB
    Upload tsne_validation.pdf with huggingface_hub about 2 months ago