This commit is contained in:
Marc Sun
2025-08-07 12:48:11 +02:00
committed by GitHub
parent c0a3aefea8
commit 2941a6b0fb

View File

@ -182,13 +182,6 @@ def launch_command_parser(subparsers=None):
hardware_args.add_argument(
"--tpu", default=False, action="store_true", help="Whether or not this should launch a TPU training."
)
hardware_args.add_argument(
"--ipex",
default=False,
action="store_true",
help="Whether or not this should launch a Intel PyTorch Extension (IPEX) training.",
)
# Resource selection arguments
resource_args = parser.add_argument_group(
"Resource Selection Arguments", "Arguments for fine-tuning how available hardware should be used."
@ -1200,12 +1193,6 @@ def _validate_launch_command(args):
f"\t`--num_cpu_threads_per_process` was set to `{args.num_cpu_threads_per_process}` to improve out-of-box performance when training on CPUs"
)
if args.ipex is not None:
logger.warning(
"ipex flag is deprecated, will be removed in Accelerate v1.10. "
"From 2.7.0, PyTorch has all needed optimizations for Intel CPU and XPU."
)
if args.use_xpu is not None:
logger.warning(
"use_xpu is deprecated and ignored, will be removed in Accelerate v1.20. "