Skip to content

Commit ff60868

Browse files
committed
quick fix for not unwrapping model before getting config
1 parent b29141f commit ff60868

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

audiolm_pytorch/trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def save(self, path):
257257
pkg = dict(
258258
model = self.accelerator.get_state_dict(self.soundstream),
259259
optim = self.optim.state_dict(),
260-
config = self.soundstream._configs,
260+
config = self.unwrapped_soundstream._configs,
261261
discr_optim = self.discr_optim.state_dict(),
262262
version = __version__
263263
)

audiolm_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.23.2'
1+
__version__ = '0.23.3'

0 commit comments

Comments
 (0)