Skip to content

Commit

Permalink
Revert "Unable to use MimiModel with DeepSpeed ZeRO-3" (huggingface…
Browse files Browse the repository at this point in the history
…#35755)

Revert "Unable to use `MimiModel` with DeepSpeed ZeRO-3 (huggingface#34735)"

This reverts commit 54fd7e9.
  • Loading branch information
eustlb authored Jan 17, 2025
1 parent 10e8cd0 commit 936a731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/mimi/modeling_mimi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def __init__(self, config: MimiConfig, epsilon: float = 1e-5):

self.codebook_size = config.codebook_size

self.register_buffer("initialized", torch.tensor([True]))
self.register_buffer("initialized", torch.Tensor([True]))
self.register_buffer("cluster_usage", torch.ones(config.codebook_size))
self.register_buffer("embed_sum", embed)
self._embed = None
Expand Down

0 comments on commit 936a731

Please sign in to comment.