Instructions to use KingLLM/nomic-codesearch-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use KingLLM/nomic-codesearch-onnx with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KingLLM/nomic-codesearch-onnx", trust_remote_code=True) 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
Upload folder using huggingface_hub
Upload folder using huggingface_hub
Multi commit ID: 36f1938d6bd59be836ed9a86e1748d3a8864dac217ea603ed1f58b2c302bc7cd
Scheduled commits:
- Upload 9 file(s) totalling 824.8M (26a974d7c90ec5c65d9befe172cd4e7001793c4eded78a7f390b25ded09e3ed3)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.
Multi-commit is now completed! You can ping the repo owner to review the changes. This PR can now be commented or modified without risking to corrupt it.
This is a comment posted using the huggingface_hub library in the context of a multi-commit. Learn more about multi-commits in this guide.