Closed
Description
System Info
- `optimum` version: 1.6.4.dev0
- `transformers` version: 4.26.0
- Platform: Linux-5.4.0-125-generic-x86_64-with-glibc2.17
- Python version: 3.8.15
- Huggingface_hub version: 0.11.0
- PyTorch version (GPU?): 1.13.1+cu117 (cuda availabe: True)
- Tensorflow version (GPU?): 2.10.1 (cuda availabe: False)
Who can help?
No response
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examples
folder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
python -m optimum.exporters.onnx --model="microsoft/trocr-small-handwritten" --task=vision2seq-lm-with-past model_trocr_base --for-ort
Error:
ValueError: Exporting past key values is not supported with TrOCR model!
Expected behavior
Exporting TrOCR to ONNX with past should work.