Commit 66eed4bb authored by lintangsutawika's avatar lintangsutawika
Browse files

update script to use initialize_tasks

parent a58674ae
......@@ -4,9 +4,8 @@ import json
import os
import random
from lm_eval import tasks
from lm_eval.utils import join_iters
from lm_eval.tasks import include_path
from lm_eval.logger import eval_logger
from lm_eval.utils import join_iters, eval_logger
from lm_eval.tasks import initialize_tasks, include_path
EXAMPLE_DIVIDER = "!!@@##@@!! -- Example {i}\n"
......@@ -25,6 +24,12 @@ def parse_args():
default=None,
help="Additional path to include if there are external tasks to include.",
)
parser.add_argument(
"--verbosity",
type=str,
default="INFO",
help="Log error when tasks are not registered.",
)
return parser.parse_args()
......@@ -32,6 +37,8 @@ def main():
args = parse_args()
np.random.seed(args.seed)
initialize_tasks(args.verbosity)
if args.include_path is not None:
eval_logger.info(f"Including path: {args.include_path}")
include_path(args.include_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment