Skip to content

Commit

Permalink
Update dataclasses.py (#1894)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman100 authored Aug 28, 2023
1 parent e2ae254 commit 1ace672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/utils/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def set_deepspeed_weakref(self):
if ds_config["train_batch_size"] == "auto":
del ds_config["train_batch_size"]

from transformers.deepspeed import HfDeepSpeedConfig
from transformers.integrations import HfDeepSpeedConfig

self.dschf = HfDeepSpeedConfig(ds_config) # keep this object alive # noqa

Expand Down

0 comments on commit 1ace672

Please sign in to comment.