Skip to content

How to print all pass@k scores when generating 16 samples? #999

Description

@passing2961

Hi,

I want to print all results of pass@k metrics when generating 16 samples. (e.g., k=1, 2, 4, 8, 16)

math_500_pass_k_at_16 = LightevalTaskConfig(
    name="math_500_pass_k_at_16",
    suite=["custom"],
    prompt_function=math_500_prompt_fn,
    hf_repo="HuggingFaceH4/MATH-500",
    hf_subset="default",
    hf_avail_splits=["test"],
    evaluation_splits=["test"],
    few_shots_split=None,
    few_shots_select=None,
    generation_size=32768,
    metrics=[
        Metrics.pass_at_k_math(sample_params={"k": 1, "n": 16}),
        Metrics.pass_at_k_math(sample_params={"k": 2, "n": 16}),
        Metrics.pass_at_k_math(sample_params={"k": 4, "n": 16}),
        Metrics.pass_at_k_math(sample_params={"k": 8, "n": 16}),
        Metrics.pass_at_k_math(sample_params={"k": 16, "n": 16}),
    ],
    version=2,

But, I can't see full results that I want. Does anyone know how to resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions