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

lw2134
/
policy_gte_large

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

Instructions to use lw2134/policy_gte_large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use lw2134/policy_gte_large with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("lw2134/policy_gte_large", trust_remote_code=True)
    
    sentences = [
        "1. What measures should be taken to avoid \"mission creep\" when identifying goals for data collection?  \n2. Why is it important to assess new privacy risks before using collected data in a different context?",
        "narrow identified goals, to avoid \"mission creep.\"  Anticipated data collection should be determined to be \nstrictly necessary to the identified goals and should be minimized as much as possible. Data collected based on \nthese identified goals and for a specific context should not be used in a different context without assessing for \nnew privacy risks and implementing appropriate mitigation measures, which may include express consent.",
        "Promoting the Use of Trustworthy Artificial Intelligence in the Federal Government (December 2020). \nThis white paper recognizes that national security (which includes certain law enforcement and \nhomeland security activities) and defense activities are of increased sensitivity and interest to our nation’s \nadversaries and are often subject to special requirements, such as those governing classified information and \nother protected data. Such activities require alternative, compatible safeguards through existing policies that",
        "establish and maintain the capabilities that will allow individuals to use their own automated systems to help \nthem make consent, access, and control decisions in a complex data ecosystem. Capabilities include machine \nreadable data, standardized data formats, metadata or tags for expressing data processing permissions and \npreferences and data provenance and lineage, context of use and access-specific tags, and training models for \nassessing privacy risk."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
policy_gte_large
3.48 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
lw2134's picture
lw2134
Upload 6 files
7c1d562 verified almost 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. almost 2 years ago
  • onnx
    Upload 6 files almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    28.2 kB
    Add new SentenceTransformer model. almost 2 years ago
  • config.json
    1.5 kB
    Add new SentenceTransformer model. almost 2 years ago
  • config_sentence_transformers.json
    201 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • model.safetensors
    1.74 GB
    xet
    Add new SentenceTransformer model. almost 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • sentence_bert_config.json
    54 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer_config.json
    1.38 kB
    Add new SentenceTransformer model. almost 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. almost 2 years ago