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.

ValueError when converting dialogpt to onnx format

See original GitHub issue

Environment info

  • transformers version: 4.9.2
  • Platform: Darwin-20.5.0-x86_64-i386-64bit
  • Python version: 3.7.11
  • PyTorch version (GPU?): 1.9.0 (False)
  • Tensorflow version (GPU?): 2.2.0 (False)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Using GPU in script?: <fill in>
  • Using distributed or parallel set-up in script?: <fill in>

Who can help

@patrickvonplaten, @LysandreJik

Information

Model I am using (dialogpt): when convert dialogpt to onnx, i meet ValueError: ValueError: The type of axis index is expected to be an integer

To reproduce

from transformers.convert_graph_to_onnx import convert
from pathlib import Path
convert(framework="pt", model="DialoGPT-medium/", output=Path("onnx/dilogpt.onnx"), opset=11)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lewtuncommented, Dec 7, 2021

Thanks for the ping! Will take a look 😃

0reactions
github-actions[bot]commented, Jan 1, 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

Getting ValueError when exporting model to ONNX using ...
I'm trying to export my fine-tuned-bert-classifier torch model into ONNX format using optimum and then eventually want ro run it through a ...
Read more >
how to convert HuggingFace's Seq2seq models to onnx ...
I am trying to convert the Pegasus newsroom in HuggingFace's transformers model to the ONNX format. I followed this guide published by ...
Read more >
Exporting your model to ONNX format | Barracuda
To use your trained neural network in Unity, you need to export it to the ONNX format. ONNX (Open Neural Network Exchange) is...
Read more >
transformers.AutoTokenizer.from_pretrained Example
basicConfig( format="%(asctime)s - %(levelname)s - %(name)s ... if model.config.decoder_start_token_id is None: raise ValueError("Make sure that ...
Read more >
ailia SDK tutorial (model conversion to ONNX)
Model formats supported by the ailia SDK. The ailia SDK supports the ONNX format. To use your own trained models with ailia SDK,...
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