Closed peterhanlon closed 2 years ago
Could you please turn on debug logging and share the returned logs?
Sure but how do I do that?
I'm assuming "--verbose=DEBUG" is the correct switch to activate the debug logging? The output is as follows:
nemo2riva --verbose=DEBUG --out moneypenny-confirmer-v1.riva /data/models/moneypenny-confirmer-v1.nemo
[NeMo W 2021-08-31 09:58:37 optimizers:47 rank:0] Apex was not found. Using the lamb optimizer will error out.
INFO: Logging level set to 10
INFO: Restoring NeMo model from '/data/models/moneypenny-confirmer-v1.nemo'
[NeMo D 2021-08-31 09:58:39 common:468 rank:0] Model instantiation from target class nemo.collections.asr.models.ctc_bpe_models.EncDecCTCModelBPE failed with following error.
Falling back to cls
.
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/envs/riva/lib/python3.8/site-packages/nemo/core/classes/common.py", line 448, in from_config_dict
imported_cls = import_class_by_path(target_cls)
File "/home/ubuntu/anaconda3/envs/riva/lib/python3.8/site-packages/nemo/utils/model_utils.py", line 437, in import_class_by_path
mod = import(path, fromlist=[class_name])
File "/home/ubuntu/anaconda3/envs/riva/lib/python3.8/site-packages/nemo/collections/asr/init.py", line 15, in
ERROR: Nemo2Jarvis: Failed to restore model from NeMo file : /data/models/moneypenny-confirmer-v1.nemo. Please make sure you have the latest NeMo package installed with [all] dependencies.
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/envs/riva/bin/nemo2riva", line 8, in
Does anyone have any idea how to resolve this one?
@peterhanlon i had this issue creating my own pytorch container and installing nemo tools 1.3 and 1.1 (because this version is mentioned in the nvidia guide) and dependencies. I "solved it" by useing ngc riva 1.4. quickstart, i was able to use nemo2riva after installing nemotools 1.3 inside the deployed riva-client container.
Please try using the latest nemo2riva. Which model architecture are you trying to convert? Is it one supported by Riva? The latest tooling is a bit more verbose catching unsupported networks.
Describe the bug
When I attempt to convert a nemo file (fine tuned from the conformer model), I get the following error
Steps/Code to reproduce bug
ngc registry resource download-version nvidia/riva/riva_quickstart conda create --name riva python=3.8 conda activate riva cd riva_quickstart_v1.5.0-beta pip install nemo-toolkit[all] pip3 install riva_api-1.5.0b0-py3-none-any.whl pip3 install nemo2riva-1.5.0b0-py3-none-any.whl pip3 install nvidia-pyindex pip3 install nemo2riva nemo2riva --out moneypenny-confirmer-v1.riva /data/models/moneypenny-confirmer-v1.nemo
-- Running nemo2riva then throws the error outlined above --
Expected behavior
The nemo file should be converted into a riva file
Environment overview (please complete the following information)
Environment details
If NVIDIA docker image is used you don't need to specify these. Otherwise, please provide: