Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upload your model performance to MTEB leaderboard #13

Open
archersama opened this issue Dec 11, 2024 · 0 comments
Open

How to upload your model performance to MTEB leaderboard #13

archersama opened this issue Dec 11, 2024 · 0 comments

Comments

@archersama
Copy link
Contributor

1.Evaluating Your Model Using the MTEB Package

To evaluate your model using the MTEB package, follow the steps below:

import mteb
import logging
from sentence_transformers import SentenceTransformer
from mteb import MTEB

logger = logging.getLogger(__name__)

model_name = 'intfloat/e5-base-v2'
model = SentenceTransformer(model_name)
tasks = mteb.get_tasks(
    tasks=[
        "AppsRetrieval",
        "CodeFeedbackMT",
        "CodeFeedbackST",
        "CodeTransOceanContest",
        "CodeTransOceanDL",
        "CosQA",
        "SyntheticText2SQL",
        "StackOverflowQA",
        "COIRCodeSearchNetRetrieval",
        "CodeSearchNetCCRetrieval",
    ]
)
evaluation = MTEB(tasks=tasks)
results = evaluation.run(
    model=model,
    overwrite_results=True
)
print(results)
  1. Uploading Your Results to the Leaderboard

To upload your results to the leaderboard, please follow the instructions provided in the following guide: Adding a Model to the MTEB Leaderboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant