Skip to content
Discussion options

You must be logged in to vote

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:

    model = nemo.collections.asr.models.EncDecCTCModelBPE.load_from_checkpoint(model_ckpt)
    model.save_to(output_path)

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

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Arkymeng
Comment options

Answer selected by Minxiangliu
Comment options

You must be logged in to vote
1 reply
@VahidooX
Comment options

VahidooX Jan 5, 2023
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants