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

nemo2riva export doesn't work with FastPitch #9104

Open
fr0zenshard opened this issue May 3, 2024 · 3 comments
Open

nemo2riva export doesn't work with FastPitch #9104

fr0zenshard opened this issue May 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@fr0zenshard
Copy link

Description

When I try to export a model to Riva (using nemo2riva==2.14.0), the FastPitch model export doesn't work (meanwhile, the HiFiGAN export works wonderfully).
I've tried various combinations of onnx and onnxruntime, combinations of NeMo and nemo2riva versions, but in the end, nothing works and the following error always pops up:

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Failed to load model with error: Invalid tensor data type 0.

Steps/Code to reproduce bug

Using NeMo image (1.21.0, 1.22.0, 1.23.0) + installed nemo2riva==2.14.0:

nemo2riva --out $(OUT_RIVA).riva $(NEMO_MODEL) --key tlt_encode --runtime-check

Additional info

The failed results mentioned by the authors of the issue above can be obtained by:

  1. Using exported .riva FastPitch from nemo2riva without a runtime_check
  2. Downgrading onnx_graphsurgeon to version 0.3.27

In such an environment, the build and deploy of rmir will occur, but at the start of the Riva server, there will be either an:

  • IR compatibility issue (version 9, not 8)
  • OR -UNAVAILABLE: Internal: onnx runtime error 1: Load model from /data/models/riva-onnx-fastpitch_encoder-test/1/model.onnx failed:Invalid tensor data type 0.
@fr0zenshard fr0zenshard added the bug Something isn't working label May 3, 2024
@fr0zenshard
Copy link
Author

I've tried trained models from previous version of NeMo and newly trained within version 1.23.0 and etc.

@fr0zenshard
Copy link
Author

As I understand, problem is in: nemo2riva/nemo2riva/patches/tts/fastpitch.py at r2.15.0 · nvidia-riva/nemo2riva. Runtime didn't catch this additional params and runtime-check failing

@fr0zenshard
Copy link
Author

hey?

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

No branches or pull requests

1 participant