"tests/vscode:/vscode.git/clone" did not exist on "836921fdeb498820b71dcc7b70e990e828f4c6bc"
Unverified Commit a982c022 authored by Zach Mueller's avatar Zach Mueller Committed by GitHub
Browse files

Disable ipex env var if false (#24885)

Disable ipex if in use
parent 07360b6c
......@@ -1718,6 +1718,8 @@ class TrainingArguments:
)
AcceleratorState._reset_state(reset_partial_state=True)
self.distributed_state = None
if not self.use_ipex and "ACCELERATE_USE_IPEX" not in os.environ:
os.environ["ACCELERATE_USE_IPEX"] = "false"
if self.use_cpu:
self.distributed_state = PartialState(cpu=True, backend=self.ddp_backend)
self._n_gpu = 0
......
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