Deprecations for v0.23 and v0.24 (#44992)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -1617,7 +1617,6 @@ def add_dataset_parser(parser: FlexibleArgumentParser):
|
||||
"custom",
|
||||
"custom_audio",
|
||||
"custom_image",
|
||||
"custom_mm",
|
||||
"prefix_repetition",
|
||||
"spec_bench",
|
||||
"speed_bench",
|
||||
@@ -2106,12 +2105,7 @@ def get_samples(args, tokenizer: TokenizerLike) -> list[SampleRequest]:
|
||||
no_oversample=args.no_oversample,
|
||||
)
|
||||
|
||||
elif args.dataset_name in ("custom_image", "custom_mm"):
|
||||
if args.dataset_name == "custom_mm":
|
||||
logger.warning(
|
||||
"Dataset name 'custom_mm' is deprecated and will be removed in v0.24. "
|
||||
"Use '--dataset-name custom_image' instead."
|
||||
)
|
||||
elif args.dataset_name == "custom_image":
|
||||
dataset = CustomImageDataset(
|
||||
dataset_path=args.dataset_path,
|
||||
disable_shuffle=args.disable_shuffle,
|
||||
|
||||
Reference in New Issue
Block a user