facebookresearch / seamless_communication

Foundational Models for State-of-the-Art Speech and Text Translation
Other
10.52k stars 1.02k forks source link

How to export ONNX models #382

Open TangLinJie opened 3 months ago

TangLinJie commented 3 months ago

Hello, I would like to know if there is a method or script to export the onnx model here, thanks

CarteKiwi commented 3 months ago

Found this: https://rubikscode.net/2021/10/25/using-huggingface-transformers-with-ml-net/ But, seems that seamless-m4t-v2 is not supported yet. I am looking a way to use SeamlessM4T in .NET app. Any ideas ?

CarteKiwi commented 3 months ago

I guess we should use the new optimum exporter: https://huggingface.co/docs/optimum/exporters/onnx/overview