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

Feature/add feature to compare models on different benchmark datasets #964

Conversation

chakravarthik27
Copy link
Collaborator

@chakravarthik27 chakravarthik27 commented Jan 26, 2024

harness = Harness(
    task="question-answering",
    model={"model": "gpt-3.5-turbo-instruct", "hub": "openai"},
    data=[
        {"data_source": "BoolQ", "split": "test-tiny"},
        {"data_source": "NQ-open", "split": "test-tiny"},
        {"data_source": "MedQA", "split": "test-tiny"},
        {"data_source": "LogiQA", "split": "test-tiny"},
        ],
    config={
        "model_parameters": {
            "max_tokens": 32,
            "temperature": 0.2,
        },
        "evaluation": {
            "metric": "llm_eval",
            "model": "gpt-3.5-turbo-instruct",
            "hub": "openai",
        },
        "tests": {
            "defaults": {"min_pass_rate": 0.65},
            "robustness": {
                "uppercase": {"min_pass_rate": 0.75},
                "add_typo": {"min_pass_rate": 0.75},
            },
        },
    },
)

generate, run and report

harness.generate().run().report()

image

@ArshaanNazir ArshaanNazir linked an issue Jan 26, 2024 that may be closed by this pull request
@ArshaanNazir ArshaanNazir added the v2.1.0 Issue or request to be done in v2.1.0 release label Jan 26, 2024
@ArshaanNazir ArshaanNazir merged commit 1482364 into release/2.0.0 Jan 27, 2024
3 checks passed
@ArshaanNazir ArshaanNazir deleted the feature/add-feature-to-compare-models-on-different-benchmark-datasets branch February 13, 2024 16:26
@chakravarthik27 chakravarthik27 added v2.0.0 released 2.0.0 and removed v2.1.0 Issue or request to be done in v2.1.0 release labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.0.0 released 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add feature to compare models on different benchmark datasets
2 participants