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_cos2

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

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

  • Libraries
  • sentence-transformers

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

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("as-bessonov/reranker_searchengines_cos2")
    
    sentences = [
        "how early into pregnancy can you find out?",
        "You'll probably start to show in pregnancy at 12 to 16 weeks. You're more likely to show early if you're short, carrying multiple babies, or you've been pregnant before. ... Typically, this number should correlate with your week of pregnancy.",
        "['Open the status box in your Facebook profile.', 'Click the GIF icon to search for and select a GIF from the GIF library.', 'Once the GIF is selected, the GIF will attach to your Facebook post.', \"Once you're finished with your post, click Share.\"]",
        "It is extremely rare for a no spark condition to be the result of a faulty coil or ECM. ... This is the opposite of the strategy needed to fix a no spark condition. When taking on a no spark condition one needs to be patient and have an open mind."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
reranker_searchengines_cos2
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
as-bessonov's picture
as-bessonov
bert - model
81a139b 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
    29.9 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