This snippet demonstrates how to use cross-encoder/ms-marco-MiniLM-L-6-v2 , arguably the most popular "tiny" alternative for general use.