lightonai/LateOn-Code-edge

Model

36

stars

8

commits

1

repos using this model

3

linked in READMEs

Aug 17, 2026

updated

code
code search
ColBERT
embeddings
endpoints_compatible
feature-extraction
generated_from_trainer
model-index
modernbert
multi-vector
onnx
PyLate
retrieval
safetensors
sentence-similarity
sentence-transformers
text-embeddings-inference
Browse cluster: Text Embedding Models & Inference

README

LateOn-Code

The LateOn-Code collection is composed of PyLate models optimized for code retrieval. These late interaction models are first pre-trained following the methodology of CoRNStack. These pre-trained models are then further fine-tuned on train sets of CoIR using the nv-retriever methodology to mine hard negatives while preventing false negatives.

We started from the two best ColBERT models on the BEIR benchmark for their respective sizes. The first one, LateOn-Code is based on in-house LateOn model, a new version of GTE-ModernColBERT-v1 built on ModernBERT-base (also developed at LightOn). This version underwent significantly deeper training, crossing the 57 mark on BEIR, almost a 2.5-point improvement and is thus SOTA by a large margin. We'll release this base model along with training data and boilerplates in the near future, so stay tuned! The second, LateOn-Code-edge is a smaller model based on the edge-colbert model family from mixedbread, using the smallest variant (Ettin-17M) for maximum efficiency. For more details on the training setup, please refer to our blogpost.

The original CoRNStack data in a format compatible with PyLate can be found here while the fine-tuning data can be found here. Training boilerplates can be found here in the PyLate repository

MTEB (Code, v1) benchmark results

Pre-trained models achieve very competitive results as the 17M model outperforms the very strong granite-embedding-small-english-r2 by an average of 1.7. This is truly impressive, as the granite model is almost three times bigger (17M vs 48M), but is also a beast on its own in the <100M parameters range. It also outperforms the larger granite variant (149M). The larger version nicely scales by improving over the performance of its little sibling by 6.5 on average.

Although the pre-training results are already very impressive given that they are mostly out-of-domain, running a proper fine-tuning using the training data of CoIR significantly boost the performance of the models. Notably, the 17M model increases from 57.50 to 66.64 (+9.14), getting pretty close to EmbeddingGemma-300M while being 17 times smaller. The larger one increases from 63.77 to 74.12 (+10.35), strongly outperforming EmbeddingGemma-300M and getting closer to strong LLM models such as Qwen3-Embedding-0.6B and C2LLM-0.5B while being much smaller.

ModelParamsTypeAvgAppsCOIR CSNetCodeEditCodeFB MTCodeFB STCSNet CCCSNetCodeTrans ContestCodeTrans DLCosQAStackOF QASynth T2SQL
Baseline
BM25-Lexical44.414.7640.8649.8559.1968.1553.9760.0147.7834.4218.7570.2624.94
Small (≤50M)
granite-embedding-small-english-r247MSingle vector55.8413.5460.4657.1652.1976.8548.4278.2877.6333.6335.5890.0446.33
LateOn-Code-edge-pretrain17MMulti vector57.5010.8173.7862.0751.9276.6563.2288.0371.3133.1630.5374.6353.83
LateOn-Code-edge17MMulti vector66.6426.2281.6062.2174.2587.1279.2687.8575.3637.0840.5485.6362.57
Δ (fine-tune - pretrain)+9.14+15.41+7.82+0.14+22.33+10.47+16.04-0.18+4.05+3.92+10.01+11.00+8.74
Medium (100M–300M)
granite-embedding-english-r2149MSingle vector57.2213.9664.6559.3552.5477.1847.6780.7977.0735.0337.0191.8049.55
CodeRankEmbed137MSingle vector60.4723.4583.2059.9842.6178.1068.8989.5066.4334.4935.1780.5363.27
GTE-ModernBERT149MSingle vector71.6657.7283.1055.8386.1586.0093.6188.7672.3537.2743.3691.1464.61
embeddinggemma-300m300MSingle vector68.7684.3975.5462.1051.4280.2673.7190.1585.5133.5243.6086.4758.42
LateOn-Code-pretrain149MMulti vector63.7723.0980.2768.7450.2182.6671.4791.0582.2034.4634.1585.6161.34
LateOn-Code149MMulti vector74.1254.7686.5764.9982.2290.4089.3290.4087.4441.0045.2393.4363.67
Δ (fine-tune - pretrain)+10.35+31.67+6.30-3.75+32.01+7.74+17.85-0.65+5.24+6.54+11.08+7.82+2.33
Large (≥500M)
C2LLM-0.5B500MSingle vector75.4661.0286.7171.3992.2988.6396.2989.2084.2733.9938.3089.4074.08
Qwen3-Embedding-0.6B600MSingle vector75.4275.3484.6964.4290.8286.3991.7291.0186.0531.3636.4889.9976.74

Best result across all sizes is underlined. Best within each size category is bolded.

Colgrep

The LateOn-Code family model can easily be used within ColGrep, an easy-to-use search tool that give their powerful search capabilities to coding agent. It has been designed to extend grep capabilities to get the best of both world and is very effective to enhance the quality of the answer while diminishing answer time and tokens consumption. Given the performance of the very light-weight 17M model, it can easily run quickly on any computer.

Install ColGrep

# macOS / Linux
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.sh | sh

# Windows (PowerShell)
powershell -c "irm https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.ps1 | iex"
# Semantic search — find code by meaning
colgrep "function that retries HTTP requests"

# Regex search
colgrep -e "async fn\s+\w+"

# Hybrid — regex narrows candidates, semantics ranks them
colgrep -e "Result<" "error handling" --include="*.rs"

Install for Claude Code

colgrep --install-claude-code

Choose a Model

# Set the model
colgrep set-model lightonai/LateOn-Code  # default: lightonai/LateOn-Code-edge

For more information about ColGrep, please refer to the official documentation

Model

This is a multi-vector (ColBERT-style late interaction) embedding model finetuned from lightonai/LateOn-Code-edge-pretrain on the apps, synthetictext2sql, cosqa, codefeedbackst, codefeedbackmt, stackoverflowqa, codetranscontest, codetransdl, CodeSearchNet_go, CodeSearchNet_java, CodeSearchNet_javascript, CodeSearchNet_php, CodeSearchNet_python, CodeSearchNet_ruby, CodeSearchNet_ccr_go, CodeSearchNet_ccr_java, CodeSearchNet_ccr_javascript, CodeSearchNet_ccr_php, CodeSearchNet_ccr_python and CodeSearchNet_ccr_ruby datasets. It maps sentences & paragraphs to sequences of 48-dimensional dense vectors and can be used for semantic textual similarity using the MaxSim operator.

Model Details

Model Description

  • Model Type: Multi-vector embedding model

Model Sources

Full Model Architecture

ColBERT(
  (0): Transformer({'max_seq_length': 2047, 'do_lower_case': True, 'architecture': 'ModernBertModel'})
  (1): Dense({'in_features': 256, 'out_features': 512, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'use_residual': False})
  (2): Dense({'in_features': 512, 'out_features': 48, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'use_residual': False})
)

Usage

Sentence Transformers

This model can be used with Sentence Transformers as a multi-vector (ColBERT-style late interaction) retriever via the MultiVectorEncoder:

pip install "sentence-transformers>=6.0.0"
from sentence_transformers import MultiVectorEncoder

model = MultiVectorEncoder("lightonai/LateOn-Code-edge")

query = "Which planet is known as the Red Planet?"
documents = [
    "Venus is often called Earth's twin because of its similar size and proximity.",
    "Mars, known for its reddish appearance, is often referred to as the Red Planet.",
    "Jupiter, the largest planet in our solar system, has a prominent red spot.",
    "Saturn, famous for its rings, is sometimes mistaken for the Red Planet.",
]

query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings[0].shape)
# (12, 48) (18, 48)

# MaxSim late-interaction scoring (higher is more relevant)
scores = model.similarity(query_embeddings, document_embeddings)
print(scores)
# tensor([[4.7185, 7.8521, 7.0537, 7.3523]])

PyLate

First install the PyLate library:

pip install -U pylate

Retrieval

Use this model with PyLate to index and retrieve documents. The index uses FastPLAID for efficient similarity search.

Indexing documents

Load the ColBERT model and initialize the PLAID index, then encode and index your documents:

from pylate import indexes, models, retrieve

# Step 1: Load the ColBERT model
model = models.ColBERT(
    model_name_or_path="pylate_model_id",
)

# Step 2: Initialize the PLAID index
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
    override=True,  # This overwrites the existing index if any
)

# Step 3: Encode the documents
documents_ids = ["1", "2", "3"]
documents = ["document 1 text", "document 2 text", "document 3 text"]

documents_embeddings = model.encode(
    documents,
    batch_size=32,
    is_query=False,  # Ensure that it is set to False to indicate that these are documents, not queries
    show_progress_bar=True,
)

# Step 4: Add document embeddings to the index by providing embeddings and corresponding ids
index.add_documents(
    documents_ids=documents_ids,
    documents_embeddings=documents_embeddings,
)

Note that you do not have to recreate the index and encode the documents every time. Once you have created an index and added the documents, you can re-use the index later by loading it:

# To load an index, simply instantiate it with the correct folder/name and without overriding it
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
)

Retrieving top-k documents for queries

Once the documents are indexed, you can retrieve the top-k most relevant documents for a given set of queries. To do so, initialize the ColBERT retriever with the index you want to search in, encode the queries and then retrieve the top-k documents to get the top matches ids and relevance scores:

# Step 1: Initialize the ColBERT retriever
retriever = retrieve.ColBERT(index=index)

# Step 2: Encode the queries
queries_embeddings = model.encode(
    ["query for document 3", "query for document 1"],
    batch_size=32,
    is_query=True,  #  # Ensure that it is set to False to indicate that these are queries
    show_progress_bar=True,
)

# Step 3: Retrieve top-k documents
scores = retriever.retrieve(
    queries_embeddings=queries_embeddings,
    k=10,  # Retrieve the top 10 matches for each query
)

Reranking

If you only want to use the ColBERT model to perform reranking on top of your first-stage retrieval pipeline without building an index, you can simply use rank function and pass the queries and documents to rerank:

from pylate import rank, models

queries = [
    "query A",
    "query B",
]

documents = [
    ["document A", "document B"],
    ["document 1", "document C", "document B"],
]

documents_ids = [
    [1, 2],
    [1, 3, 2],
]

model = models.ColBERT(
    model_name_or_path="pylate_model_id",
)

queries_embeddings = model.encode(
    queries,
    is_query=True,
)

documents_embeddings = model.encode(
    documents,
    is_query=False,
)

reranked_documents = rank.rerank(
    documents_ids=documents_ids,
    queries_embeddings=queries_embeddings,
    documents_embeddings=documents_embeddings,
)

Evaluation

Metrics

Py Late Information Retrieval

  • Dataset: ['CodeSearchNetPython', 'CodeSearchNetJavascript', 'CodeSearchNetGo', 'CodeSearchNetRuby', 'CodeSearchNetJava', 'CodeSearchNetPhp']
  • Evaluated with pylate.evaluation.pylate_information_retrieval_evaluator.PyLateInformationRetrievalEvaluator
MetricCodeSearchNetPythonCodeSearchNetJavascriptCodeSearchNetGoCodeSearchNetRubyCodeSearchNetJavaCodeSearchNetPhp
MaxSim_accuracy@10.8550.7070.920.7370.7550.802
MaxSim_accuracy@30.9580.8150.9780.870.9140.91
MaxSim_accuracy@50.9720.8450.9870.8990.9370.932
MaxSim_accuracy@100.980.8770.9910.9210.9510.953
MaxSim_precision@10.8550.7070.920.7370.7550.802
MaxSim_precision@30.31930.27170.3260.290.30470.3033
MaxSim_precision@50.19440.1690.19740.17980.18740.1864
MaxSim_precision@100.0980.08770.09910.09210.09510.0953
MaxSim_recall@10.8550.7070.920.7370.7550.802
MaxSim_recall@30.9580.8150.9780.870.9140.91
MaxSim_recall@50.9720.8450.9870.8990.9370.932
MaxSim_recall@100.980.8770.9910.9210.9510.953
MaxSim_ndcg@100.92440.79370.96070.83570.86550.8824
MaxSim_mrr@100.90580.76680.95050.80760.83670.8592
MaxSim_map@1000.90640.76960.95080.80950.83790.86

Code Search Network

  • Dataset: CodeSearchNet_mean
  • Evaluated with pylate.evaluation.code_search_network_evaluator.CodeSearchNetworkEvaluator
MetricValue
MaxSim_accuracy@10.796
MaxSim_accuracy@30.9075
MaxSim_accuracy@50.9287
MaxSim_accuracy@100.9455
MaxSim_precision@10.796
MaxSim_precision@30.3025
MaxSim_precision@50.1857
MaxSim_precision@100.0946
MaxSim_recall@10.796
MaxSim_recall@30.9075
MaxSim_recall@50.9287
MaxSim_recall@100.9455
MaxSim_ndcg@100.8771
MaxSim_mrr@100.8544
MaxSim_map@1000.8557

Training Details

Training Datasets

apps

  • Dataset: apps at 68d15dc
  • Size: 4,985 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'Polycarp has $n$ different binary words. A word called binary if it contains only charact...{'document': "for _ in range(int(input())):\n n = int(input())\n mass = []\n zo = 0\n oz...{'document': "t=int(input())\nfor _ in range(t):\n n=int(input())\n l=list(map(int,input().split()))...
  • Loss: pylate.losses.contrastive.Contrastive

synthetictext2sql

  • Dataset: synthetictext2sql at 68d15dc
  • Size: 99,996 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'What is the total volume of timber sold by each salesperson, sorted by salesperson?', 'qu...{'document': 'SELECT salesperson_id, name, SUM(volume) as total_volume FROM timber_sales JOIN salesp...{'document': 'SELECT salesperson_id, SUM(volume) as total_volume FROM timber_sales JOIN salesperson ...
  • Loss: pylate.losses.contrastive.Contrastive

cosqa

  • Dataset: cosqa at 68d15dc
  • Size: 9,018 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': '1d array in char datatype in python', 'query_id': 9}{'document': 'def _convert_to_array(array_like, dtype):\n """\n Convert Matrix attribu...{'document': 'def astype(array, y):\n """A functional form of the astype method.\n\n Args:\n ...
  • Loss: pylate.losses.contrastive.Contrastive

codefeedbackst

  • Dataset: codefeedbackst at 68d15dc
  • Size: 125,124 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'You are tasked with implementing a Python class that extends a base class and overrides i...{'document': '```python\nclass TestsslFinding(VSFinding):\n def process_finding(self, finding):\n...{'document': '```python\nfrom googlecloudsdk.calliope import base\nfrom googlecloudsdk.api_lib.sql i...
  • Loss: pylate.losses.contrastive.Contrastive

codefeedbackmt

  • Dataset: codefeedbackmt at 68d15dc
  • Size: 52,941 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': "'user': Embark on a comprehensive journey through the intricate realm of quantum computin...{'document': "Regrettably, there are no standard Python libraries available for quantum computing th...{'document': "The provided code block constructs a quantum circuit with a Hadamard gate (which allow...
  • Loss: pylate.losses.contrastive.Contrastive

stackoverflowqa

  • Dataset: stackoverflowqa at 68d15dc
  • Size: 13,934 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'sphinxsearch-0.9 in mediawiki-1.32.0 error 2019/01/14 12:04:51 [error] 21549#21549: *3558...{'document': 'The SearchDatabase class that SphinxSearch extends was changed from REL1_31 to REL1_32...{'document': 'I was running MediaWiki 1.16.0. I upgraded to MediaWiki 1.16.2 and this resolved the ...
  • Loss: pylate.losses.contrastive.Contrastive

codetranscontest

  • Dataset: codetranscontest at 68d15dc
  • Size: 561 training samples
  • Approximate statistics based on the first 561 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'Julia set from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\nde...{'document': '#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 60...{'document': '#include <windows.h>\n#include <ctime>\n#include <string>\n\nconst int BMP_SIZE = 600,...
  • Loss: pylate.losses.contrastive.Contrastive

codetransdl

  • Dataset: codetransdl at 68d15dc
  • Size: 564 training samples
  • Approximate statistics based on the first 564 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'x = tf.range(12)\ntf.size(x)\nX = tf.reshape(x, (3, 4))\ntf.zeros((2, 3, 4))\ntf.ones((2,...{'document': "x = paddle.arange(12)\nx.numel()\nX = paddle.reshape(x, (3, 4))\npaddle.zeros((2, 3, 4...{'document': 'x = torch.arange(12)\nx.numel()\nX = x.reshape(3, 4)\ntorch.zeros((2, 3, 4))\ntorch.on...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_go

  • Dataset: CodeSearchNet_go at 9f89bdc
  • Size: 166,972 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'getStringValue func getStringValue(b []rune) (int, error) {\n\tif b[0] != \'"\' {\n\t\tre...{'document': '// getStringValue will return a quoted string and the amount\n// of bytes read\n//\n//...{'document': '// stringValue returns the string value of string literal e.', 'document_id': 18454}
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_java

  • Dataset: CodeSearchNet_java at 9f89bdc
  • Size: 162,773 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'SCryptUtil.check public static boolean check(String passwd, String hashed) {\n try...{'document': 'Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plai...{'document': 'Compute the the hash value for the String.\n\n@param passwd\nthe password String\n@ret...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_javascript

  • Dataset: CodeSearchNet_javascript at 9f89bdc
  • Size: 56,734 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'function (state, action) {\n return _.defaults({\n isValidating: action.isValidat...{'document': 'Update is validating result\n@param {State} state - state to update\n@param {Action} a...{'document': 'Updates state with newsletter settings submit error\nHolds information only for latest...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_php

  • Dataset: CodeSearchNet_php at 9f89bdc
  • Size: 240,327 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'BreadcrumbCollection.addOne public function addOne($title, $url, array $data = [])\n {...{'document': 'Add a breadcrumb item to collection.\n\n@param string $title\n@param string $url\n...{'document': 'Add a breadcrumb to the collection.\n\n@param string $title\n@param string $url\n@...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_python

  • Dataset: CodeSearchNet_python at 9f89bdc
  • Size: 251,063 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'AbstractElement.settext def settext(self, text, cls=\'current\'):\n """Set the tex...{'document': 'Set the text for this element.\n\n Arguments:\n text (str): The text...{'document': 'Set text value as sole Text child node of element; any existing\n Text nodes ar...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ruby

  • Dataset: CodeSearchNet_ruby at 9f89bdc
  • Size: 24,731 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'CelluloidPubsub.Reactor.handle_parsed_websocket_message def handle_parsed_websocket_messa...{'document': 'method that checks if the data is a Hash\n\n if the data is a hash then will stringify...{'document': "If the message can be parsed into a Hash it will respond to the reactor's websocket co...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_go

  • Dataset: CodeSearchNet_ccr_go at 9f89bdc
  • Size: 167,278 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'getStringValue func getStringValue(b []rune) (int, error) {\n\tif b[0] != \'"\' {\n\t\tre...{'document': ' nil {\n\t\t\t\treturn 0, err\n\t\t\t}\n\n\t\t\tb[i-1] = c\n\t\t\tb = append(b[:i], b[...{'document': '\t\t\treturn 0, "", fmt.Errorf("nothing following final escape in %q", s)\n\t\t\t}\n\t...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_java

  • Dataset: CodeSearchNet_ccr_java at 9f89bdc
  • Size: 164,900 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'SCryptUtil.check public static boolean check(String passwd, String hashed) {\n try...{'document': ' int r = (int) params >> 8 & 0xff;\n int p = (int) params & 0...{'document': '\n } catch (Exception e) {\n throw new IllegalStateException("Validity checks ...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_javascript

  • Dataset: CodeSearchNet_ccr_javascript at 9f89bdc
  • Size: 58,017 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'function (state, action) {\n return _.defaults({\n ', 'query_id': 0}{'document': ' isValidating: action.isValidating,\n lastAction: IS_VALIDATING\n }, state)\n ...{'document': ' baz: action.payload,\n };\n default:\n return state;\n }\n}', 'd...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_php

  • Dataset: CodeSearchNet_ccr_php at 9f89bdc
  • Size: 241,177 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'BreadcrumbCollection.addOne public function addOne($title, $url, array $data = [])\n {...{'document': ' return $this->addBreadcrumb(\n BreadcrumbItem::make($title, $url, $data)\n...{'document': ' $this->breadcrumbs->push(new Breadcrumb($title, $url));\n }', 'document_id': 135...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_python

  • Dataset: CodeSearchNet_ccr_python at 9f89bdc
  • Size: 251,758 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'AbstractElement.settext def settext(self, text, cls=\'current\'):\n """Set the tex...{'document': ' only one text content element of each class associated with the element.\n """...{'document': '\n Jython and has been superseded by the \'ast\' module in Python 2.6 and\n ...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_ruby

  • Dataset: CodeSearchNet_ccr_ruby at 9f89bdc
  • Size: 24,918 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'CelluloidPubsub.Reactor.handle_parsed_websocket_message def handle_parsed_websocket_messa...{'document': " delegate_action(data) if data['client_action'].present?\n else\n han...{'document': ' elsif data[\'method\']\n # RPC notice.\n event = { name: data[\'method\'], ...
  • Loss: pylate.losses.contrastive.Contrastive

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 128
  • per_device_eval_batch_size: 128
  • learning_rate: 3e-05
  • num_train_epochs: 1
  • bf16: True
  • dataloader_num_workers: 8
  • accelerator_config: {'split_batches': True, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}

All Hyperparameters

Click to expand
  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 128
  • per_device_eval_batch_size: 128
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 3e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1.0
  • num_train_epochs: 1
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • bf16: True
  • fp16: False
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: True
  • dataloader_num_workers: 8
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': True, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • parallelism_config: None
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch_fused
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • project: huggingface
  • trackio_space_id: trackio
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: None
  • hub_always_push: False
  • hub_revision: None
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • include_for_metrics: []
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: no
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • use_liger_kernel: False
  • liger_kernel_config: None
  • eval_use_gather_object: False
  • average_tokens_across_devices: True
  • prompts: None
  • batch_sampler: batch_sampler
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

Click to expand
EpochStepTraining LossCodeSearchNetPython_MaxSim_ndcg@10CodeSearchNetJavascript_MaxSim_ndcg@10CodeSearchNetGo_MaxSim_ndcg@10CodeSearchNetRuby_MaxSim_ndcg@10CodeSearchNetJava_MaxSim_ndcg@10CodeSearchNetPhp_MaxSim_ndcg@10CodeSearchNet_mean_MaxSim_ndcg@10
0.000016.4113-------
0.039112503.2574-------
0.0781250019.78620.93770.79860.96220.84870.88370.88340.8857
0.117237504.6875-------
0.156250002.36910.93350.80010.96140.84350.87550.88180.8826
0.195362501.4007-------
0.234475002.57150.93110.79600.96110.84180.87300.88660.8816
0.273487501.5546-------
0.3125100000.0040.93320.79720.96200.84350.87300.88500.8823
0.3515112502.2819-------
0.39061250014.02140.93240.79860.96030.84090.87170.88550.8816
0.4297137502.0774-------
0.4687150001.77240.92720.79550.95920.83810.87330.88380.8795
0.5078162503.8234-------
0.5468175000.70290.93000.79590.95940.83710.86740.88320.8788
0.5859187501.5763-------
0.6250200002.31460.92940.79860.95890.83760.87040.88290.8796
0.66402125013.784-------
0.7031225001.45570.92520.79270.96170.83570.86610.88390.8775
0.7421237504.973-------
0.7812250002.2060.92400.79390.96230.83540.86390.88570.8775
0.8203262500.7343-------
0.8593275000.7270.92510.79260.96080.83620.86760.88290.8775
0.8984287501.7905-------
0.9374300000.72590.92440.79370.96070.83570.86550.88240.8771

Framework Versions

  • Python: 3.12.12
  • Sentence Transformers: 5.1.1
  • PyLate: 1.3.4
  • Transformers: 4.57.3
  • PyTorch: 2.9.0+cu128
  • Accelerate: 1.12.0
  • Datasets: 4.4.2
  • Tokenizers: 0.22.2

Citation

BibTeX

LateOn-Code

@misc{LateOn-Code,
  title  = {LateOn-Code: a Family of State-Of-The-Art Late Interaction Code Retrieval Models},
  author = {Chaffin, Antoine},
  url    = {https://huggingface.co/collections/lightonai/lateon-code},
  year   = {2026}
}

ColGrep

@software{next-plaid,
  title  = {NextPlaid, ColGREP: Multi-vector search, from database to coding agents.},
  url    = {https://github.com/lightonai/next-plaid},
  author = {Raphaël Sourty},
  year   = {2026},
}

CoRNStack

@inproceedings{DBLP:conf/iclr/SureshRXNMDJ25,
  author       = {Tarun Suresh and
                  Revanth Gangi Reddy and
                  Yifei Xu and
                  Zach Nussbaum and
                  Andriy Mulyar and
                  Brandon Duderstadt and
                  Heng Ji},
  title        = {CoRNStack: High-Quality Contrastive Data for Better Code Retrieval
                  and Reranking},
  booktitle    = {The Thirteenth International Conference on Learning Representations,
                  {ICLR} 2025, Singapore, April 24-28, 2025},
  publisher    = {OpenReview.net},
  year         = {2025},
  url          = {https://openreview.net/forum?id=iyJOUELYir},
  timestamp    = {Sun, 25 May 2025 21:25:19 +0200},
  biburl       = {https://dblp.org/rec/conf/iclr/SureshRXNMDJ25.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}

CoIR

@inproceedings{li2025coir,
  title     = {Coir: A comprehensive benchmark for code information retrieval models},
  author    = {Li, Xiangyang and Dong, Kuicai and Lee, Yi Quan and Xia, Wei and Zhang, Hao and Dai, Xinyi and Wang, Yasheng and Tang, Ruiming},
  booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages     = {22074--22091},
  year      = {2025}
}

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
  title     = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
  author    = "Reimers, Nils and Gurevych, Iryna",
  booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
  month     = "11",
  year      = "2019",
  publisher = "Association for Computational Linguistics",
  url       = "https://arxiv.org/abs/1908.10084"
}

PyLate

@inproceedings{DBLP:conf/cikm/ChaffinS25,
  author       = {Antoine Chaffin and
                  Rapha{"{e}}l Sourty},
  editor       = {Meeyoung Cha and
                  Chanyoung Park and
                  Noseong Park and
                  Carl Yang and
                  Senjuti Basu Roy and
                  Jessie Li and
                  Jaap Kamps and
                  Kijung Shin and
                  Bryan Hooi and
                  Lifang He},
  title        = {PyLate: Flexible Training and Retrieval for Late Interaction Models},
  booktitle    = {Proceedings of the 34th {ACM} International Conference on Information
                  and Knowledge Management, {CIKM} 2025, Seoul, Republic of Korea, November
                  10-14, 2025},
  pages        = {6334--6339},
  publisher    = {{ACM}},
  year         = {2025},
  url          = {https://github.com/lightonai/pylate},
  doi          = {10.1145/3746252.3761608},
}

Contributors

NohTow

3 commits

raphaelsty

3 commits

tomaarsen

1 commits

lightonai/LateOn-Code-edge

Model

36

stars

8

commits

1

repos using this model

3

linked in READMEs

Aug 17, 2026

updated

code
code search
ColBERT
embeddings
endpoints_compatible
feature-extraction
generated_from_trainer
model-index
modernbert
multi-vector
onnx
PyLate
retrieval
safetensors
sentence-similarity
sentence-transformers
text-embeddings-inference
Browse cluster: Text Embedding Models & Inference

README

LateOn-Code

The LateOn-Code collection is composed of PyLate models optimized for code retrieval. These late interaction models are first pre-trained following the methodology of CoRNStack. These pre-trained models are then further fine-tuned on train sets of CoIR using the nv-retriever methodology to mine hard negatives while preventing false negatives.

We started from the two best ColBERT models on the BEIR benchmark for their respective sizes. The first one, LateOn-Code is based on in-house LateOn model, a new version of GTE-ModernColBERT-v1 built on ModernBERT-base (also developed at LightOn). This version underwent significantly deeper training, crossing the 57 mark on BEIR, almost a 2.5-point improvement and is thus SOTA by a large margin. We'll release this base model along with training data and boilerplates in the near future, so stay tuned! The second, LateOn-Code-edge is a smaller model based on the edge-colbert model family from mixedbread, using the smallest variant (Ettin-17M) for maximum efficiency. For more details on the training setup, please refer to our blogpost.

The original CoRNStack data in a format compatible with PyLate can be found here while the fine-tuning data can be found here. Training boilerplates can be found here in the PyLate repository

MTEB (Code, v1) benchmark results

Pre-trained models achieve very competitive results as the 17M model outperforms the very strong granite-embedding-small-english-r2 by an average of 1.7. This is truly impressive, as the granite model is almost three times bigger (17M vs 48M), but is also a beast on its own in the <100M parameters range. It also outperforms the larger granite variant (149M). The larger version nicely scales by improving over the performance of its little sibling by 6.5 on average.

Although the pre-training results are already very impressive given that they are mostly out-of-domain, running a proper fine-tuning using the training data of CoIR significantly boost the performance of the models. Notably, the 17M model increases from 57.50 to 66.64 (+9.14), getting pretty close to EmbeddingGemma-300M while being 17 times smaller. The larger one increases from 63.77 to 74.12 (+10.35), strongly outperforming EmbeddingGemma-300M and getting closer to strong LLM models such as Qwen3-Embedding-0.6B and C2LLM-0.5B while being much smaller.

ModelParamsTypeAvgAppsCOIR CSNetCodeEditCodeFB MTCodeFB STCSNet CCCSNetCodeTrans ContestCodeTrans DLCosQAStackOF QASynth T2SQL
Baseline
BM25-Lexical44.414.7640.8649.8559.1968.1553.9760.0147.7834.4218.7570.2624.94
Small (≤50M)
granite-embedding-small-english-r247MSingle vector55.8413.5460.4657.1652.1976.8548.4278.2877.6333.6335.5890.0446.33
LateOn-Code-edge-pretrain17MMulti vector57.5010.8173.7862.0751.9276.6563.2288.0371.3133.1630.5374.6353.83
LateOn-Code-edge17MMulti vector66.6426.2281.6062.2174.2587.1279.2687.8575.3637.0840.5485.6362.57
Δ (fine-tune - pretrain)+9.14+15.41+7.82+0.14+22.33+10.47+16.04-0.18+4.05+3.92+10.01+11.00+8.74
Medium (100M–300M)
granite-embedding-english-r2149MSingle vector57.2213.9664.6559.3552.5477.1847.6780.7977.0735.0337.0191.8049.55
CodeRankEmbed137MSingle vector60.4723.4583.2059.9842.6178.1068.8989.5066.4334.4935.1780.5363.27
GTE-ModernBERT149MSingle vector71.6657.7283.1055.8386.1586.0093.6188.7672.3537.2743.3691.1464.61
embeddinggemma-300m300MSingle vector68.7684.3975.5462.1051.4280.2673.7190.1585.5133.5243.6086.4758.42
LateOn-Code-pretrain149MMulti vector63.7723.0980.2768.7450.2182.6671.4791.0582.2034.4634.1585.6161.34
LateOn-Code149MMulti vector74.1254.7686.5764.9982.2290.4089.3290.4087.4441.0045.2393.4363.67
Δ (fine-tune - pretrain)+10.35+31.67+6.30-3.75+32.01+7.74+17.85-0.65+5.24+6.54+11.08+7.82+2.33
Large (≥500M)
C2LLM-0.5B500MSingle vector75.4661.0286.7171.3992.2988.6396.2989.2084.2733.9938.3089.4074.08
Qwen3-Embedding-0.6B600MSingle vector75.4275.3484.6964.4290.8286.3991.7291.0186.0531.3636.4889.9976.74

Best result across all sizes is underlined. Best within each size category is bolded.

Colgrep

The LateOn-Code family model can easily be used within ColGrep, an easy-to-use search tool that give their powerful search capabilities to coding agent. It has been designed to extend grep capabilities to get the best of both world and is very effective to enhance the quality of the answer while diminishing answer time and tokens consumption. Given the performance of the very light-weight 17M model, it can easily run quickly on any computer.

Install ColGrep

# macOS / Linux
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.sh | sh

# Windows (PowerShell)
powershell -c "irm https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.ps1 | iex"
# Semantic search — find code by meaning
colgrep "function that retries HTTP requests"

# Regex search
colgrep -e "async fn\s+\w+"

# Hybrid — regex narrows candidates, semantics ranks them
colgrep -e "Result<" "error handling" --include="*.rs"

Install for Claude Code

colgrep --install-claude-code

Choose a Model

# Set the model
colgrep set-model lightonai/LateOn-Code  # default: lightonai/LateOn-Code-edge

For more information about ColGrep, please refer to the official documentation

Model

This is a multi-vector (ColBERT-style late interaction) embedding model finetuned from lightonai/LateOn-Code-edge-pretrain on the apps, synthetictext2sql, cosqa, codefeedbackst, codefeedbackmt, stackoverflowqa, codetranscontest, codetransdl, CodeSearchNet_go, CodeSearchNet_java, CodeSearchNet_javascript, CodeSearchNet_php, CodeSearchNet_python, CodeSearchNet_ruby, CodeSearchNet_ccr_go, CodeSearchNet_ccr_java, CodeSearchNet_ccr_javascript, CodeSearchNet_ccr_php, CodeSearchNet_ccr_python and CodeSearchNet_ccr_ruby datasets. It maps sentences & paragraphs to sequences of 48-dimensional dense vectors and can be used for semantic textual similarity using the MaxSim operator.

Model Details

Model Description

  • Model Type: Multi-vector embedding model

Model Sources

Full Model Architecture

ColBERT(
  (0): Transformer({'max_seq_length': 2047, 'do_lower_case': True, 'architecture': 'ModernBertModel'})
  (1): Dense({'in_features': 256, 'out_features': 512, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'use_residual': False})
  (2): Dense({'in_features': 512, 'out_features': 48, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'use_residual': False})
)

Usage

Sentence Transformers

This model can be used with Sentence Transformers as a multi-vector (ColBERT-style late interaction) retriever via the MultiVectorEncoder:

pip install "sentence-transformers>=6.0.0"
from sentence_transformers import MultiVectorEncoder

model = MultiVectorEncoder("lightonai/LateOn-Code-edge")

query = "Which planet is known as the Red Planet?"
documents = [
    "Venus is often called Earth's twin because of its similar size and proximity.",
    "Mars, known for its reddish appearance, is often referred to as the Red Planet.",
    "Jupiter, the largest planet in our solar system, has a prominent red spot.",
    "Saturn, famous for its rings, is sometimes mistaken for the Red Planet.",
]

query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings[0].shape)
# (12, 48) (18, 48)

# MaxSim late-interaction scoring (higher is more relevant)
scores = model.similarity(query_embeddings, document_embeddings)
print(scores)
# tensor([[4.7185, 7.8521, 7.0537, 7.3523]])

PyLate

First install the PyLate library:

pip install -U pylate

Retrieval

Use this model with PyLate to index and retrieve documents. The index uses FastPLAID for efficient similarity search.

Indexing documents

Load the ColBERT model and initialize the PLAID index, then encode and index your documents:

from pylate import indexes, models, retrieve

# Step 1: Load the ColBERT model
model = models.ColBERT(
    model_name_or_path="pylate_model_id",
)

# Step 2: Initialize the PLAID index
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
    override=True,  # This overwrites the existing index if any
)

# Step 3: Encode the documents
documents_ids = ["1", "2", "3"]
documents = ["document 1 text", "document 2 text", "document 3 text"]

documents_embeddings = model.encode(
    documents,
    batch_size=32,
    is_query=False,  # Ensure that it is set to False to indicate that these are documents, not queries
    show_progress_bar=True,
)

# Step 4: Add document embeddings to the index by providing embeddings and corresponding ids
index.add_documents(
    documents_ids=documents_ids,
    documents_embeddings=documents_embeddings,
)

Note that you do not have to recreate the index and encode the documents every time. Once you have created an index and added the documents, you can re-use the index later by loading it:

# To load an index, simply instantiate it with the correct folder/name and without overriding it
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
)

Retrieving top-k documents for queries

Once the documents are indexed, you can retrieve the top-k most relevant documents for a given set of queries. To do so, initialize the ColBERT retriever with the index you want to search in, encode the queries and then retrieve the top-k documents to get the top matches ids and relevance scores:

# Step 1: Initialize the ColBERT retriever
retriever = retrieve.ColBERT(index=index)

# Step 2: Encode the queries
queries_embeddings = model.encode(
    ["query for document 3", "query for document 1"],
    batch_size=32,
    is_query=True,  #  # Ensure that it is set to False to indicate that these are queries
    show_progress_bar=True,
)

# Step 3: Retrieve top-k documents
scores = retriever.retrieve(
    queries_embeddings=queries_embeddings,
    k=10,  # Retrieve the top 10 matches for each query
)

Reranking

If you only want to use the ColBERT model to perform reranking on top of your first-stage retrieval pipeline without building an index, you can simply use rank function and pass the queries and documents to rerank:

from pylate import rank, models

queries = [
    "query A",
    "query B",
]

documents = [
    ["document A", "document B"],
    ["document 1", "document C", "document B"],
]

documents_ids = [
    [1, 2],
    [1, 3, 2],
]

model = models.ColBERT(
    model_name_or_path="pylate_model_id",
)

queries_embeddings = model.encode(
    queries,
    is_query=True,
)

documents_embeddings = model.encode(
    documents,
    is_query=False,
)

reranked_documents = rank.rerank(
    documents_ids=documents_ids,
    queries_embeddings=queries_embeddings,
    documents_embeddings=documents_embeddings,
)

Evaluation

Metrics

Py Late Information Retrieval

  • Dataset: ['CodeSearchNetPython', 'CodeSearchNetJavascript', 'CodeSearchNetGo', 'CodeSearchNetRuby', 'CodeSearchNetJava', 'CodeSearchNetPhp']
  • Evaluated with pylate.evaluation.pylate_information_retrieval_evaluator.PyLateInformationRetrievalEvaluator
MetricCodeSearchNetPythonCodeSearchNetJavascriptCodeSearchNetGoCodeSearchNetRubyCodeSearchNetJavaCodeSearchNetPhp
MaxSim_accuracy@10.8550.7070.920.7370.7550.802
MaxSim_accuracy@30.9580.8150.9780.870.9140.91
MaxSim_accuracy@50.9720.8450.9870.8990.9370.932
MaxSim_accuracy@100.980.8770.9910.9210.9510.953
MaxSim_precision@10.8550.7070.920.7370.7550.802
MaxSim_precision@30.31930.27170.3260.290.30470.3033
MaxSim_precision@50.19440.1690.19740.17980.18740.1864
MaxSim_precision@100.0980.08770.09910.09210.09510.0953
MaxSim_recall@10.8550.7070.920.7370.7550.802
MaxSim_recall@30.9580.8150.9780.870.9140.91
MaxSim_recall@50.9720.8450.9870.8990.9370.932
MaxSim_recall@100.980.8770.9910.9210.9510.953
MaxSim_ndcg@100.92440.79370.96070.83570.86550.8824
MaxSim_mrr@100.90580.76680.95050.80760.83670.8592
MaxSim_map@1000.90640.76960.95080.80950.83790.86

Code Search Network

  • Dataset: CodeSearchNet_mean
  • Evaluated with pylate.evaluation.code_search_network_evaluator.CodeSearchNetworkEvaluator
MetricValue
MaxSim_accuracy@10.796
MaxSim_accuracy@30.9075
MaxSim_accuracy@50.9287
MaxSim_accuracy@100.9455
MaxSim_precision@10.796
MaxSim_precision@30.3025
MaxSim_precision@50.1857
MaxSim_precision@100.0946
MaxSim_recall@10.796
MaxSim_recall@30.9075
MaxSim_recall@50.9287
MaxSim_recall@100.9455
MaxSim_ndcg@100.8771
MaxSim_mrr@100.8544
MaxSim_map@1000.8557

Training Details

Training Datasets

apps

  • Dataset: apps at 68d15dc
  • Size: 4,985 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'Polycarp has $n$ different binary words. A word called binary if it contains only charact...{'document': "for _ in range(int(input())):\n n = int(input())\n mass = []\n zo = 0\n oz...{'document': "t=int(input())\nfor _ in range(t):\n n=int(input())\n l=list(map(int,input().split()))...
  • Loss: pylate.losses.contrastive.Contrastive

synthetictext2sql

  • Dataset: synthetictext2sql at 68d15dc
  • Size: 99,996 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'What is the total volume of timber sold by each salesperson, sorted by salesperson?', 'qu...{'document': 'SELECT salesperson_id, name, SUM(volume) as total_volume FROM timber_sales JOIN salesp...{'document': 'SELECT salesperson_id, SUM(volume) as total_volume FROM timber_sales JOIN salesperson ...
  • Loss: pylate.losses.contrastive.Contrastive

cosqa

  • Dataset: cosqa at 68d15dc
  • Size: 9,018 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': '1d array in char datatype in python', 'query_id': 9}{'document': 'def _convert_to_array(array_like, dtype):\n """\n Convert Matrix attribu...{'document': 'def astype(array, y):\n """A functional form of the astype method.\n\n Args:\n ...
  • Loss: pylate.losses.contrastive.Contrastive

codefeedbackst

  • Dataset: codefeedbackst at 68d15dc
  • Size: 125,124 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'You are tasked with implementing a Python class that extends a base class and overrides i...{'document': '```python\nclass TestsslFinding(VSFinding):\n def process_finding(self, finding):\n...{'document': '```python\nfrom googlecloudsdk.calliope import base\nfrom googlecloudsdk.api_lib.sql i...
  • Loss: pylate.losses.contrastive.Contrastive

codefeedbackmt

  • Dataset: codefeedbackmt at 68d15dc
  • Size: 52,941 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': "'user': Embark on a comprehensive journey through the intricate realm of quantum computin...{'document': "Regrettably, there are no standard Python libraries available for quantum computing th...{'document': "The provided code block constructs a quantum circuit with a Hadamard gate (which allow...
  • Loss: pylate.losses.contrastive.Contrastive

stackoverflowqa

  • Dataset: stackoverflowqa at 68d15dc
  • Size: 13,934 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'sphinxsearch-0.9 in mediawiki-1.32.0 error 2019/01/14 12:04:51 [error] 21549#21549: *3558...{'document': 'The SearchDatabase class that SphinxSearch extends was changed from REL1_31 to REL1_32...{'document': 'I was running MediaWiki 1.16.0. I upgraded to MediaWiki 1.16.2 and this resolved the ...
  • Loss: pylate.losses.contrastive.Contrastive

codetranscontest

  • Dataset: codetranscontest at 68d15dc
  • Size: 561 training samples
  • Approximate statistics based on the first 561 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'Julia set from __future__ import division\n\ncX = -0.7\ncY = 0.27015\nmaxIter = 300\n\nde...{'document': '#include <windows.h>\n#include <string>\n#include <complex>\n\nconst int BMP_SIZE = 60...{'document': '#include <windows.h>\n#include <ctime>\n#include <string>\n\nconst int BMP_SIZE = 600,...
  • Loss: pylate.losses.contrastive.Contrastive

codetransdl

  • Dataset: codetransdl at 68d15dc
  • Size: 564 training samples
  • Approximate statistics based on the first 564 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'x = tf.range(12)\ntf.size(x)\nX = tf.reshape(x, (3, 4))\ntf.zeros((2, 3, 4))\ntf.ones((2,...{'document': "x = paddle.arange(12)\nx.numel()\nX = paddle.reshape(x, (3, 4))\npaddle.zeros((2, 3, 4...{'document': 'x = torch.arange(12)\nx.numel()\nX = x.reshape(3, 4)\ntorch.zeros((2, 3, 4))\ntorch.on...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_go

  • Dataset: CodeSearchNet_go at 9f89bdc
  • Size: 166,972 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'getStringValue func getStringValue(b []rune) (int, error) {\n\tif b[0] != \'"\' {\n\t\tre...{'document': '// getStringValue will return a quoted string and the amount\n// of bytes read\n//\n//...{'document': '// stringValue returns the string value of string literal e.', 'document_id': 18454}
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_java

  • Dataset: CodeSearchNet_java at 9f89bdc
  • Size: 162,773 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'SCryptUtil.check public static boolean check(String passwd, String hashed) {\n try...{'document': 'Compare the supplied plaintext password to a hashed password.\n\n@param passwd Plai...{'document': 'Compute the the hash value for the String.\n\n@param passwd\nthe password String\n@ret...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_javascript

  • Dataset: CodeSearchNet_javascript at 9f89bdc
  • Size: 56,734 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'function (state, action) {\n return _.defaults({\n isValidating: action.isValidat...{'document': 'Update is validating result\n@param {State} state - state to update\n@param {Action} a...{'document': 'Updates state with newsletter settings submit error\nHolds information only for latest...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_php

  • Dataset: CodeSearchNet_php at 9f89bdc
  • Size: 240,327 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'BreadcrumbCollection.addOne public function addOne($title, $url, array $data = [])\n {...{'document': 'Add a breadcrumb item to collection.\n\n@param string $title\n@param string $url\n...{'document': 'Add a breadcrumb to the collection.\n\n@param string $title\n@param string $url\n@...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_python

  • Dataset: CodeSearchNet_python at 9f89bdc
  • Size: 251,063 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'AbstractElement.settext def settext(self, text, cls=\'current\'):\n """Set the tex...{'document': 'Set the text for this element.\n\n Arguments:\n text (str): The text...{'document': 'Set text value as sole Text child node of element; any existing\n Text nodes ar...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ruby

  • Dataset: CodeSearchNet_ruby at 9f89bdc
  • Size: 24,731 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'CelluloidPubsub.Reactor.handle_parsed_websocket_message def handle_parsed_websocket_messa...{'document': 'method that checks if the data is a Hash\n\n if the data is a hash then will stringify...{'document': "If the message can be parsed into a Hash it will respond to the reactor's websocket co...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_go

  • Dataset: CodeSearchNet_ccr_go at 9f89bdc
  • Size: 167,278 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'getStringValue func getStringValue(b []rune) (int, error) {\n\tif b[0] != \'"\' {\n\t\tre...{'document': ' nil {\n\t\t\t\treturn 0, err\n\t\t\t}\n\n\t\t\tb[i-1] = c\n\t\t\tb = append(b[:i], b[...{'document': '\t\t\treturn 0, "", fmt.Errorf("nothing following final escape in %q", s)\n\t\t\t}\n\t...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_java

  • Dataset: CodeSearchNet_ccr_java at 9f89bdc
  • Size: 164,900 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'SCryptUtil.check public static boolean check(String passwd, String hashed) {\n try...{'document': ' int r = (int) params >> 8 & 0xff;\n int p = (int) params & 0...{'document': '\n } catch (Exception e) {\n throw new IllegalStateException("Validity checks ...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_javascript

  • Dataset: CodeSearchNet_ccr_javascript at 9f89bdc
  • Size: 58,017 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'function (state, action) {\n return _.defaults({\n ', 'query_id': 0}{'document': ' isValidating: action.isValidating,\n lastAction: IS_VALIDATING\n }, state)\n ...{'document': ' baz: action.payload,\n };\n default:\n return state;\n }\n}', 'd...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_php

  • Dataset: CodeSearchNet_ccr_php at 9f89bdc
  • Size: 241,177 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'BreadcrumbCollection.addOne public function addOne($title, $url, array $data = [])\n {...{'document': ' return $this->addBreadcrumb(\n BreadcrumbItem::make($title, $url, $data)\n...{'document': ' $this->breadcrumbs->push(new Breadcrumb($title, $url));\n }', 'document_id': 135...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_python

  • Dataset: CodeSearchNet_ccr_python at 9f89bdc
  • Size: 251,758 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'AbstractElement.settext def settext(self, text, cls=\'current\'):\n """Set the tex...{'document': ' only one text content element of each class associated with the element.\n """...{'document': '\n Jython and has been superseded by the \'ast\' module in Python 2.6 and\n ...
  • Loss: pylate.losses.contrastive.Contrastive

CodeSearchNet_ccr_ruby

  • Dataset: CodeSearchNet_ccr_ruby at 9f89bdc
  • Size: 24,918 training samples
  • Approximate statistics based on the first 1000 samples:
    querypositivenegative_0negative_1negative_2negative_3negative_4negative_5negative_6negative_7negative_8negative_9negative_10negative_11negative_12negative_13negative_14negative_15negative_16negative_17negative_18negative_19negative_20negative_21negative_22negative_23negative_24negative_25negative_26negative_27negative_28negative_29negative_30negative_31negative_32negative_33negative_34negative_35negative_36negative_37negative_38negative_39negative_40negative_41negative_42negative_43negative_44negative_45negative_46negative_47negative_48negative_49
    typedictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdictdict
    details
  • Samples:
    querypositivenegative_0
    {'query': 'CelluloidPubsub.Reactor.handle_parsed_websocket_message def handle_parsed_websocket_messa...{'document': " delegate_action(data) if data['client_action'].present?\n else\n han...{'document': ' elsif data[\'method\']\n # RPC notice.\n event = { name: data[\'method\'], ...
  • Loss: pylate.losses.contrastive.Contrastive

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 128
  • per_device_eval_batch_size: 128
  • learning_rate: 3e-05
  • num_train_epochs: 1
  • bf16: True
  • dataloader_num_workers: 8
  • accelerator_config: {'split_batches': True, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}

All Hyperparameters

Click to expand
  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 128
  • per_device_eval_batch_size: 128
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 3e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1.0
  • num_train_epochs: 1
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • bf16: True
  • fp16: False
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: True
  • dataloader_num_workers: 8
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': True, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • parallelism_config: None
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch_fused
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • project: huggingface
  • trackio_space_id: trackio
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: None
  • hub_always_push: False
  • hub_revision: None
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • include_for_metrics: []
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: no
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • use_liger_kernel: False
  • liger_kernel_config: None
  • eval_use_gather_object: False
  • average_tokens_across_devices: True
  • prompts: None
  • batch_sampler: batch_sampler
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

Click to expand
EpochStepTraining LossCodeSearchNetPython_MaxSim_ndcg@10CodeSearchNetJavascript_MaxSim_ndcg@10CodeSearchNetGo_MaxSim_ndcg@10CodeSearchNetRuby_MaxSim_ndcg@10CodeSearchNetJava_MaxSim_ndcg@10CodeSearchNetPhp_MaxSim_ndcg@10CodeSearchNet_mean_MaxSim_ndcg@10
0.000016.4113-------
0.039112503.2574-------
0.0781250019.78620.93770.79860.96220.84870.88370.88340.8857
0.117237504.6875-------
0.156250002.36910.93350.80010.96140.84350.87550.88180.8826
0.195362501.4007-------
0.234475002.57150.93110.79600.96110.84180.87300.88660.8816
0.273487501.5546-------
0.3125100000.0040.93320.79720.96200.84350.87300.88500.8823
0.3515112502.2819-------
0.39061250014.02140.93240.79860.96030.84090.87170.88550.8816
0.4297137502.0774-------
0.4687150001.77240.92720.79550.95920.83810.87330.88380.8795
0.5078162503.8234-------
0.5468175000.70290.93000.79590.95940.83710.86740.88320.8788
0.5859187501.5763-------
0.6250200002.31460.92940.79860.95890.83760.87040.88290.8796
0.66402125013.784-------
0.7031225001.45570.92520.79270.96170.83570.86610.88390.8775
0.7421237504.973-------
0.7812250002.2060.92400.79390.96230.83540.86390.88570.8775
0.8203262500.7343-------
0.8593275000.7270.92510.79260.96080.83620.86760.88290.8775
0.8984287501.7905-------
0.9374300000.72590.92440.79370.96070.83570.86550.88240.8771

Framework Versions

  • Python: 3.12.12
  • Sentence Transformers: 5.1.1
  • PyLate: 1.3.4
  • Transformers: 4.57.3
  • PyTorch: 2.9.0+cu128
  • Accelerate: 1.12.0
  • Datasets: 4.4.2
  • Tokenizers: 0.22.2

Citation

BibTeX

LateOn-Code

@misc{LateOn-Code,
  title  = {LateOn-Code: a Family of State-Of-The-Art Late Interaction Code Retrieval Models},
  author = {Chaffin, Antoine},
  url    = {https://huggingface.co/collections/lightonai/lateon-code},
  year   = {2026}
}

ColGrep

@software{next-plaid,
  title  = {NextPlaid, ColGREP: Multi-vector search, from database to coding agents.},
  url    = {https://github.com/lightonai/next-plaid},
  author = {Raphaël Sourty},
  year   = {2026},
}

CoRNStack

@inproceedings{DBLP:conf/iclr/SureshRXNMDJ25,
  author       = {Tarun Suresh and
                  Revanth Gangi Reddy and
                  Yifei Xu and
                  Zach Nussbaum and
                  Andriy Mulyar and
                  Brandon Duderstadt and
                  Heng Ji},
  title        = {CoRNStack: High-Quality Contrastive Data for Better Code Retrieval
                  and Reranking},
  booktitle    = {The Thirteenth International Conference on Learning Representations,
                  {ICLR} 2025, Singapore, April 24-28, 2025},
  publisher    = {OpenReview.net},
  year         = {2025},
  url          = {https://openreview.net/forum?id=iyJOUELYir},
  timestamp    = {Sun, 25 May 2025 21:25:19 +0200},
  biburl       = {https://dblp.org/rec/conf/iclr/SureshRXNMDJ25.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}

CoIR

@inproceedings{li2025coir,
  title     = {Coir: A comprehensive benchmark for code information retrieval models},
  author    = {Li, Xiangyang and Dong, Kuicai and Lee, Yi Quan and Xia, Wei and Zhang, Hao and Dai, Xinyi and Wang, Yasheng and Tang, Ruiming},
  booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages     = {22074--22091},
  year      = {2025}
}

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
  title     = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
  author    = "Reimers, Nils and Gurevych, Iryna",
  booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
  month     = "11",
  year      = "2019",
  publisher = "Association for Computational Linguistics",
  url       = "https://arxiv.org/abs/1908.10084"
}

PyLate

@inproceedings{DBLP:conf/cikm/ChaffinS25,
  author       = {Antoine Chaffin and
                  Rapha{"{e}}l Sourty},
  editor       = {Meeyoung Cha and
                  Chanyoung Park and
                  Noseong Park and
                  Carl Yang and
                  Senjuti Basu Roy and
                  Jessie Li and
                  Jaap Kamps and
                  Kijung Shin and
                  Bryan Hooi and
                  Lifang He},
  title        = {PyLate: Flexible Training and Retrieval for Late Interaction Models},
  booktitle    = {Proceedings of the 34th {ACM} International Conference on Information
                  and Knowledge Management, {CIKM} 2025, Seoul, Republic of Korea, November
                  10-14, 2025},
  pages        = {6334--6339},
  publisher    = {{ACM}},
  year         = {2025},
  url          = {https://github.com/lightonai/pylate},
  doi          = {10.1145/3746252.3761608},
}

Contributors

NohTow

3 commits

raphaelsty

3 commits

tomaarsen

1 commits