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

flax-sentence-embeddings
/
st-codesearch-distilroberta-base

Sentence Similarity
sentence-transformers
PyTorch
roberta
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
3

Instructions to use flax-sentence-embeddings/st-codesearch-distilroberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use flax-sentence-embeddings/st-codesearch-distilroberta-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("flax-sentence-embeddings/st-codesearch-distilroberta-base")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
st-codesearch-distilroberta-base
331 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
nreimers's picture
nreimers
Update README.md
65b0f39 almost 5 years ago
  • 1_Pooling
    upload almost 5 years ago
  • .gitattributes
    690 Bytes
    initial commit almost 5 years ago
  • README.md
    3.71 kB
    Update README.md almost 5 years ago
  • config.json
    647 Bytes
    upload almost 5 years ago
  • config_sentence_transformers.json
    116 Bytes
    upload almost 5 years ago
  • merges.txt
    456 kB
    upload almost 5 years ago
  • modules.json
    349 Bytes
    upload almost 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "collections.OrderedDict",
    • "torch.LongStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage"

    What is a pickle import?

    329 MB
    xet
    upload almost 5 years ago
  • sentence_bert_config.json
    53 Bytes
    upload almost 5 years ago
  • special_tokens_map.json
    239 Bytes
    upload almost 5 years ago
  • tokenizer.json
    1.36 MB
    upload almost 5 years ago
  • tokenizer_config.json
    294 Bytes
    upload almost 5 years ago
  • train_script.py
    3.84 kB
    upload almost 5 years ago
  • vocab.json
    798 kB
    upload almost 5 years ago