onnxt5 icon indicating copy to clipboard operation
onnxt5 copied to clipboard

Can this model suitable for multilingual-t5 accelerate?

Open williamwong91 opened this issue 5 years ago • 3 comments

Recently, I use the chinese function of multilingual-t5 model to accomplish the Chinese NLG tasks. However, the inference speed might be slow, could this model be used for multilingual-t5? How can I do?

williamwong91 avatar Jan 11 '21 02:01 williamwong91

So it looks like huggingface has it now: https://huggingface.co/google/mt5-base which means you can use the code in there: https://github.com/abelriboulot/onnxt5/blob/master/examples/export_pretrained_model.py

abelriboulot avatar Jan 11 '21 14:01 abelriboulot

I am getting "You are using a model of type mt5 to instantiate a model of type t5. This is not supported for all configurations of models and can yield errors." - is it ok to use this code for mT5 models?

polly-morphism avatar Nov 25 '21 15:11 polly-morphism