donut icon indicating copy to clipboard operation
donut copied to clipboard

[Feature] Expporting Donut to onnx and quantization

Open WaterKnight1998 opened this issue 2 years ago • 4 comments

Hi,

This model is very powerfull, but using it in production is hard. It would be cool if we can export it to onnxruntime and do quantization so it can be used in CPU or mobile devices.

I would be glad to help with the feature as it is Hacktoberfest :) @gwkrsrch @napatswift @SamSamhuns

Best regards, WaterKnight

WaterKnight1998 avatar Oct 05 '22 10:10 WaterKnight1998

Any update on this @WaterKnight1998 ?

Prasanna-iq avatar Oct 25 '22 12:10 Prasanna-iq

I am interested as well. Has anyone tried torch.onnx.export?

jackkwok avatar Dec 13 '22 02:12 jackkwok

How about use FasterTransformer to do quantization on this model

Mhhhaster avatar Jul 10 '23 09:07 Mhhhaster

Hi, I managed to convert a Donut model to onnx. My work is available here. Hope it helps :)

ambroiseb avatar Nov 20 '23 15:11 ambroiseb