[Bugfix][Omni-DuplexEval] Load local Hugging Face dataset layouts in duplex eval loader (#7331)
Signed-off-by: RyanYun09 <RyanYun09@users.noreply.github.com> Co-authored-by: RyanYun09 <RyanYun09@users.noreply.github.com> Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
This commit is contained in:
5 files changed
+658
-37
No files matched your search
@@ -28,8 +28,28 @@ from vllm_omni.entrypoints.cli.benchmark.base import OmniBenchmarkSubcommandBase
|
||||
|
||||
|
||||
def _common(parser: argparse.ArgumentParser) -> None:
|
||||
parser.add_argument("--dataset", default=DEFAULT_DATASET)
|
||||
parser.add_argument("--split", default="all")
|
||||
parser.add_argument(
|
||||
"--dataset",
|
||||
default=DEFAULT_DATASET,
|
||||
help=(
|
||||
"Hugging Face dataset id, a JSON/JSONL manifest, or a local Hugging Face "
|
||||
"dataset mirror. A local directory must use a single configuration whose "
|
||||
"data files are named after the RTD_*/PR_* splits "
|
||||
"(data/<SPLIT>-00000-of-00001.parquet); a single .parquet file is also "
|
||||
"accepted. --split filters the rows by their preserved split identity, so "
|
||||
"rows without identity fail loudly."
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
"--split",
|
||||
default="all",
|
||||
help=(
|
||||
"Restrict to one split (e.g. RTD_OCR) or 'all'. A mistyped split name "
|
||||
"raises a clear error listing the splits actually observed in the data. "
|
||||
"Rows from a manifest or an iterable without split/subset/config identity "
|
||||
"keep the requested split as an override rather than being rejected."
|
||||
),
|
||||
)
|
||||
parser.add_argument("--family", choices=("all", "rtd", "pr"), default="all")
|
||||
parser.add_argument("--media-root")
|
||||
parser.add_argument("--limit", type=int)
|
||||
@@ -100,6 +120,8 @@ def run(args: argparse.Namespace) -> int:
|
||||
limit=args.limit,
|
||||
ids=args.ids,
|
||||
)
|
||||
if not samples:
|
||||
raise ValueError("no samples selected; check --dataset/--split/--family/--ids/--limit")
|
||||
if args.action == "generate":
|
||||
if args.concurrency < 1:
|
||||
raise ValueError("--concurrency must be at least 1")
|
||||
|
||||
Reference in new issue
Block a user