Skip to main content

Model guide

LFM2.5 ColBERT 350M

LFM2.5 ColBERT 350M keeps multiple token-level vectors rather than one vector for each passage. It can support late-interaction retrieval or reranking, but needs compatible scoring and index software. Choose it for that retrieval experiment, not as a drop-in replacement inside an ordinary single-vector database.

0.35BEmbedding512 token contextView the model card →

At a glance

Parameters
0.35B
Accepts
Text
Returns
Vectors
Published context limit
512 tokens
Model format
safetensors · GGUF
Software and download hosts
llama.cpp. Follow the exact setup below; this list does not establish support for every format, input type or software version.
Suggested compression
Q4_K_M
Model-weight download
Q4_K_M weights · 0.23 GBLiquidAI (model publisher)LFM2.5-ColBERT-350M-Q4_K_M.gguf
Languages
Arabic · German · English · Spanish · French · Italian · Japanese · Korean · Norwegian · Portuguese · Swedish
License
LFM Open License v1.0 (commercial use is subject to the US$10 million annual-revenue threshold in section 5)

Measure the index size as well as query time. Each passage stores multiple token vectors.

Best for

  • Use token-level matching when your index supports ColBERT scoring. Compare retrieval on near-identical passages whose key terms differ.

Choose something else when

  • If the database accepts only one vector per passage, choose the dense 350M embedding model instead.

Using this model for document search

Select this model for the document-search step in an app that supports it. Keep the model that generates answers separate. Check document chunk length and any required query or document prefixes in the model’s instructions.

Changing the embedding model changes the document vectors. Rebuild the document index rather than mixing vectors from different models.

First setup

The Python workflow loads LiquidAI/LFM2.5-ColBERT-350M (0.71 GB for the safetensors weights, plus tokenizer/configuration files). The 0.23 GB Q4_K_M GGUF is a separate download for a compatible GGUF model runner; the Python example does not load it. Loaded memory depends on dtype, input length, batch size and model runner.

ColBERT stores multiple vectors per passage and scores them with late interaction. It is not interchangeable with a single-vector embedding model. Install python -m pip install "sentence-transformers>=6.0.0". This model requires publisher Python code; read it before allowing trust_remote_code=True to execute it.

from sentence_transformers import MultiVectorEncoder
model = MultiVectorEncoder("LiquidAI/LFM2.5-ColBERT-350M", trust_remote_code=True, device="cpu")
queries = model.encode_query(["When does the meeting start?"], batch_size=1)
documents = model.encode_document(["The meeting starts at 10:30.", "Lunch is at noon."], batch_size=1)
print(queries[0].shape, documents[0].shape)
print(model.similarity(queries, documents))

Expect a matrix of token vectors for each input and two passage scores, not one fixed vector per passage. Check the relative ranking against the words in the passages. A production index must support ColBERT-style vectors and MaxSim scoring; putting these matrices into an ordinary dense-vector index is not the same workflow.

Save the Python example as example.py, then run python example.py in the environment where you installed its packages. The first run downloads model files; later local execution still needs the cached files. Start with these short inputs and batch size 1. If loading runs out of memory, close other model processes or use a smaller model; do not interpret missing output as an empty search result. See the publisher model card for the full workflow.

Keep documents within 512 tokens and queries within 32 tokens, including the model’s prompt handling. Inspect truncation on long questions before trusting a ranking.