LiquidAI/LFM2-ColBERT-350M

Model

153

stars

14

commits

9

repos using this model

2

linked in READMEs

Aug 18, 2026

updated

ColBERT
edge
feature-extraction
lfm2
liquid
model-index
multi-vector
PyLate
safetensors
sentence-similarity
sentence-transformers
Browse cluster: Large Language Models with PyTorch

README

Liquid AI
Try LFMDocsLEAPDiscord

LFM2-ColBERT-350M

LFM2-ColBERT-350M is a late interaction retriever with excellent multilingual performance. It allows you to store documents in one language (for example, a product description in English) and retrieve them in many languages with high accuracy.

  • LFM2-ColBERT-350M offers best-in-class accuracy across different languages.
  • Inference speed is on par with models 2.3 times smaller, thanks to the efficient LFM2 backbone.
  • You can use it as a drop-in replacement in your current RAG pipelines to improve performance.

Find more information about LFM2-ColBERT-350M in our blog post.

[!NOTE] 🚀 Try our demo: https://huggingface.co/spaces/LiquidAI/LFM2-ColBERT

📄 Model details

Late interaction retrievers like LFM2-ColBERT-350M are particularly interesting because they preserve much of the expressivity of re-rankers while retaining the efficiency of bi-encoders. In practice, they're used to both retrieve documents at scale (like bi-encoders) and rank them at the same time (like rerankers).

image

We recommend using this model for various RAG use cases, such as:

  • E-commerce: Find products across many languages with semantic search at scale.
  • On-device semantic search: Ask questions to your phone in natural language to retrieve files, emails, and notes.
  • Enterprise knowledge assistants: Retrieve internal legal, financial, and technical documents in different languages.
PropertyLFM2-ColBERT-350M
Total parameters353,322,752
Layers17 (10 conv + 6 attn + 1 dense)
Vocabulary size64,402
Training precisionBF16
LicenseLFM Open License v1.0

Document length: 512 tokens

Query length: 32 tokens

Output dimensionality: 128 tokens

Similarity function: MaxSim

Supported languages: English, Arabic, Chinese, French, German, Japanese, Korean, and Spanish.

ColBERT(
  (0): Transformer({'max_seq_length': 511, 'do_lower_case': False}) with Transformer model: Lfm2Model 
  (1): Dense({'in_features': 1024, 'out_features': 128, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
)

🏃 How to run

Colab link

Sentence Transformers

This model can be used with Sentence Transformers as a multi-vector (ColBERT-style late interaction) retriever via the MultiVectorEncoder:

pip install "sentence-transformers>=6.0.0"
from sentence_transformers import MultiVectorEncoder

model = MultiVectorEncoder("LiquidAI/LFM2-ColBERT-350M")

query = "Which planet is known as the Red Planet?"
documents = [
    "Venus wird oft als Zwilling der Erde bezeichnet, wegen ihrer ähnlichen Größe.",
    "Mars, connue pour son apparence rougeâtre, est souvent appelée la planète rouge.",
    "Júpiter es el planeta más grande del sistema solar.",
    "Saturno è famoso per i suoi bellissimi anelli.",
]

query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings[0].shape)
# (32, 128) (17, 128)

# MaxSim late-interaction scoring (higher is more relevant)
scores = model.similarity(query_embeddings, document_embeddings)
print(scores)
# tensor([[30.3632, 30.4892, 30.4024, 30.3004]])

PyLate

First, install the PyLate and transformers library:

pip install -U pylate

Retrieval

Use this model with PyLate to index and retrieve documents. The index uses FastPLAID for efficient similarity search.

Indexing documents

Load LFM2-ColBERT-350M and initialize the PLAID index, then encode and index your documents:

from pylate import indexes, models, retrieve

# Step 1: Load the ColBERT model
model = models.ColBERT(
    model_name_or_path="LiquidAI/LFM2-ColBERT-350M",
)
model.tokenizer.pad_token = model.tokenizer.eos_token

# Step 2: Initialize the PLAID index
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
    override=True,  # This overwrites the existing index if any
)

# Step 3: Encode the documents
documents_ids = ["1", "2", "3"]
documents = ["document 1 text", "document 2 text", "document 3 text"]

documents_embeddings = model.encode(
    documents,
    batch_size=32,
    is_query=False,  # Ensure that it is set to False to indicate that these are documents, not queries
    show_progress_bar=True,
)

# Step 4: Add document embeddings to the index by providing embeddings and corresponding ids
index.add_documents(
    documents_ids=documents_ids,
    documents_embeddings=documents_embeddings,
)

Note that you do not have to recreate the index and encode the documents every time. Once you have created an index and added the documents, you can re-use the index later by loading it:

# To load an index, simply instantiate it with the correct folder/name and without overriding it
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
)

Retrieving top-k documents for queries

Once the documents are indexed, you can retrieve the top-k most relevant documents for a given set of queries. To do so, initialize the ColBERT retriever with the index you want to search in, encode the queries and then retrieve the top-k documents to get the top matches ids and relevance scores:

# Step 1: Initialize the ColBERT retriever
retriever = retrieve.ColBERT(index=index)

# Step 2: Encode the queries
queries_embeddings = model.encode(
    ["query for document 3", "query for document 1"],
    batch_size=32,
    is_query=True,  #  # Ensure that it is set to True to indicate that these are queries
    show_progress_bar=True,
)

# Step 3: Retrieve top-k documents
scores = retriever.retrieve(
    queries_embeddings=queries_embeddings,
    k=10,  # Retrieve the top 10 matches for each query
)

Reranking

If you only want to use LFM2-ColBERT-350M to perform reranking on top of your first-stage retrieval pipeline without building an index, you can simply use rank function and pass the queries and documents to rerank:

from pylate import rank, models

queries = [
    "query A",
    "query B",
]

documents = [
    ["document A", "document B"],
    ["document 1", "document C", "document B"],
]

documents_ids = [
    [1, 2],
    [1, 3, 2],
]

model = models.ColBERT(
    model_name_or_path="LiquidAI/LFM2-ColBERT-350M",
)

queries_embeddings = model.encode(
    queries,
    is_query=True,
)

documents_embeddings = model.encode(
    documents,
    is_query=False,
)

reranked_documents = rank.rerank(
    documents_ids=documents_ids,
    queries_embeddings=queries_embeddings,
    documents_embeddings=documents_embeddings,
)

📈 Performance

Accuracy

We extended the NanoBEIR benchmark to include Japanese and Korean languages. We open-sourced this dataset on Hugging Face at LiquidAI/nanobeir-multilingual-extended for reproducibility. On this NanoBEIR benchmark, LFM2-ColBERT-350M displays significantly stronger multilingual capabilities (especially in German, Arabic, Korean, and Japanese) while maintaining English performance.

image

Even more interestingly, LFM2-ColBERT-350M is an excellent cross-lingual retriever. This means that it is capable of retrieving documents based on queries from other languages. This is ideal for client-facing applications, like in e-commerce, where a description might be in English but the query is in another language.

LFM2-ColBERT-350M works especially well for English, French, Spanish, Italian, Portuguese, and German, as shown with these NDCG@10 scores on NanoBEIR:

Doc / QueryARDEENESFRITJAKOPTAVG
AR0.4900.2880.3390.3030.3040.2860.3570.3380.29133.30%
DE0.3830.5630.5470.4980.5020.4890.4240.3680.48647.33%
EN0.4160.5540.6610.5530.5510.5220.4770.3950.53551.82%
ES0.4120.5140.5780.5630.5470.5290.4360.3940.54750.21%
FR0.4080.5270.5730.5520.5640.5370.4500.3880.54950.53%
IT0.3950.5120.5540.5350.5350.5430.4390.3860.52949.20%
JA0.3750.3650.4090.3580.3450.3370.5570.4910.33039.63%
KO0.3260.2740.3100.2820.2650.2660.4400.5270.27132.89%
PT0.4020.4990.5580.5450.5280.5290.4360.3820.54749.17%
AVG40.07%45.51%50.32%46.54%46.00%44.86%44.62%40.78%45.38%

In comparison, GTE-ModernColBERT-v1 consistently gets lower scores when documents and queries are not in the same language:

Doc / QueryARDEENESFRITJAKOPTAVG
AR0.3090.0890.1070.0890.0940.0920.0700.0490.08710.96%
DE0.0390.4990.4540.3620.3930.3670.1330.0610.36129.65%
EN0.0420.4080.6800.4460.4840.4200.1670.0730.43835.08%
ES0.0440.3600.4850.5250.4650.4370.1490.0610.48733.48%
FR0.0440.3810.5050.4550.5460.4280.1360.0570.46733.35%
IT0.0430.3690.4490.4460.4510.5160.1430.0540.44832.36%
JA0.0310.1690.2500.1720.1770.1690.4590.0590.16518.35%
KO0.0300.1340.1690.1270.1330.1250.0900.3680.12414.45%
PT0.0430.3680.4790.4920.4670.4480.1380.0620.53033.63%
AVG6.94%30.84%39.75%34.59%35.68%33.35%16.53%9.37%34.24%

This makes retrieval a lot more reliable and can replace architectures with multiple models with a single, unified retriever.

Inference speed

Despite being more than twice as big, LFM2-ColBERT-350M demonstrates throughput performance on par with GTE-ModernColBERT-v1 for query and document encoding across various batch sizes.

Query encoding was evaluated using realistic query patterns from datasets like MS MARCO and Natural Questions.

image

Document encoding was measured on realistic documents with varying lengths and domains.

image

📬 Contact

Citation

