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

shubharuidas
/
codebert-base-code-embed-mrl-langchain-langgraph

Sentence Similarity
sentence-transformers
Safetensors
English
roberta
feature-extraction
dense
Generated from Trainer
dataset_size:900
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use shubharuidas/codebert-base-code-embed-mrl-langchain-langgraph with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use shubharuidas/codebert-base-code-embed-mrl-langchain-langgraph with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("shubharuidas/codebert-base-code-embed-mrl-langchain-langgraph")
    
    sentences = [
        "Best practices for __init__",
        "def close(self) -> None:\n        self.sync()\n        self.clear()",
        "class MyClass:\n        def __call__(self, state):\n            return\n\n        def class_method(self, state):\n            return",
        "def __init__(self, name: str):\n            self.name = name\n            self.lock = threading.Lock()"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
codebert-base-code-embed-mrl-langchain-langgraph
503 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
shubharuidas's picture
shubharuidas
Add new SentenceTransformer model
f320c0b verified 5 months ago
  • 1_Pooling
    Add new SentenceTransformer model 5 months ago
  • .gitattributes
    1.52 kB
    initial commit 5 months ago
  • README.md
    49.6 kB
    Add new SentenceTransformer model 5 months ago
  • config.json
    648 Bytes
    Add new SentenceTransformer model 5 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 5 months ago
  • merges.txt
    456 kB
    Add new SentenceTransformer model 5 months ago
  • model.safetensors
    499 MB
    xet
    Add new SentenceTransformer model 5 months ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model 5 months ago
  • sentence_bert_config.json
    57 Bytes
    Add new SentenceTransformer model 5 months ago
  • special_tokens_map.json
    958 Bytes
    Add new SentenceTransformer model 5 months ago
  • tokenizer.json
    3.56 MB
    Add new SentenceTransformer model 5 months ago
  • tokenizer_config.json
    1.44 kB
    Add new SentenceTransformer model 5 months ago
  • vocab.json
    798 kB
    Add new SentenceTransformer model 5 months ago