Learning to Rank Pre-Trained Models Efficiently