Closed qiuxia-alone closed 2 years ago
Gently pinging @michaelbenayoun here
Gently pinging @lewtun here
Thanks for the ping! Will take a look :)
Hey @qiuxia-alone, thank you for raising this issue! The ONNX export API was overhauled in transformers
v4.9.0 (link), and since then the recommended way to export models is via the transformers.onnx
package.
For example, one can export the DialoGPT-medium
checkpoint as follows:
python -m transformers.onnx --model=microsoft/DialoGPT-medium onnx/ --opset 11
Does running the above command solve your issue? You can find more information in the docs of your transformers
version here.
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.
Environment info
transformers
version: 4.9.2Who 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