Model reference · open weights

LateOn-Code

Available as managed deployment Embeddings lightonai Embeddings 1 variants 2k dl/mo

LateOn-Code is an open-weight embedding model from lightonai. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released bylightonai
TypeEmbedding models
TaskEmbeddings
Parameters (lead)149M
Context8k tokens
Runs withPyLate
Released2026-02-11
Popularity2k downloads / month
LicenceOpen weights

About

What LateOn-Code is

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.

Read the full model card

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

From the published model card. Full card on the HuggingFace links in the sidebar.

Benchmarks

Reported results

As published on the model card — the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
Py Late Information RetrievalCodeSearchNetPythonMaxsim Accuracy@10.884
Py Late Information RetrievalCodeSearchNetPythonMaxsim Accuracy@30.965
Py Late Information RetrievalCodeSearchNetPythonMaxsim Accuracy@50.976
Py Late Information RetrievalCodeSearchNetPythonMaxsim Accuracy@100.984
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@10.884
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@30.322
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@50.195
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@100.098
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@10.884
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@30.965
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@50.976
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@100.984
Py Late Information RetrievalCodeSearchNetPythonMaxsim Ndcg@100.939
Py Late Information RetrievalCodeSearchNetPythonMaxsim Mrr@100.924
Py Late Information RetrievalCodeSearchNetPythonMaxsim Map@1000.925
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@10.737
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@30.839
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@50.866
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@100.888
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@10.737
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@30.280
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@50.173
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@100.089
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Recall@10.737

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys lateon-code for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (lateon-code below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"lateon-code","input":"text to embed"}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms