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

as-bessonov
/
reranker_searchengines_cos

Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:862681
loss:CosineSimilarityLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use as-bessonov/reranker_searchengines_cos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use as-bessonov/reranker_searchengines_cos with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("as-bessonov/reranker_searchengines_cos")
    
    sentences = [
        "do employers drug test on the first day?",
        "What form of pre-employment drug screening is used? They performed a urine test.",
        "Manufacturers produced pods in many various sizes, usually to fit a specific brewer, which made finding compatible pods confusing for the consumer. Today, most coffee pods are standard at approximately 61 millimeters in diameter, however pods may vary in weight (or amount of coffee in each pod).",
        "If you were born in 1958 your full retirement age is 66 and 8 months. You can start your Social Security retirement benefits as early as age 62, but the benefit amount you receive will be less than your full retirement benefit amount."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
reranker_searchengines_cos
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
as-bessonov's picture
as-bessonov
bert - model
d729248 verified about 1 year ago
  • 1_Pooling
    bert - model about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    39.7 kB
    bert - model about 1 year ago
  • config.json
    1.21 kB
    bert - model about 1 year ago
  • config_sentence_transformers.json
    298 Bytes
    bert - model about 1 year ago
  • model.safetensors
    596 MB
    xet
    bert - model about 1 year ago
  • modules.json
    229 Bytes
    bert - model about 1 year ago
  • sentence_bert_config.json
    58 Bytes
    bert - model about 1 year ago
  • special_tokens_map.json
    694 Bytes
    bert - model about 1 year ago
  • tokenizer.json
    3.58 MB
    bert - model about 1 year ago
  • tokenizer_config.json
    21 kB
    bert - model about 1 year ago