Model reference · open weights
LateOn-Code-edge 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
| Maker | lightonai |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 17M |
| Context | 7999 tokens |
| Runs with | PyLate |
| Released | 2026-02-05 |
| Popularity | 3k downloads / month |
| Licence | Open weights |
About
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
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.
| Model | Params | Type | Avg | Apps | COIR CSNet | CodeEdit | CodeFB MT | CodeFB ST | CSNet CC | CSNet | CodeTrans Contest | CodeTrans DL | CosQA | StackOF QA | Synth T2SQL |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | |||||||||||||||
| BM25 | - | Lexical | 44.41 | 4.76 | 40.86 | 49.85 | 59.19 | 68.15 | 53.97 | 60.01 | 47.78 | 34.42 | 18.75 | 70.26 | 24.94 |
| Small (≤50M) | |||||||||||||||
| granite-embedding-small-english-r2 | 47M | Single vector | 55.84 | 13.54 | 60.46 | 57.16 | 52.19 | 76.85 | 48.42 | 78.28 | 77.63 | 33.63 | 35.58 | 90.04 | 46.33 |
| LateOn-Code-edge-pretrain | 17M | Multi vector | 57.50 | 10.81 | 73.78 | 62.07 | 51.92 | 76.65 | 63.22 | 88.03 | 71.31 | 33.16 | 30.53 | 74.63 | 53.83 |
| LateOn-Code-edge | 17M | Multi vector | 66.64 | 26.22 | 81.60 | 62.21 | 74.25 | 87.12 | 79.26 | 87.85 | 75.36 | 37.08 | 40.54 | 85.63 | 62.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-r2 | 149M | Single vector | 57.22 | 13.96 | 64.65 | 59.35 | 52.54 | 77.18 | 47.67 | 80.79 | 77.07 | 35.03 | 37.01 | 91.80 | 49.55 |
| CodeRankEmbed | 137M | Single vector | 60.47 | 23.45 | 83.20 | 59.98 | 42.61 | 78.10 | 68.89 | 89.50 | 66.43 | 34.49 | 35.17 | 80.53 | 63.27 |
| GTE-ModernBERT | 149M | Single vector | 71.66 | 57.72 | 83.10 | 55.83 | 86.15 | 86.00 | 93.61 | 88.76 | 72.35 | 37.27 | 43.36 | 91.14 | 64.61 |
| embeddinggemma-300m | 300M | Single vector | 68.76 | 84.39 | 75.54 | 62.10 | 51.42 | 80.26 | 73.71 | 90.15 | 85.51 | 33.52 | 43.60 | 86.47 | 58.42 |
| LateOn-Code-pretrain | 149M | Multi vector | 63.77 | 23.09 | 80.27 | 68.74 | 50.21 | 82.66 | 71.47 | 91.05 | 82.20 | 34.46 | 34.15 | 85.61 | 61.34 |
| LateOn-Code | 149M | Multi vector | 74.12 | 54.76 | 86.57 | 64.99 | 82.22 | 90.40 | 89.32 | 90.40 | 87.44 | 41.00 | 45.23 | 93.43 | 63.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.5B | 500M | Single vector | 75.46 | 61.02 | 86.71 | 71.39 | 92.29 | 88.63 | 96.29 | 89.20 | 84.27 | 33.99 | 38.30 | 89.40 | 74.08 |
| Qwen3-Embedding-0.6B | 600M | Single vector | 75.42 | 75.34 | 84 |
From the published model card. Full card on the HuggingFace links in the sidebar.
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Accuracy@1 | 0.855 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Accuracy@3 | 0.958 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Accuracy@5 | 0.972 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Accuracy@10 | 0.980 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Precision@1 | 0.855 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Precision@3 | 0.319 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Precision@5 | 0.194 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Precision@10 | 0.098 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Recall@1 | 0.855 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Recall@3 | 0.958 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Recall@5 | 0.972 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Recall@10 | 0.980 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Ndcg@10 | 0.924 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Mrr@10 | 0.906 |
| Py Late Information Retrieval | CodeSearchNetPython | Maxsim Map@100 | 0.906 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Accuracy@1 | 0.707 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Accuracy@3 | 0.815 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Accuracy@5 | 0.845 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Accuracy@10 | 0.877 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Precision@1 | 0.707 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Precision@3 | 0.272 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Precision@5 | 0.169 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Precision@10 | 0.088 |
| Py Late Information Retrieval | CodeSearchNetJavascript | Maxsim Recall@1 | 0.707 |
Using it via the API
Once AxForge deploys lateon-code-edge for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (lateon-code-edge 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-edge","input":"text to embed"}'
Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.