Skip to content

[BUG] LightevalTaskConfig doesn't support comparison, but Cache management uses sorted on it #1024

@colinzuo

Description

@colinzuo

Describe the bug

Specify two tasks as below:
helm|boolq|0
helm|boolq:contrastset|0
The current logic will assume "helm|boolq" is a group and will add "helm|boolq:contrastset" again, then "helm|boolq:contrastset" will appear twice, later at SampleCache:_get_task_hash sorted is used to sort these two, and
an error "<" is not supported on LightevalTaskConfig is raised

To Reproduce

Specify two tasks as below in yaml:
helm|boolq|0
helm|boolq:contrastset|0

Expected behavior

Run should succeed

Version info

0.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions