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

barealek
/
peftech-v1

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

Instructions to use barealek/peftech-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use barealek/peftech-v1 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("barealek/peftech-v1")
    
    sentences = [
        "Instruct: Retrieve semantically similar text based on safety profile\nQuery: This is a vile, unbelievable, horrific story and these people are disgusting!! \nI am speechless as to the heinous behavior of this MOTHER & SON KILLERS! This is the most cold hearted, callous act for anyone and then to have the Mother and son do do this together makes me sick. Of course the Mother claims she doesn't know if her underage son was drinking! She reeked of alcohol herself which means, that yes, he was drinking, she probably gave him the alcohol and then they decided to wait several hours for the driver's blood alcohol to go down. He only came forward because there were multiple witnesses!! I am sick. This is some of the most vile behavior I have read, they stopped the car, and he got out and pulled the victim from his windshield and threw him on the ground. They both need to be charged with the MAXIMUM punishment possible. Mother & son deserve to be shot.",
        "Instruct: Retrieve semantically similar text based on safety profile\nQuery: Instead of restrooms, we'll only have porta potties installed.  Problem solved.  Transgender friendly restrooms.",
        "Instruct: Retrieve semantically similar text based on safety profile\nQuery: $26,443 a year for tuition and the best thing they can think of to chant is \"F%^$ Trump?",
        "Instruct: Retrieve semantically similar text based on safety profile\nQuery: I'll leave the partisan politics out of my comment for a change.\n\nTo our troops. Take care and if you have to shoot, shoot the other poor bastard so you can come home."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
peftech-v1
807 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
barealek's picture
barealek
Upload folder using huggingface_hub
b1dafd5 verified 2 months ago
  • 1_Pooling
    Upload folder using huggingface_hub 2 months ago
  • 2_Dense
    Upload folder using huggingface_hub 2 months ago
  • 3_Dense
    Upload folder using huggingface_hub 2 months ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • README.md
    29.3 kB
    Upload folder using huggingface_hub 2 months ago
  • added_tokens.json
    735 Bytes
    Upload folder using huggingface_hub 2 months ago
  • chat_template.jinja
    4.2 kB
    Upload folder using huggingface_hub 2 months ago
  • config.json
    1.26 kB
    Upload folder using huggingface_hub 2 months ago
  • config_sentence_transformers.json
    297 Bytes
    Upload folder using huggingface_hub 2 months ago
  • merges.txt
    1.67 MB
    Upload folder using huggingface_hub 2 months ago
  • model.safetensors
    790 MB
    xet
    Upload folder using huggingface_hub 2 months ago
  • modules.json
    368 Bytes
    Upload folder using huggingface_hub 2 months ago
  • sentence_bert_config.json
    60 Bytes
    Upload folder using huggingface_hub 2 months ago
  • special_tokens_map.json
    731 Bytes
    Upload folder using huggingface_hub 2 months ago
  • tokenizer.json
    3.58 MB
    Upload folder using huggingface_hub 2 months ago
  • tokenizer_config.json
    21.8 kB
    Upload folder using huggingface_hub 2 months ago
  • vocab.json
    2.78 MB
    Upload folder using huggingface_hub 2 months ago