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

Narekatsy
/
fine-tuned-cosqa

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

Instructions to use Narekatsy/fine-tuned-cosqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Narekatsy/fine-tuned-cosqa with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Narekatsy/fine-tuned-cosqa")
    
    sentences = [
        "python to dict if only one item",
        "def get_from_gnucash26_date(date_str: str) -> date:\n    \"\"\" Creates a datetime from GnuCash 2.6 date string \"\"\"\n    date_format = \"%Y%m%d\"\n    result = datetime.strptime(date_str, date_format).date()\n    return result",
        "def multidict_to_dict(d):\n    \"\"\"\n    Turns a werkzeug.MultiDict or django.MultiValueDict into a dict with\n    list values\n    :param d: a MultiDict or MultiValueDict instance\n    :return: a dict instance\n    \"\"\"\n    return dict((k, v[0] if len(v) == 1 else v) for k, v in iterlists(d))",
        "def wipe_table(self, table: str) -> int:\n        \"\"\"Delete all records from a table. Use caution!\"\"\"\n        sql = \"DELETE FROM \" + self.delimit(table)\n        return self.db_exec(sql)"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
fine-tuned-cosqa
91.8 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Narekatsy's picture
Narekatsy
Add new SentenceTransformer model
38f82e5 verified 6 months ago
  • 1_Pooling
    Add new SentenceTransformer model 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    19.7 kB
    Add new SentenceTransformer model 6 months ago
  • config.json
    636 Bytes
    Add new SentenceTransformer model 6 months ago
  • config_sentence_transformers.json
    294 Bytes
    Add new SentenceTransformer model 6 months ago
  • model.safetensors
    90.9 MB
    xet
    Add new SentenceTransformer model 6 months ago
  • modules.json
    368 Bytes
    Add new SentenceTransformer model 6 months ago
  • sentence_bert_config.json
    60 Bytes
    Add new SentenceTransformer model 6 months ago
  • special_tokens_map.json
    732 Bytes
    Add new SentenceTransformer model 6 months ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model 6 months ago
  • tokenizer_config.json
    1.53 kB
    Add new SentenceTransformer model 6 months ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model 6 months ago