Sentence Similarity
Safetensors
sentence-transformers
English
PyLate
modernbert
ColBERT
feature-extraction
code-search
knowledge-distillation
apple-silicon
mps
text-embeddings-inference
Instructions to use ctrltokyo/ColBERT-Zero-6L-CodeSearch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ctrltokyo/ColBERT-Zero-6L-CodeSearch with sentence-transformers:
from pylate import models queries = [ "Which planet is known as the Red Planet?", "What is the largest planet in our solar system?", ] documents = [ ["Mars is the Red Planet.", "Venus is Earth's twin."], ["Jupiter is the largest planet.", "Saturn has rings."], ] model = models.ColBERT(model_name_or_path="ctrltokyo/ColBERT-Zero-6L-CodeSearch") queries_emb = model.encode(queries, is_query=True) docs_emb = model.encode(documents, is_query=False) - Notebooks
- Google Colab
- Kaggle
File size: 160 Bytes
beaa85c | 1 2 3 4 5 6 7 | {
"in_features": 768,
"out_features": 128,
"bias": false,
"activation_function": "torch.nn.modules.linear.Identity",
"use_residual": false
} |