Instructions to use timofeiiz/soundstream-impl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use timofeiiz/soundstream-impl with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("timofeiiz/soundstream-impl", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files
model.py
CHANGED
|
@@ -342,6 +342,7 @@ class SoundStreamCodec(PreTrainedModel):
|
|
| 342 |
num_quantizers=config.num_quantizers,
|
| 343 |
)
|
| 344 |
self.decoder = Decoder(channels=config.channels, dim=config.latent_dim)
|
|
|
|
| 345 |
|
| 346 |
def forward(self, audio, **kwargs):
|
| 347 |
original_length = audio.size(-1)
|
|
|
|
| 342 |
num_quantizers=config.num_quantizers,
|
| 343 |
)
|
| 344 |
self.decoder = Decoder(channels=config.channels, dim=config.latent_dim)
|
| 345 |
+
self.post_init()
|
| 346 |
|
| 347 |
def forward(self, audio, **kwargs):
|
| 348 |
original_length = audio.size(-1)
|