Is there a possibility of using this model in Python?

#11
by Muhammadreza - opened

I'm just looking forward for using this model in a python code. Is it possible?

Owner

You can find usage instructions here: https://huggingface.co/facebook/musicgen-small

@Xenova Thanks, but I just wanted to use ONNX version outside of browser. Like an API or so.

Owner

Then yes, it should be possible, but you'd need to re-implement a lot of the generation functions. Feel free to take my JavaScript version as inspiration.

@fxmarty might also be working on a python version with Optimum.

@Muhammadreza wouldn't you just use the facebook version of the model via python? ( https://huggingface.co/facebook/musicgen-small )

@Muhammadreza , were you able to use/convert MusicGen small to ONNX in Python? Any insights would be greatly appreciated.

Not yet.

Sign up or log in to comment