question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ONNX conversion of deberta_v2 models

See original GitHub issue

System 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:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lewtuncommented, Oct 5, 2022

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

0reactions
github-actions[bot]commented, Nov 26, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found