ONNX conversion of deberta_v2 models
See original GitHub issueSystem Info
transformers: 4.22.2 platform: Ubuntu 20.04.2 python: 3.8.10
Who can help?
DeBERTa-v2: @LysandreJik
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
The following command fails: python -m transformers.onnx --model=microsoft/deberta-v3-small onnx/
The model can be microsoft/{mdeberta-v3-base, deberta-v3-small, deberta-v3-base, etc.}.
The main problem lies in the symbolic(...)
method of the class XSoftmax
class, that is called while tracing the model. However, there are several other warnings while converting the model (Are they important?)
Expected behavior
Model saved as ONNX format.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
DeBERTaV3 ONNX conversion error - Hugging Face Forums
Hi :hugs: I am trying to convert a finetuned DeBERTaV3 model into ONNX graph using the transformers.onnx python CLI.
Read more >Converting an ONNX Model - OpenVINO™ Documentation
This page provides instructions on how to convert a model from the ONNX format to the OpenVINO IR format using Model Optimizer. To...
Read more >Converting Models to ONNX Format - Cassie - Medium
The first step to using #ONNXRuntime and leveraging the cross platform and language support is converting your model to an ONNX Format.
Read more >Converting Models to #ONNX Format - YouTube
The first step to using #ONNXRuntime is converting your model to an ONNX Format. In this video we show you how to convert...
Read more >How to Convert a PyTorch Model to ONNX in 5 Minutes - Deci AI
Convert Your PyTorch Model to ONNX. Converting deep learning models from PyTorch to ONNX is quite straightforward. Start by loading a pre- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @kobiche thanks for reporting this error, we also noticed this in #19255 when validating the
deberta
models with different batch size / seq len compared to the one used to trace the model.We’ll aim to patch this ASAP
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.