mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-09 18:46:25 +08:00
[Feature] Default ignore_eos True for random dataset (#28227)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
e0d6b4a867
commit
4b1ff13221
@ -1359,6 +1359,14 @@ async def main_async(args: argparse.Namespace) -> dict[str, Any]:
|
||||
"'--dataset-path' if required."
|
||||
)
|
||||
|
||||
# when using random datasets, default to ignoring EOS
|
||||
# so generation runs to the requested length
|
||||
if (
|
||||
args.dataset_name in ("random", "random-mm")
|
||||
and args.backend in OPENAI_COMPATIBLE_BACKENDS
|
||||
):
|
||||
args.ignore_eos = True
|
||||
|
||||
# Load the dataset.
|
||||
input_requests = get_samples(args, tokenizer)
|
||||
goodput_config_dict = check_goodput_args(args)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user