How can I export a transformers model into onnx that not supported with optimum yet

Hi,

The easiest is to do it as explained in this guide: Convert Transformers to ONNX with Hugging Face Optimum. You can use torch.onnx.export, which is more low-level than Optimum.

Feel free to open an issue on the Optimum repository to add support for RT-DETR.

1 Like