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

thebajajra
/
RexBERT-base-embed-pf-v0.4

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

Instructions to use thebajajra/RexBERT-base-embed-pf-v0.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use thebajajra/RexBERT-base-embed-pf-v0.4 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("thebajajra/RexBERT-base-embed-pf-v0.4")
    
    sentences = [
        "Montfichet's Tower was a Norman fortress on Ludgate Hill, in the historic centre and central business district of which city?",
        "Sentence1: 'a pan pizza with a thick crust on a cutting board with a knife', Sentence2: 'a table is covered with vases and containers'. Is the frequency of the word 'with' in two sentences equal?",
        "Context Word: Door.",
        "Montfichet's Tower Montfichet's Tower (also known as Montfichet's Castle and/or spelt Mountfitchet's or Mountfiquit's) was a Norman fortress on Ludgate Hill in London, between where St Paul's Cathedral and City Thameslink railway station now stand. First documented in the 1130s, it was probably built in the late 11th century. The defences were strengthened during the revolt of 1173–1174 against Henry II."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
RexBERT-base-embed-pf-v0.4
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
thebajajra's picture
thebajajra
Upload folder using huggingface_hub
955e56d verified 10 months ago
  • 1_Pooling
    Upload folder using huggingface_hub 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    73.2 kB
    Upload folder using huggingface_hub 10 months ago
  • config.json
    1.24 kB
    Upload folder using huggingface_hub 10 months ago
  • config_sentence_transformers.json
    277 Bytes
    Upload folder using huggingface_hub 10 months ago
  • model.safetensors
    596 MB
    xet
    Upload folder using huggingface_hub 10 months ago
  • modules.json
    229 Bytes
    Upload folder using huggingface_hub 10 months ago
  • sentence_bert_config.json
    58 Bytes
    Upload folder using huggingface_hub 10 months ago
  • special_tokens_map.json
    694 Bytes
    Upload folder using huggingface_hub 10 months ago
  • tokenizer.json
    3.58 MB
    Upload folder using huggingface_hub 10 months ago
  • tokenizer_config.json
    21 kB
    Upload folder using huggingface_hub 10 months ago