Unverified Commit fe34486f authored by Zachary Mueller's avatar Zachary Mueller Committed by GitHub
Browse files

Muellerzr fix deepspeed (#23657)

* Fix deepspeed recursion

* Better fix
parent 7bbdfd7b
......@@ -1708,7 +1708,8 @@ class TrainingArguments:
"""
requires_backends(self, ["torch"])
# Make sure `self._n_gpu` is properly setup.
_ = self._setup_devices
if not hasattr(self, "_n_gpu"):
_ = self._setup_devices
return self._n_gpu
@property
......
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