[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
1707169680
commit
a7047229ff
1 changed files with 1 additions and 0 deletions
|
|
@ -1090,6 +1090,7 @@ def run_training_process(
|
|||
# transformers and trl access it before that happens, causing AttributeError.
|
||||
try:
|
||||
import torch.distributed as _td # noqa: F401 -- forces full module load
|
||||
|
||||
if not hasattr(_td, "is_initialized"):
|
||||
_td.is_initialized = lambda: False
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue