---
title: "Training and Finetuning Multi-Vector Embedding Models with Sentence Transformers"
description: "Sentence Transformers v6.0 adds a MultiVectorEncoder model type for ColBERT-style late-interaction retrieval, with a full training stack covering models, datasets, losses, training arguments, evaluators and the trainer."
url: "https://swe.quest/articles/training-and-finetuning-multi-vector-embedding-models-with-sentence-transformers-454449569f0d4793"
canonical: "https://huggingface.co/blog/train-multi-vector-encoder"
source: "Hugging Face"
published: "2026-08-26"
difficulty: "medium"
kind: "How-to"
reading_minutes: 27
tags: ["model-training","search","python","rag"]
---

# Training and Finetuning Multi-Vector Embedding Models with Sentence Transformers

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-08-26, 27 min read, How-to. Original: [https://huggingface.co/blog/train-multi-vector-encoder](https://huggingface.co/blog/train-multi-vector-encoder)

## Summary

Sentence Transformers v6.0 adds a MultiVectorEncoder model type for ColBERT-style late-interaction retrieval, with a full training stack covering models, datasets, losses, training arguments, evaluators and the trainer. A guide walks through finetuning on MIRIAD medical question-passage pairs. The resulting mLateOn-medical model, trained in 14.5 hours on one RTX 3090, beats every general-purpose dense, sparse, lexical and multi-vector retriever the author tested. Key findings: '-unsupervised' checkpoints taken before supervised finetuning adapt to a new domain better than finished ones, which barely improved or regressed. Lifting the 180–512 token document caps matters too, since truncation cost up to 0.24 NDCG@10 on long passages. A punctuation skiplist shrinks the index by 9.6% with a slight quality gain, and CachedMultiVectorMultipleNegativesRankingLoss allows large effective batch sizes.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)

## Prerequisites

- embedding models
- contrastive learning
- PyTorch training basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- retrieval evaluation metrics ([easy posts on Evaluation](https://swe.quest/tags/evals.md?difficulty=easy))

## Keywords

Sentence Transformers, ColBERT, MultiVectorEncoder, MaxSim, mLateOn, MIRIAD, ModernBERT, GradCache

## Related posts

- [Multi-Vector (Late Interaction) Embedding Models with Sentence Transformers](https://swe.quest/articles/multi-vector-late-interaction-embedding-models-with-sentence-transformers-8580846e619b61eb.md): Hugging Face · 2026-08-18 · Medium · 39 min read · Search, Vector search, Python, RAG & retrieval
  Sentence Transformers v6.0 adds MultiVectorEncoder, a fourth model type for ColBERT-style late-interaction retrieval that loads PyLate, Stanford-NLP ColBERT and (with added config) colpali-engine checkpoints.
- [Token Pooling-Aware Training for Multi-Vector Embedding Models](https://swe.quest/articles/token-pooling-aware-training-for-multi-vector-embedding-models-0e5234acf2e85460.md): Hugging Face · 2026-11-11 · Hard · 12 min read · Search, Model training, Machine learning, Python
  Pooling-aware training teaches a multi-vector (ColBERT-style) encoder to keep retrieval-relevant information when document token vectors are merged by Ward hierarchical clustering, improving quality at a fixed storage budget.
- [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://swe.quest/articles/training-and-finetuning-multimodal-embedding-reranker-models-with-sentence-4630fc81c2fcf375.md): Hugging Face · 2026-04-16 · Medium · 17 min read · Model training, Computer vision, Search, RAG & retrieval, Python
  Finetuning Qwen3-VL-Embedding-2B with Sentence Transformers for Visual Document Retrieval raised NDCG@10 from 0.888 to 0.947.
- [Training and Finetuning Embedding Models with Sentence Transformers](https://swe.quest/articles/training-and-finetuning-embedding-models-with-sentence-transformers-d6dcb3eebe384143.md): Hugging Face · 2024-05-28 · Medium · 14 min read · Model training, Python, Machine learning, Search, Evaluation
  Sentence Transformers v3 trains and finetunes embedding models through a SentenceTransformerTrainer that combines Hugging Face datasets, a loss function, optional training arguments and evaluators.
- [Multimodal Embedding & Reranker Models with Sentence Transformers](https://swe.quest/articles/multimodal-embedding-reranker-models-with-sentence-transformers-20e85bafd6c145d3.md): Hugging Face · 2026-04-09 · Medium · 14 min read · RAG & retrieval, Search, Computer vision, Python, Machine learning
  Sentence Transformers v5.4 extends its familiar encode/similarity and CrossEncoder APIs to images, audio, video and mixed text-image inputs, mapping them into a shared embedding space for cross-modal search, visual document retrieval and multimodal RAG.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
