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

iara-project
/
ModBERTBr-matryoshka-sts-pt

Sentence Similarity
sentence-transformers
Safetensors
Portuguese
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:67187
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
loss:CoSENTLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use iara-project/ModBERTBr-matryoshka-sts-pt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use iara-project/ModBERTBr-matryoshka-sts-pt with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("iara-project/ModBERTBr-matryoshka-sts-pt")
    
    sentences = [
        "2- No entanto, importa ainda distinguir entre impossibilidade originária definitiva e impossibilidade originária temporária.",
        "VII - Está afastada do regime da insolvência culposa a conduta qualificada com a culpa leve ou levíssima, aferida pelo padrão de diligência do homem médio.",
        "Apenas a exibição do documento de contrato de crédito com a solicitação do executivo não é suficiente para comprovar a concessão de crédito.",
        "A necessidade da distinção decorre do art 401 ns 1 e 2: se a impossibilidade originária é definitiva, aplica-se o art 401 n 1: o negócio jurídico é nulo."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
ModBERTBr-matryoshka-sts-pt
544 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
LucasOkamura's picture
LucasOkamura
Update README.md
64a8a61 verified 4 days ago
  • 1_Pooling
    Add new SentenceTransformer model 4 months ago
  • .gitattributes
    1.52 kB
    initial commit 4 months ago
  • README.md
    106 kB
    Update README.md 4 days ago
  • config.json
    1.91 kB
    Add new SentenceTransformer model 4 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 4 months ago
  • model.safetensors
    542 MB
    xet
    Add new SentenceTransformer model 4 months ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model 4 months ago
  • sentence_bert_config.json
    57 Bytes
    Add new SentenceTransformer model 4 months ago
  • tokenizer.json
    2.11 MB
    Add new SentenceTransformer model 4 months ago
  • tokenizer_config.json
    521 Bytes
    Add new SentenceTransformer model 4 months ago