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

leafxyz
/
main_v2

Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
Generated from Trainer
dataset_size:49500
loss:MultipleNegativesRankingLoss
Model card Files Files and versions
xet
Community

Instructions to use leafxyz/main_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use leafxyz/main_v2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("leafxyz/main_v2")
    
    sentences = [
        "Instruct: Given an Arabic e-commerce search query, retrieve the product that best matches it\nQuery: عناية بالفم",
        "تن ريقا بزيت الزيتون 160جم",
        "Foramen Denture Clean Box",
        "صبغة شعر L'Oréal Paris - 5.45 Excellence"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
main_v2
51.9 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
leafxyz's picture
leafxyz
Add new SentenceTransformer model
5383a6a verified 19 days ago
  • 1_Pooling
    Add new SentenceTransformer model 19 days ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model 19 days ago
  • README.md
    23.8 kB
    Add new SentenceTransformer model 19 days ago
  • adapter_config.json
    1.13 kB
    Add new SentenceTransformer model 19 days ago
  • adapter_model.safetensors
    40.4 MB
    xet
    Add new SentenceTransformer model 19 days ago
  • chat_template.jinja
    4.12 kB
    Add new SentenceTransformer model 19 days ago
  • config_sentence_transformers.json
    384 Bytes
    Add new SentenceTransformer model 19 days ago
  • modules.json
    429 Bytes
    Add new SentenceTransformer model 19 days ago
  • sentence_bert_config.json
    241 Bytes
    Add new SentenceTransformer model 19 days ago
  • tokenizer.json
    11.4 MB
    xet
    Add new SentenceTransformer model 19 days ago
  • tokenizer_config.json
    375 Bytes
    Add new SentenceTransformer model 19 days ago