@article{liquidai2025lfm2,
 title={LFM2 Technical Report},
 author={Liquid AI},
 journal={arXiv preprint arXiv:2511.23404},
 year={2025}
}
@misc{PyLate,
title={PyLate: Flexible Training and Retrieval for Late Interaction Models},
author={Chaffin, Antoine and Sourty, Raphaël},
url={https://github.com/lightonai/pylate},
year={2024}
}

Contributors

mlabonne

5 commits

EdoardoMosca

2 commits

davanstrien

1 commits

LiquidAI/LFM2-ColBERT-350M

Model

153

stars

14

commits

9

repos using this model

2

linked in READMEs

Aug 18, 2026

updated

ColBERT
edge
feature-extraction
lfm2
liquid
model-index
multi-vector
PyLate
safetensors
sentence-similarity
sentence-transformers
Browse cluster: Large Language Models with PyTorch

README

Liquid AI
Try LFMDocsLEAPDiscord

LFM2-ColBERT-350M

LFM2-ColBERT-350M is a late interaction retriever with excellent multilingual performance. It allows you to store documents in one language (for example, a product description in English) and retrieve them in many languages with high accuracy.

  • LFM2-ColBERT-350M offers best-in-class accuracy across different languages.
  • Inference speed is on par with models 2.3 times smaller, thanks to the efficient LFM2 backbone.
  • You can use it as a drop-in replacement in your current RAG pipelines to improve performance.

Find more information about LFM2-ColBERT-350M in our blog post.

[!NOTE] 🚀 Try our demo: https://huggingface.co/spaces/LiquidAI/LFM2-ColBERT

📄 Model details

Late interaction retrievers like LFM2-ColBERT-350M are particularly interesting because they preserve much of the expressivity of re-rankers while retaining the efficiency of bi-encoders. In practice, they're used to both retrieve documents at scale (like bi-encoders) and rank them at the same time (like rerankers).

image

We recommend using this model for various RAG use cases, such as:

  • E-commerce: Find products across many languages with semantic search at scale.
  • On-device semantic search: Ask questions to your phone in natural language to retrieve files, emails, and notes.
  • Enterprise knowledge assistants: Retrieve internal legal, financial, and technical documents in different languages.
PropertyLFM2-ColBERT-350M
Total parameters353,322,752
Layers17 (10 conv + 6 attn + 1 dense)
Vocabulary size64,402
Training precisionBF16
LicenseLFM Open License v1.0

Document length: 512 tokens

Query length: 32 tokens

Output dimensionality: 128 tokens

Similarity function: MaxSim

Supported languages: English, Arabic, Chinese, French, German, Japanese, Korean, and Spanish.

ColBERT(
  (0): Transformer({'max_seq_length': 511, 'do_lower_case': False}) with Transformer model: Lfm2Model 
  (1): Dense({'in_features': 1024, 'out_features': 128, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
)

🏃 How to run

Colab link

Sentence Transformers

This model can be used with Sentence Transformers as a multi-vector (ColBERT-style late interaction) retriever via the MultiVectorEncoder:

pip install "sentence-transformers>=6.0.0"
from sentence_transformers import MultiVectorEncoder

model = MultiVectorEncoder("LiquidAI/LFM2-ColBERT-350M")

query = "Which planet is known as the Red Planet?"
documents = [
    "Venus wird oft als Zwilling der Erde bezeichnet, wegen ihrer ähnlichen Größe.",
    "Mars, connue pour son apparence rougeâtre, est souvent appelée la planète rouge.",
    "Júpiter es el planeta más grande del sistema solar.",
    "Saturno è famoso per i suoi bellissimi anelli.",
]

query_embeddings = model.encode_query(query)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings[0].shape)
# (32, 128) (17, 128)

# MaxSim late-interaction scoring (higher is more relevant)
scores = model.similarity(query_embeddings, document_embeddings)
print(scores)
# tensor([[30.3632, 30.4892, 30.4024, 30.3004]])

PyLate

First, install the PyLate and transformers library:

pip install -U pylate

Retrieval

Use this model with PyLate to index and retrieve documents. The index uses FastPLAID for efficient similarity search.

Indexing documents

Load LFM2-ColBERT-350M and initialize the PLAID index, then encode and index your documents:

from pylate import indexes, models, retrieve

# Step 1: Load the ColBERT model
model = models.ColBERT(
    model_name_or_path="LiquidAI/LFM2-ColBERT-350M",
)
model.tokenizer.pad_token = model.tokenizer.eos_token

# Step 2: Initialize the PLAID index
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
    override=True,  # This overwrites the existing index if any
)

# Step 3: Encode the documents
documents_ids = ["1", "2", "3"]
documents = ["document 1 text", "document 2 text", "document 3 text"]

documents_embeddings = model.encode(
    documents,
    batch_size=32,
    is_query=False,  # Ensure that it is set to False to indicate that these are documents, not queries
    show_progress_bar=True,
)

# Step 4: Add document embeddings to the index by providing embeddings and corresponding ids
index.add_documents(
    documents_ids=documents_ids,
    documents_embeddings=documents_embeddings,
)

Note that you do not have to recreate the index and encode the documents every time. Once you have created an index and added the documents, you can re-use the index later by loading it:

# To load an index, simply instantiate it with the correct folder/name and without overriding it
index = indexes.PLAID(
    index_folder="pylate-index",
    index_name="index",
)

Retrieving top-k documents for queries

Once the documents are indexed, you can retrieve the top-k most relevant documents for a given set of queries. To do so, initialize the ColBERT retriever with the index you want to search in, encode the queries and then retrieve the top-k documents to get the top matches ids and relevance scores:

# Step 1: Initialize the ColBERT retriever
retriever = retrieve.ColBERT(index=index)

# Step 2: Encode the queries
queries_embeddings = model.encode(
    ["query for document 3", "query for document 1"],
    batch_size=32,
    is_query=True,  #  # Ensure that it is set to True to indicate that these are queries
    show_progress_bar=True,
)

# Step 3: Retrieve top-k documents
scores = retriever.retrieve(
    queries_embeddings=queries_embeddings,
    k=10,  # Retrieve the top 10 matches for each query
)

Reranking

If you only want to use LFM2-ColBERT-350M to perform reranking on top of your first-stage retrieval pipeline without building an index, you can simply use rank function and pass the queries and documents to rerank:

from pylate import rank, models

queries = [
    "query A",
    "query B",
]

documents = [
    ["document A", "document B"],
    ["document 1", "document C", "document B"],
]

documents_ids = [
    [1, 2],
    [1, 3, 2],
]

model = models.ColBERT(
    model_name_or_path="LiquidAI/LFM2-ColBERT-350M",
)

queries_embeddings = model.encode(
    queries,
    is_query=True,
)

documents_embeddings = model.encode(
    documents,
    is_query=False,
)

reranked_documents = rank.rerank(
    documents_ids=documents_ids,
    queries_embeddings=queries_embeddings,
    documents_embeddings=documents_embeddings,
)

📈 Performance

Accuracy

We extended the NanoBEIR benchmark to include Japanese and Korean languages. We open-sourced this dataset on Hugging Face at LiquidAI/nanobeir-multilingual-extended for reproducibility. On this NanoBEIR benchmark, LFM2-ColBERT-350M displays significantly stronger multilingual capabilities (especially in German, Arabic, Korean, and Japanese) while maintaining English performance.

image

Even more interestingly, LFM2-ColBERT-350M is an excellent cross-lingual retriever. This means that it is capable of retrieving documents based on queries from other languages. This is ideal for client-facing applications, like in e-commerce, where a description might be in English but the query is in another language.

LFM2-ColBERT-350M works especially well for English, French, Spanish, Italian, Portuguese, and German, as shown with these NDCG@10 scores on NanoBEIR:

Doc / QueryARDEENESFRITJAKOPTAVG
AR0.4900.2880.3390.3030.3040.2860.3570.3380.29133.30%
DE0.3830.5630.5470.4980.5020.4890.4240.3680.48647.33%
EN0.4160.5540.6610.5530.5510.5220.4770.3950.53551.82%
ES0.4120.5140.5780.5630.5470.5290.4360.3940.54750.21%
FR0.4080.5270.5730.5520.5640.5370.4500.3880.54950.53%
IT0.3950.5120.5540.5350.5350.5430.4390.3860.52949.20%
JA0.3750.3650.4090.3580.3450.3370.5570.4910.33039.63%
KO0.3260.2740.3100.2820.2650.2660.4400.5270.27132.89%
PT0.4020.4990.5580.5450.5280.5290.4360.3820.54749.17%
AVG40.07%45.51%50.32%46.54%46.00%44.86%44.62%40.78%45.38%

In comparison, GTE-ModernColBERT-v1 consistently gets lower scores when documents and queries are not in the same language:

Doc / QueryARDEENESFRITJAKOPTAVG
AR0.3090.0890.1070.0890.0940.0920.0700.0490.08710.96%
DE0.0390.4990.4540.3620.3930.3670.1330.0610.36129.65%
EN0.0420.4080.6800.4460.4840.4200.1670.0730.43835.08%
ES0.0440.3600.4850.5250.4650.4370.1490.0610.48733.48%
FR0.0440.3810.5050.4550.5460.4280.1360.0570.46733.35%
IT0.0430.3690.4490.4460.4510.5160.1430.0540.44832.36%
JA0.0310.1690.2500.1720.1770.1690.4590.0590.16518.35%
KO0.0300.1340.1690.1270.1330.1250.0900.3680.12414.45%
PT0.0430.3680.4790.4920.4670.4480.1380.0620.53033.63%
AVG6.94%30.84%39.75%34.59%35.68%33.35%16.53%9.37%34.24%

This makes retrieval a lot more reliable and can replace architectures with multiple models with a single, unified retriever.

Inference speed

Despite being more than twice as big, LFM2-ColBERT-350M demonstrates throughput performance on par with GTE-ModernColBERT-v1 for query and document encoding across various batch sizes.

Query encoding was evaluated using realistic query patterns from datasets like MS MARCO and Natural Questions.

image

Document encoding was measured on realistic documents with varying lengths and domains.

image

📬 Contact

Citation

@article{liquidai2025lfm2,
 title={LFM2 Technical Report},
 author={Liquid AI},
 journal={arXiv preprint arXiv:2511.23404},
 year={2025}
}
@misc{PyLate,
title={PyLate: Flexible Training and Retrieval for Late Interaction Models},
author={Chaffin, Antoine and Sourty, Raphaël},
url={https://github.com/lightonai/pylate},
year={2024}
}

Contributors

mlabonne

5 commits

EdoardoMosca

2 commits

davanstrien

1 commits