"example/01_gemm/gemm_xdl_fp8.cpp" did not exist on "cec69bc3bc200de7e09396579fe33cb153f8afeb"
Commit 66eed4bb authored by lintangsutawika's avatar lintangsutawika
Browse files

update script to use initialize_tasks

parent a58674ae
...@@ -4,9 +4,8 @@ import json ...@@ -4,9 +4,8 @@ import json
import os import os
import random import random
from lm_eval import tasks from lm_eval import tasks
from lm_eval.utils import join_iters from lm_eval.utils import join_iters, eval_logger
from lm_eval.tasks import include_path from lm_eval.tasks import initialize_tasks, include_path
from lm_eval.logger import eval_logger
EXAMPLE_DIVIDER = "!!@@##@@!! -- Example {i}\n" EXAMPLE_DIVIDER = "!!@@##@@!! -- Example {i}\n"
...@@ -25,6 +24,12 @@ def parse_args(): ...@@ -25,6 +24,12 @@ def parse_args():
default=None, default=None,
help="Additional path to include if there are external tasks to include.", 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() return parser.parse_args()
...@@ -32,6 +37,8 @@ def main(): ...@@ -32,6 +37,8 @@ def main():
args = parse_args() args = parse_args()
np.random.seed(args.seed) np.random.seed(args.seed)
initialize_tasks(args.verbosity)
if args.include_path is not None: if args.include_path is not None:
eval_logger.info(f"Including path: {args.include_path}") eval_logger.info(f"Including path: {args.include_path}")
include_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