Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Fix name and hf_repo in LightevalTaskConfig
Browse files
yourbench_space/lighteval_task/yourbench_task.py
CHANGED
|
@@ -249,11 +249,11 @@ yourbench_metrics = CorpusLevelMetricGrouping(
|
|
| 249 |
extend_enum(Metrics, "yourbench_metrics", yourbench_metrics)
|
| 250 |
|
| 251 |
yourbench = LightevalTaskConfig(
|
| 252 |
-
name=HF_TASK_NAME, # noqa: F821
|
| 253 |
suite=["custom"],
|
| 254 |
prompt_function=yourbench_prompt,
|
| 255 |
-
hf_repo=HF_DATASET_NAME, # noqa: F821
|
| 256 |
-
hf_subset="
|
| 257 |
hf_avail_splits=["train"],
|
| 258 |
evaluation_splits=["train"],
|
| 259 |
few_shots_split=None,
|
|
|
|
| 249 |
extend_enum(Metrics, "yourbench_metrics", yourbench_metrics)
|
| 250 |
|
| 251 |
yourbench = LightevalTaskConfig(
|
| 252 |
+
name="HF_TASK_NAME", # noqa: F821
|
| 253 |
suite=["custom"],
|
| 254 |
prompt_function=yourbench_prompt,
|
| 255 |
+
hf_repo="HF_DATASET_NAME", # noqa: F821
|
| 256 |
+
hf_subset="lighteval",
|
| 257 |
hf_avail_splits=["train"],
|
| 258 |
evaluation_splits=["train"],
|
| 259 |
few_shots_split=None,
|