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

  • Log In
  • Sign Up

rsvalerio
/
codebert-base-coreml

Feature Extraction
Core ML
sentence-transformers
coremltools
embedding
code
roberta
Model card Files Files and versions
xet
Community

Instructions to use rsvalerio/codebert-base-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use rsvalerio/codebert-base-coreml with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("rsvalerio/codebert-base-coreml")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
codebert-base-coreml
252 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
rsvalerio's picture
rsvalerio
Update model artifacts (git:ac197fe)
e50f4de verified about 2 months ago
  • model.mlpackage
    Update model artifacts (git:ac197fe) about 2 months ago
  • .gitattributes
    1.52 kB
    initial commit about 2 months ago
  • README.md
    1.32 kB
    Update model card about 2 months ago
  • special_tokens_map.json
    958 Bytes
    Update model artifacts (git:ac197fe) about 2 months ago
  • tokenizer.json
    3.56 MB
    Update model artifacts (git:ac197fe) about 2 months ago
  • tokenizer_config.json
    1.22 kB
    Update model artifacts (git:ac197fe) about 2 months ago