---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

[Models](/models)/[Embeddings](/models?category=embeddings)/lightonai/LateOn-Code

HFText EmbeddingsApache 2.0

# LateOn-Code

by lightonai

ColBERT-style late interaction model purpose-built for code retrieval

N/Adl/month

149Mparams

[HuggingFace](https://huggingface.co/lightonai/LateOn-Code)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`lightonai/LateOn-Code`

## Deploy LateOn-Code

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

LateOn-Code is a late-interaction (ColBERT-style) embedding model specifically designed for code retrieval. Unlike dense single-vector code embedders that compress an entire function into one vector, LateOn-Code preserves token-level information through multi-vector representations, enabling precise matching of variable names, API calls, and code patterns.

On Mixpeek, LateOn-Code enables semantic code search across codebases: find functions by describing what they do, locate similar implementations across repositories, or search for specific API usage patterns. The 149M parameter size makes it deployable alongside heavier models without significant overhead.

## Architecture

ModernBERT backbone fine-tuned for ColBERT-style multi-vector output. 149M parameters. Produces per-token embeddings for late interaction scoring. Also available as a 17M edge variant (LateOn-Code-edge) that outperforms models 3x its size.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so LateOn-Code runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The vector name has to match a vector index on the collection.
          vectors: { "text-embedding": yourVector },
          payload: { source\_key: "archive/2026/asset-00412" },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// text\_extractor@v1 runs intfloat/multilingual-e5-large-instruct
// (1024-d) over a bucket, with no inference of your own.

## Capabilities

*   SOTA code retrieval on MTEB Code v1 (74.12 nDCG avg)
*   ColBERT-style token-level matching for precise code search
*   Understands variable names, API calls, and code structure
*   149M params: lightweight enough for real-time search
*   Apache 2.0 license

## Use Cases on Mixpeek

Semantic code search: find functions by natural language description

Code duplication detection: locate similar implementations across repos

API usage discovery: search for specific library or framework patterns

Code review assistance: find related code for context during reviews

## Benchmarks

Dataset

Metric

Score

Source

MTEB Code v1

nDCG avg

74.12

LightOn, 2026

BEIR

nDCG@10

\>57.0

LightOn, 2026

## Performance

Input SizeCode (up to 8192 tokens)

Embedding Dim128 per token (multi-vector)

GPU Latency~8ms / function (A100)

GPU Throughput~125 functions/sec (A100)

GPU Memory~0.6 GB

## Common Pipeline Companions

[

Salesforce/codet5p-110m-embedding

Dense first-stage retrieval before ColBERT reranking

](/model/Salesforce/codet5p-110m-embedding)[

microsoft/codebert-base

Code understanding for semantic analysis

](/model/microsoft/codebert-base)

## Explore on Mixpeek

[

More Embeddings models

Compare alternatives in this category

](/models?category=embeddings)[

Best Self-Hosted Embedding Models

Hand-picked tools & platforms compared

](/curated-lists/best-self-hosted-embedding-models)[

Instruction-Tuned Embeddings

Deep-dive technical guide

](/guides/instruction-tuned-embeddings)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationlightonai

FeatureText Embeddings

Output1024-dim vector

Modalitiesdocument, audio

RetrieverText Similarity

Parameters149M

LicenseApache 2.0

Downloads/moN/A

[

### Research Paper

LateOn-Code: ColBERT for Code Retrieval

arxiv.org](https://huggingface.co/lightonai/LateOn-Code)

### Build a pipeline with LateOn-Code

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

BAAI/bge-large-en-v1.5

Text Embeddings

](/model/BAAI/bge-large-en-v1.5)[

sentence-transformers/all-MiniLM-L6-v2

Text Embeddings

](/model/sentence-transformers/all-MiniLM-L6-v2)[

Qwen/Qwen3-Embedding-0.6B

Text Embeddings

](/model/Qwen/Qwen3-Embedding-0.6B)[

nomic-ai/nomic-embed-text-v2-moe

Text Embeddings

](/model/nomic-ai/nomic-embed-text-v2-moe)

### Related in Embeddings

[

openai/clip-vit-large-patch14

Visual Embeddings

](/model/openai/clip-vit-large-patch14)[

google/siglip-base-patch16-224

Visual Embeddings

](/model/google/siglip-base-patch16-224)[

google/siglip2-giant-opt-patch16-384

Visual Embeddings

](/model/google/siglip2-giant-opt-patch16-384)[

facebook/dinov2-large

Visual Embeddings

](/model/facebook/dinov2-large)