Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

buelfhood
/
CodeBERTa-small-v1-ST

Sentence Similarity
sentence-transformers
ONNX
Safetensors
OpenVINO
roberta
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
2

Instructions to use buelfhood/CodeBERTa-small-v1-ST with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use buelfhood/CodeBERTa-small-v1-ST with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("buelfhood/CodeBERTa-small-v1-ST")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
CodeBERTa-small-v1-ST
1 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
buelfhood's picture
buelfhood
Update 1_Pooling/config.json
008fe3e verified about 1 year ago
  • 1_Pooling
    Update 1_Pooling/config.json about 1 year ago
  • onnx
    Add exported onnx model 'model.onnx' (#1) about 1 year ago
  • openvino
    Add exported openvino model 'openvino_model.xml' (#2) about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    3.98 kB
    Add new SentenceTransformer model about 1 year ago
  • config.json
    630 Bytes
    Add new SentenceTransformer model about 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model about 1 year ago
  • merges.txt
    482 kB
    Add new SentenceTransformer model about 1 year ago
  • model.safetensors
    334 MB
    xet
    Add new SentenceTransformer model about 1 year ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model about 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model about 1 year ago
  • special_tokens_map.json
    958 Bytes
    Add new SentenceTransformer model about 1 year ago
  • tokenizer.json
    3.71 MB
    Add new SentenceTransformer model about 1 year ago
  • tokenizer_config.json
    1.26 kB
    Add new SentenceTransformer model about 1 year ago
  • vocab.json
    838 kB
    Add new SentenceTransformer model about 1 year ago