How to export model.nemo from ckpt? #2730
-
Hi, Many thank! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You need to load the model with method load_from_checkpoint and then save it as nemo file. For instance if it is an ASR model, you may do it like this:
You may also set the following in your config, so checkoints are stored as nemo file instead of PTL checkpoints:
|
Beta Was this translation helpful? Give feedback.
-
code: ERROR:AttributeError Traceback (most recent call last) AttributeError: module 'nemo.collections.nlp' has no attribute 'models' @VahidooX could u plz help me solve this error |
Beta Was this translation helpful? Give feedback.
You need to load the model with method load_from_checkpoint and then save it as nemo file. For instance if it is an ASR model, you may do it like this:
You may also set the following in your config, so checkoints are stored as nemo file instead of PTL checkpoints:
exp_manager.checkpoint_callback_params.always_save_nemo = true