

Since the text encoder and audio encoder/decoder models are frozen during training, the MusicGen decoder [MusicgenForCausalLM]
can be trained standalone on a dataset of encoder hidden-states and audio codes. For inference, the trained decoder can
be combined with the frozen text encoder and audio encoder/decoders to recover the composite [MusicgenForConditionalGeneration]
model.
Tips:
* MusicGen is trained on the 32kHz checkpoint of Encodec. You should ensure you use a compatible version of the Encodec model.
* Sampling mode tends to deliver better results than greedy - you can toggle sampling with the variable do_sample in the call to [MusicgenForConditionalGeneration.generate]
MusicgenDecoderConfig
[[autodoc]] MusicgenDecoderConfig
MusicgenConfig
[[autodoc]] MusicgenConfig
MusicgenProcessor
[[autodoc]] MusicgenProcessor
MusicgenModel
[[autodoc]] MusicgenModel
    - forward
MusicgenForCausalLM
[[autodoc]] MusicgenForCausalLM
    - forward
MusicgenForConditionalGeneration
[[autodoc]] MusicgenForConditionalGeneration
    - forward