Unverified Commit f69b903b authored by Cyrus Leung's avatar Cyrus Leung Committed by GitHub
Browse files

[Bugfix] Add `--trust-remote-code` to dataset bench args (#34208)


Signed-off-by: default avatarDarkLight1337 <tlleungac@connect.ust.hk>
parent 81e217fe
...@@ -1314,6 +1314,11 @@ class _ValidateDatasetArgs(argparse.Action): ...@@ -1314,6 +1314,11 @@ class _ValidateDatasetArgs(argparse.Action):
def add_dataset_parser(parser: FlexibleArgumentParser): def add_dataset_parser(parser: FlexibleArgumentParser):
parser.add_argument(
"--trust-remote-code",
action="store_true",
help="Trust remote code from huggingface",
)
parser.add_argument("--seed", type=int, default=0) parser.add_argument("--seed", type=int, default=0)
parser.add_argument( parser.add_argument(
"--num-prompts", "--num-prompts",
......
...@@ -1300,11 +1300,6 @@ def add_cli_args(parser: argparse.ArgumentParser): ...@@ -1300,11 +1300,6 @@ def add_cli_args(parser: argparse.ArgumentParser):
"bursty requests. A higher burstiness value (burstiness > 1) " "bursty requests. A higher burstiness value (burstiness > 1) "
"results in a more uniform arrival of requests.", "results in a more uniform arrival of requests.",
) )
parser.add_argument(
"--trust-remote-code",
action="store_true",
help="Trust remote code from huggingface",
)
parser.add_argument( parser.add_argument(
"--disable-tqdm", "--disable-tqdm",
action="store_true", action="store_true",
......
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