NielsRogge / Transformers-Tutorials

This repository contains demos I made with the Transformers library by HuggingFace.
MIT License
9.17k stars 1.42k forks source link

How to decrease inference time of LayoutXLM? #286

Open piegu opened 1 year ago

piegu commented 1 year ago

Hi,

I'm using Hugging Face libraries in order to run LayoutXLM. How can I decrease inference time? Which code to use?

I've already tested BetterTransformer(Optimum) and ONNXbut none of them accepts LayoutXLMmodel.

Thank you.

Note: I asked this question here, too: https://github.com/microsoft/unilm/issues/1080

NielsRogge commented 1 year ago

Hi,

Feel free to open an issue on the Optimum library!

piegu commented 1 year ago

Issue opened in the Optimum library: https://github.com/huggingface/optimum/issues/1024