Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORTOptimizer with bart-large-cnn throwing "Incomplete shape inference" #448

Open
2 of 4 tasks
ghost opened this issue Nov 4, 2022 · 2 comments
Open
2 of 4 tasks
Assignees
Labels
bug Something isn't working onnxruntime Related to ONNX Runtime

Comments

@ghost
Copy link

ghost commented Nov 4, 2022

System Info

NVIDIA Docker container for Pytorch
nvcr.io/nvidia/pytorch:22.10-py3
R9 5900X, RTX A6000, Docker Host is Ubuntu 22.04

Who can help?

@lewtun

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

test_optimum.txt

  1. pull down facebook/bart-large-cnn model
  2. convert model to ONNX
  3. run ORTOptimizer on ONNX model <- fails here

Expected behavior

I expected ORTOptimizer to optimize the model for GPU(sanitize onnx nodes, fold constants, move subgraphs to GPU) but instead it fails with the error: "incomplete symbolic shape inference"

@ghost ghost added the bug Something isn't working label Nov 4, 2022
@JingyaHuang JingyaHuang added the onnxruntime Related to ONNX Runtime label Nov 7, 2022
@JingyaHuang JingyaHuang self-assigned this Nov 7, 2022
@JingyaHuang
Copy link
Contributor

JingyaHuang commented Nov 7, 2022

Hi @dsingal0,

It seems that the symbolic shape infer for some custom fused ops failed while converting float32 to float16. Can you try:

  • Firstly, if it works by setting optimization_level=1(without any fusion).
  • Then, set optimization_level=2, and disable some fusions to see explicitly which fused op caused the failure.

@JingyaHuang
Copy link
Contributor

Hi @dsingal0, any update about the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working onnxruntime Related to ONNX Runtime
Projects
None yet
Development

No branches or pull requests

1 participant