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

liddlefish
/
privacyembeddingv2_bge_small

Feature Extraction
sentence-transformers
Safetensors
Transformers
English
bert
sentence-similarity
mteb
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use liddlefish/privacyembeddingv2_bge_small with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("liddlefish/privacyembeddingv2_bge_small")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use liddlefish/privacyembeddingv2_bge_small with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="liddlefish/privacyembeddingv2_bge_small")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("liddlefish/privacyembeddingv2_bge_small")
    model = AutoModel.from_pretrained("liddlefish/privacyembeddingv2_bge_small")
  • Notebooks
  • Google Colab
  • Kaggle
privacyembeddingv2_bge_small
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
liddlefish's picture
liddlefish
Add new SentenceTransformer model.
824fe29 verified almost 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    97.9 kB
    Add new SentenceTransformer model. almost 2 years ago
  • config.json
    752 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • config_sentence_transformers.json
    180 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • model.safetensors
    133 MB
    xet
    Add new SentenceTransformer model. almost 2 years ago
  • modules.json
    368 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • sentence_bert_config.json
    55 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • special_tokens_map.json
    732 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.5 kB
    Add new SentenceTransformer model. almost 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. almost 2 years ago