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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

llm-wizard
/
legal-ft

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

Instructions to use llm-wizard/legal-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use llm-wizard/legal-ft with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("llm-wizard/legal-ft")
    
    sentences = [
        "What actions did Mr and Mrs Harris take that led to the revelation of the facts in the case?",
        "Perplexity’s marketing activities include promoting on its Instagram account a massive billboard \nin Times Square from September 2024 which read “Congratulations Perplexity on 250 million \nquestions answered last month.”5 \n \n4 Discover New York with Perplexity, Perplexity AI (last visited Oct. 17, 2024), \nhttps://www.perplexity.ai/encyclopedia/discovernewyork. \n5 @perplexity.ai, Instagram (Sept. 4, 2024),  \nhttps://www.instagram.com/perplexity.ai/p/C_g2TonSHC5.  \nCase 1:24-cv-07984     Document 1     Filed 10/21/24     Page 8 of 42",
        "31 \n \nstatus.    It was not until Mr. and Mrs. Harris retained counsel, served a demand letter on May 22, \n2024, met with the then Assistant Superintendent and a lengthy “bulling investigation” that these \nfacts came to light.    \nThe Defendant’s actions and conduct, by definition, was arbitrary and capricious as was \nthe  imposition of discipline that was a gross abuse of discretion when it served as a catalyst for \nthis action.  Similarly, the Defendants exceeded their authority by repeatedly doubling down on \ntheir acts and conduct when given the opportunity to reverse course.  The adverse action taken was \nnot based on sound, objective, adopted and approved policies and procedures regarding the use of",
        "website users, and licensing is transacted with individuals and entities residing in this State and \nDistrict. As such, the injuries alleged herein from Perplexity’s infringement and other unlawful \nconduct foreseeably occurred in this State and District. In addition, Perplexity or its agents reside \nin this District and may be found in this State and District. \n23. \nDefendant Perplexity is subject to the jurisdiction of this Court pursuant to N.Y. \nC.P.L.R. § 302(a)(1) and (3) as it has purposefully directed its activities at New York and has \nCase 1:24-cv-07984     Document 1     Filed 10/21/24     Page 7 of 42"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
legal-ft
1.34 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
llm-wizard's picture
llm-wizard
Add new SentenceTransformer model
445671b verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    31.1 kB
    Add new SentenceTransformer model over 1 year ago
  • config.json
    641 Bytes
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    281 Bytes
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    1.34 GB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    1.41 kB
    Add new SentenceTransformer model over 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model over 1 year ago