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

amentaphd
/
snowflake-artic-embed-m-v2.0

Sentence Similarity
sentence-transformers
Safetensors
gte
feature-extraction
Generated from Trainer
dataset_size:46338
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
custom_code
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use amentaphd/snowflake-artic-embed-m-v2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use amentaphd/snowflake-artic-embed-m-v2.0 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("amentaphd/snowflake-artic-embed-m-v2.0", trust_remote_code=True)
    
    sentences = [
        "What is the definition of 'Union processing capacity' and how does it relate to the location of processing operations for strategic raw materials?",
        "(9)\n\n‘Union processing capacity’ means an aggregate of the maximum annual production volumes of processing operations for strategic raw materials, excluding such operations that are typically located at or near the extraction site, located in the Union;\n\n(10)\n\n‘recycling’ means recycling as defined in Article 3, point (17), of Directive 2008/98/EC;\n\n(11)\n\n‘Union recycling capacity’ means an aggregate of the maximum annual production volume of recycling operations for strategic raw materials after re- processing, including the sorting and pre-treatment of waste, and its processing into secondary raw materials, located in the Union;\n\n(12)",
        "206-44-0 205-912-4 Fluoranthene (16) 118-74-1 204-273-9 Hexachlorobenzene X (17) 87-68-3 201-765-5 Hexachlorobutadiene X (18) 608-73-1 210-168-9 Hexachlorocyclohexane X (19) 34123-59-6 251-835-4 Isoproturon (20) 7439-92-1 231-100-4 Lead and its compounds (21) 7439-97-6 231-106-7 Mercury and its compounds X (22) 91-20-3 202-049-5 Naphthalene (23) 7440-02-0 231-111-4 Nickel and its compounds (24) not applicable not applicable Nonylphenols X (5) (25) not applicable not applicable Octylphenols (6) (26) 608-93-5 210-172-0 Pentachlorobenzene X (27) 87-86-5 201-778-6 Pentachlorophenol (28) not applicable not applicable Polyaromatic hydrocarbons (PAH) (7) X (29) 122-34-9 204-535-2 Simazine (30) not applicable not applicable Tributyltin compounds X",
        "7.\n\nThe principles governing public procurement procedures, including the principles of proportionality, non-discrimination, equal treatment, transparency and competition, shall be observed as regards all economic operators involved in the public procurement procedure. The investigation of foreign subsidies pursuant to this Regulation shall not result in the contracting authority or the contracting entity treating the economic operators concerned in a way that is contrary to those principles. Environmental, social and labour requirements shall apply to economic operators in accordance with Directives 2014/23/EU, 2014/24/EU and 2014/25/EU, or other Union law.\n\n8."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
snowflake-artic-embed-m-v2.0 / eval
1.16 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
amentaphd's picture
amentaphd
Upload folder using huggingface_hub
62a9df1 verified over 1 year ago
  • Information-Retrieval_evaluation_results.csv
    1.16 kB
    Upload folder using huggingface_hub over 1 year ago