mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
parent
07360b6c9c
commit
a982c0225e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user