Skip to content

Commit 3a28895

Browse files
committed
added cache at all levels
1 parent 2a6da98 commit 3a28895

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/lighteval/__main__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ def cli_evaluate():
4444
parser_b = subparsers.add_parser("nanotron", help="use nanotron as backend for evaluation.")
4545
parser_nanotron(parser_b)
4646

47-
# values which should always be set
47+
# utils functions
48+
parser.add_argument("--list-tasks", action="store_true", help="List available tasks")
4849
parser.add_argument(
4950
"--cache_dir", type=str, default=CACHE_DIR, help="Cache directory used to store datasets and models"
5051
)
51-
52-
# utils functions
53-
parser.add_argument("--list-tasks", action="store_true", help="List available tasks")
5452
parser.add_argument(
5553
"--tasks-examples",
5654
type=str,

src/lighteval/parsers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def parser_accelerate(parser=None):
9696
default=None,
9797
help="Id of a task, e.g. 'original|mmlu:abstract_algebra|5' or path to a texte file with a list of tasks",
9898
)
99+
parser.add_argument(
100+
"--cache_dir", type=str, default=CACHE_DIR, help="Cache directory used to store datasets and models"
101+
)
99102
parser.add_argument("--num_fewshot_seeds", type=int, default=1, help="Number of trials the few shots")
100103
return parser
101104

@@ -117,3 +120,6 @@ def parser_nanotron(parser=None):
117120
type=str,
118121
help="Path to an optional YAML or python Lighteval config to override part of the checkpoint Lighteval config",
119122
)
123+
parser.add_argument(
124+
"--cache_dir", type=str, default=CACHE_DIR, help="Cache directory used to store datasets and models"
125+
)

0 commit comments

Comments
 (0)