Model reference · open weights

LateOn-Code-edge

Embeddings lightonai Embeddings 1 build Open weights 3k dl/mo

LateOn-Code-edge is an open-weight embedding model from lightonai. LateOn-Code-edge (FP32) weighs 34 MB; the smallest configuration that runs it is RTX 3060 12 GB.

  • LateOn-Code-edge is a 17M parameter multi-vector embedding model by lightonai designed for code retrieval and sentence-similarity tasks.
  • It supports English and code with a context length of 7999 tokens and is released under the Apache 2.0 license.

Summary of the lightonai/LateOn-Code-edge model card, 2026-10-01

What it is

Released bylightonai
Released2026-02-05
Parameters17M
VRAM34 MB for the weights

What it runs on

Memory and cards for LateOn-Code-edge (FP32)

34 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What lightonai says about LateOn-Code-edge

Read the model card

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

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

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.855
Py Late Information RetrievalCodeSearchNetPythonMaxsim Accuracy@30.958
Py Late Information RetrievalCodeSearchNetPythonMaxsim Accuracy@50.972
Py Late Information RetrievalCodeSearchNetPythonMaxsim Accuracy@100.980
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@10.855
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@30.319
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@50.194
Py Late Information RetrievalCodeSearchNetPythonMaxsim Precision@100.098
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@10.855
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@30.958
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@50.972
Py Late Information RetrievalCodeSearchNetPythonMaxsim Recall@100.980
Py Late Information RetrievalCodeSearchNetPythonMaxsim Ndcg@100.924
Py Late Information RetrievalCodeSearchNetPythonMaxsim Mrr@100.906
Py Late Information RetrievalCodeSearchNetPythonMaxsim Map@1000.906
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@10.707
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@30.815
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@50.845
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Accuracy@100.877
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@10.707
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@30.272
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@50.169
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Precision@100.088
Py Late Information RetrievalCodeSearchNetJavascriptMaxsim Recall@10.707
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms