Downloads · 30 days
32
18% of all-time downloads
jasonvassallo/mlx-musicgen-style
mlx-musicgen-style is a text-to-audio model from jasonvassallo. Use it for the text-to-audio task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as cc-by-nc-4.0.
Non-commercial licence. These weights are CC-BY-NC-4.0 and may not be used for commercial purposes. See Licence below.
Downloads · 30 days
32
18% of all-time downloads
All-time downloads
173
Public
Repo size
3.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors3.7 GB · 100%
From the Hugging Face model README
Non-commercial licence. These weights are CC-BY-NC-4.0 and may not be used for commercial purposes. See Licence below.
MLX conversion of facebook/musicgen-style for inference on Apple silicon via mlx-audiogen.
Upstream MusicGen is released under two different licences, and it matters which applies to what:
Key terms, summarised (the licence text governs):
mlx-audiogen's own Apache-2.0 licence covers the conversion code only. The full licence is in LICENSE; attribution and the statement of modifications are in NOTICE.
MusicGen Style was created by Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi and Alexandre Défossez, and published in Simple and Controllable Music Generation.
These weights are a modified version of the upstream checkpoint, converted to the MLX array format for inference on Apple silicon. Specifically: convolution weights are transposed where MLX's layout differs from PyTorch's, tensors are re-serialised as safetensors, weight keys are remapped to match this project's module names, and the text encoder is split into a separate file. The model is re-implemented against MLX rather than PyTorch.
No weights are retrained or fine-tuned.
Tensor precision as shipped: the decoder and the style conditioner store float16; the MERT feature extractor and the T5 text encoder store float32. Upstream distributes an audiocraft state_dict.bin rather than safetensors, so the float16 tensors may be a precision reduction relative to it — treat them as possibly rounded. No weights are retrained or fine-tuned either way.
LICENSE.t5-apache-2.0LICENSEWhere component licences differ, the most restrictive term governs this repository: CC-BY-NC-4.0.
pip install "mlx-audiogen[server]"
mlx-audiogen --model musicgen --prompt "happy rock song" --seconds 5 \
--weights-dir musicgen-style
The weights download automatically on first use.