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

JahnaviKumar
/
nomic-embed-text1.5-ftcode

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

Instructions to use JahnaviKumar/nomic-embed-text1.5-ftcode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use JahnaviKumar/nomic-embed-text1.5-ftcode with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("JahnaviKumar/nomic-embed-text1.5-ftcode", trust_remote_code=True)
    
    sentences = [
        "func SetFactory(ctx context.Context, f Factory) context.Context {\n\treturn",
        "rm -r path",
        "Transforms an array into a DateTime.\n\n@param array $value Array value.\n\n@return DateTime DateTime value.",
        " context.WithValue(ctx, &clockKey, f)\n}"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
nomic-embed-text1.5-ftcode
548 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
JahnaviKumar's picture
JahnaviKumar
Add new SentenceTransformer model
e7198a7 verified 8 months ago
  • 1_Pooling
    Add new SentenceTransformer model 8 months ago
  • .gitattributes
    1.52 kB
    initial commit 8 months ago
  • README.md
    18.7 kB
    Add new SentenceTransformer model 8 months ago
  • config.json
    2.07 kB
    Add new SentenceTransformer model 8 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 8 months ago
  • configuration_hf_nomic_bert.py
    1.96 kB
    Add new SentenceTransformer model 8 months ago
  • model.safetensors
    547 MB
    xet
    Add new SentenceTransformer model 8 months ago
  • modeling_hf_nomic_bert.py
    104 kB
    Add new SentenceTransformer model 8 months ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model 8 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 8 months ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model 8 months ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model 8 months ago
  • tokenizer_config.json
    1.22 kB
    Add new SentenceTransformer model 8 months ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model 8 months ago