ValueError when converting dialogpt to onnx format
See original GitHub issueEnvironment 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:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top 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 >
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 Free
Top 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
Thanks for the ping! Will take a look 😃
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.