backend_demo / custom_tasks.py
Shaltiel's picture
Added sentiment, added lots of monkey patching
7798457
raw
history blame
588 Bytes
# ruff: noqa: F405, F403, F401
"""
Custom evaluation tasks for lighteval. Copy this file and complete it with the info for your task.
This file generally create just a TASKS_TABLE and TASKS_GROUPS which are then imported by LightEval.
Author:
"""
from src.custom_tasks.heq_task import *
from src.custom_tasks.sentiment_task import *
## MODULE LOGIC
# You should not need to touch this
# Convert to dict for lighteval
TASKS_TABLE = [task.as_dict() for task in [heq_task, sentiment_task]]
if __name__ == "__main__":
print(t["name"] for t in TASKS_TABLE)
print(len(TASKS_TABLE))