Sentence Transformers adds model merging: 60/40 weighted blend of two MiniLM checkpoints

tomaarsen · x · 2026-10-29

Sentence Transformers maintainer tomaarsen demonstrates the library's model merging feature, which combines compatible checkpoints without another training run. The example merges all-MiniLM-L6-v2 and multi-qa-MiniLM-L6-cos-v1 via the linear method with 0.6/0.4 weights, saves the result, and encodes text normally (output shape (2, 384)). He reports best results merging checkpoints fine-tuned from the same base model.

Related event: Sentence Transformers Adds Training-Free Model Merging(2 posts)→

Original post →

More from Models

Models channel →