argilla-io / distilabel-helm-instruct-adaptable-evaluation-criteria

A repo that implements Stanford CRFM their HELM Instruct with adaptable evaluation criteria

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

distilabel-helm-instruct-adaptable-evaluation-criteria

A repo that implements Stanford CRFM their HELM Instruct with adaptable evaluation criteria

Install

python -m venv .venv
source .venv/bin/activate
pip install -r helm_instruct/requirements.txt

Run

python helm_instruct/main.py

Create custom evaluation criteria

from helm_instruct.evaluation_criteria import Rating,Criterion

criterion = {
    "childfriendliness"; Criterion(
        question="How child-friendly is the game?",
        ratings=[
            Rating(
                rating=1,
                description="Not child-friendly"
            ),
            Rating(
                rating=2,
                description="A bit child-friendly"
            ),
            Rating(
                rating=3,
                description="Child-friendly"
            ),
            Rating(
                rating=4,
                description="Very child-friendly"
            )
        ]
    )
}

About

A repo that implements Stanford CRFM their HELM Instruct with adaptable evaluation criteria

License:Apache License 2.0


Languages

Language:Jupyter Notebook 78.7%Language:Python 21.3%