You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TensorRT 10.16 Myelin crash on Blackwell (sm_120) — Broadcast stride mismatch in SoVITS decoder #4743
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.
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.
Activity
yuchen-ya commentedon Nov 14, 2026
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.