Skip to content

TensorRT 10.16 Myelin crash on Blackwell (sm_120) — Broadcast stride mismatch in SoVITS decoder #4743

Open

Description

@yuchen-ya

Environment
- GPU: RTX 5080 (Blackwell, sm_120, 16GB)
- Driver: 596.21 / CUDA 13.2
- TensorRT: 10.16.1.11 (pip + SDK)
- ONNX exported from GPT-SoVITS v2ProPlus (opset 17)

Error
Building sovits.engine with trtexec --fp16 crashes with:


Internal Error: MyelinCheckException:
  CHECK_EQ(dim_count(), stride_order().size()) failed.  LHS: 4  RHS: 3

Could not find any implementation for node
  {ForeignNode[vq_model.ge_to512.bias + ONNXTRT_Broadcast_270.../dec/Tanh]}


All 7 other engines build fine. Only sovits.onnx fails.

Root Cause
8 Add nodes in the ONNX graph have 1D constant bias inputs
(shape=[128], [512], [1024]) broadcast-added to higher-dimensional
tensors. Myelin fuses these into ForeignNodes but infers stride as
3D when 4D is expected.

Workaround
Reshaping biases to [1,1,N] via ONNX GraphSurgeon allows compilation
but adds inference overhead. Pure ONNX FP16 inference is faster than
the TRT workaround (RTF 0.34 vs 0.47).

Reproduction
All scripts, patches, and models attached in repro.zip.
See repro/README.md for step-by-step instructions.

https://drive.google.com/file/d/1V-n3Xco_jBafDdaAmTsRQR_u1O3bawHP/view?usp=sharing

Activity

  1. added
    Module:Engine Build
    on May 4, 2026
  2. yuchen-ya commented on Nov 14, 2026

    @yuchen-ya
    Author

    Update: I found another graph-level workaround in AnifLive-TTS. It explicitly references this issue.

    Instead of only reshaping the rank-1 biases, the converter replaces the eight affected MatMul + Add pairs with mathematically equivalent 1×1 Conv operations. This avoids the implicit batch and bias broadcasting involved in the failing pattern. The converter also decomposes 24 LayerNormalization nodes as part of its graph rewrite.

    I tested the patched regular and streaming SoVITS graphs on my RTX 5080 with TensorRT 11.2.1.2 and CUDA 12.8. Both engines built and executed successfully. This is a workaround for the exported graph; it does not establish that the original TensorRT 10.16 issue has been fixed.

    One caveat: I observed numerical differences between the TensorRT/FP16 output and the FP32 reference, so the result still needs model-specific accuracy and audio-quality validation. I have not separately isolated which part of the graph rewrite or precision change accounts for those differences.

    Hopefully this provides another useful direction for investigating the original Myelin broadcast/stride mismatch.

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

    Module:Engine Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions