huggingface / optimum-intel

🤗 Optimum Intel: Accelerate inference with Intel optimization tools
https://huggingface.co/docs/optimum/main/en/intel/index
Apache License 2.0
409 stars 112 forks source link

TrOcr model to openvino IR model #379

Closed khalidtariq closed 7 months ago

khalidtariq commented 1 year ago

Feature request

hi everyone, i have a TrOcr model and i would like to convert it to openvino IR model. I tried with the optimum, I think, does not support the Trocr model. Has anyone done this before and can help me out, I would really appreciate it

Motivation

need help

Your contribution

need help

regisss commented 1 year ago

Transferring this issue to Optimum Intel as that's where exports to OpenVINO are managed.

echarlaix commented 1 year ago

Hi @khalidtariq,

There is currently no OpenVINO export support for TrOCR models, we plan to add this integration in the future by creating an OVModelForVision2Seq class allowing the export of models loaded with AutoModelForVision2Seq

echarlaix commented 7 months ago

OVModelForVision2Seq support for TrOCR models is now available thanks to https://github.com/huggingface/optimum-intel/pull/634